From cdda6c33bbf6eb988878099c6b3215396fbc43b0 Mon Sep 17 00:00:00 2001 From: liuyunfeng Date: Tue, 9 Jan 2024 13:26:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=96=E8=AF=91=E4=B8=8D?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/WY.NewJit.DbMigrator/appsettings.json | 3 +- ...reated_NewJit_Entity2022-07-01.Designer.cs | 5757 ----------------- ...1062532_Created_NewJit_Entity2022-07-01.cs | 338 - ...64724_Created_NewJit_Entity2022-07-01_2.cs | 233 - ...240109051359_NewJitPG_HQ_Init.Designer.cs} | 879 +-- .../20240109051359_NewJitPG_HQ_Init.cs | 3133 +++++++++ .../NewJitMigrationsDbContextModelSnapshot.cs | 875 +-- ...it.EntityFrameworkCore.DbMigrations.csproj | 4 - .../appsettings.json | 2 +- 9 files changed, 4072 insertions(+), 7152 deletions(-) delete mode 100644 src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701062532_Created_NewJit_Entity2022-07-01.Designer.cs delete mode 100644 src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701062532_Created_NewJit_Entity2022-07-01.cs delete mode 100644 src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701064724_Created_NewJit_Entity2022-07-01_2.cs rename src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/{20220701064724_Created_NewJit_Entity2022-07-01_2.Designer.cs => 20240109051359_NewJitPG_HQ_Init.Designer.cs} (96%) create mode 100644 src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109051359_NewJitPG_HQ_Init.cs diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.DbMigrator/appsettings.json b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.DbMigrator/appsettings.json index 37417cb..ab74e15 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.DbMigrator/appsettings.json +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.DbMigrator/appsettings.json @@ -1,6 +1,7 @@ { "ConnectionStrings": { - "Default": "Server=192.168.0.140;Database=NewJitPG_TEST_20230703;uid=sa;pwd=Microsoft2008" + "Default": "Server=dev.ccwin-in.com,6208;Database=NewJitPG_HQ;uid=sa;pwd=ChangkeTec@2021;" + /*"Default": "Server=192.168.0.213;Database=NewJitPG;uid=sa;pwd=Microsoft@2021"*/ /*"Default": "Server=LAPTOP-4TE7UPMR\\MYSQLSERVER;Database=NewJit;uid=sa;pwd=1"*/ }, diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701062532_Created_NewJit_Entity2022-07-01.Designer.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701062532_Created_NewJit_Entity2022-07-01.Designer.cs deleted file mode 100644 index ab3450b..0000000 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701062532_Created_NewJit_Entity2022-07-01.Designer.cs +++ /dev/null @@ -1,5757 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using WY.NewJit.EntityFrameworkCore; - -namespace WY.NewJit.Migrations -{ - [DbContext(typeof(NewJitMigrationsDbContext))] - [Migration("20220701062532_Created_NewJit_Entity2022-07-01")] - partial class Created_NewJit_Entity20220701 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.17") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)") - .HasColumnName("ApplicationName"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("BrowserInfo"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientId"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientIpAddress"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("ClientName"); - - b.Property("Comments") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Comments"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("CorrelationId"); - - b.Property("Exceptions") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)") - .HasColumnName("Exceptions"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HttpMethod") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("HttpMethod"); - - b.Property("HttpStatusCode") - .HasColumnType("int") - .HasColumnName("HttpStatusCode"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorTenantId"); - - b.Property("ImpersonatorUserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorUserId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Url"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("UserId"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId", "ExecutionTime"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2") - .HasColumnName("ExecutionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("MethodName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("MethodName"); - - b.Property("Parameters") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasColumnName("Parameters"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ServiceName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - - b.ToTable("AbpAuditLogActions"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ChangeTime") - .HasColumnType("datetime2") - .HasColumnName("ChangeTime"); - - b.Property("ChangeType") - .HasColumnType("tinyint") - .HasColumnName("ChangeType"); - - b.Property("EntityId") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityId"); - - b.Property("EntityTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityTypeFullName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityTypeFullName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("EntityChangeId") - .HasColumnType("uniqueidentifier"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("NewValue"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("OriginalValue"); - - b.Property("PropertyName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("PropertyName"); - - b.Property("PropertyTypeFullName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PropertyTypeFullName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAbandoned") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastTryTime") - .HasColumnType("datetime2"); - - b.Property("NextTryTime") - .HasColumnType("datetime2"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("tinyint") - .HasDefaultValue((byte)15); - - b.Property("TryCount") - .ValueGeneratedOnAdd() - .HasColumnType("smallint") - .HasDefaultValue((short)0); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpFeatureValues"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStatic") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Regex") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("RegexDescription") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ValueType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AbpClaimTypes"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("SourceTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique() - .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - - b.ToTable("AbpLinkUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDefault") - .HasColumnType("bit") - .HasColumnName("IsDefault"); - - b.Property("IsPublic") - .HasColumnType("bit") - .HasColumnName("IsPublic"); - - b.Property("IsStatic") - .HasColumnType("bit") - .HasColumnName("IsStatic"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Action") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Identity") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Action"); - - b.HasIndex("TenantId", "ApplicationName"); - - b.HasIndex("TenantId", "Identity"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSecurityLogs"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessFailedCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0) - .HasColumnName("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Email"); - - b.Property("EmailConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("EmailConfirmed"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsExternal") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsExternal"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LockoutEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("LockoutEnabled"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Name"); - - b.Property("NormalizedEmail") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedEmail"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedUserName"); - - b.Property("PasswordHash") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("PasswordHash"); - - b.Property("PhoneNumber") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("PhoneNumber"); - - b.Property("PhoneNumberConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("PhoneNumberConfirmed"); - - b.Property("SecurityStamp") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("SecurityStamp"); - - b.Property("Surname") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Surname"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TwoFactorEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("TwoFactorEnabled"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("Email"); - - b.HasIndex("NormalizedEmail"); - - b.HasIndex("NormalizedUserName"); - - b.HasIndex("UserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderDisplayName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(196) - .HasColumnType("nvarchar(196)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "LoginProvider"); - - b.HasIndex("LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "UserId"); - - b.HasIndex("UserId", "OrganizationUnitId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(95)") - .HasColumnName("Code"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("DisplayName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code"); - - b.HasIndex("ParentId"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "RoleId"); - - b.HasIndex("RoleId", "OrganizationUnitId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AllowedAccessTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Type"); - - b.ToTable("IdentityServerApiResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiResourceId", "Key", "Value"); - - b.ToTable("IdentityServerApiResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Scope"); - - b.ToTable("IdentityServerApiResourceScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ApiResourceId", "Type", "Value"); - - b.ToTable("IdentityServerApiResourceSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiScopeId", "Type"); - - b.ToTable("IdentityServerApiScopeClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiScopeId", "Key", "Value"); - - b.ToTable("IdentityServerApiScopeProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AbsoluteRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenType") - .HasColumnType("int"); - - b.Property("AllowAccessTokensViaBrowser") - .HasColumnType("bit"); - - b.Property("AllowOfflineAccess") - .HasColumnType("bit"); - - b.Property("AllowPlainTextPkce") - .HasColumnType("bit"); - - b.Property("AllowRememberConsent") - .HasColumnType("bit"); - - b.Property("AllowedIdentityTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("AlwaysIncludeUserClaimsInIdToken") - .HasColumnType("bit"); - - b.Property("AlwaysSendClientClaims") - .HasColumnType("bit"); - - b.Property("AuthorizationCodeLifetime") - .HasColumnType("int"); - - b.Property("BackChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("BackChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ClientClaimsPrefix") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsentLifetime") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DeviceCodeLifetime") - .HasColumnType("int"); - - b.Property("EnableLocalLogin") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FrontChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("FrontChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("IdentityTokenLifetime") - .HasColumnType("int"); - - b.Property("IncludeJwtId") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LogoUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("PairWiseSubjectSalt") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProtocolType") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RefreshTokenExpiration") - .HasColumnType("int"); - - b.Property("RefreshTokenUsage") - .HasColumnType("int"); - - b.Property("RequireClientSecret") - .HasColumnType("bit"); - - b.Property("RequireConsent") - .HasColumnType("bit"); - - b.Property("RequirePkce") - .HasColumnType("bit"); - - b.Property("RequireRequestObject") - .HasColumnType("bit"); - - b.Property("SlidingRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("UpdateAccessTokenClaimsOnRefresh") - .HasColumnType("bit"); - - b.Property("UserCodeType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("UserSsoLifetime") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.ToTable("IdentityServerClients"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Origin") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.HasKey("ClientId", "Origin"); - - b.ToTable("IdentityServerClientCorsOrigins"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("GrantType") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "GrantType"); - - b.ToTable("IdentityServerClientGrantTypes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Provider") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Provider"); - - b.ToTable("IdentityServerClientIdPRestrictions"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PostLogoutRedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "PostLogoutRedirectUri"); - - b.ToTable("IdentityServerClientPostLogoutRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "Key", "Value"); - - b.ToTable("IdentityServerClientProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("RedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "RedirectUri"); - - b.ToTable("IdentityServerClientRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Scope"); - - b.ToTable("IdentityServerClientScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("DeviceCode") - .IsUnique(); - - b.HasIndex("Expiration"); - - b.HasIndex("UserCode"); - - b.ToTable("IdentityServerDeviceFlowCodes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b => - { - b.Property("Key") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsumedTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Key"); - - b.HasIndex("Expiration"); - - b.HasIndex("SubjectId", "ClientId", "Type"); - - b.HasIndex("SubjectId", "SessionId", "Type"); - - b.ToTable("IdentityServerPersistedGrants"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerIdentityResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("IdentityResourceId", "Type"); - - b.ToTable("IdentityServerIdentityResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("IdentityResourceId", "Key", "Value"); - - b.ToTable("IdentityServerIdentityResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpPermissionGrants"); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("TenantId", "Name"); - - b.ToTable("AbpTenantConnectionStrings"); - }); - - modelBuilder.Entity("WY.NewJit.Books.Book", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Price") - .HasColumnType("real"); - - b.Property("PublishDate") - .HasColumnType("datetime2"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("FisBooks"); - }); - - modelBuilder.Entity("WY.NewJit.Commons.SequenceInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("SequenceNum") - .HasColumnType("bigint"); - - b.Property("SequenceType") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("FisSequenceInfo"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginHostSN") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginVin") - .HasColumnType("nvarchar(max)"); - - b.Property("BillLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillSerialNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Capacity") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EndHostSN") - .HasColumnType("nvarchar(max)"); - - b.Property("EndVin") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MinOnlineTime") - .HasColumnType("datetime2"); - - b.Property("PartType") - .HasColumnType("nvarchar(max)"); - - b.Property("PrintDate") - .HasColumnType("datetime2"); - - b.Property("PrintType") - .HasColumnType("int"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProviderCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReportStatus") - .HasColumnType("int"); - - b.Property("SortId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("FisMenBanPackingList"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingRec", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BelowMaterialDescription") - .HasColumnType("nvarchar(max)"); - - b.Property("BelowSAPMaterialNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KNR") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("M100BillId") - .HasColumnType("uniqueidentifier"); - - b.Property("MenBanPackingListId") - .HasColumnType("uniqueidentifier"); - - b.Property("TopBoxPositionNum") - .HasColumnType("nvarchar(max)"); - - b.Property("TopMaterialDescription") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSAPMaterialNum") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(max)"); - - b.Property("VehicleModel_DoorPlankCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MenBanPackingListId"); - - b.ToTable("FisMenBanPackingRec"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingRec2", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Column00") - .HasColumnType("nvarchar(max)"); - - b.Property("Column01") - .HasColumnType("nvarchar(max)"); - - b.Property("Column02") - .HasColumnType("nvarchar(max)"); - - b.Property("Column03") - .HasColumnType("nvarchar(max)"); - - b.Property("Column04") - .HasColumnType("nvarchar(max)"); - - b.Property("Column05") - .HasColumnType("nvarchar(max)"); - - b.Property("Column06") - .HasColumnType("nvarchar(max)"); - - b.Property("Column07") - .HasColumnType("nvarchar(max)"); - - b.Property("Column08") - .HasColumnType("nvarchar(max)"); - - b.Property("Column09") - .HasColumnType("nvarchar(max)"); - - b.Property("Column10") - .HasColumnType("nvarchar(max)"); - - b.Property("Column11") - .HasColumnType("nvarchar(max)"); - - b.Property("Column12") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("Id"); - - b.ToTable("FisMenBanPackingRec2"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.CUR_TB_BILL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CustId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DetailQty") - .HasColumnType("int"); - - b.Property("DockCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("FinishTime") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("GUID") - .HasColumnType("uniqueidentifier"); - - b.Property("GateCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("GateName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SourceBillNum2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SourceBillNum3") - .HasColumnType("nvarchar(max)"); - - b.Property("StartTime") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TransportType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TruckNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UID") - .HasColumnType("int"); - - b.Property("VendId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("FisCUR_TB_BILL"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.CUR_TS_SORT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustBarCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DispatchDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Dock") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("FullBarCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("FyonNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LineNum") - .HasColumnType("int"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlanQty") - .HasColumnType("money"); - - b.Property("ProjectId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("money"); - - b.Property("ReceiptQty") - .HasColumnType("money"); - - b.Property("Remark") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNum") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UID") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("bigint"); - - b.Property("VendId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VinCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("FisCUR_TS_SORT_DETAIL"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.HIS_TB_BILL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CustId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DetailQty") - .HasColumnType("int"); - - b.Property("DockCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("FinishTime") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("GUID") - .HasColumnType("uniqueidentifier"); - - b.Property("GateCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("GateName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SourceBillNum2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SourceBillNum3") - .HasColumnType("nvarchar(max)"); - - b.Property("StartTime") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TransportType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TruckNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UID") - .HasColumnType("int"); - - b.Property("VendId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("FisHIS_TB_BILL"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.HIS_TS_SORT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustBarCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DispatchDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Dock") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("FullBarCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("FyonNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LineNum") - .HasColumnType("int"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlanQty") - .HasColumnType("money"); - - b.Property("ProjectId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("money"); - - b.Property("ReceiptQty") - .HasColumnType("money"); - - b.Property("Remark") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNum") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UID") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("bigint"); - - b.Property("VendId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VinCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("FisHIS_TS_SORT_DETAIL"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.MaterialExt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDescription") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription2") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialGroup") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialMemo") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialNum") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("MaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialType2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialType3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RelationKey") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("VehicleModel") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("promo") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialNum") - .HasDatabaseName("IX_MaterialExt_MaterialNum"); - - b.HasIndex("MaterialType") - .HasDatabaseName("IX_MaterialExt_MaterialType"); - - b.HasIndex("MaterialType2") - .HasDatabaseName("IX_MaterialExt_MaterialType2"); - - b.HasIndex("MaterialType3") - .HasDatabaseName("IX_MaterialExt_MaterialType3"); - - b.HasIndex("RelationKey") - .HasDatabaseName("IX_MaterialExt_RelationKey"); - - b.HasIndex("VehicleModel") - .HasDatabaseName("IX_MaterialExt_VehicleModel"); - - b.ToTable("FisMaterialExt"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ProductLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ProductLineCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("ProductLineName") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ProductLineCode") - .HasDatabaseName("IX_ProductLine_ProductLineCode"); - - b.ToTable("FisProductLine"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.User2ProductLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ProductLineId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("FisUser2ProductLine"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginHostSN") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginVin") - .HasColumnType("nvarchar(max)"); - - b.Property("BillLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillSerialNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Capacity") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EndHostSN") - .HasColumnType("nvarchar(max)"); - - b.Property("EndVin") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MinOnlineTime") - .HasColumnType("datetime2"); - - b.Property("PartType") - .HasColumnType("nvarchar(max)"); - - b.Property("PrintDate") - .HasColumnType("datetime2"); - - b.Property("PrintType") - .HasColumnType("int"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProviderCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReportStatus") - .HasColumnType("int"); - - b.Property("SortId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("FisZhuHuBanPackingList"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KNR") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("M100BillId") - .HasColumnType("uniqueidentifier"); - - b.Property("MaterialDescription") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription2") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(max)"); - - b.Property("ZhuHuBanPackingListId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ZhuHuBanPackingListId"); - - b.ToTable("FisZhuHuBanPackingRec"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec2", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Column00") - .HasColumnType("nvarchar(max)"); - - b.Property("Column01") - .HasColumnType("nvarchar(max)"); - - b.Property("Column02") - .HasColumnType("nvarchar(max)"); - - b.Property("Column03") - .HasColumnType("nvarchar(max)"); - - b.Property("Column04") - .HasColumnType("nvarchar(max)"); - - b.Property("Column05") - .HasColumnType("nvarchar(max)"); - - b.Property("Column06") - .HasColumnType("nvarchar(max)"); - - b.Property("Column07") - .HasColumnType("nvarchar(max)"); - - b.Property("Column08") - .HasColumnType("nvarchar(max)"); - - b.Property("Column09") - .HasColumnType("nvarchar(max)"); - - b.Property("Column10") - .HasColumnType("nvarchar(max)"); - - b.Property("Column11") - .HasColumnType("nvarchar(max)"); - - b.Property("Column12") - .HasColumnType("nvarchar(max)"); - - b.Property("Column13") - .HasColumnType("nvarchar(max)"); - - b.Property("Column14") - .HasColumnType("nvarchar(max)"); - - b.Property("Column15") - .HasColumnType("nvarchar(max)"); - - b.Property("Column16") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("Id"); - - b.ToTable("FisZhuHuBanPackingRec2"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgErp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ErpAssemblyCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("ErpAssemblyName") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpAssemblyVersion") - .HasColumnType("int"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupCode") - .HasMaxLength(100) - .HasColumnType("varchar(100)"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewVersionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelationKey") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("VehicleModel") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.HasKey("Id"); - - b.ToTable("FisAssemblyCfgErp"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupCode") - .HasMaxLength(100) - .HasColumnType("varchar(100)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDisable") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("VehicleModel") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("FisAssemblyCfgGroup"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCfgErpId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsKey") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.HasKey("Id"); - - b.HasIndex("AssemblyCfgErpId"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_FisAssemblyCfgPart_PartCode"); - - b.ToTable("FisAssemblyCfgPart"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgVehicle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyName") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsActivate") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("VehicleModelCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.HasKey("Id"); - - b.ToTable("FisAssemblyCfgVehicle"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgVehicleChild", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCfgVehicleId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ErpAssemblyId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("Id"); - - b.HasIndex("AssemblyCfgVehicleId"); - - b.HasIndex("ErpAssemblyId") - .HasDatabaseName("IX_AssemblyCfgVehicleChild_ErpAssemblyId"); - - b.ToTable("FisAssemblyCfgVehicleChild"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.DicItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DicItemCode") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("DicItemName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("DicItemSort1") - .HasColumnType("nvarchar(max)"); - - b.Property("DicItemSort2") - .HasColumnType("nvarchar(max)"); - - b.Property("DicItemSort3") - .HasColumnType("nvarchar(max)"); - - b.Property("DicItemSort4") - .HasColumnType("nvarchar(max)"); - - b.Property("DicItemSort5") - .HasColumnType("nvarchar(max)"); - - b.Property("DicTypeCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("Id"); - - b.HasIndex("DicItemCode") - .HasDatabaseName("IX_DicItem_DicItemCode"); - - b.HasIndex("DicTypeCode") - .HasDatabaseName("IX_DicItem_DicTypeCode"); - - b.ToTable("FisDicItem"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.DicType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DicTypeCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DicTypeName") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("Id"); - - b.HasIndex("DicTypeCode") - .HasDatabaseName("IX_DicType_DicTypeCode"); - - b.ToTable("FisDicType"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.ExcludePartCfg", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExcludeReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VehicleModelCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("FisExcludePartCfg"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.GlobalSettings", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("RefreshMessageParseCache") - .HasMaxLength(1) - .HasColumnType("nvarchar(1)"); - - b.HasKey("Id"); - - b.ToTable("FisGlobalSettings"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.LineSN", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LastPrintTime") - .HasColumnType("datetime2"); - - b.Property("PartType") - .HasColumnType("nvarchar(450)"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ProductType") - .HasColumnType("int"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SN") - .HasColumnType("float"); - - b.HasKey("Id"); - - b.HasIndex("ProductType", "ProductLine", "PartType") - .IsUnique() - .HasFilter("[ProductLine] IS NOT NULL AND [PartType] IS NOT NULL"); - - b.ToTable("FisLineSN"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.LogRemind", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LogDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LogStatus") - .HasColumnType("int"); - - b.Property("LogTitle") - .HasColumnType("nvarchar(max)"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("SeriousLevel") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("FisLogRemind"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.PartCfg", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDisable") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartName") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RelationKey") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_PartCfg_PartCode"); - - b.HasIndex("PartType") - .HasDatabaseName("IX_PartCfg_PartType"); - - b.HasIndex("PartType2") - .HasDatabaseName("IX_PartCfg_PartType2"); - - b.HasIndex("PartType3") - .HasDatabaseName("IX_PartCfg_PartType3"); - - b.ToTable("FisPartCfg"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.PartSwitch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveBeginTime") - .HasColumnType("datetime2"); - - b.Property("ActiveEndTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SourcePartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TargetPartCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("FisPartSwitch"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM100", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyID") - .HasColumnType("uniqueidentifier"); - - b.Property("BillStatus") - .HasColumnType("int"); - - b.Property("CanNotPrint") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("HostSN2") - .HasColumnType("int"); - - b.Property("IsPartSwitch") - .HasColumnType("bit"); - - b.Property("KNR") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MessageFileReceiveID") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedReplenishPrint") - .HasColumnType("int"); - - b.Property("OnlineTime") - .HasColumnType("datetime2"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("OperationType") - .HasColumnType("int"); - - b.Property("Operator") - .HasColumnType("nvarchar(max)"); - - b.Property("PrintBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PrintTime") - .HasColumnType("datetime2"); - - b.Property("PrintTime2") - .HasColumnType("datetime2"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("SerialNum") - .HasColumnType("int"); - - b.Property("SerialNumStr") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("VIN") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("VehicleModelCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("HostSN") - .HasDatabaseName("IX_BillM100_HostSN2"); - - b.HasIndex("ProductLine") - .HasDatabaseName("IX_BillM100_ProductLine2"); - - b.HasIndex("SerialNum") - .HasDatabaseName("IX_BillM100_SerialNum"); - - b.HasIndex("SerialNumStr") - .HasDatabaseName("IX_BillM100_SerialNumStr2"); - - b.HasIndex("VIN") - .HasDatabaseName("IX_BillM100_VIN2"); - - b.ToTable("FisBillM100"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM100Part", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillM100Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartType2") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartType3") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BillM100Id"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_BillM100Part_PartCode2"); - - b.ToTable("FisBillM100Part"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM110", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyID") - .HasColumnType("uniqueidentifier"); - - b.Property("BillStatus") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("KNR") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MessageFileReceiveID") - .HasColumnType("uniqueidentifier"); - - b.Property("OnlineTime") - .HasColumnType("datetime2"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("SerialNum") - .HasColumnType("int"); - - b.Property("VIN") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("VehicleModelCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("VIN") - .HasDatabaseName("IX_BillM110_VIN3"); - - b.ToTable("FisBillM110"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM110Part", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillM110Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.HasKey("Id"); - - b.HasIndex("BillM110Id"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_BillM110Part_PartCode3"); - - b.ToTable("FisBillM110Part"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillR100", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyID") - .HasColumnType("uniqueidentifier"); - - b.Property("BillStatus") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("IsPartSwitch") - .HasColumnType("bit"); - - b.Property("KNR") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MessageFileReceiveID") - .HasColumnType("uniqueidentifier"); - - b.Property("OnlineTime") - .HasColumnType("datetime2"); - - b.Property("PrintTime") - .HasColumnType("datetime2"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("SerialNum") - .HasColumnType("int"); - - b.Property("SerialNumStr") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("VehicleModelCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("HostSN") - .HasDatabaseName("IX_BillR100_HostSN1"); - - b.HasIndex("KNR") - .HasDatabaseName("IX_BillR100_KNR"); - - b.HasIndex("ProductLine") - .HasDatabaseName("IX_BillR100_ProductLine1"); - - b.HasIndex("SerialNumStr") - .HasDatabaseName("IX_BillR100_SerialNumStr1"); - - b.ToTable("FisBillR100"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillR100Part", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillR100Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartType2") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartType3") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillR100Id"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_BillR100Part_PartCode1"); - - b.ToTable("FisBillR100Part"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM100", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyID") - .HasColumnType("uniqueidentifier"); - - b.Property("BillStatus") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("KNR") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MessageFileReceiveID") - .HasColumnType("uniqueidentifier"); - - b.Property("OnlineTime") - .HasColumnType("datetime2"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("SerialNum") - .HasColumnType("int"); - - b.Property("VIN") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("VehicleModelCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("HostSN") - .HasDatabaseName("IX_RepeatM100_HostSN"); - - b.HasIndex("KNR") - .HasDatabaseName("IX_RepeatM100_KNR"); - - b.HasIndex("ProductLine") - .HasDatabaseName("IX_RepeatM100_ProductLine"); - - b.HasIndex("VIN") - .HasDatabaseName("IX_RepeatM100_VIN"); - - b.ToTable("FisRepeatM100"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM100Part", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.Property("RepeatM100Id") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_RepeatM100Part_PartCode"); - - b.HasIndex("RepeatM100Id"); - - b.ToTable("FisRepeatM100Part"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM110", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillStatus") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("KNR") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MessageFileReceiveID") - .HasColumnType("uniqueidentifier"); - - b.Property("OnlineTime") - .HasColumnType("datetime2"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("VIN") - .HasColumnType("nvarchar(max)"); - - b.Property("VehicleModelCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("FisRepeatM110"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM110Part", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.Property("RepeatM110Id") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("RepeatM110Id"); - - b.ToTable("FisRepeatM110Part"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatR100", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyID") - .HasColumnType("uniqueidentifier"); - - b.Property("BillStatus") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("KNR") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MessageFileReceiveID") - .HasColumnType("uniqueidentifier"); - - b.Property("OnlineTime") - .HasColumnType("datetime2"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("VehicleModelCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("HostSN") - .HasDatabaseName("IX_RepeatR100_HostSN"); - - b.HasIndex("KNR") - .HasDatabaseName("IX_RepeatR100_KNR"); - - b.HasIndex("ProductLine") - .HasDatabaseName("IX_RepeatR100_ProductLine"); - - b.ToTable("FisRepeatR100"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatR100Part", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.Property("RepeatR100Id") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_RepeatR100Part_PartCode"); - - b.HasIndex("RepeatR100Id"); - - b.ToTable("FisRepeatR100Part"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.UnknownAssembly", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillID") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.Property("ScanPoint") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("FisUnknownAssembly"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.UnknownAssemblyPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.Property("UnknownAssemblyId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_UnknownAssemblyPart_PartCode"); - - b.HasIndex("UnknownAssemblyId"); - - b.ToTable("FisUnknownAssemblyPart"); - }); - - modelBuilder.Entity("WY.NewJit.MsgConversion.BillSortCfg", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillName") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FileContentKeyword") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MessageVersionCfgId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MessageVersionCfgId"); - - b.ToTable("FisBillSortCfg"); - }); - - modelBuilder.Entity("WY.NewJit.MsgConversion.MessageVersionCfg", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileNameKeyword") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("FisMessageVersionCfg"); - }); - - modelBuilder.Entity("WY.NewJit.MsgTransmission.MessageReceive", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ErrorCount") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastUpdateTime") - .HasColumnType("datetime2"); - - b.Property("MessageContent") - .HasColumnType("nvarchar(max)"); - - b.Property("MessageFileName") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveStatus") - .HasColumnType("int"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("FisMessageReceive"); - }); - - modelBuilder.Entity("WY.NewJit.MsgTransmission.MessageReceiveArchive", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillHostSN") - .HasColumnType("int"); - - b.Property("BillOnlineTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastUpdateTime") - .HasColumnType("datetime2"); - - b.Property("MessageContent") - .HasColumnType("nvarchar(max)"); - - b.Property("MessageFileName") - .HasColumnType("nvarchar(max)"); - - b.Property("MessageReceiveId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReceiveStatus") - .HasColumnType("int"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("FisMessageReceiveArchive"); - }); - - modelBuilder.Entity("WY.NewJit.MsgTransmission.TransmissionModeCfg", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsApply") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("TransmissionModeContent") - .HasColumnType("nvarchar(max)"); - - b.Property("TransmissionModeType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("FisTransmissionModeCfg"); - }); - - modelBuilder.Entity("WY.NewJit.TianHe.NotMatchTempBill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("NotMatchBillId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("FisNotMatchTempBill"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("Actions") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("EntityChanges") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("OrganizationUnits") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany("Roles") - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("UserClaims") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Properties") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Scopes") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Secrets") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("UserClaims") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("Properties") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Claims") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedCorsOrigins") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedGrantTypes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("IdentityProviderRestrictions") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("PostLogoutRedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Properties") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("RedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedScopes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("ClientSecrets") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("UserClaims") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("Properties") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.HasOne("Volo.Abp.TenantManagement.Tenant", null) - .WithMany("ConnectionStrings") - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingRec", b => - { - b.HasOne("WY.NewJit.Extends.MenBanPackingList", null) - .WithMany("Details") - .HasForeignKey("MenBanPackingListId"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec", b => - { - b.HasOne("WY.NewJit.Extends.ZhuHuBanPackingList", null) - .WithMany("Details") - .HasForeignKey("ZhuHuBanPackingListId"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgPart", b => - { - b.HasOne("WY.NewJit.MsgBaseData.AssemblyCfgErp", null) - .WithMany("Details") - .HasForeignKey("AssemblyCfgErpId"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgVehicleChild", b => - { - b.HasOne("WY.NewJit.MsgBaseData.AssemblyCfgVehicle", null) - .WithMany("AssemblyCfgVehicleChilds") - .HasForeignKey("AssemblyCfgVehicleId"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM100Part", b => - { - b.HasOne("WY.NewJit.MsgCheck.BillM100", null) - .WithMany("BillM100Parts") - .HasForeignKey("BillM100Id"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM110Part", b => - { - b.HasOne("WY.NewJit.MsgCheck.BillM110", null) - .WithMany("BillM110Parts") - .HasForeignKey("BillM110Id"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillR100Part", b => - { - b.HasOne("WY.NewJit.MsgCheck.BillR100", null) - .WithMany("BillR100Parts") - .HasForeignKey("BillR100Id"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM100Part", b => - { - b.HasOne("WY.NewJit.MsgCheck.RepeatM100", null) - .WithMany("M100RepeatParts") - .HasForeignKey("RepeatM100Id"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM110Part", b => - { - b.HasOne("WY.NewJit.MsgCheck.RepeatM110", null) - .WithMany("M110RepeatParts") - .HasForeignKey("RepeatM110Id"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatR100Part", b => - { - b.HasOne("WY.NewJit.MsgCheck.RepeatR100", null) - .WithMany("R100RepeatParts") - .HasForeignKey("RepeatR100Id"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.UnknownAssemblyPart", b => - { - b.HasOne("WY.NewJit.MsgCheck.UnknownAssembly", null) - .WithMany("UnknownAssemblyParts") - .HasForeignKey("UnknownAssemblyId"); - }); - - modelBuilder.Entity("WY.NewJit.MsgConversion.BillSortCfg", b => - { - b.HasOne("WY.NewJit.MsgConversion.MessageVersionCfg", null) - .WithMany("Details") - .HasForeignKey("MessageVersionCfgId"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Navigation("Actions"); - - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Navigation("Claims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("OrganizationUnits"); - - b.Navigation("Roles"); - - b.Navigation("Tokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Navigation("Roles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Navigation("Properties"); - - b.Navigation("Scopes"); - - b.Navigation("Secrets"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Navigation("AllowedCorsOrigins"); - - b.Navigation("AllowedGrantTypes"); - - b.Navigation("AllowedScopes"); - - b.Navigation("Claims"); - - b.Navigation("ClientSecrets"); - - b.Navigation("IdentityProviderRestrictions"); - - b.Navigation("PostLogoutRedirectUris"); - - b.Navigation("Properties"); - - b.Navigation("RedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Navigation("ConnectionStrings"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingList", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingList", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgErp", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgVehicle", b => - { - b.Navigation("AssemblyCfgVehicleChilds"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM100", b => - { - b.Navigation("BillM100Parts"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM110", b => - { - b.Navigation("BillM110Parts"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillR100", b => - { - b.Navigation("BillR100Parts"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM100", b => - { - b.Navigation("M100RepeatParts"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM110", b => - { - b.Navigation("M110RepeatParts"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatR100", b => - { - b.Navigation("R100RepeatParts"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.UnknownAssembly", b => - { - b.Navigation("UnknownAssemblyParts"); - }); - - modelBuilder.Entity("WY.NewJit.MsgConversion.MessageVersionCfg", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701062532_Created_NewJit_Entity2022-07-01.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701062532_Created_NewJit_Entity2022-07-01.cs deleted file mode 100644 index fd2fc53..0000000 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701062532_Created_NewJit_Entity2022-07-01.cs +++ /dev/null @@ -1,338 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace WY.NewJit.Migrations -{ - public partial class Created_NewJit_Entity20220701 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - //migrationBuilder.AddColumn( - // name: "MinOnlineTime", - // table: "FisZhuHuBanPackingList", - // type: "datetime2", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "ErrorCount", - // table: "FisMessageReceive", - // type: "int", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "ErrorMessage", - // table: "FisMessageReceive", - // type: "nvarchar(max)", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "LastUpdateTime", - // table: "FisMessageReceive", - // type: "datetime2", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "MinOnlineTime", - // table: "FisMenBanPackingList", - // type: "datetime2", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "IsPartSwitch", - // table: "FisBillR100", - // type: "bit", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "HostSN2", - // table: "FisBillM100", - // type: "int", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "IsPartSwitch", - // table: "FisBillM100", - // type: "bit", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "NeedReplenishPrint", - // table: "FisBillM100", - // type: "int", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "PrintTime2", - // table: "FisBillM100", - // type: "datetime2", - // nullable: true); - - //migrationBuilder.AlterColumn( - // name: "GroupCode", - // table: "FisAssemblyCfgErp", - // type: "varchar(100)", - // maxLength: 100, - // nullable: true, - // oldClrType: typeof(string), - // oldType: "varchar(50)", - // oldMaxLength: 50, - // oldNullable: true); - - //migrationBuilder.AddColumn( - // name: "GroupId", - // table: "FisAssemblyCfgErp", - // type: "uniqueidentifier", - // nullable: false, - // defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); - - //migrationBuilder.CreateTable( - // name: "FisAssemblyCfgGroup", - // columns: table => new - // { - // Id = table.Column(type: "uniqueidentifier", nullable: false), - // GroupCode = table.Column(type: "varchar(100)", maxLength: 100, nullable: true), - // VehicleModel = table.Column(type: "nvarchar(max)", nullable: true), - // IsDisable = table.Column(type: "bit", nullable: false), - // ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - // ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - // CreationTime = table.Column(type: "datetime2", nullable: false), - // CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - // LastModificationTime = table.Column(type: "datetime2", nullable: true), - // LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - // IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - // DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - // DeletionTime = table.Column(type: "datetime2", nullable: true) - // }, - // constraints: table => - // { - // table.PrimaryKey("PK_FisAssemblyCfgGroup", x => x.Id); - // }); - - migrationBuilder.CreateTable( - name: "FisCUR_TB_BILL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - UID = table.Column(type: "int", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "int", nullable: false), - SourceBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SourceBillNum2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SourceBillNum3 = table.Column(type: "nvarchar(max)", nullable: true), - BillTime = table.Column(type: "datetime2", nullable: false), - StartTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FinishTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - OperName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - DetailQty = table.Column(type: "int", nullable: false), - VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TransportType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TruckNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - GateCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - GateName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DockCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - AccountDate = table.Column(type: "datetime2", nullable: true), - GUID = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_FisCUR_TB_BILL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "FisCUR_TS_SORT_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - UID = table.Column(type: "bigint", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LineNum = table.Column(type: "int", nullable: false), - VinCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SeqNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BarCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - FyonNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Dock = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DispatchDate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Remark = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PlanQty = table.Column(type: "money", nullable: false), - Qty = table.Column(type: "money", nullable: false), - CustBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ReceiptQty = table.Column(type: "money", nullable: false), - FullBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_FisCUR_TS_SORT_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "FisHIS_TB_BILL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - UID = table.Column(type: "int", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "int", nullable: false), - SourceBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SourceBillNum2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SourceBillNum3 = table.Column(type: "nvarchar(max)", nullable: true), - BillTime = table.Column(type: "datetime2", nullable: false), - StartTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FinishTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - OperName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - DetailQty = table.Column(type: "int", nullable: false), - VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TransportType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TruckNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - GateCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - GateName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DockCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - AccountDate = table.Column(type: "datetime2", nullable: true), - GUID = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_FisHIS_TB_BILL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "FisHIS_TS_SORT_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - UID = table.Column(type: "bigint", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LineNum = table.Column(type: "int", nullable: false), - VinCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SeqNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BarCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - FyonNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Dock = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DispatchDate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Remark = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PlanQty = table.Column(type: "money", nullable: false), - Qty = table.Column(type: "money", nullable: false), - CustBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ReceiptQty = table.Column(type: "money", nullable: false), - FullBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_FisHIS_TS_SORT_DETAIL", x => x.Id); - }); - - //migrationBuilder.CreateTable( - // name: "FisMessageReceiveArchive", - // columns: table => new - // { - // Id = table.Column(type: "uniqueidentifier", nullable: false), - // MessageFileName = table.Column(type: "nvarchar(max)", nullable: true), - // MessageContent = table.Column(type: "nvarchar(max)", nullable: true), - // ReceiveStatus = table.Column(type: "int", nullable: false), - // ReceiveTime = table.Column(type: "datetime2", nullable: false), - // LastUpdateTime = table.Column(type: "datetime2", nullable: true), - // MessageReceiveId = table.Column(type: "uniqueidentifier", nullable: true), - // BillType = table.Column(type: "nvarchar(max)", nullable: true), - // BillOnlineTime = table.Column(type: "datetime2", nullable: true), - // BillHostSN = table.Column(type: "int", nullable: true), - // ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - // ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) - // }, - // constraints: table => - // { - // table.PrimaryKey("PK_FisMessageReceiveArchive", x => x.Id); - // }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - //migrationBuilder.DropTable( - // name: "FisAssemblyCfgGroup"); - - migrationBuilder.DropTable( - name: "FisCUR_TB_BILL"); - - migrationBuilder.DropTable( - name: "FisCUR_TS_SORT_DETAIL"); - - migrationBuilder.DropTable( - name: "FisHIS_TB_BILL"); - - migrationBuilder.DropTable( - name: "FisHIS_TS_SORT_DETAIL"); - - //migrationBuilder.DropTable( - // name: "FisMessageReceiveArchive"); - - //migrationBuilder.DropColumn( - // name: "MinOnlineTime", - // table: "FisZhuHuBanPackingList"); - - //migrationBuilder.DropColumn( - // name: "ErrorCount", - // table: "FisMessageReceive"); - - //migrationBuilder.DropColumn( - // name: "ErrorMessage", - // table: "FisMessageReceive"); - - //migrationBuilder.DropColumn( - // name: "LastUpdateTime", - // table: "FisMessageReceive"); - - //migrationBuilder.DropColumn( - // name: "MinOnlineTime", - // table: "FisMenBanPackingList"); - - //migrationBuilder.DropColumn( - // name: "IsPartSwitch", - // table: "FisBillR100"); - - //migrationBuilder.DropColumn( - // name: "HostSN2", - // table: "FisBillM100"); - - //migrationBuilder.DropColumn( - // name: "IsPartSwitch", - // table: "FisBillM100"); - - //migrationBuilder.DropColumn( - // name: "NeedReplenishPrint", - // table: "FisBillM100"); - - //migrationBuilder.DropColumn( - // name: "PrintTime2", - // table: "FisBillM100"); - - //migrationBuilder.DropColumn( - // name: "GroupId", - // table: "FisAssemblyCfgErp"); - - //migrationBuilder.AlterColumn( - // name: "GroupCode", - // table: "FisAssemblyCfgErp", - // type: "varchar(50)", - // maxLength: 50, - // nullable: true, - // oldClrType: typeof(string), - // oldType: "varchar(100)", - // oldMaxLength: 100, - // oldNullable: true); - } - } -} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701064724_Created_NewJit_Entity2022-07-01_2.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701064724_Created_NewJit_Entity2022-07-01_2.cs deleted file mode 100644 index b9a7cae..0000000 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701064724_Created_NewJit_Entity2022-07-01_2.cs +++ /dev/null @@ -1,233 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace WY.NewJit.Migrations -{ - public partial class Created_NewJit_Entity20220701_2 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "VinCode", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FullBarCode", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(200)", - maxLength: 200, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisHIS_TB_BILL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FullBarCode", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(200)", - maxLength: 200, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisCUR_TB_BILL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "VinCode", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "FullBarCode", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisHIS_TB_BILL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "FullBarCode", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisCUR_TB_BILL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - } - } -} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701064724_Created_NewJit_Entity2022-07-01_2.Designer.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109051359_NewJitPG_HQ_Init.Designer.cs similarity index 96% rename from src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701064724_Created_NewJit_Entity2022-07-01_2.Designer.cs rename to src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109051359_NewJitPG_HQ_Init.Designer.cs index 815009c..ec2e8f2 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701064724_Created_NewJit_Entity2022-07-01_2.Designer.cs +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109051359_NewJitPG_HQ_Init.Designer.cs @@ -11,8 +11,8 @@ using WY.NewJit.EntityFrameworkCore; namespace WY.NewJit.Migrations { [DbContext(typeof(NewJitMigrationsDbContext))] - [Migration("20220701064724_Created_NewJit_Entity2022-07-01_2")] - partial class Created_NewJit_Entity20220701_2 + [Migration("20240109051359_NewJitPG_HQ_Init")] + partial class NewJitPG_HQ_Init { protected override void BuildTargetModel(ModelBuilder modelBuilder) { @@ -2157,6 +2157,9 @@ namespace WY.NewJit.Migrations b.Property("HostSN") .HasColumnType("nvarchar(max)"); + b.Property("HostSN2") + .HasColumnType("int"); + b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") @@ -2202,51 +2205,12 @@ namespace WY.NewJit.Migrations b.ToTable("FisMenBanPackingRec"); }); - modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingRec2", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.MaterialExt", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); - b.Property("Column00") - .HasColumnType("nvarchar(max)"); - - b.Property("Column01") - .HasColumnType("nvarchar(max)"); - - b.Property("Column02") - .HasColumnType("nvarchar(max)"); - - b.Property("Column03") - .HasColumnType("nvarchar(max)"); - - b.Property("Column04") - .HasColumnType("nvarchar(max)"); - - b.Property("Column05") - .HasColumnType("nvarchar(max)"); - - b.Property("Column06") - .HasColumnType("nvarchar(max)"); - - b.Property("Column07") - .HasColumnType("nvarchar(max)"); - - b.Property("Column08") - .HasColumnType("nvarchar(max)"); - - b.Property("Column09") - .HasColumnType("nvarchar(max)"); - - b.Property("Column10") - .HasColumnType("nvarchar(max)"); - - b.Property("Column11") - .HasColumnType("nvarchar(max)"); - - b.Property("Column12") - .HasColumnType("nvarchar(max)"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2287,28 +2251,86 @@ namespace WY.NewJit.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); - b.HasKey("Id"); + b.Property("MaterialDescription") + .HasColumnType("nvarchar(max)"); - b.ToTable("FisMenBanPackingRec2"); - }); + b.Property("MaterialDescription2") + .HasColumnType("nvarchar(max)"); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.CUR_TB_BILL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + b.Property("MaterialGroup") + .HasColumnType("nvarchar(max)"); - b.Property("AccountDate") + b.Property("MaterialMemo") + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialNum") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("MaterialType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialType2") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialType3") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("RelationKey") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("UpdateTime") .HasColumnType("datetime2"); + b.Property("VehicleModel") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("promo") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("MaterialNum") + .HasDatabaseName("IX_MaterialExt_MaterialNum"); + + b.HasIndex("MaterialType") + .HasDatabaseName("IX_MaterialExt_MaterialType"); + + b.HasIndex("MaterialType2") + .HasDatabaseName("IX_MaterialExt_MaterialType2"); + + b.HasIndex("MaterialType3") + .HasDatabaseName("IX_MaterialExt_MaterialType3"); + + b.HasIndex("RelationKey") + .HasDatabaseName("IX_MaterialExt_RelationKey"); + + b.HasIndex("VehicleModel") + .HasDatabaseName("IX_MaterialExt_VehicleModel"); + + b.ToTable("FisMaterialExt"); + }); + + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTB_BILL", b => + { b.Property("BillNum") - .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("AccountDate") + .HasColumnType("datetime2"); + b.Property("BillTime") .HasColumnType("datetime2"); + b.Property("BillType") + .HasColumnType("int"); + b.Property("CustId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2320,6 +2342,10 @@ namespace WY.NewJit.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("ExecuteRemark") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + b.Property("FinishTime") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2335,6 +2361,9 @@ namespace WY.NewJit.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("IsExecute") + .HasColumnType("bit"); + b.Property("OperName") .IsRequired() .HasMaxLength(50) @@ -2365,6 +2394,9 @@ namespace WY.NewJit.Migrations b.Property("State") .HasColumnType("int"); + b.Property("SubBillType") + .HasColumnType("int"); + b.Property("TransportType") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2374,128 +2406,33 @@ namespace WY.NewJit.Migrations .HasColumnType("nvarchar(50)"); b.Property("UID") + .ValueGeneratedOnAddOrUpdate() .HasColumnType("int"); b.Property("VendId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.HasKey("Id"); + b.HasKey("BillNum"); - b.ToTable("FisCUR_TB_BILL"); + b.ToTable("FisTB_BILL"); }); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.CUR_TS_SORT_DETAIL", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTB_BILL_HIS", b => { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - b.Property("BillNum") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustBarCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DispatchDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Dock") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("FullBarCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("FyonNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LineNum") - .HasColumnType("int"); - - b.Property("PartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlanQty") - .HasColumnType("money"); - - b.Property("ProjectId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("money"); - - b.Property("ReceiptQty") - .HasColumnType("money"); - - b.Property("Remark") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNum") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UID") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("bigint"); - - b.Property("VendId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VinCode") - .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.HasKey("Id"); - - b.ToTable("FisCUR_TS_SORT_DETAIL"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.HIS_TB_BILL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - b.Property("AccountDate") .HasColumnType("datetime2"); - b.Property("BillNum") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - b.Property("BillTime") .HasColumnType("datetime2"); + b.Property("BillType") + .HasColumnType("int"); + b.Property("CustId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2552,6 +2489,9 @@ namespace WY.NewJit.Migrations b.Property("State") .HasColumnType("int"); + b.Property("SubBillType") + .HasColumnType("int"); + b.Property("TransportType") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2561,29 +2501,64 @@ namespace WY.NewJit.Migrations .HasColumnType("nvarchar(50)"); b.Property("UID") + .ValueGeneratedOnAddOrUpdate() .HasColumnType("int"); b.Property("VendId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.HasKey("Id"); + b.HasKey("BillNum"); - b.ToTable("FisHIS_TB_BILL"); + b.ToTable("FisTB_BILL_HIS"); }); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.HIS_TS_SORT_DETAIL", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTB_BILL_SCRAP", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); - b.Property("BarCode") + b.Property("BillNum") + .IsRequired() .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasColumnType("varchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + b.Property("ExecuteTime") + .HasColumnType("datetime2"); + + b.Property("IsExecute") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.HasKey("Id"); + + b.ToTable("FisTB_BILL_SCRAP"); + }); + + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTS_SORT_DETAIL", b => + { b.Property("BillNum") - .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("VinCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PartCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("BarCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2615,11 +2590,6 @@ namespace WY.NewJit.Migrations b.Property("LineNum") .HasColumnType("int"); - b.Property("PartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - b.Property("PlanQty") .HasColumnType("money"); @@ -2656,125 +2626,96 @@ namespace WY.NewJit.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("VinCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.HasKey("BillNum", "VinCode", "PartCode"); - b.HasKey("Id"); - - b.ToTable("FisHIS_TS_SORT_DETAIL"); + b.ToTable("FisTS_SORT_DETAIL"); }); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.MaterialExt", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTS_SORT_DETAIL_HIS", b => { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); + b.Property("BillNum") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("MaterialDescription") - .HasColumnType("nvarchar(max)"); + b.Property("VinCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("MaterialDescription2") - .HasColumnType("nvarchar(max)"); + b.Property("PartCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("MaterialGroup") - .HasColumnType("nvarchar(max)"); + b.Property("BarCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("MaterialMemo") - .HasColumnType("nvarchar(max)"); + b.Property("CustBarCode") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); - b.Property("MaterialNum") + b.Property("CustPartCode") .HasMaxLength(50) - .HasColumnType("varchar(50)"); + .HasColumnType("nvarchar(50)"); - b.Property("MaterialType") + b.Property("DispatchDate") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("MaterialType2") + b.Property("Dock") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("MaterialType3") + b.Property("FullBarCode") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("FyonNum") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("RelationKey") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); + b.Property("LineNum") + .HasColumnType("int"); - b.Property("UpdateTime") - .HasColumnType("datetime2"); + b.Property("PlanQty") + .HasColumnType("money"); - b.Property("VehicleModel") + b.Property("ProjectId") + .IsRequired() .HasMaxLength(50) - .HasColumnType("varchar(50)"); + .HasColumnType("nvarchar(50)"); - b.Property("promo") - .HasColumnType("nvarchar(max)"); + b.Property("Qty") + .HasColumnType("money"); - b.HasKey("Id"); + b.Property("ReceiptQty") + .HasColumnType("money"); - b.HasIndex("MaterialNum") - .HasDatabaseName("IX_MaterialExt_MaterialNum"); + b.Property("Remark") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); - b.HasIndex("MaterialType") - .HasDatabaseName("IX_MaterialExt_MaterialType"); + b.Property("SeqNum") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.HasIndex("MaterialType2") - .HasDatabaseName("IX_MaterialExt_MaterialType2"); + b.Property("State") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.HasIndex("MaterialType3") - .HasDatabaseName("IX_MaterialExt_MaterialType3"); + b.Property("UID") + .ValueGeneratedOnAddOrUpdate() + .HasColumnType("bigint"); - b.HasIndex("RelationKey") - .HasDatabaseName("IX_MaterialExt_RelationKey"); + b.Property("VendId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.HasIndex("VehicleModel") - .HasDatabaseName("IX_MaterialExt_VehicleModel"); + b.HasKey("BillNum", "VinCode", "PartCode"); - b.ToTable("FisMaterialExt"); + b.ToTable("FisTS_SORT_DETAIL_HIS"); }); modelBuilder.Entity("WY.NewJit.Extends.ProductLine", b => @@ -2964,178 +2905,47 @@ namespace WY.NewJit.Migrations .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MinOnlineTime") - .HasColumnType("datetime2"); - - b.Property("PartType") - .HasColumnType("nvarchar(max)"); - - b.Property("PrintDate") - .HasColumnType("datetime2"); - - b.Property("PrintType") - .HasColumnType("int"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProviderCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReportStatus") - .HasColumnType("int"); - - b.Property("SortId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("FisZhuHuBanPackingList"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KNR") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("M100BillId") - .HasColumnType("uniqueidentifier"); - - b.Property("MaterialDescription") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription2") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(max)"); - - b.Property("ZhuHuBanPackingListId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ZhuHuBanPackingListId"); - - b.ToTable("FisZhuHuBanPackingRec"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec2", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Column00") - .HasColumnType("nvarchar(max)"); - - b.Property("Column01") - .HasColumnType("nvarchar(max)"); - - b.Property("Column02") - .HasColumnType("nvarchar(max)"); - - b.Property("Column03") - .HasColumnType("nvarchar(max)"); - - b.Property("Column04") - .HasColumnType("nvarchar(max)"); + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); - b.Property("Column05") - .HasColumnType("nvarchar(max)"); + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); - b.Property("Column06") - .HasColumnType("nvarchar(max)"); + b.Property("MinOnlineTime") + .HasColumnType("datetime2"); - b.Property("Column07") + b.Property("PartType") .HasColumnType("nvarchar(max)"); - b.Property("Column08") - .HasColumnType("nvarchar(max)"); + b.Property("PrintDate") + .HasColumnType("datetime2"); - b.Property("Column09") - .HasColumnType("nvarchar(max)"); + b.Property("PrintType") + .HasColumnType("int"); - b.Property("Column10") + b.Property("ProductLine") .HasColumnType("nvarchar(max)"); - b.Property("Column11") + b.Property("ProviderCode") .HasColumnType("nvarchar(max)"); - b.Property("Column12") - .HasColumnType("nvarchar(max)"); + b.Property("ReportStatus") + .HasColumnType("int"); - b.Property("Column13") - .HasColumnType("nvarchar(max)"); + b.Property("SortId") + .HasColumnType("uniqueidentifier"); - b.Property("Column14") - .HasColumnType("nvarchar(max)"); + b.HasKey("Id"); - b.Property("Column15") - .HasColumnType("nvarchar(max)"); + b.ToTable("FisZhuHuBanPackingList"); + }); - b.Property("Column16") - .HasColumnType("nvarchar(max)"); + modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() @@ -3163,12 +2973,21 @@ namespace WY.NewJit.Migrations .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("HostSN2") + .HasColumnType("int"); + b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); + b.Property("KNR") + .HasColumnType("nvarchar(max)"); + b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); @@ -3177,9 +2996,32 @@ namespace WY.NewJit.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); + b.Property("M100BillId") + .HasColumnType("uniqueidentifier"); + + b.Property("MaterialDescription") + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription2") + .HasColumnType("nvarchar(max)"); + + b.Property("PartCode") + .HasColumnType("nvarchar(max)"); + + b.Property("PartCode2") + .HasColumnType("nvarchar(max)"); + + b.Property("VIN") + .HasColumnType("nvarchar(max)"); + + b.Property("ZhuHuBanPackingListId") + .HasColumnType("uniqueidentifier"); + b.HasKey("Id"); - b.ToTable("FisZhuHuBanPackingRec2"); + b.HasIndex("ZhuHuBanPackingListId"); + + b.ToTable("FisZhuHuBanPackingRec"); }); modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgErp", b => @@ -4021,6 +3863,62 @@ namespace WY.NewJit.Migrations b.ToTable("FisPartSwitch"); }); + modelBuilder.Entity("WY.NewJit.MsgBaseData.PrintTemplateConfiguration", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("ExtraProperties") + .HasColumnType("nvarchar(max)") + .HasColumnName("ExtraProperties"); + + b.Property("GroupCode") + .HasColumnType("int"); + + b.Property("GroupName") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("PartType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("TemplateName") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("GroupName", "PartType") + .IsUnique() + .HasFilter("[GroupName] IS NOT NULL AND [PartType] IS NOT NULL"); + + b.ToTable("FisPrintTemplateConfiguration"); + }); + modelBuilder.Entity("WY.NewJit.MsgCheck.BillM100", b => { b.Property("Id") @@ -4333,6 +4231,37 @@ namespace WY.NewJit.Migrations b.ToTable("FisBillM110Part"); }); + modelBuilder.Entity("WY.NewJit.MsgCheck.BillNumberRecord", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("InsertedRows") + .HasColumnType("int"); + + b.Property("ProductLine") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("RecordNumber") + .HasColumnType("int"); + + b.Property("RoundNumber") + .HasColumnType("int"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.HasIndex("ProductLine") + .IsUnique() + .HasFilter("[ProductLine] IS NOT NULL"); + + b.ToTable("FisBillNumberRecord"); + }); + modelBuilder.Entity("WY.NewJit.MsgCheck.BillR100", b => { b.Property("Id") @@ -5231,6 +5160,136 @@ namespace WY.NewJit.Migrations b.ToTable("FisTransmissionModeCfg"); }); + modelBuilder.Entity("WY.NewJit.PrintTable.AlreadyPrint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("AssemblyID") + .HasColumnType("uniqueidentifier"); + + b.Property("BillStatus") + .HasColumnType("int"); + + b.Property("BusinessType") + .HasColumnType("int"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier"); + + b.Property("Description") + .HasColumnType("nvarchar(max)"); + + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("HostSN2") + .HasColumnType("int"); + + b.Property("KNR") + .HasColumnType("nvarchar(max)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier"); + + b.Property("M100Id") + .HasColumnType("uniqueidentifier"); + + b.Property("OnlineTime") + .HasColumnType("datetime2"); + + b.Property("PrintType") + .HasColumnType("int"); + + b.Property("ProductLine") + .HasColumnType("nvarchar(max)"); + + b.Property("ReceiveTime") + .HasColumnType("datetime2"); + + b.Property("VIN") + .HasColumnType("nvarchar(max)"); + + b.Property("VehicleModelCode") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("FisAlreadyPrint"); + }); + + modelBuilder.Entity("WY.NewJit.PrintTable.WaitPrint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("AssemblyID") + .HasColumnType("uniqueidentifier"); + + b.Property("BillStatus") + .HasColumnType("int"); + + b.Property("BusinessType") + .HasColumnType("int"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier"); + + b.Property("Description") + .HasColumnType("nvarchar(max)"); + + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("HostSN2") + .HasColumnType("int"); + + b.Property("KNR") + .HasColumnType("nvarchar(max)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier"); + + b.Property("M100Id") + .HasColumnType("uniqueidentifier"); + + b.Property("OnlineTime") + .HasColumnType("datetime2"); + + b.Property("PrintType") + .HasColumnType("int"); + + b.Property("ProductLine") + .HasColumnType("nvarchar(max)"); + + b.Property("ReceiveTime") + .HasColumnType("datetime2"); + + b.Property("VIN") + .HasColumnType("nvarchar(max)"); + + b.Property("VehicleModelCode") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("FisWaitPrint"); + }); + modelBuilder.Entity("WY.NewJit.TianHe.NotMatchTempBill", b => { b.Property("Id") diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109051359_NewJitPG_HQ_Init.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109051359_NewJitPG_HQ_Init.cs new file mode 100644 index 0000000..2cc3cdf --- /dev/null +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109051359_NewJitPG_HQ_Init.cs @@ -0,0 +1,3133 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace WY.NewJit.Migrations +{ + public partial class NewJitPG_HQ_Init : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "AbpAuditLogs", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ApplicationName = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + TenantName = table.Column(type: "nvarchar(max)", nullable: true), + ImpersonatorUserId = table.Column(type: "uniqueidentifier", nullable: true), + ImpersonatorTenantId = table.Column(type: "uniqueidentifier", nullable: true), + ExecutionTime = table.Column(type: "datetime2", nullable: false), + ExecutionDuration = table.Column(type: "int", nullable: false), + ClientIpAddress = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ClientName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + ClientId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CorrelationId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BrowserInfo = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + HttpMethod = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + Url = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Exceptions = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: true), + Comments = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + HttpStatusCode = table.Column(type: "int", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpAuditLogs", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpBackgroundJobs", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + JobName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + JobArgs = table.Column(type: "nvarchar(max)", maxLength: 1048576, nullable: false), + TryCount = table.Column(type: "smallint", nullable: false, defaultValue: (short)0), + CreationTime = table.Column(type: "datetime2", nullable: false), + NextTryTime = table.Column(type: "datetime2", nullable: false), + LastTryTime = table.Column(type: "datetime2", nullable: true), + IsAbandoned = table.Column(type: "bit", nullable: false, defaultValue: false), + Priority = table.Column(type: "tinyint", nullable: false, defaultValue: (byte)15), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpBackgroundJobs", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpClaimTypes", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Required = table.Column(type: "bit", nullable: false), + IsStatic = table.Column(type: "bit", nullable: false), + Regex = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + RegexDescription = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Description = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ValueType = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpClaimTypes", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpFeatureValues", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Value = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpFeatureValues", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpLinkUsers", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SourceUserId = table.Column(type: "uniqueidentifier", nullable: false), + SourceTenantId = table.Column(type: "uniqueidentifier", nullable: true), + TargetUserId = table.Column(type: "uniqueidentifier", nullable: false), + TargetTenantId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpLinkUsers", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpOrganizationUnits", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ParentId = table.Column(type: "uniqueidentifier", nullable: true), + Code = table.Column(type: "nvarchar(95)", maxLength: 95, nullable: false), + DisplayName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id); + table.ForeignKey( + name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId", + column: x => x.ParentId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "AbpPermissionGrants", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpPermissionGrants", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpRoles", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + NormalizedName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + IsDefault = table.Column(type: "bit", nullable: false), + IsStatic = table.Column(type: "bit", nullable: false), + IsPublic = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpRoles", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpSecurityLogs", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ApplicationName = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + Identity = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + Action = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + TenantName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ClientId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CorrelationId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ClientIpAddress = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BrowserInfo = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpSecurityLogs", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpSettings", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Value = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: false), + ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpSettings", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpTenants", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpTenants", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpUsers", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + NormalizedUserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Surname = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Email = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + NormalizedEmail = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + EmailConfirmed = table.Column(type: "bit", nullable: false, defaultValue: false), + PasswordHash = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + SecurityStamp = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + IsExternal = table.Column(type: "bit", nullable: false, defaultValue: false), + PhoneNumber = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + PhoneNumberConfirmed = table.Column(type: "bit", nullable: false, defaultValue: false), + TwoFactorEnabled = table.Column(type: "bit", nullable: false, defaultValue: false), + LockoutEnd = table.Column(type: "datetimeoffset", nullable: true), + LockoutEnabled = table.Column(type: "bit", nullable: false, defaultValue: false), + AccessFailedCount = table.Column(type: "int", nullable: false, defaultValue: 0), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUsers", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisAlreadyPrint", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + M100Id = table.Column(type: "uniqueidentifier", nullable: false), + BusinessType = table.Column(type: "int", nullable: false), + ProductLine = table.Column(type: "nvarchar(max)", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: false), + HostSN = table.Column(type: "int", nullable: false), + KNR = table.Column(type: "nvarchar(max)", nullable: true), + VIN = table.Column(type: "nvarchar(max)", nullable: true), + VehicleModelCode = table.Column(type: "nvarchar(max)", nullable: true), + AssemblyID = table.Column(type: "uniqueidentifier", nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + PrintType = table.Column(type: "int", nullable: false), + HostSN2 = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisAlreadyPrint", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisAssemblyCfgErp", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ErpAssemblyCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ErpAssemblyName = table.Column(type: "nvarchar(max)", nullable: true), + ErpAssemblyVersion = table.Column(type: "int", nullable: false), + VehicleModel = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + NewVersionId = table.Column(type: "uniqueidentifier", nullable: true), + RelationKey = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + GroupCode = table.Column(type: "varchar(100)", maxLength: 100, nullable: true), + GroupId = table.Column(type: "uniqueidentifier", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisAssemblyCfgErp", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisAssemblyCfgGroup", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + GroupCode = table.Column(type: "varchar(100)", maxLength: 100, nullable: true), + VehicleModel = table.Column(type: "nvarchar(max)", nullable: true), + IsDisable = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisAssemblyCfgGroup", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisAssemblyCfgVehicle", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + AssemblyName = table.Column(type: "nvarchar(max)", nullable: true), + VehicleModelCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + IsActivate = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisAssemblyCfgVehicle", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisBillM100", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileReceiveID = table.Column(type: "uniqueidentifier", nullable: true), + SerialNum = table.Column(type: "int", nullable: true), + HostSN = table.Column(type: "int", nullable: true), + KNR = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + VIN = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + AssemblyID = table.Column(type: "uniqueidentifier", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: true), + VehicleModelCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ProductLine = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Version = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + PrintTime = table.Column(type: "datetime2", nullable: true), + PrintBillNum = table.Column(type: "nvarchar(max)", nullable: true), + PrintTime2 = table.Column(type: "datetime2", nullable: true), + SerialNumStr = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + OperationType = table.Column(type: "int", nullable: false), + Operator = table.Column(type: "nvarchar(max)", nullable: true), + OperationTime = table.Column(type: "datetime2", nullable: true), + CanNotPrint = table.Column(type: "bit", nullable: true), + NeedReplenishPrint = table.Column(type: "int", nullable: true), + HostSN2 = table.Column(type: "int", nullable: true), + IsPartSwitch = table.Column(type: "bit", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillM100", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisBillM110", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileReceiveID = table.Column(type: "uniqueidentifier", nullable: false), + SerialNum = table.Column(type: "int", nullable: true), + HostSN = table.Column(type: "int", nullable: true), + KNR = table.Column(type: "nvarchar(max)", nullable: true), + VIN = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + AssemblyID = table.Column(type: "uniqueidentifier", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: true), + VehicleModelCode = table.Column(type: "nvarchar(max)", nullable: true), + ProductLine = table.Column(type: "nvarchar(max)", nullable: true), + Version = table.Column(type: "nvarchar(max)", nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillM110", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisBillNumberRecord", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ProductLine = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + RoundNumber = table.Column(type: "int", nullable: false), + RecordNumber = table.Column(type: "int", nullable: false), + InsertedRows = table.Column(type: "int", nullable: false), + UpdateTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillNumberRecord", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisBillR100", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileReceiveID = table.Column(type: "uniqueidentifier", nullable: false), + HostSN = table.Column(type: "int", nullable: true), + KNR = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + AssemblyID = table.Column(type: "uniqueidentifier", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + VehicleModelCode = table.Column(type: "nvarchar(max)", nullable: true), + ProductLine = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Version = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + PrintTime = table.Column(type: "datetime2", nullable: true), + SerialNum = table.Column(type: "int", nullable: true), + SerialNumStr = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + IsPartSwitch = table.Column(type: "bit", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillR100", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisBooks", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Type = table.Column(type: "int", nullable: false), + PublishDate = table.Column(type: "datetime2", nullable: false), + Price = table.Column(type: "real", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBooks", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisDicItem", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DicTypeCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DicItemCode = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + DicItemName = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + DicItemSort1 = table.Column(type: "nvarchar(max)", nullable: true), + DicItemSort2 = table.Column(type: "nvarchar(max)", nullable: true), + DicItemSort3 = table.Column(type: "nvarchar(max)", nullable: true), + DicItemSort4 = table.Column(type: "nvarchar(max)", nullable: true), + DicItemSort5 = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisDicItem", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisDicType", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DicTypeCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DicTypeName = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisDicType", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisExcludePartCfg", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + VehicleModelCode = table.Column(type: "nvarchar(max)", nullable: true), + PartCode = table.Column(type: "nvarchar(max)", nullable: true), + ExcludeReason = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisExcludePartCfg", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisGlobalSettings", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RefreshMessageParseCache = table.Column(type: "nvarchar(1)", maxLength: 1, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisGlobalSettings", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisLineSN", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ProductType = table.Column(type: "int", nullable: false), + ProductLine = table.Column(type: "nvarchar(450)", nullable: true), + PartType = table.Column(type: "nvarchar(450)", nullable: true), + SN = table.Column(type: "float", nullable: false), + LastPrintTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisLineSN", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisLogRemind", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + LogType = table.Column(type: "int", nullable: false), + LogTitle = table.Column(type: "nvarchar(max)", nullable: true), + LogDesc = table.Column(type: "nvarchar(max)", nullable: true), + SeriousLevel = table.Column(type: "int", nullable: false), + LogStatus = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisLogRemind", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisMaterialExt", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MaterialNum = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(max)", nullable: true), + MaterialDescription2 = table.Column(type: "nvarchar(max)", nullable: true), + MaterialMemo = table.Column(type: "nvarchar(max)", nullable: true), + MaterialGroup = table.Column(type: "nvarchar(max)", nullable: true), + VehicleModel = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + MaterialType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialType2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialType3 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + RelationKey = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + promo = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisMaterialExt", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisMenBanPackingList", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + BillNum = table.Column(type: "nvarchar(max)", nullable: true), + BillSerialNum = table.Column(type: "nvarchar(max)", nullable: true), + BillLocation = table.Column(type: "nvarchar(max)", nullable: true), + ProviderCode = table.Column(type: "nvarchar(max)", nullable: true), + PartType = table.Column(type: "nvarchar(max)", nullable: true), + Capacity = table.Column(type: "nvarchar(max)", nullable: true), + PrintDate = table.Column(type: "datetime2", nullable: false), + PrintType = table.Column(type: "int", nullable: false), + ProductLine = table.Column(type: "nvarchar(max)", nullable: true), + BeginVin = table.Column(type: "nvarchar(max)", nullable: true), + EndVin = table.Column(type: "nvarchar(max)", nullable: true), + BeginHostSN = table.Column(type: "nvarchar(max)", nullable: true), + EndHostSN = table.Column(type: "nvarchar(max)", nullable: true), + SortId = table.Column(type: "uniqueidentifier", nullable: true), + ReportStatus = table.Column(type: "int", nullable: false), + MinOnlineTime = table.Column(type: "datetime2", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisMenBanPackingList", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisMessageReceive", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileName = table.Column(type: "nvarchar(max)", nullable: true), + MessageContent = table.Column(type: "nvarchar(max)", nullable: true), + ReceiveStatus = table.Column(type: "int", nullable: false), + ReceiveTime = table.Column(type: "datetime2", nullable: false), + LastUpdateTime = table.Column(type: "datetime2", nullable: true), + ErrorCount = table.Column(type: "int", nullable: true), + ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisMessageReceive", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisMessageReceiveArchive", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileName = table.Column(type: "nvarchar(max)", nullable: true), + MessageContent = table.Column(type: "nvarchar(max)", nullable: true), + ReceiveStatus = table.Column(type: "int", nullable: false), + ReceiveTime = table.Column(type: "datetime2", nullable: false), + LastUpdateTime = table.Column(type: "datetime2", nullable: true), + MessageReceiveId = table.Column(type: "uniqueidentifier", nullable: true), + BillType = table.Column(type: "nvarchar(max)", nullable: true), + BillOnlineTime = table.Column(type: "datetime2", nullable: true), + BillHostSN = table.Column(type: "int", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisMessageReceiveArchive", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisMessageVersionCfg", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Version = table.Column(type: "nvarchar(max)", nullable: true), + FileNameKeyword = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisMessageVersionCfg", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisNotMatchTempBill", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + NotMatchBillId = table.Column(type: "uniqueidentifier", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisNotMatchTempBill", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisPartCfg", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartName = table.Column(type: "nvarchar(max)", nullable: true), + PartType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PartType2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PartType3 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + RelationKey = table.Column(type: "nvarchar(max)", nullable: true), + IsDisable = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisPartCfg", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisPartSwitch", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SourcePartCode = table.Column(type: "nvarchar(max)", nullable: true), + TargetPartCode = table.Column(type: "nvarchar(max)", nullable: true), + ActiveBeginTime = table.Column(type: "datetime2", nullable: true), + ActiveEndTime = table.Column(type: "datetime2", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisPartSwitch", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisPrintTemplateConfiguration", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + GroupName = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartType = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + TemplateName = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + GroupCode = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisPrintTemplateConfiguration", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisProductLine", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ProductLineCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ProductLineName = table.Column(type: "nvarchar(max)", nullable: true), + BillType = table.Column(type: "int", nullable: false), + ProductType = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisProductLine", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisRepeatM100", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileReceiveID = table.Column(type: "uniqueidentifier", nullable: true), + SerialNum = table.Column(type: "int", nullable: true), + HostSN = table.Column(type: "int", nullable: true), + KNR = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + VIN = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + AssemblyID = table.Column(type: "uniqueidentifier", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + VehicleModelCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ProductLine = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Version = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisRepeatM100", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisRepeatM110", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileReceiveID = table.Column(type: "uniqueidentifier", nullable: false), + HostSN = table.Column(type: "int", nullable: true), + KNR = table.Column(type: "nvarchar(max)", nullable: true), + VIN = table.Column(type: "nvarchar(max)", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + VehicleModelCode = table.Column(type: "nvarchar(max)", nullable: true), + ProductLine = table.Column(type: "nvarchar(max)", nullable: true), + Version = table.Column(type: "nvarchar(max)", nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisRepeatM110", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisRepeatR100", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileReceiveID = table.Column(type: "uniqueidentifier", nullable: false), + HostSN = table.Column(type: "int", nullable: true), + KNR = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + AssemblyID = table.Column(type: "uniqueidentifier", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + VehicleModelCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ProductLine = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Version = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisRepeatR100", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisSequenceInfo", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SequenceType = table.Column(type: "nvarchar(max)", nullable: true), + SequenceNum = table.Column(type: "bigint", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisSequenceInfo", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisTB_BILL", + columns: table => new + { + BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + UID = table.Column(type: "int", nullable: false), + State = table.Column(type: "int", nullable: false), + SourceBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SourceBillNum2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SourceBillNum3 = table.Column(type: "nvarchar(max)", nullable: true), + BillType = table.Column(type: "int", nullable: false), + SubBillType = table.Column(type: "int", nullable: false), + BillTime = table.Column(type: "datetime2", nullable: false), + StartTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + FinishTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + OperName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + DetailQty = table.Column(type: "int", nullable: false), + VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CustId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + TransportType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + TruckNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + GateCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + GateName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DockCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + AccountDate = table.Column(type: "datetime2", nullable: true), + GUID = table.Column(type: "uniqueidentifier", nullable: false), + IsExecute = table.Column(type: "bit", nullable: false), + ExecuteRemark = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisTB_BILL", x => x.BillNum); + }); + + migrationBuilder.CreateTable( + name: "FisTB_BILL_HIS", + columns: table => new + { + BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + UID = table.Column(type: "int", nullable: false), + State = table.Column(type: "int", nullable: false), + SourceBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SourceBillNum2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SourceBillNum3 = table.Column(type: "nvarchar(max)", nullable: true), + BillType = table.Column(type: "int", nullable: false), + SubBillType = table.Column(type: "int", nullable: false), + BillTime = table.Column(type: "datetime2", nullable: false), + StartTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + FinishTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + OperName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + DetailQty = table.Column(type: "int", nullable: false), + VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CustId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + TransportType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + TruckNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + GateCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + GateName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DockCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + AccountDate = table.Column(type: "datetime2", nullable: true), + GUID = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_FisTB_BILL_HIS", x => x.BillNum); + }); + + migrationBuilder.CreateTable( + name: "FisTB_BILL_SCRAP", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + BillNum = table.Column(type: "varchar(50)", maxLength: 50, nullable: false), + IsExecute = table.Column(type: "bit", nullable: false, defaultValue: false), + Remark = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + ExecuteTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisTB_BILL_SCRAP", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisTransmissionModeCfg", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TransmissionModeType = table.Column(type: "int", nullable: false), + TransmissionModeContent = table.Column(type: "nvarchar(max)", nullable: true), + IsApply = table.Column(type: "bit", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisTransmissionModeCfg", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisTS_SORT_DETAIL", + columns: table => new + { + BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + VinCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + UID = table.Column(type: "bigint", nullable: false), + LineNum = table.Column(type: "int", nullable: false), + SeqNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + BarCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CustPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + FyonNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Dock = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DispatchDate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + State = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Remark = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + PlanQty = table.Column(type: "money", nullable: false), + Qty = table.Column(type: "money", nullable: false), + CustBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + ReceiptQty = table.Column(type: "money", nullable: false), + FullBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_FisTS_SORT_DETAIL", x => new { x.BillNum, x.VinCode, x.PartCode }); + }); + + migrationBuilder.CreateTable( + name: "FisTS_SORT_DETAIL_HIS", + columns: table => new + { + BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + VinCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + UID = table.Column(type: "bigint", nullable: false), + LineNum = table.Column(type: "int", nullable: false), + SeqNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + BarCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CustPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + FyonNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Dock = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DispatchDate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + State = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Remark = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + PlanQty = table.Column(type: "money", nullable: false), + Qty = table.Column(type: "money", nullable: false), + CustBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + ReceiptQty = table.Column(type: "money", nullable: false), + FullBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_FisTS_SORT_DETAIL_HIS", x => new { x.BillNum, x.VinCode, x.PartCode }); + }); + + migrationBuilder.CreateTable( + name: "FisUnknownAssembly", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + BillID = table.Column(type: "uniqueidentifier", nullable: false), + ScanPoint = table.Column(type: "nvarchar(max)", nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisUnknownAssembly", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisUser2ProductLine", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + UserId = table.Column(type: "uniqueidentifier", nullable: false), + ProductLineId = table.Column(type: "uniqueidentifier", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisUser2ProductLine", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisWaitPrint", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + M100Id = table.Column(type: "uniqueidentifier", nullable: false), + BusinessType = table.Column(type: "int", nullable: false), + ProductLine = table.Column(type: "nvarchar(max)", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: false), + HostSN = table.Column(type: "int", nullable: false), + KNR = table.Column(type: "nvarchar(max)", nullable: true), + VIN = table.Column(type: "nvarchar(max)", nullable: true), + VehicleModelCode = table.Column(type: "nvarchar(max)", nullable: true), + AssemblyID = table.Column(type: "uniqueidentifier", nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + PrintType = table.Column(type: "int", nullable: false), + HostSN2 = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisWaitPrint", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisZhuHuBanPackingList", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + BillNum = table.Column(type: "nvarchar(max)", nullable: true), + BillSerialNum = table.Column(type: "nvarchar(max)", nullable: true), + BillLocation = table.Column(type: "nvarchar(max)", nullable: true), + ProviderCode = table.Column(type: "nvarchar(max)", nullable: true), + PartType = table.Column(type: "nvarchar(max)", nullable: true), + Capacity = table.Column(type: "nvarchar(max)", nullable: true), + PrintDate = table.Column(type: "datetime2", nullable: false), + PrintType = table.Column(type: "int", nullable: false), + ProductLine = table.Column(type: "nvarchar(max)", nullable: true), + BeginVin = table.Column(type: "nvarchar(max)", nullable: true), + EndVin = table.Column(type: "nvarchar(max)", nullable: true), + BeginHostSN = table.Column(type: "nvarchar(max)", nullable: true), + EndHostSN = table.Column(type: "nvarchar(max)", nullable: true), + SortId = table.Column(type: "uniqueidentifier", nullable: true), + ReportStatus = table.Column(type: "int", nullable: false), + MinOnlineTime = table.Column(type: "datetime2", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisZhuHuBanPackingList", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiResources", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + DisplayName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Enabled = table.Column(type: "bit", nullable: false), + AllowedAccessTokenSigningAlgorithms = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + ShowInDiscoveryDocument = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiResources", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiScopes", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Enabled = table.Column(type: "bit", nullable: false), + Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + DisplayName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Required = table.Column(type: "bit", nullable: false), + Emphasize = table.Column(type: "bit", nullable: false), + ShowInDiscoveryDocument = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiScopes", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClients", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + ClientName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + ClientUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + LogoUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + Enabled = table.Column(type: "bit", nullable: false), + ProtocolType = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + RequireClientSecret = table.Column(type: "bit", nullable: false), + RequireConsent = table.Column(type: "bit", nullable: false), + AllowRememberConsent = table.Column(type: "bit", nullable: false), + AlwaysIncludeUserClaimsInIdToken = table.Column(type: "bit", nullable: false), + RequirePkce = table.Column(type: "bit", nullable: false), + AllowPlainTextPkce = table.Column(type: "bit", nullable: false), + RequireRequestObject = table.Column(type: "bit", nullable: false), + AllowAccessTokensViaBrowser = table.Column(type: "bit", nullable: false), + FrontChannelLogoutUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + FrontChannelLogoutSessionRequired = table.Column(type: "bit", nullable: false), + BackChannelLogoutUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + BackChannelLogoutSessionRequired = table.Column(type: "bit", nullable: false), + AllowOfflineAccess = table.Column(type: "bit", nullable: false), + IdentityTokenLifetime = table.Column(type: "int", nullable: false), + AllowedIdentityTokenSigningAlgorithms = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + AccessTokenLifetime = table.Column(type: "int", nullable: false), + AuthorizationCodeLifetime = table.Column(type: "int", nullable: false), + ConsentLifetime = table.Column(type: "int", nullable: true), + AbsoluteRefreshTokenLifetime = table.Column(type: "int", nullable: false), + SlidingRefreshTokenLifetime = table.Column(type: "int", nullable: false), + RefreshTokenUsage = table.Column(type: "int", nullable: false), + UpdateAccessTokenClaimsOnRefresh = table.Column(type: "bit", nullable: false), + RefreshTokenExpiration = table.Column(type: "int", nullable: false), + AccessTokenType = table.Column(type: "int", nullable: false), + EnableLocalLogin = table.Column(type: "bit", nullable: false), + IncludeJwtId = table.Column(type: "bit", nullable: false), + AlwaysSendClientClaims = table.Column(type: "bit", nullable: false), + ClientClaimsPrefix = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + PairWiseSubjectSalt = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + UserSsoLifetime = table.Column(type: "int", nullable: true), + UserCodeType = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + DeviceCodeLifetime = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClients", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerDeviceFlowCodes", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DeviceCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + UserCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + SubjectId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + SessionId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + Description = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Expiration = table.Column(type: "datetime2", nullable: false), + Data = table.Column(type: "nvarchar(max)", maxLength: 50000, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerDeviceFlowCodes", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerIdentityResources", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + DisplayName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Enabled = table.Column(type: "bit", nullable: false), + Required = table.Column(type: "bit", nullable: false), + Emphasize = table.Column(type: "bit", nullable: false), + ShowInDiscoveryDocument = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerIdentityResources", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerPersistedGrants", + columns: table => new + { + Key = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + SubjectId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + SessionId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + Description = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Expiration = table.Column(type: "datetime2", nullable: true), + ConsumedTime = table.Column(type: "datetime2", nullable: true), + Data = table.Column(type: "nvarchar(max)", maxLength: 50000, nullable: false), + Id = table.Column(type: "uniqueidentifier", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerPersistedGrants", x => x.Key); + }); + + migrationBuilder.CreateTable( + name: "AbpAuditLogActions", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + AuditLogId = table.Column(type: "uniqueidentifier", nullable: false), + ServiceName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + MethodName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Parameters = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + ExecutionTime = table.Column(type: "datetime2", nullable: false), + ExecutionDuration = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpAuditLogActions", x => x.Id); + table.ForeignKey( + name: "FK_AbpAuditLogActions_AbpAuditLogs_AuditLogId", + column: x => x.AuditLogId, + principalTable: "AbpAuditLogs", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpEntityChanges", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + AuditLogId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ChangeTime = table.Column(type: "datetime2", nullable: false), + ChangeType = table.Column(type: "tinyint", nullable: false), + EntityTenantId = table.Column(type: "uniqueidentifier", nullable: true), + EntityId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + EntityTypeFullName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpEntityChanges", x => x.Id); + table.ForeignKey( + name: "FK_AbpEntityChanges_AbpAuditLogs_AuditLogId", + column: x => x.AuditLogId, + principalTable: "AbpAuditLogs", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpOrganizationUnitRoles", + columns: table => new + { + RoleId = table.Column(type: "uniqueidentifier", nullable: false), + OrganizationUnitId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => new { x.OrganizationUnitId, x.RoleId }); + table.ForeignKey( + name: "FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationUnitId", + column: x => x.OrganizationUnitId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpOrganizationUnitRoles_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpRoleClaims", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RoleId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ClaimType = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + ClaimValue = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpRoleClaims", x => x.Id); + table.ForeignKey( + name: "FK_AbpRoleClaims_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpTenantConnectionStrings", + columns: table => new + { + TenantId = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Value = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpTenantConnectionStrings", x => new { x.TenantId, x.Name }); + table.ForeignKey( + name: "FK_AbpTenantConnectionStrings_AbpTenants_TenantId", + column: x => x.TenantId, + principalTable: "AbpTenants", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserClaims", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + UserId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ClaimType = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + ClaimValue = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserClaims", x => x.Id); + table.ForeignKey( + name: "FK_AbpUserClaims_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserLogins", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + LoginProvider = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ProviderKey = table.Column(type: "nvarchar(196)", maxLength: 196, nullable: false), + ProviderDisplayName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserLogins", x => new { x.UserId, x.LoginProvider }); + table.ForeignKey( + name: "FK_AbpUserLogins_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserOrganizationUnits", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + OrganizationUnitId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserOrganizationUnits", x => new { x.OrganizationUnitId, x.UserId }); + table.ForeignKey( + name: "FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationUnitId", + column: x => x.OrganizationUnitId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpUserOrganizationUnits_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserRoles", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + RoleId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserRoles", x => new { x.UserId, x.RoleId }); + table.ForeignKey( + name: "FK_AbpUserRoles_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpUserRoles_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserTokens", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + LoginProvider = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Value = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserTokens", x => new { x.UserId, x.LoginProvider, x.Name }); + table.ForeignKey( + name: "FK_AbpUserTokens_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "FisAssemblyCfgPart", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + IsKey = table.Column(type: "bit", nullable: false), + AssemblyCfgErpId = table.Column(type: "uniqueidentifier", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisAssemblyCfgPart", x => x.Id); + table.ForeignKey( + name: "FK_FisAssemblyCfgPart_FisAssemblyCfgErp_AssemblyCfgErpId", + column: x => x.AssemblyCfgErpId, + principalTable: "FisAssemblyCfgErp", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisAssemblyCfgVehicleChild", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ErpAssemblyId = table.Column(type: "uniqueidentifier", nullable: false), + AssemblyCfgVehicleId = table.Column(type: "uniqueidentifier", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisAssemblyCfgVehicleChild", x => x.Id); + table.ForeignKey( + name: "FK_FisAssemblyCfgVehicleChild_FisAssemblyCfgVehicle_AssemblyCfgVehicleId", + column: x => x.AssemblyCfgVehicleId, + principalTable: "FisAssemblyCfgVehicle", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisBillM100Part", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + PartType = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartType2 = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartType3 = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + BillM100Id = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillM100Part", x => x.Id); + table.ForeignKey( + name: "FK_FisBillM100Part_FisBillM100_BillM100Id", + column: x => x.BillM100Id, + principalTable: "FisBillM100", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisBillM110Part", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + BillM110Id = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillM110Part", x => x.Id); + table.ForeignKey( + name: "FK_FisBillM110Part_FisBillM110_BillM110Id", + column: x => x.BillM110Id, + principalTable: "FisBillM110", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisBillR100Part", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + PartType = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartType2 = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartType3 = table.Column(type: "nvarchar(max)", nullable: true), + BillR100Id = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillR100Part", x => x.Id); + table.ForeignKey( + name: "FK_FisBillR100Part_FisBillR100_BillR100Id", + column: x => x.BillR100Id, + principalTable: "FisBillR100", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisMenBanPackingRec", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + KNR = table.Column(type: "nvarchar(max)", nullable: true), + VIN = table.Column(type: "nvarchar(max)", nullable: true), + HostSN = table.Column(type: "nvarchar(max)", nullable: true), + VehicleModel_DoorPlankCode = table.Column(type: "nvarchar(max)", nullable: true), + TopBoxPositionNum = table.Column(type: "nvarchar(max)", nullable: true), + TopSAPMaterialNum = table.Column(type: "nvarchar(max)", nullable: true), + TopMaterialDescription = table.Column(type: "nvarchar(max)", nullable: true), + BelowSAPMaterialNum = table.Column(type: "nvarchar(max)", nullable: true), + BelowMaterialDescription = table.Column(type: "nvarchar(max)", nullable: true), + M100BillId = table.Column(type: "uniqueidentifier", nullable: true), + HostSN2 = table.Column(type: "int", nullable: false), + MenBanPackingListId = table.Column(type: "uniqueidentifier", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisMenBanPackingRec", x => x.Id); + table.ForeignKey( + name: "FK_FisMenBanPackingRec_FisMenBanPackingList_MenBanPackingListId", + column: x => x.MenBanPackingListId, + principalTable: "FisMenBanPackingList", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisBillSortCfg", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + BillName = table.Column(type: "nvarchar(max)", nullable: true), + FileContentKeyword = table.Column(type: "nvarchar(max)", nullable: true), + MessageVersionCfgId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillSortCfg", x => x.Id); + table.ForeignKey( + name: "FK_FisBillSortCfg_FisMessageVersionCfg_MessageVersionCfgId", + column: x => x.MessageVersionCfgId, + principalTable: "FisMessageVersionCfg", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisRepeatM100Part", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + RepeatM100Id = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisRepeatM100Part", x => x.Id); + table.ForeignKey( + name: "FK_FisRepeatM100Part_FisRepeatM100_RepeatM100Id", + column: x => x.RepeatM100Id, + principalTable: "FisRepeatM100", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisRepeatM110Part", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "nvarchar(max)", nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + RepeatM110Id = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisRepeatM110Part", x => x.Id); + table.ForeignKey( + name: "FK_FisRepeatM110Part_FisRepeatM110_RepeatM110Id", + column: x => x.RepeatM110Id, + principalTable: "FisRepeatM110", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisRepeatR100Part", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + RepeatR100Id = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisRepeatR100Part", x => x.Id); + table.ForeignKey( + name: "FK_FisRepeatR100Part_FisRepeatR100_RepeatR100Id", + column: x => x.RepeatR100Id, + principalTable: "FisRepeatR100", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisUnknownAssemblyPart", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + UnknownAssemblyId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisUnknownAssemblyPart", x => x.Id); + table.ForeignKey( + name: "FK_FisUnknownAssemblyPart_FisUnknownAssembly_UnknownAssemblyId", + column: x => x.UnknownAssemblyId, + principalTable: "FisUnknownAssembly", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisZhuHuBanPackingRec", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + M100BillId = table.Column(type: "uniqueidentifier", nullable: false), + KNR = table.Column(type: "nvarchar(max)", nullable: true), + VIN = table.Column(type: "nvarchar(max)", nullable: true), + HostSN = table.Column(type: "int", nullable: true), + PartCode = table.Column(type: "nvarchar(max)", nullable: true), + PartCode2 = table.Column(type: "nvarchar(max)", nullable: true), + MaterialDescription = table.Column(type: "nvarchar(max)", nullable: true), + MaterialDescription2 = table.Column(type: "nvarchar(max)", nullable: true), + HostSN2 = table.Column(type: "int", nullable: false), + ZhuHuBanPackingListId = table.Column(type: "uniqueidentifier", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisZhuHuBanPackingRec", x => x.Id); + table.ForeignKey( + name: "FK_FisZhuHuBanPackingRec_FisZhuHuBanPackingList_ZhuHuBanPackingListId", + column: x => x.ZhuHuBanPackingListId, + principalTable: "FisZhuHuBanPackingList", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiResourceClaims", + columns: table => new + { + Type = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiResourceClaims", x => new { x.ApiResourceId, x.Type }); + table.ForeignKey( + name: "FK_IdentityServerApiResourceClaims_IdentityServerApiResources_ApiResourceId", + column: x => x.ApiResourceId, + principalTable: "IdentityServerApiResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiResourceProperties", + columns: table => new + { + ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false), + Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiResourceProperties", x => new { x.ApiResourceId, x.Key, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerApiResourceProperties_IdentityServerApiResources_ApiResourceId", + column: x => x.ApiResourceId, + principalTable: "IdentityServerApiResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiResourceScopes", + columns: table => new + { + ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false), + Scope = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiResourceScopes", x => new { x.ApiResourceId, x.Scope }); + table.ForeignKey( + name: "FK_IdentityServerApiResourceScopes_IdentityServerApiResources_ApiResourceId", + column: x => x.ApiResourceId, + principalTable: "IdentityServerApiResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiResourceSecrets", + columns: table => new + { + Type = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: false), + ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false), + Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Expiration = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiResourceSecrets", x => new { x.ApiResourceId, x.Type, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerApiResourceSecrets_IdentityServerApiResources_ApiResourceId", + column: x => x.ApiResourceId, + principalTable: "IdentityServerApiResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiScopeClaims", + columns: table => new + { + Type = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + ApiScopeId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiScopeClaims", x => new { x.ApiScopeId, x.Type }); + table.ForeignKey( + name: "FK_IdentityServerApiScopeClaims_IdentityServerApiScopes_ApiScopeId", + column: x => x.ApiScopeId, + principalTable: "IdentityServerApiScopes", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiScopeProperties", + columns: table => new + { + ApiScopeId = table.Column(type: "uniqueidentifier", nullable: false), + Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiScopeProperties", x => new { x.ApiScopeId, x.Key, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerApiScopeProperties_IdentityServerApiScopes_ApiScopeId", + column: x => x.ApiScopeId, + principalTable: "IdentityServerApiScopes", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientClaims", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Type = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientClaims", x => new { x.ClientId, x.Type, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerClientClaims_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientCorsOrigins", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Origin = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientCorsOrigins", x => new { x.ClientId, x.Origin }); + table.ForeignKey( + name: "FK_IdentityServerClientCorsOrigins_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientGrantTypes", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + GrantType = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientGrantTypes", x => new { x.ClientId, x.GrantType }); + table.ForeignKey( + name: "FK_IdentityServerClientGrantTypes_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientIdPRestrictions", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Provider = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientIdPRestrictions", x => new { x.ClientId, x.Provider }); + table.ForeignKey( + name: "FK_IdentityServerClientIdPRestrictions_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientPostLogoutRedirectUris", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + PostLogoutRedirectUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientPostLogoutRedirectUris", x => new { x.ClientId, x.PostLogoutRedirectUri }); + table.ForeignKey( + name: "FK_IdentityServerClientPostLogoutRedirectUris_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientProperties", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientProperties", x => new { x.ClientId, x.Key, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerClientProperties_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientRedirectUris", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + RedirectUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientRedirectUris", x => new { x.ClientId, x.RedirectUri }); + table.ForeignKey( + name: "FK_IdentityServerClientRedirectUris_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientScopes", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Scope = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientScopes", x => new { x.ClientId, x.Scope }); + table.ForeignKey( + name: "FK_IdentityServerClientScopes_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientSecrets", + columns: table => new + { + Type = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: false), + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Description = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + Expiration = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientSecrets", x => new { x.ClientId, x.Type, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerClientSecrets_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerIdentityResourceClaims", + columns: table => new + { + Type = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + IdentityResourceId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerIdentityResourceClaims", x => new { x.IdentityResourceId, x.Type }); + table.ForeignKey( + name: "FK_IdentityServerIdentityResourceClaims_IdentityServerIdentityResources_IdentityResourceId", + column: x => x.IdentityResourceId, + principalTable: "IdentityServerIdentityResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerIdentityResourceProperties", + columns: table => new + { + IdentityResourceId = table.Column(type: "uniqueidentifier", nullable: false), + Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerIdentityResourceProperties", x => new { x.IdentityResourceId, x.Key, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerIdentityResourceProperties_IdentityServerIdentityResources_IdentityResourceId", + column: x => x.IdentityResourceId, + principalTable: "IdentityServerIdentityResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpEntityPropertyChanges", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + EntityChangeId = table.Column(type: "uniqueidentifier", nullable: false), + NewValue = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + OriginalValue = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + PropertyName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + PropertyTypeFullName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpEntityPropertyChanges", x => x.Id); + table.ForeignKey( + name: "FK_AbpEntityPropertyChanges_AbpEntityChanges_EntityChangeId", + column: x => x.EntityChangeId, + principalTable: "AbpEntityChanges", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogActions_AuditLogId", + table: "AbpAuditLogActions", + column: "AuditLogId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_ExecutionTime", + table: "AbpAuditLogActions", + columns: new[] { "TenantId", "ServiceName", "MethodName", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogs_TenantId_ExecutionTime", + table: "AbpAuditLogs", + columns: new[] { "TenantId", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogs_TenantId_UserId_ExecutionTime", + table: "AbpAuditLogs", + columns: new[] { "TenantId", "UserId", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpBackgroundJobs_IsAbandoned_NextTryTime", + table: "AbpBackgroundJobs", + columns: new[] { "IsAbandoned", "NextTryTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityChanges_AuditLogId", + table: "AbpEntityChanges", + column: "AuditLogId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityChanges_TenantId_EntityTypeFullName_EntityId", + table: "AbpEntityChanges", + columns: new[] { "TenantId", "EntityTypeFullName", "EntityId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityPropertyChanges_EntityChangeId", + table: "AbpEntityPropertyChanges", + column: "EntityChangeId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpFeatureValues_Name_ProviderName_ProviderKey", + table: "AbpFeatureValues", + columns: new[] { "Name", "ProviderName", "ProviderKey" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpLinkUsers_SourceUserId_SourceTenantId_TargetUserId_TargetTenantId", + table: "AbpLinkUsers", + columns: new[] { "SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId" }, + unique: true, + filter: "[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId", + table: "AbpOrganizationUnitRoles", + columns: new[] { "RoleId", "OrganizationUnitId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnits_Code", + table: "AbpOrganizationUnits", + column: "Code"); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnits_ParentId", + table: "AbpOrganizationUnits", + column: "ParentId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpPermissionGrants_Name_ProviderName_ProviderKey", + table: "AbpPermissionGrants", + columns: new[] { "Name", "ProviderName", "ProviderKey" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoleClaims_RoleId", + table: "AbpRoleClaims", + column: "RoleId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoles_NormalizedName", + table: "AbpRoles", + column: "NormalizedName"); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_Action", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "Action" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_ApplicationName", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "ApplicationName" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_Identity", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "Identity" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_UserId", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSettings_Name_ProviderName_ProviderKey", + table: "AbpSettings", + columns: new[] { "Name", "ProviderName", "ProviderKey" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpTenants_Name", + table: "AbpTenants", + column: "Name"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserClaims_UserId", + table: "AbpUserClaims", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserLogins_LoginProvider_ProviderKey", + table: "AbpUserLogins", + columns: new[] { "LoginProvider", "ProviderKey" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserOrganizationUnits_UserId_OrganizationUnitId", + table: "AbpUserOrganizationUnits", + columns: new[] { "UserId", "OrganizationUnitId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserRoles_RoleId_UserId", + table: "AbpUserRoles", + columns: new[] { "RoleId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_Email", + table: "AbpUsers", + column: "Email"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_NormalizedEmail", + table: "AbpUsers", + column: "NormalizedEmail"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_NormalizedUserName", + table: "AbpUsers", + column: "NormalizedUserName"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_UserName", + table: "AbpUsers", + column: "UserName"); + + migrationBuilder.CreateIndex( + name: "IX_FisAssemblyCfgPart_AssemblyCfgErpId", + table: "FisAssemblyCfgPart", + column: "AssemblyCfgErpId"); + + migrationBuilder.CreateIndex( + name: "IX_FisAssemblyCfgPart_PartCode", + table: "FisAssemblyCfgPart", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_AssemblyCfgVehicleChild_ErpAssemblyId", + table: "FisAssemblyCfgVehicleChild", + column: "ErpAssemblyId"); + + migrationBuilder.CreateIndex( + name: "IX_FisAssemblyCfgVehicleChild_AssemblyCfgVehicleId", + table: "FisAssemblyCfgVehicleChild", + column: "AssemblyCfgVehicleId"); + + migrationBuilder.CreateIndex( + name: "IX_BillM100_HostSN2", + table: "FisBillM100", + column: "HostSN"); + + migrationBuilder.CreateIndex( + name: "IX_BillM100_ProductLine2", + table: "FisBillM100", + column: "ProductLine"); + + migrationBuilder.CreateIndex( + name: "IX_BillM100_SerialNum", + table: "FisBillM100", + column: "SerialNum"); + + migrationBuilder.CreateIndex( + name: "IX_BillM100_SerialNumStr2", + table: "FisBillM100", + column: "SerialNumStr"); + + migrationBuilder.CreateIndex( + name: "IX_BillM100_VIN2", + table: "FisBillM100", + column: "VIN"); + + migrationBuilder.CreateIndex( + name: "IX_BillM100Part_PartCode2", + table: "FisBillM100Part", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_FisBillM100Part_BillM100Id", + table: "FisBillM100Part", + column: "BillM100Id"); + + migrationBuilder.CreateIndex( + name: "IX_BillM110_VIN3", + table: "FisBillM110", + column: "VIN"); + + migrationBuilder.CreateIndex( + name: "IX_BillM110Part_PartCode3", + table: "FisBillM110Part", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_FisBillM110Part_BillM110Id", + table: "FisBillM110Part", + column: "BillM110Id"); + + migrationBuilder.CreateIndex( + name: "IX_FisBillNumberRecord_ProductLine", + table: "FisBillNumberRecord", + column: "ProductLine", + unique: true, + filter: "[ProductLine] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_BillR100_HostSN1", + table: "FisBillR100", + column: "HostSN"); + + migrationBuilder.CreateIndex( + name: "IX_BillR100_KNR", + table: "FisBillR100", + column: "KNR"); + + migrationBuilder.CreateIndex( + name: "IX_BillR100_ProductLine1", + table: "FisBillR100", + column: "ProductLine"); + + migrationBuilder.CreateIndex( + name: "IX_BillR100_SerialNumStr1", + table: "FisBillR100", + column: "SerialNumStr"); + + migrationBuilder.CreateIndex( + name: "IX_BillR100Part_PartCode1", + table: "FisBillR100Part", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_FisBillR100Part_BillR100Id", + table: "FisBillR100Part", + column: "BillR100Id"); + + migrationBuilder.CreateIndex( + name: "IX_FisBillSortCfg_MessageVersionCfgId", + table: "FisBillSortCfg", + column: "MessageVersionCfgId"); + + migrationBuilder.CreateIndex( + name: "IX_DicItem_DicItemCode", + table: "FisDicItem", + column: "DicItemCode"); + + migrationBuilder.CreateIndex( + name: "IX_DicItem_DicTypeCode", + table: "FisDicItem", + column: "DicTypeCode"); + + migrationBuilder.CreateIndex( + name: "IX_DicType_DicTypeCode", + table: "FisDicType", + column: "DicTypeCode"); + + migrationBuilder.CreateIndex( + name: "IX_FisLineSN_ProductType_ProductLine_PartType", + table: "FisLineSN", + columns: new[] { "ProductType", "ProductLine", "PartType" }, + unique: true, + filter: "[ProductLine] IS NOT NULL AND [PartType] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_MaterialExt_MaterialNum", + table: "FisMaterialExt", + column: "MaterialNum"); + + migrationBuilder.CreateIndex( + name: "IX_MaterialExt_MaterialType", + table: "FisMaterialExt", + column: "MaterialType"); + + migrationBuilder.CreateIndex( + name: "IX_MaterialExt_MaterialType2", + table: "FisMaterialExt", + column: "MaterialType2"); + + migrationBuilder.CreateIndex( + name: "IX_MaterialExt_MaterialType3", + table: "FisMaterialExt", + column: "MaterialType3"); + + migrationBuilder.CreateIndex( + name: "IX_MaterialExt_RelationKey", + table: "FisMaterialExt", + column: "RelationKey"); + + migrationBuilder.CreateIndex( + name: "IX_MaterialExt_VehicleModel", + table: "FisMaterialExt", + column: "VehicleModel"); + + migrationBuilder.CreateIndex( + name: "IX_FisMenBanPackingRec_MenBanPackingListId", + table: "FisMenBanPackingRec", + column: "MenBanPackingListId"); + + migrationBuilder.CreateIndex( + name: "IX_PartCfg_PartCode", + table: "FisPartCfg", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_PartCfg_PartType", + table: "FisPartCfg", + column: "PartType"); + + migrationBuilder.CreateIndex( + name: "IX_PartCfg_PartType2", + table: "FisPartCfg", + column: "PartType2"); + + migrationBuilder.CreateIndex( + name: "IX_PartCfg_PartType3", + table: "FisPartCfg", + column: "PartType3"); + + migrationBuilder.CreateIndex( + name: "IX_FisPrintTemplateConfiguration_GroupName_PartType", + table: "FisPrintTemplateConfiguration", + columns: new[] { "GroupName", "PartType" }, + unique: true, + filter: "[GroupName] IS NOT NULL AND [PartType] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_ProductLine_ProductLineCode", + table: "FisProductLine", + column: "ProductLineCode"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatM100_HostSN", + table: "FisRepeatM100", + column: "HostSN"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatM100_KNR", + table: "FisRepeatM100", + column: "KNR"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatM100_ProductLine", + table: "FisRepeatM100", + column: "ProductLine"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatM100_VIN", + table: "FisRepeatM100", + column: "VIN"); + + migrationBuilder.CreateIndex( + name: "IX_FisRepeatM100Part_RepeatM100Id", + table: "FisRepeatM100Part", + column: "RepeatM100Id"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatM100Part_PartCode", + table: "FisRepeatM100Part", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_FisRepeatM110Part_RepeatM110Id", + table: "FisRepeatM110Part", + column: "RepeatM110Id"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatR100_HostSN", + table: "FisRepeatR100", + column: "HostSN"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatR100_KNR", + table: "FisRepeatR100", + column: "KNR"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatR100_ProductLine", + table: "FisRepeatR100", + column: "ProductLine"); + + migrationBuilder.CreateIndex( + name: "IX_FisRepeatR100Part_RepeatR100Id", + table: "FisRepeatR100Part", + column: "RepeatR100Id"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatR100Part_PartCode", + table: "FisRepeatR100Part", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_FisUnknownAssemblyPart_UnknownAssemblyId", + table: "FisUnknownAssemblyPart", + column: "UnknownAssemblyId"); + + migrationBuilder.CreateIndex( + name: "IX_UnknownAssemblyPart_PartCode", + table: "FisUnknownAssemblyPart", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_FisZhuHuBanPackingRec_ZhuHuBanPackingListId", + table: "FisZhuHuBanPackingRec", + column: "ZhuHuBanPackingListId"); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerClients_ClientId", + table: "IdentityServerClients", + column: "ClientId"); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerDeviceFlowCodes_DeviceCode", + table: "IdentityServerDeviceFlowCodes", + column: "DeviceCode", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerDeviceFlowCodes_Expiration", + table: "IdentityServerDeviceFlowCodes", + column: "Expiration"); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerDeviceFlowCodes_UserCode", + table: "IdentityServerDeviceFlowCodes", + column: "UserCode"); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerPersistedGrants_Expiration", + table: "IdentityServerPersistedGrants", + column: "Expiration"); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerPersistedGrants_SubjectId_ClientId_Type", + table: "IdentityServerPersistedGrants", + columns: new[] { "SubjectId", "ClientId", "Type" }); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerPersistedGrants_SubjectId_SessionId_Type", + table: "IdentityServerPersistedGrants", + columns: new[] { "SubjectId", "SessionId", "Type" }); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "AbpAuditLogActions"); + + migrationBuilder.DropTable( + name: "AbpBackgroundJobs"); + + migrationBuilder.DropTable( + name: "AbpClaimTypes"); + + migrationBuilder.DropTable( + name: "AbpEntityPropertyChanges"); + + migrationBuilder.DropTable( + name: "AbpFeatureValues"); + + migrationBuilder.DropTable( + name: "AbpLinkUsers"); + + migrationBuilder.DropTable( + name: "AbpOrganizationUnitRoles"); + + migrationBuilder.DropTable( + name: "AbpPermissionGrants"); + + migrationBuilder.DropTable( + name: "AbpRoleClaims"); + + migrationBuilder.DropTable( + name: "AbpSecurityLogs"); + + migrationBuilder.DropTable( + name: "AbpSettings"); + + migrationBuilder.DropTable( + name: "AbpTenantConnectionStrings"); + + migrationBuilder.DropTable( + name: "AbpUserClaims"); + + migrationBuilder.DropTable( + name: "AbpUserLogins"); + + migrationBuilder.DropTable( + name: "AbpUserOrganizationUnits"); + + migrationBuilder.DropTable( + name: "AbpUserRoles"); + + migrationBuilder.DropTable( + name: "AbpUserTokens"); + + migrationBuilder.DropTable( + name: "FisAlreadyPrint"); + + migrationBuilder.DropTable( + name: "FisAssemblyCfgGroup"); + + migrationBuilder.DropTable( + name: "FisAssemblyCfgPart"); + + migrationBuilder.DropTable( + name: "FisAssemblyCfgVehicleChild"); + + migrationBuilder.DropTable( + name: "FisBillM100Part"); + + migrationBuilder.DropTable( + name: "FisBillM110Part"); + + migrationBuilder.DropTable( + name: "FisBillNumberRecord"); + + migrationBuilder.DropTable( + name: "FisBillR100Part"); + + migrationBuilder.DropTable( + name: "FisBillSortCfg"); + + migrationBuilder.DropTable( + name: "FisBooks"); + + migrationBuilder.DropTable( + name: "FisDicItem"); + + migrationBuilder.DropTable( + name: "FisDicType"); + + migrationBuilder.DropTable( + name: "FisExcludePartCfg"); + + migrationBuilder.DropTable( + name: "FisGlobalSettings"); + + migrationBuilder.DropTable( + name: "FisLineSN"); + + migrationBuilder.DropTable( + name: "FisLogRemind"); + + migrationBuilder.DropTable( + name: "FisMaterialExt"); + + migrationBuilder.DropTable( + name: "FisMenBanPackingRec"); + + migrationBuilder.DropTable( + name: "FisMessageReceive"); + + migrationBuilder.DropTable( + name: "FisMessageReceiveArchive"); + + migrationBuilder.DropTable( + name: "FisNotMatchTempBill"); + + migrationBuilder.DropTable( + name: "FisPartCfg"); + + migrationBuilder.DropTable( + name: "FisPartSwitch"); + + migrationBuilder.DropTable( + name: "FisPrintTemplateConfiguration"); + + migrationBuilder.DropTable( + name: "FisProductLine"); + + migrationBuilder.DropTable( + name: "FisRepeatM100Part"); + + migrationBuilder.DropTable( + name: "FisRepeatM110Part"); + + migrationBuilder.DropTable( + name: "FisRepeatR100Part"); + + migrationBuilder.DropTable( + name: "FisSequenceInfo"); + + migrationBuilder.DropTable( + name: "FisTB_BILL"); + + migrationBuilder.DropTable( + name: "FisTB_BILL_HIS"); + + migrationBuilder.DropTable( + name: "FisTB_BILL_SCRAP"); + + migrationBuilder.DropTable( + name: "FisTransmissionModeCfg"); + + migrationBuilder.DropTable( + name: "FisTS_SORT_DETAIL"); + + migrationBuilder.DropTable( + name: "FisTS_SORT_DETAIL_HIS"); + + migrationBuilder.DropTable( + name: "FisUnknownAssemblyPart"); + + migrationBuilder.DropTable( + name: "FisUser2ProductLine"); + + migrationBuilder.DropTable( + name: "FisWaitPrint"); + + migrationBuilder.DropTable( + name: "FisZhuHuBanPackingRec"); + + migrationBuilder.DropTable( + name: "IdentityServerApiResourceClaims"); + + migrationBuilder.DropTable( + name: "IdentityServerApiResourceProperties"); + + migrationBuilder.DropTable( + name: "IdentityServerApiResourceScopes"); + + migrationBuilder.DropTable( + name: "IdentityServerApiResourceSecrets"); + + migrationBuilder.DropTable( + name: "IdentityServerApiScopeClaims"); + + migrationBuilder.DropTable( + name: "IdentityServerApiScopeProperties"); + + migrationBuilder.DropTable( + name: "IdentityServerClientClaims"); + + migrationBuilder.DropTable( + name: "IdentityServerClientCorsOrigins"); + + migrationBuilder.DropTable( + name: "IdentityServerClientGrantTypes"); + + migrationBuilder.DropTable( + name: "IdentityServerClientIdPRestrictions"); + + migrationBuilder.DropTable( + name: "IdentityServerClientPostLogoutRedirectUris"); + + migrationBuilder.DropTable( + name: "IdentityServerClientProperties"); + + migrationBuilder.DropTable( + name: "IdentityServerClientRedirectUris"); + + migrationBuilder.DropTable( + name: "IdentityServerClientScopes"); + + migrationBuilder.DropTable( + name: "IdentityServerClientSecrets"); + + migrationBuilder.DropTable( + name: "IdentityServerDeviceFlowCodes"); + + migrationBuilder.DropTable( + name: "IdentityServerIdentityResourceClaims"); + + migrationBuilder.DropTable( + name: "IdentityServerIdentityResourceProperties"); + + migrationBuilder.DropTable( + name: "IdentityServerPersistedGrants"); + + migrationBuilder.DropTable( + name: "AbpEntityChanges"); + + migrationBuilder.DropTable( + name: "AbpTenants"); + + migrationBuilder.DropTable( + name: "AbpOrganizationUnits"); + + migrationBuilder.DropTable( + name: "AbpRoles"); + + migrationBuilder.DropTable( + name: "AbpUsers"); + + migrationBuilder.DropTable( + name: "FisAssemblyCfgErp"); + + migrationBuilder.DropTable( + name: "FisAssemblyCfgVehicle"); + + migrationBuilder.DropTable( + name: "FisBillM100"); + + migrationBuilder.DropTable( + name: "FisBillM110"); + + migrationBuilder.DropTable( + name: "FisBillR100"); + + migrationBuilder.DropTable( + name: "FisMessageVersionCfg"); + + migrationBuilder.DropTable( + name: "FisMenBanPackingList"); + + migrationBuilder.DropTable( + name: "FisRepeatM100"); + + migrationBuilder.DropTable( + name: "FisRepeatM110"); + + migrationBuilder.DropTable( + name: "FisRepeatR100"); + + migrationBuilder.DropTable( + name: "FisUnknownAssembly"); + + migrationBuilder.DropTable( + name: "FisZhuHuBanPackingList"); + + migrationBuilder.DropTable( + name: "IdentityServerApiResources"); + + migrationBuilder.DropTable( + name: "IdentityServerApiScopes"); + + migrationBuilder.DropTable( + name: "IdentityServerClients"); + + migrationBuilder.DropTable( + name: "IdentityServerIdentityResources"); + + migrationBuilder.DropTable( + name: "AbpAuditLogs"); + } + } +} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/NewJitMigrationsDbContextModelSnapshot.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/NewJitMigrationsDbContextModelSnapshot.cs index 56ec9e8..9bd8baa 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/NewJitMigrationsDbContextModelSnapshot.cs +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/NewJitMigrationsDbContextModelSnapshot.cs @@ -2155,6 +2155,9 @@ namespace WY.NewJit.Migrations b.Property("HostSN") .HasColumnType("nvarchar(max)"); + b.Property("HostSN2") + .HasColumnType("int"); + b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") @@ -2200,51 +2203,12 @@ namespace WY.NewJit.Migrations b.ToTable("FisMenBanPackingRec"); }); - modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingRec2", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.MaterialExt", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); - b.Property("Column00") - .HasColumnType("nvarchar(max)"); - - b.Property("Column01") - .HasColumnType("nvarchar(max)"); - - b.Property("Column02") - .HasColumnType("nvarchar(max)"); - - b.Property("Column03") - .HasColumnType("nvarchar(max)"); - - b.Property("Column04") - .HasColumnType("nvarchar(max)"); - - b.Property("Column05") - .HasColumnType("nvarchar(max)"); - - b.Property("Column06") - .HasColumnType("nvarchar(max)"); - - b.Property("Column07") - .HasColumnType("nvarchar(max)"); - - b.Property("Column08") - .HasColumnType("nvarchar(max)"); - - b.Property("Column09") - .HasColumnType("nvarchar(max)"); - - b.Property("Column10") - .HasColumnType("nvarchar(max)"); - - b.Property("Column11") - .HasColumnType("nvarchar(max)"); - - b.Property("Column12") - .HasColumnType("nvarchar(max)"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2285,28 +2249,86 @@ namespace WY.NewJit.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); - b.HasKey("Id"); + b.Property("MaterialDescription") + .HasColumnType("nvarchar(max)"); - b.ToTable("FisMenBanPackingRec2"); - }); + b.Property("MaterialDescription2") + .HasColumnType("nvarchar(max)"); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.CUR_TB_BILL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + b.Property("MaterialGroup") + .HasColumnType("nvarchar(max)"); - b.Property("AccountDate") + b.Property("MaterialMemo") + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialNum") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("MaterialType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialType2") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialType3") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("RelationKey") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("UpdateTime") .HasColumnType("datetime2"); + b.Property("VehicleModel") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("promo") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("MaterialNum") + .HasDatabaseName("IX_MaterialExt_MaterialNum"); + + b.HasIndex("MaterialType") + .HasDatabaseName("IX_MaterialExt_MaterialType"); + + b.HasIndex("MaterialType2") + .HasDatabaseName("IX_MaterialExt_MaterialType2"); + + b.HasIndex("MaterialType3") + .HasDatabaseName("IX_MaterialExt_MaterialType3"); + + b.HasIndex("RelationKey") + .HasDatabaseName("IX_MaterialExt_RelationKey"); + + b.HasIndex("VehicleModel") + .HasDatabaseName("IX_MaterialExt_VehicleModel"); + + b.ToTable("FisMaterialExt"); + }); + + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTB_BILL", b => + { b.Property("BillNum") - .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("AccountDate") + .HasColumnType("datetime2"); + b.Property("BillTime") .HasColumnType("datetime2"); + b.Property("BillType") + .HasColumnType("int"); + b.Property("CustId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2318,6 +2340,10 @@ namespace WY.NewJit.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("ExecuteRemark") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + b.Property("FinishTime") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2333,6 +2359,9 @@ namespace WY.NewJit.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("IsExecute") + .HasColumnType("bit"); + b.Property("OperName") .IsRequired() .HasMaxLength(50) @@ -2363,6 +2392,9 @@ namespace WY.NewJit.Migrations b.Property("State") .HasColumnType("int"); + b.Property("SubBillType") + .HasColumnType("int"); + b.Property("TransportType") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2372,128 +2404,33 @@ namespace WY.NewJit.Migrations .HasColumnType("nvarchar(50)"); b.Property("UID") + .ValueGeneratedOnAddOrUpdate() .HasColumnType("int"); b.Property("VendId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.HasKey("Id"); + b.HasKey("BillNum"); - b.ToTable("FisCUR_TB_BILL"); + b.ToTable("FisTB_BILL"); }); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.CUR_TS_SORT_DETAIL", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTB_BILL_HIS", b => { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - b.Property("BillNum") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustBarCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DispatchDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Dock") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("FullBarCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("FyonNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LineNum") - .HasColumnType("int"); - - b.Property("PartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlanQty") - .HasColumnType("money"); - - b.Property("ProjectId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("money"); - - b.Property("ReceiptQty") - .HasColumnType("money"); - - b.Property("Remark") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNum") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UID") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("bigint"); - - b.Property("VendId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VinCode") - .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.HasKey("Id"); - - b.ToTable("FisCUR_TS_SORT_DETAIL"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.HIS_TB_BILL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - b.Property("AccountDate") .HasColumnType("datetime2"); - b.Property("BillNum") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - b.Property("BillTime") .HasColumnType("datetime2"); + b.Property("BillType") + .HasColumnType("int"); + b.Property("CustId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2550,6 +2487,9 @@ namespace WY.NewJit.Migrations b.Property("State") .HasColumnType("int"); + b.Property("SubBillType") + .HasColumnType("int"); + b.Property("TransportType") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2559,29 +2499,64 @@ namespace WY.NewJit.Migrations .HasColumnType("nvarchar(50)"); b.Property("UID") + .ValueGeneratedOnAddOrUpdate() .HasColumnType("int"); b.Property("VendId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.HasKey("Id"); + b.HasKey("BillNum"); - b.ToTable("FisHIS_TB_BILL"); + b.ToTable("FisTB_BILL_HIS"); }); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.HIS_TS_SORT_DETAIL", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTB_BILL_SCRAP", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); - b.Property("BarCode") + b.Property("BillNum") + .IsRequired() .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasColumnType("varchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + b.Property("ExecuteTime") + .HasColumnType("datetime2"); + + b.Property("IsExecute") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.HasKey("Id"); + + b.ToTable("FisTB_BILL_SCRAP"); + }); + + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTS_SORT_DETAIL", b => + { b.Property("BillNum") - .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("VinCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PartCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("BarCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2613,11 +2588,6 @@ namespace WY.NewJit.Migrations b.Property("LineNum") .HasColumnType("int"); - b.Property("PartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - b.Property("PlanQty") .HasColumnType("money"); @@ -2654,125 +2624,96 @@ namespace WY.NewJit.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("VinCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.HasKey("BillNum", "VinCode", "PartCode"); - b.HasKey("Id"); - - b.ToTable("FisHIS_TS_SORT_DETAIL"); + b.ToTable("FisTS_SORT_DETAIL"); }); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.MaterialExt", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTS_SORT_DETAIL_HIS", b => { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); + b.Property("BillNum") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("MaterialDescription") - .HasColumnType("nvarchar(max)"); + b.Property("VinCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("MaterialDescription2") - .HasColumnType("nvarchar(max)"); + b.Property("PartCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("MaterialGroup") - .HasColumnType("nvarchar(max)"); + b.Property("BarCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("MaterialMemo") - .HasColumnType("nvarchar(max)"); + b.Property("CustBarCode") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); - b.Property("MaterialNum") + b.Property("CustPartCode") .HasMaxLength(50) - .HasColumnType("varchar(50)"); + .HasColumnType("nvarchar(50)"); - b.Property("MaterialType") + b.Property("DispatchDate") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("MaterialType2") + b.Property("Dock") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("MaterialType3") + b.Property("FullBarCode") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("FyonNum") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("RelationKey") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); + b.Property("LineNum") + .HasColumnType("int"); - b.Property("UpdateTime") - .HasColumnType("datetime2"); + b.Property("PlanQty") + .HasColumnType("money"); - b.Property("VehicleModel") + b.Property("ProjectId") + .IsRequired() .HasMaxLength(50) - .HasColumnType("varchar(50)"); + .HasColumnType("nvarchar(50)"); - b.Property("promo") - .HasColumnType("nvarchar(max)"); + b.Property("Qty") + .HasColumnType("money"); - b.HasKey("Id"); + b.Property("ReceiptQty") + .HasColumnType("money"); - b.HasIndex("MaterialNum") - .HasDatabaseName("IX_MaterialExt_MaterialNum"); + b.Property("Remark") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); - b.HasIndex("MaterialType") - .HasDatabaseName("IX_MaterialExt_MaterialType"); + b.Property("SeqNum") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.HasIndex("MaterialType2") - .HasDatabaseName("IX_MaterialExt_MaterialType2"); + b.Property("State") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.HasIndex("MaterialType3") - .HasDatabaseName("IX_MaterialExt_MaterialType3"); + b.Property("UID") + .ValueGeneratedOnAddOrUpdate() + .HasColumnType("bigint"); - b.HasIndex("RelationKey") - .HasDatabaseName("IX_MaterialExt_RelationKey"); + b.Property("VendId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.HasIndex("VehicleModel") - .HasDatabaseName("IX_MaterialExt_VehicleModel"); + b.HasKey("BillNum", "VinCode", "PartCode"); - b.ToTable("FisMaterialExt"); + b.ToTable("FisTS_SORT_DETAIL_HIS"); }); modelBuilder.Entity("WY.NewJit.Extends.ProductLine", b => @@ -2962,178 +2903,47 @@ namespace WY.NewJit.Migrations .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MinOnlineTime") - .HasColumnType("datetime2"); - - b.Property("PartType") - .HasColumnType("nvarchar(max)"); - - b.Property("PrintDate") - .HasColumnType("datetime2"); - - b.Property("PrintType") - .HasColumnType("int"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProviderCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReportStatus") - .HasColumnType("int"); - - b.Property("SortId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("FisZhuHuBanPackingList"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KNR") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("M100BillId") - .HasColumnType("uniqueidentifier"); - - b.Property("MaterialDescription") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription2") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(max)"); - - b.Property("ZhuHuBanPackingListId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ZhuHuBanPackingListId"); - - b.ToTable("FisZhuHuBanPackingRec"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec2", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Column00") - .HasColumnType("nvarchar(max)"); - - b.Property("Column01") - .HasColumnType("nvarchar(max)"); - - b.Property("Column02") - .HasColumnType("nvarchar(max)"); - - b.Property("Column03") - .HasColumnType("nvarchar(max)"); - - b.Property("Column04") - .HasColumnType("nvarchar(max)"); + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); - b.Property("Column05") - .HasColumnType("nvarchar(max)"); + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); - b.Property("Column06") - .HasColumnType("nvarchar(max)"); + b.Property("MinOnlineTime") + .HasColumnType("datetime2"); - b.Property("Column07") + b.Property("PartType") .HasColumnType("nvarchar(max)"); - b.Property("Column08") - .HasColumnType("nvarchar(max)"); + b.Property("PrintDate") + .HasColumnType("datetime2"); - b.Property("Column09") - .HasColumnType("nvarchar(max)"); + b.Property("PrintType") + .HasColumnType("int"); - b.Property("Column10") + b.Property("ProductLine") .HasColumnType("nvarchar(max)"); - b.Property("Column11") + b.Property("ProviderCode") .HasColumnType("nvarchar(max)"); - b.Property("Column12") - .HasColumnType("nvarchar(max)"); + b.Property("ReportStatus") + .HasColumnType("int"); - b.Property("Column13") - .HasColumnType("nvarchar(max)"); + b.Property("SortId") + .HasColumnType("uniqueidentifier"); - b.Property("Column14") - .HasColumnType("nvarchar(max)"); + b.HasKey("Id"); - b.Property("Column15") - .HasColumnType("nvarchar(max)"); + b.ToTable("FisZhuHuBanPackingList"); + }); - b.Property("Column16") - .HasColumnType("nvarchar(max)"); + modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() @@ -3161,12 +2971,21 @@ namespace WY.NewJit.Migrations .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("HostSN2") + .HasColumnType("int"); + b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); + b.Property("KNR") + .HasColumnType("nvarchar(max)"); + b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); @@ -3175,9 +2994,32 @@ namespace WY.NewJit.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); + b.Property("M100BillId") + .HasColumnType("uniqueidentifier"); + + b.Property("MaterialDescription") + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription2") + .HasColumnType("nvarchar(max)"); + + b.Property("PartCode") + .HasColumnType("nvarchar(max)"); + + b.Property("PartCode2") + .HasColumnType("nvarchar(max)"); + + b.Property("VIN") + .HasColumnType("nvarchar(max)"); + + b.Property("ZhuHuBanPackingListId") + .HasColumnType("uniqueidentifier"); + b.HasKey("Id"); - b.ToTable("FisZhuHuBanPackingRec2"); + b.HasIndex("ZhuHuBanPackingListId"); + + b.ToTable("FisZhuHuBanPackingRec"); }); modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgErp", b => @@ -4019,6 +3861,62 @@ namespace WY.NewJit.Migrations b.ToTable("FisPartSwitch"); }); + modelBuilder.Entity("WY.NewJit.MsgBaseData.PrintTemplateConfiguration", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("ExtraProperties") + .HasColumnType("nvarchar(max)") + .HasColumnName("ExtraProperties"); + + b.Property("GroupCode") + .HasColumnType("int"); + + b.Property("GroupName") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("PartType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("TemplateName") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("GroupName", "PartType") + .IsUnique() + .HasFilter("[GroupName] IS NOT NULL AND [PartType] IS NOT NULL"); + + b.ToTable("FisPrintTemplateConfiguration"); + }); + modelBuilder.Entity("WY.NewJit.MsgCheck.BillM100", b => { b.Property("Id") @@ -4331,6 +4229,37 @@ namespace WY.NewJit.Migrations b.ToTable("FisBillM110Part"); }); + modelBuilder.Entity("WY.NewJit.MsgCheck.BillNumberRecord", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("InsertedRows") + .HasColumnType("int"); + + b.Property("ProductLine") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("RecordNumber") + .HasColumnType("int"); + + b.Property("RoundNumber") + .HasColumnType("int"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.HasIndex("ProductLine") + .IsUnique() + .HasFilter("[ProductLine] IS NOT NULL"); + + b.ToTable("FisBillNumberRecord"); + }); + modelBuilder.Entity("WY.NewJit.MsgCheck.BillR100", b => { b.Property("Id") @@ -5229,6 +5158,136 @@ namespace WY.NewJit.Migrations b.ToTable("FisTransmissionModeCfg"); }); + modelBuilder.Entity("WY.NewJit.PrintTable.AlreadyPrint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("AssemblyID") + .HasColumnType("uniqueidentifier"); + + b.Property("BillStatus") + .HasColumnType("int"); + + b.Property("BusinessType") + .HasColumnType("int"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier"); + + b.Property("Description") + .HasColumnType("nvarchar(max)"); + + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("HostSN2") + .HasColumnType("int"); + + b.Property("KNR") + .HasColumnType("nvarchar(max)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier"); + + b.Property("M100Id") + .HasColumnType("uniqueidentifier"); + + b.Property("OnlineTime") + .HasColumnType("datetime2"); + + b.Property("PrintType") + .HasColumnType("int"); + + b.Property("ProductLine") + .HasColumnType("nvarchar(max)"); + + b.Property("ReceiveTime") + .HasColumnType("datetime2"); + + b.Property("VIN") + .HasColumnType("nvarchar(max)"); + + b.Property("VehicleModelCode") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("FisAlreadyPrint"); + }); + + modelBuilder.Entity("WY.NewJit.PrintTable.WaitPrint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("AssemblyID") + .HasColumnType("uniqueidentifier"); + + b.Property("BillStatus") + .HasColumnType("int"); + + b.Property("BusinessType") + .HasColumnType("int"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier"); + + b.Property("Description") + .HasColumnType("nvarchar(max)"); + + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("HostSN2") + .HasColumnType("int"); + + b.Property("KNR") + .HasColumnType("nvarchar(max)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier"); + + b.Property("M100Id") + .HasColumnType("uniqueidentifier"); + + b.Property("OnlineTime") + .HasColumnType("datetime2"); + + b.Property("PrintType") + .HasColumnType("int"); + + b.Property("ProductLine") + .HasColumnType("nvarchar(max)"); + + b.Property("ReceiveTime") + .HasColumnType("datetime2"); + + b.Property("VIN") + .HasColumnType("nvarchar(max)"); + + b.Property("VehicleModelCode") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("FisWaitPrint"); + }); + modelBuilder.Entity("WY.NewJit.TianHe.NotMatchTempBill", b => { b.Property("Id") diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/WY.NewJit.EntityFrameworkCore.DbMigrations.csproj b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/WY.NewJit.EntityFrameworkCore.DbMigrations.csproj index 87f3950..c60b959 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/WY.NewJit.EntityFrameworkCore.DbMigrations.csproj +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/WY.NewJit.EntityFrameworkCore.DbMigrations.csproj @@ -18,8 +18,4 @@ - - - - diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Job.ConsoleSyncToWms/appsettings.json b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Job.ConsoleSyncToWms/appsettings.json index 5a33c35..dce7525 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Job.ConsoleSyncToWms/appsettings.json +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Job.ConsoleSyncToWms/appsettings.json @@ -20,7 +20,7 @@ "Default": "Server=dev.ccwin-in.com,6208;Database=NewJitPG_HQ;uid=sa;pwd=ChangkeTec@2021;", "ABP": "Server=dev.ccwin-in.com,6208;Database=ABP;User ID=sa;Password=ChangkeTec@2021;", "WMS": "Server=dev.ccwin-in.com,6208;Database=CPAT_WMS;User ID=sa;Password=ChangkeTec@2021;" - //"Default": "Server=192.168.0.228;Database=NewJitPG_HQ;uid=sa;pwd=ChangkeTec@2021;", + //"Default": "Server=192.168.0.228;Database=NewJitPG_HQ_Temp;uid=sa;pwd=ChangkeTec@2021;", //"ABP": "Server=192.168.0.228;Database=ABP;User ID=sa;Password=ChangkeTec@2021;", //"WMS": "Server=192.168.0.228;Database=CPAT_WMS;User ID=sa;Password=ChangkeTec@2021;"