diff --git a/Code/src/MineTec.ProManager.Application/Supplier/Dto/CreateUpdateSupplierDto.cs b/Code/src/MineTec.ProManager.Application/Supplier/Dto/CreateUpdateSupplierDto.cs index 39d35d0..0e3c54e 100644 --- a/Code/src/MineTec.ProManager.Application/Supplier/Dto/CreateUpdateSupplierDto.cs +++ b/Code/src/MineTec.ProManager.Application/Supplier/Dto/CreateUpdateSupplierDto.cs @@ -112,6 +112,30 @@ namespace MineTec.ProManager.Supplier.Dto [StringLength(100)] public string Website { get; set; } + /// + /// 社会统一信用代码 + /// + [StringLength(100)] + public string CreditCode { get; set; } + + /// + /// 开户银行 + /// + [StringLength(100)] + public string Bank { get; set; } + + /// + /// 账号 + /// + [StringLength(100)] + public string BankAccount { get; set; } + + /// + /// 传真 + /// + [StringLength(100)] + public string Fax { get; set; } + /// /// 备注 /// diff --git a/Code/src/MineTec.ProManager.Application/Supplier/Dto/SupplierDto.cs b/Code/src/MineTec.ProManager.Application/Supplier/Dto/SupplierDto.cs index 8508fd7..3efdfa7 100644 --- a/Code/src/MineTec.ProManager.Application/Supplier/Dto/SupplierDto.cs +++ b/Code/src/MineTec.ProManager.Application/Supplier/Dto/SupplierDto.cs @@ -112,6 +112,30 @@ namespace MineTec.ProManager.Supplier.Dto [StringLength(100)] public string Website { get; set; } + /// + /// 社会统一信用代码 + /// + [StringLength(100)] + public string CreditCode { get; set; } + + /// + /// 开户银行 + /// + [StringLength(100)] + public string Bank { get; set; } + + /// + /// 账号 + /// + [StringLength(100)] + public string BankAccount { get; set; } + + /// + /// 传真 + /// + [StringLength(100)] + public string Fax { get; set; } + /// /// 备注 /// diff --git a/Code/src/MineTec.ProManager.Application/Supplier/Dto/UpdateSupplier.cs b/Code/src/MineTec.ProManager.Application/Supplier/Dto/UpdateSupplier.cs index aaaf8c5..baf7436 100644 --- a/Code/src/MineTec.ProManager.Application/Supplier/Dto/UpdateSupplier.cs +++ b/Code/src/MineTec.ProManager.Application/Supplier/Dto/UpdateSupplier.cs @@ -34,6 +34,18 @@ namespace MineTec.ProManager.Supplier.Dto public string Website { get; set; }//更新网站 + /// 社会统一信用代码 + public string CreditCode { get; set; } + + /// 开户银行 + public string Bank { get; set; } + + /// 账号 + public string BankAccount { get; set; } + + /// 传真 + public string Fax { get; set; } + public string Remark { get; set; } //备注 public int IsDelete { get; set; }//是否删除 diff --git a/Code/src/MineTec.ProManager.Application/Supplier/SupplierAppService.cs b/Code/src/MineTec.ProManager.Application/Supplier/SupplierAppService.cs index bfad213..3f6a5da 100644 --- a/Code/src/MineTec.ProManager.Application/Supplier/SupplierAppService.cs +++ b/Code/src/MineTec.ProManager.Application/Supplier/SupplierAppService.cs @@ -101,6 +101,10 @@ namespace MineTec.ProManager.Supplier query.Email = input.Email; query.Address = input.Address; query.Website = input.Website; + query.CreditCode = input.CreditCode; + query.Bank = input.Bank; + query.BankAccount = input.BankAccount; + query.Fax = input.Fax; query.Remark = input.Remark; } diff --git a/Code/src/MineTec.ProManager.Core/Entitys/Supplier/Supplier.cs b/Code/src/MineTec.ProManager.Core/Entitys/Supplier/Supplier.cs index 94068cf..0487ca6 100644 --- a/Code/src/MineTec.ProManager.Core/Entitys/Supplier/Supplier.cs +++ b/Code/src/MineTec.ProManager.Core/Entitys/Supplier/Supplier.cs @@ -112,6 +112,30 @@ namespace MineTec.ProManager.Entitys.Supplier [StringLength(100)] public string Website { get; set; } + /// + /// 社会统一信用代码 + /// + [StringLength(100)] + public string CreditCode { get; set; } + + /// + /// 开户银行 + /// + [StringLength(100)] + public string Bank { get; set; } + + /// + /// 账号 + /// + [StringLength(100)] + public string BankAccount { get; set; } + + /// + /// 传真 + /// + [StringLength(100)] + public string Fax { get; set; } + /// /// 备注 /// diff --git a/Code/src/MineTec.ProManager.EntityFrameworkCore/EntityFrameworkCore/ProManagerDbContext.cs b/Code/src/MineTec.ProManager.EntityFrameworkCore/EntityFrameworkCore/ProManagerDbContext.cs index 2a1d068..957d9cf 100644 --- a/Code/src/MineTec.ProManager.EntityFrameworkCore/EntityFrameworkCore/ProManagerDbContext.cs +++ b/Code/src/MineTec.ProManager.EntityFrameworkCore/EntityFrameworkCore/ProManagerDbContext.cs @@ -40,7 +40,7 @@ namespace MineTec.ProManager.EntityFrameworkCore public DbSet BOM_Manager { get; set; } - //视图:添加新表时,若需要更新数据库,需先注释下面的视图注册代码 + //视图:添加新表时,或更新数据库,需先注释下面的视图注册代码 public DbSet ViewGalleryInformation { get; set; } //protected override void OnModelCreating(ModelBuilder modelBuilder) diff --git a/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713154917_addsupplierwords.Designer.cs b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713154917_addsupplierwords.Designer.cs new file mode 100644 index 0000000..9e151d9 --- /dev/null +++ b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713154917_addsupplierwords.Designer.cs @@ -0,0 +1,2652 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using MineTec.ProManager.EntityFrameworkCore; + +namespace MineTec.ProManager.Migrations +{ + [DbContext(typeof(ProManagerDbContext))] + [Migration("20210713154917_addsupplierwords")] + partial class addsupplierwords + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "3.1.5") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Abp.Application.Editions.Edition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.HasKey("Id"); + + b.ToTable("AbpEditions"); + }); + + modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Discriminator") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.HasKey("Id"); + + b.ToTable("AbpFeatures"); + + b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); + }); + + modelBuilder.Entity("Abp.Auditing.AuditLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("BrowserInfo") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("ClientIpAddress") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ClientName") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CustomData") + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.Property("Exception") + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.Property("ExecutionDuration") + .HasColumnType("int"); + + b.Property("ExecutionTime") + .HasColumnType("datetime2"); + + b.Property("ImpersonatorTenantId") + .HasColumnType("int"); + + b.Property("ImpersonatorUserId") + .HasColumnType("bigint"); + + b.Property("MethodName") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("Parameters") + .HasColumnType("nvarchar(1024)") + .HasMaxLength(1024); + + b.Property("ReturnValue") + .HasColumnType("nvarchar(max)"); + + b.Property("ServiceName") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "ExecutionDuration"); + + b.HasIndex("TenantId", "ExecutionTime"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpAuditLogs"); + }); + + modelBuilder.Entity("Abp.Authorization.PermissionSetting", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Discriminator") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("IsGranted") + .HasColumnType("bit"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Name"); + + b.ToTable("AbpPermissions"); + + b.HasDiscriminator("Discriminator").HasValue("PermissionSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ClaimType") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("ClaimValue") + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RoleId"); + + b.HasIndex("TenantId", "ClaimType"); + + b.ToTable("AbpRoleClaims"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserAccount", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("EmailAddress") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("UserLinkId") + .HasColumnType("bigint"); + + b.Property("UserName") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.HasKey("Id"); + + b.HasIndex("EmailAddress"); + + b.HasIndex("UserName"); + + b.HasIndex("TenantId", "EmailAddress"); + + b.HasIndex("TenantId", "UserId"); + + b.HasIndex("TenantId", "UserName"); + + b.ToTable("AbpUserAccounts"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ClaimType") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("ClaimValue") + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "ClaimType"); + + b.ToTable("AbpUserClaims"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("LoginProvider") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("ProviderKey") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "UserId"); + + b.HasIndex("TenantId", "LoginProvider", "ProviderKey"); + + b.ToTable("AbpUserLogins"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserLoginAttempt", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("BrowserInfo") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("ClientIpAddress") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ClientName") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Result") + .HasColumnType("tinyint"); + + b.Property("TenancyName") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("UserNameOrEmailAddress") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.HasKey("Id"); + + b.HasIndex("UserId", "TenantId"); + + b.HasIndex("TenancyName", "UserNameOrEmailAddress", "Result"); + + b.ToTable("AbpUserLoginAttempts"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserOrganizationUnit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("OrganizationUnitId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "OrganizationUnitId"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpUserOrganizationUnits"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "RoleId"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpUserRoles"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ExpireDate") + .HasColumnType("datetime2"); + + b.Property("LoginProvider") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("Name") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("Value") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpUserTokens"); + }); + + modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("IsAbandoned") + .HasColumnType("bit"); + + b.Property("JobArgs") + .IsRequired() + .HasColumnType("nvarchar(max)") + .HasMaxLength(1048576); + + b.Property("JobType") + .IsRequired() + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("LastTryTime") + .HasColumnType("datetime2"); + + b.Property("NextTryTime") + .HasColumnType("datetime2"); + + b.Property("Priority") + .HasColumnType("tinyint"); + + b.Property("TryCount") + .HasColumnType("smallint"); + + b.HasKey("Id"); + + b.HasIndex("IsAbandoned", "NextTryTime"); + + b.ToTable("AbpBackgroundJobs"); + }); + + modelBuilder.Entity("Abp.Configuration.Setting", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("Value") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "Name", "UserId") + .IsUnique(); + + b.ToTable("AbpSettings"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("DynamicPropertyId") + .HasColumnType("int"); + + b.Property("EntityFullName") + .HasColumnType("nvarchar(450)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("DynamicPropertyId"); + + b.HasIndex("EntityFullName", "DynamicPropertyId", "TenantId") + .IsUnique() + .HasFilter("[EntityFullName] IS NOT NULL AND [TenantId] IS NOT NULL"); + + b.ToTable("AbpDynamicEntityProperties"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("DynamicEntityPropertyId") + .HasColumnType("int"); + + b.Property("EntityId") + .HasColumnType("nvarchar(max)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("DynamicEntityPropertyId"); + + b.ToTable("AbpDynamicEntityPropertyValues"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("InputType") + .HasColumnType("nvarchar(max)"); + + b.Property("Permission") + .HasColumnType("nvarchar(max)"); + + b.Property("PropertyName") + .HasColumnType("nvarchar(450)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("PropertyName", "TenantId") + .IsUnique() + .HasFilter("[PropertyName] IS NOT NULL AND [TenantId] IS NOT NULL"); + + b.ToTable("AbpDynamicProperties"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("DynamicPropertyId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("DynamicPropertyId"); + + b.ToTable("AbpDynamicPropertyValues"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ChangeTime") + .HasColumnType("datetime2"); + + b.Property("ChangeType") + .HasColumnType("tinyint"); + + b.Property("EntityChangeSetId") + .HasColumnType("bigint"); + + b.Property("EntityId") + .HasColumnType("nvarchar(48)") + .HasMaxLength(48); + + b.Property("EntityTypeFullName") + .HasColumnType("nvarchar(192)") + .HasMaxLength(192); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("EntityChangeSetId"); + + b.HasIndex("EntityTypeFullName", "EntityId"); + + b.ToTable("AbpEntityChanges"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("BrowserInfo") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("ClientIpAddress") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ClientName") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ExtensionData") + .HasColumnType("nvarchar(max)"); + + b.Property("ImpersonatorTenantId") + .HasColumnType("int"); + + b.Property("ImpersonatorUserId") + .HasColumnType("bigint"); + + b.Property("Reason") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "CreationTime"); + + b.HasIndex("TenantId", "Reason"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpEntityChangeSets"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("EntityChangeId") + .HasColumnType("bigint"); + + b.Property("NewValue") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("OriginalValue") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("PropertyName") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("PropertyTypeFullName") + .HasColumnType("nvarchar(192)") + .HasMaxLength(192); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("EntityChangeId"); + + b.ToTable("AbpEntityPropertyChanges"); + }); + + modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("Icon") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsDisabled") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Name"); + + b.ToTable("AbpLanguages"); + }); + + modelBuilder.Entity("Abp.Localization.ApplicationLanguageText", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Key") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("LanguageName") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Source") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(max)") + .HasMaxLength(67108864); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Source", "LanguageName", "Key"); + + b.ToTable("AbpLanguageTexts"); + }); + + modelBuilder.Entity("Abp.Notifications.NotificationInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Data") + .HasColumnType("nvarchar(max)") + .HasMaxLength(1048576); + + b.Property("DataTypeName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityId") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("EntityTypeAssemblyQualifiedName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityTypeName") + .HasColumnType("nvarchar(250)") + .HasMaxLength(250); + + b.Property("ExcludedUserIds") + .HasColumnType("nvarchar(max)") + .HasMaxLength(131072); + + b.Property("NotificationName") + .IsRequired() + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("Severity") + .HasColumnType("tinyint"); + + b.Property("TenantIds") + .HasColumnType("nvarchar(max)") + .HasMaxLength(131072); + + b.Property("UserIds") + .HasColumnType("nvarchar(max)") + .HasMaxLength(131072); + + b.HasKey("Id"); + + b.ToTable("AbpNotifications"); + }); + + modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("EntityId") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("EntityTypeAssemblyQualifiedName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityTypeName") + .HasColumnType("nvarchar(250)") + .HasMaxLength(250); + + b.Property("NotificationName") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("NotificationName", "EntityTypeName", "EntityId", "UserId"); + + b.HasIndex("TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId"); + + b.ToTable("AbpNotificationSubscriptions"); + }); + + modelBuilder.Entity("Abp.Notifications.TenantNotificationInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Data") + .HasColumnType("nvarchar(max)") + .HasMaxLength(1048576); + + b.Property("DataTypeName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityId") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("EntityTypeAssemblyQualifiedName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityTypeName") + .HasColumnType("nvarchar(250)") + .HasMaxLength(250); + + b.Property("NotificationName") + .IsRequired() + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("Severity") + .HasColumnType("tinyint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId"); + + b.ToTable("AbpTenantNotifications"); + }); + + modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("State") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("TenantNotificationId") + .HasColumnType("uniqueidentifier"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId", "State", "CreationTime"); + + b.ToTable("AbpUserNotifications"); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("Code") + .IsRequired() + .HasColumnType("nvarchar(95)") + .HasMaxLength(95); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("ParentId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("ParentId"); + + b.HasIndex("TenantId", "Code"); + + b.ToTable("AbpOrganizationUnits"); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnitRole", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("OrganizationUnitId") + .HasColumnType("bigint"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "OrganizationUnitId"); + + b.HasIndex("TenantId", "RoleId"); + + b.ToTable("AbpOrganizationUnitRoles"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookEvent", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Data") + .HasColumnType("nvarchar(max)"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("WebhookName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("AbpWebhookEvents"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("Response") + .HasColumnType("nvarchar(max)"); + + b.Property("ResponseStatusCode") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("WebhookEventId") + .HasColumnType("uniqueidentifier"); + + b.Property("WebhookSubscriptionId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("WebhookEventId"); + + b.ToTable("AbpWebhookSendAttempts"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookSubscriptionInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Headers") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActive") + .HasColumnType("bit"); + + b.Property("Secret") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("WebhookUri") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Webhooks") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("AbpWebhookSubscriptions"); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Roles.Role", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("Description") + .HasColumnType("nvarchar(max)") + .HasMaxLength(5000); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("IsDefault") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsStatic") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.Property("NormalizedName") + .IsRequired() + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenantId", "NormalizedName"); + + b.ToTable("AbpRoles"); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Users.User", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("AccessFailedCount") + .HasColumnType("int"); + + b.Property("AuthenticationSource") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("EmailAddress") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("EmailConfirmationCode") + .HasColumnType("nvarchar(328)") + .HasMaxLength(328); + + b.Property("IsActive") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsEmailConfirmed") + .HasColumnType("bit"); + + b.Property("IsLockoutEnabled") + .HasColumnType("bit"); + + b.Property("IsPhoneNumberConfirmed") + .HasColumnType("bit"); + + b.Property("IsTwoFactorEnabled") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("LockoutEndDateUtc") + .HasColumnType("datetime2"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("NormalizedEmailAddress") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("NormalizedUserName") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("Password") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("PasswordResetCode") + .HasColumnType("nvarchar(328)") + .HasMaxLength(328); + + b.Property("PhoneNumber") + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.Property("SecurityStamp") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("Surname") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserName") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.HasKey("Id"); + + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenantId", "NormalizedEmailAddress"); + + b.HasIndex("TenantId", "NormalizedUserName"); + + b.ToTable("AbpUsers"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.FigureNumber.FigureNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FigureNum") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("FigureNumber"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.GalleryFiles.GalleryFiles", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FileName") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("FileNum") + .HasColumnType("nvarchar(max)"); + + b.Property("GalleryInformationID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Subcode") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("GalleryFiles"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.GalleryInformation.GalleryInformation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("GalleryNum") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("GalleryInformation"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.MaterialNumber.MaterialNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialNum") + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("MaterialNumber"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.ProductNumber.ProductNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ProductNum") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("ProductNumber"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM.BOM", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DesignAssyNum") + .HasColumnType("nvarchar(max)"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Name") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOM"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM.BOMDetails", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("Amount") + .HasColumnType("decimal(18,2)"); + + b.Property("AmountOfUnit") + .HasColumnType("decimal(18,2)"); + + b.Property("BOMID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Borrowings") + .HasColumnType("nvarchar(200)") + .HasMaxLength(200); + + b.Property("CodeOrFigureNum") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Materials") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("NameAndSpecs") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Price") + .HasColumnType("decimal(18,2)"); + + b.Property("RelatedPicID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("RelatedPicName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("RelationshipID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("RelationshipName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("SuppliersID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("SuppliersName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Unit") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOMDetails"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM_Manager.BOM_Manager", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("BOMID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("BOMName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("BOM_ProductionID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("BOM_ProductionName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ProductProjectID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("ProductProjectName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOM_Manager"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM_Production.BOMDetails_Production", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("AccessoryCode") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Amount") + .HasColumnType("decimal(18,2)"); + + b.Property("AmountOfUnit") + .HasColumnType("decimal(18,2)"); + + b.Property("BOM_ProductionID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Borrowings") + .HasColumnType("nvarchar(200)") + .HasMaxLength(200); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Materials") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("NameAndSpecs") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Price") + .HasColumnType("decimal(18,2)"); + + b.Property("RelatedPicID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("RelatedPicName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("SuppliersCode") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("SuppliersID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("SuppliersName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Unit") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("WorkingTypeID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("WorkingTypeName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOMDetails_Production"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM_Production.BOM_Production", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DesignAssyNum") + .HasColumnType("nvarchar(max)"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Name") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOM_Production"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Supplier.Supplier", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("Address") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Bank") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("BankaAcount") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Contacts") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreditCode") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Email") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Fax") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Fixedtelephone") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Mainbusiness") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Mobilephone") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Price") + .HasColumnType("decimal(18,2)"); + + b.Property("Price_old") + .HasColumnType("decimal(18,2)"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("SupplierCode") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("SupplierName") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Supplygoods_services") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Website") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.HasKey("Id"); + + b.ToTable("Supplier"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.UserInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("Account") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("CellPhoneNum") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeptID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("DeptName") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("IsAdmin") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("IsLeaving") + .HasColumnType("int"); + + b.Property("PassWord") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("PostID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("PostName") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("PowerLevel") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Remake") + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.Property("Sex") + .HasColumnType("int"); + + b.Property("TelPhoneNum") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UserName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("WorkNo") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.HasKey("Id"); + + b.ToTable("UserInfo"); + }); + + modelBuilder.Entity("MineTec.ProManager.MultiTenancy.Tenant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ConnectionString") + .HasColumnType("nvarchar(1024)") + .HasMaxLength(1024); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("EditionId") + .HasColumnType("int"); + + b.Property("IsActive") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenancyName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.HasKey("Id"); + + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("EditionId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenancyName"); + + b.ToTable("AbpTenants"); + }); + + modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => + { + b.HasBaseType("Abp.Application.Features.FeatureSetting"); + + b.Property("EditionId") + .HasColumnType("int"); + + b.HasIndex("EditionId", "Name"); + + b.ToTable("AbpFeatures"); + + b.HasDiscriminator().HasValue("EditionFeatureSetting"); + }); + + modelBuilder.Entity("Abp.MultiTenancy.TenantFeatureSetting", b => + { + b.HasBaseType("Abp.Application.Features.FeatureSetting"); + + b.HasIndex("TenantId", "Name"); + + b.ToTable("AbpFeatures"); + + b.HasDiscriminator().HasValue("TenantFeatureSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => + { + b.HasBaseType("Abp.Authorization.PermissionSetting"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.HasIndex("RoleId"); + + b.ToTable("AbpPermissions"); + + b.HasDiscriminator().HasValue("RolePermissionSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => + { + b.HasBaseType("Abp.Authorization.PermissionSetting"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasIndex("UserId"); + + b.ToTable("AbpPermissions"); + + b.HasDiscriminator().HasValue("UserPermissionSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => + { + b.HasOne("MineTec.ProManager.Authorization.Roles.Role", null) + .WithMany("Claims") + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Claims") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Logins") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Roles") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Tokens") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Configuration.Setting", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Settings") + .HasForeignKey("UserId"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityProperty", b => + { + b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") + .WithMany() + .HasForeignKey("DynamicPropertyId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => + { + b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty") + .WithMany() + .HasForeignKey("DynamicEntityPropertyId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => + { + b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") + .WithMany("DynamicPropertyValues") + .HasForeignKey("DynamicPropertyId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => + { + b.HasOne("Abp.EntityHistory.EntityChangeSet", null) + .WithMany("EntityChanges") + .HasForeignKey("EntityChangeSetId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => + { + b.HasOne("Abp.EntityHistory.EntityChange", null) + .WithMany("PropertyChanges") + .HasForeignKey("EntityChangeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => + { + b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") + .WithMany("Children") + .HasForeignKey("ParentId"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => + { + b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") + .WithMany() + .HasForeignKey("WebhookEventId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Roles.Role", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Users.User", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + }); + + modelBuilder.Entity("MineTec.ProManager.MultiTenancy.Tenant", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("Abp.Application.Editions.Edition", "Edition") + .WithMany() + .HasForeignKey("EditionId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + }); + + modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => + { + b.HasOne("Abp.Application.Editions.Edition", "Edition") + .WithMany() + .HasForeignKey("EditionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => + { + b.HasOne("MineTec.ProManager.Authorization.Roles.Role", null) + .WithMany("Permissions") + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Permissions") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713154917_addsupplierwords.cs b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713154917_addsupplierwords.cs new file mode 100644 index 0000000..0ba0433 --- /dev/null +++ b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713154917_addsupplierwords.cs @@ -0,0 +1,84 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace MineTec.ProManager.Migrations +{ + public partial class addsupplierwords : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "Bank", + table: "Supplier", + maxLength: 100, + nullable: true); + + migrationBuilder.AddColumn( + name: "BankaAcount", + table: "Supplier", + maxLength: 100, + nullable: true); + + migrationBuilder.AddColumn( + name: "CreditCode", + table: "Supplier", + maxLength: 100, + nullable: true); + + migrationBuilder.AddColumn( + name: "Fax", + table: "Supplier", + maxLength: 100, + nullable: true); + + migrationBuilder.CreateTable( + name: "BOM_Manager", + columns: table => new + { + Id = table.Column(nullable: false), + CreateTime = table.Column(nullable: true), + CreateUserID = table.Column(maxLength: 50, nullable: true), + CreateUserName = table.Column(maxLength: 50, nullable: true), + UpdateTime = table.Column(nullable: true), + UpdateUserID = table.Column(maxLength: 50, nullable: true), + UpdateUserName = table.Column(maxLength: 50, nullable: true), + ProductProjectID = table.Column(maxLength: 50, nullable: true), + ProductProjectName = table.Column(maxLength: 50, nullable: true), + BOMID = table.Column(maxLength: 50, nullable: true), + BOMName = table.Column(maxLength: 50, nullable: true), + BOM_ProductionID = table.Column(maxLength: 50, nullable: true), + BOM_ProductionName = table.Column(maxLength: 50, nullable: true), + Remark = table.Column(maxLength: 300, nullable: true), + IsAnnex = table.Column(nullable: false), + IsDelete = table.Column(nullable: false), + CreationTime = table.Column(nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_BOM_Manager", x => x.Id); + }); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "BOM_Manager"); + + migrationBuilder.DropColumn( + name: "Bank", + table: "Supplier"); + + migrationBuilder.DropColumn( + name: "BankaAcount", + table: "Supplier"); + + migrationBuilder.DropColumn( + name: "CreditCode", + table: "Supplier"); + + migrationBuilder.DropColumn( + name: "Fax", + table: "Supplier"); + } + } +} diff --git a/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713155600_updatesupplierwords.Designer.cs b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713155600_updatesupplierwords.Designer.cs new file mode 100644 index 0000000..f262498 --- /dev/null +++ b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713155600_updatesupplierwords.Designer.cs @@ -0,0 +1,2652 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using MineTec.ProManager.EntityFrameworkCore; + +namespace MineTec.ProManager.Migrations +{ + [DbContext(typeof(ProManagerDbContext))] + [Migration("20210713155600_updatesupplierwords")] + partial class updatesupplierwords + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "3.1.5") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Abp.Application.Editions.Edition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.HasKey("Id"); + + b.ToTable("AbpEditions"); + }); + + modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Discriminator") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.HasKey("Id"); + + b.ToTable("AbpFeatures"); + + b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); + }); + + modelBuilder.Entity("Abp.Auditing.AuditLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("BrowserInfo") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("ClientIpAddress") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ClientName") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CustomData") + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.Property("Exception") + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.Property("ExecutionDuration") + .HasColumnType("int"); + + b.Property("ExecutionTime") + .HasColumnType("datetime2"); + + b.Property("ImpersonatorTenantId") + .HasColumnType("int"); + + b.Property("ImpersonatorUserId") + .HasColumnType("bigint"); + + b.Property("MethodName") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("Parameters") + .HasColumnType("nvarchar(1024)") + .HasMaxLength(1024); + + b.Property("ReturnValue") + .HasColumnType("nvarchar(max)"); + + b.Property("ServiceName") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "ExecutionDuration"); + + b.HasIndex("TenantId", "ExecutionTime"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpAuditLogs"); + }); + + modelBuilder.Entity("Abp.Authorization.PermissionSetting", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Discriminator") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("IsGranted") + .HasColumnType("bit"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Name"); + + b.ToTable("AbpPermissions"); + + b.HasDiscriminator("Discriminator").HasValue("PermissionSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ClaimType") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("ClaimValue") + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RoleId"); + + b.HasIndex("TenantId", "ClaimType"); + + b.ToTable("AbpRoleClaims"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserAccount", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("EmailAddress") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("UserLinkId") + .HasColumnType("bigint"); + + b.Property("UserName") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.HasKey("Id"); + + b.HasIndex("EmailAddress"); + + b.HasIndex("UserName"); + + b.HasIndex("TenantId", "EmailAddress"); + + b.HasIndex("TenantId", "UserId"); + + b.HasIndex("TenantId", "UserName"); + + b.ToTable("AbpUserAccounts"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ClaimType") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("ClaimValue") + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "ClaimType"); + + b.ToTable("AbpUserClaims"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("LoginProvider") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("ProviderKey") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "UserId"); + + b.HasIndex("TenantId", "LoginProvider", "ProviderKey"); + + b.ToTable("AbpUserLogins"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserLoginAttempt", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("BrowserInfo") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("ClientIpAddress") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ClientName") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Result") + .HasColumnType("tinyint"); + + b.Property("TenancyName") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("UserNameOrEmailAddress") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.HasKey("Id"); + + b.HasIndex("UserId", "TenantId"); + + b.HasIndex("TenancyName", "UserNameOrEmailAddress", "Result"); + + b.ToTable("AbpUserLoginAttempts"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserOrganizationUnit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("OrganizationUnitId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "OrganizationUnitId"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpUserOrganizationUnits"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "RoleId"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpUserRoles"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ExpireDate") + .HasColumnType("datetime2"); + + b.Property("LoginProvider") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("Name") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("Value") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpUserTokens"); + }); + + modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("IsAbandoned") + .HasColumnType("bit"); + + b.Property("JobArgs") + .IsRequired() + .HasColumnType("nvarchar(max)") + .HasMaxLength(1048576); + + b.Property("JobType") + .IsRequired() + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("LastTryTime") + .HasColumnType("datetime2"); + + b.Property("NextTryTime") + .HasColumnType("datetime2"); + + b.Property("Priority") + .HasColumnType("tinyint"); + + b.Property("TryCount") + .HasColumnType("smallint"); + + b.HasKey("Id"); + + b.HasIndex("IsAbandoned", "NextTryTime"); + + b.ToTable("AbpBackgroundJobs"); + }); + + modelBuilder.Entity("Abp.Configuration.Setting", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("Value") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "Name", "UserId") + .IsUnique(); + + b.ToTable("AbpSettings"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("DynamicPropertyId") + .HasColumnType("int"); + + b.Property("EntityFullName") + .HasColumnType("nvarchar(450)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("DynamicPropertyId"); + + b.HasIndex("EntityFullName", "DynamicPropertyId", "TenantId") + .IsUnique() + .HasFilter("[EntityFullName] IS NOT NULL AND [TenantId] IS NOT NULL"); + + b.ToTable("AbpDynamicEntityProperties"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("DynamicEntityPropertyId") + .HasColumnType("int"); + + b.Property("EntityId") + .HasColumnType("nvarchar(max)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("DynamicEntityPropertyId"); + + b.ToTable("AbpDynamicEntityPropertyValues"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("InputType") + .HasColumnType("nvarchar(max)"); + + b.Property("Permission") + .HasColumnType("nvarchar(max)"); + + b.Property("PropertyName") + .HasColumnType("nvarchar(450)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("PropertyName", "TenantId") + .IsUnique() + .HasFilter("[PropertyName] IS NOT NULL AND [TenantId] IS NOT NULL"); + + b.ToTable("AbpDynamicProperties"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("DynamicPropertyId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("DynamicPropertyId"); + + b.ToTable("AbpDynamicPropertyValues"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ChangeTime") + .HasColumnType("datetime2"); + + b.Property("ChangeType") + .HasColumnType("tinyint"); + + b.Property("EntityChangeSetId") + .HasColumnType("bigint"); + + b.Property("EntityId") + .HasColumnType("nvarchar(48)") + .HasMaxLength(48); + + b.Property("EntityTypeFullName") + .HasColumnType("nvarchar(192)") + .HasMaxLength(192); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("EntityChangeSetId"); + + b.HasIndex("EntityTypeFullName", "EntityId"); + + b.ToTable("AbpEntityChanges"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("BrowserInfo") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("ClientIpAddress") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ClientName") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ExtensionData") + .HasColumnType("nvarchar(max)"); + + b.Property("ImpersonatorTenantId") + .HasColumnType("int"); + + b.Property("ImpersonatorUserId") + .HasColumnType("bigint"); + + b.Property("Reason") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "CreationTime"); + + b.HasIndex("TenantId", "Reason"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpEntityChangeSets"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("EntityChangeId") + .HasColumnType("bigint"); + + b.Property("NewValue") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("OriginalValue") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("PropertyName") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("PropertyTypeFullName") + .HasColumnType("nvarchar(192)") + .HasMaxLength(192); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("EntityChangeId"); + + b.ToTable("AbpEntityPropertyChanges"); + }); + + modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("Icon") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsDisabled") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Name"); + + b.ToTable("AbpLanguages"); + }); + + modelBuilder.Entity("Abp.Localization.ApplicationLanguageText", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Key") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("LanguageName") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Source") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(max)") + .HasMaxLength(67108864); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Source", "LanguageName", "Key"); + + b.ToTable("AbpLanguageTexts"); + }); + + modelBuilder.Entity("Abp.Notifications.NotificationInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Data") + .HasColumnType("nvarchar(max)") + .HasMaxLength(1048576); + + b.Property("DataTypeName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityId") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("EntityTypeAssemblyQualifiedName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityTypeName") + .HasColumnType("nvarchar(250)") + .HasMaxLength(250); + + b.Property("ExcludedUserIds") + .HasColumnType("nvarchar(max)") + .HasMaxLength(131072); + + b.Property("NotificationName") + .IsRequired() + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("Severity") + .HasColumnType("tinyint"); + + b.Property("TenantIds") + .HasColumnType("nvarchar(max)") + .HasMaxLength(131072); + + b.Property("UserIds") + .HasColumnType("nvarchar(max)") + .HasMaxLength(131072); + + b.HasKey("Id"); + + b.ToTable("AbpNotifications"); + }); + + modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("EntityId") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("EntityTypeAssemblyQualifiedName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityTypeName") + .HasColumnType("nvarchar(250)") + .HasMaxLength(250); + + b.Property("NotificationName") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("NotificationName", "EntityTypeName", "EntityId", "UserId"); + + b.HasIndex("TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId"); + + b.ToTable("AbpNotificationSubscriptions"); + }); + + modelBuilder.Entity("Abp.Notifications.TenantNotificationInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Data") + .HasColumnType("nvarchar(max)") + .HasMaxLength(1048576); + + b.Property("DataTypeName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityId") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("EntityTypeAssemblyQualifiedName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityTypeName") + .HasColumnType("nvarchar(250)") + .HasMaxLength(250); + + b.Property("NotificationName") + .IsRequired() + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("Severity") + .HasColumnType("tinyint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId"); + + b.ToTable("AbpTenantNotifications"); + }); + + modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("State") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("TenantNotificationId") + .HasColumnType("uniqueidentifier"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId", "State", "CreationTime"); + + b.ToTable("AbpUserNotifications"); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("Code") + .IsRequired() + .HasColumnType("nvarchar(95)") + .HasMaxLength(95); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("ParentId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("ParentId"); + + b.HasIndex("TenantId", "Code"); + + b.ToTable("AbpOrganizationUnits"); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnitRole", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("OrganizationUnitId") + .HasColumnType("bigint"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "OrganizationUnitId"); + + b.HasIndex("TenantId", "RoleId"); + + b.ToTable("AbpOrganizationUnitRoles"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookEvent", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Data") + .HasColumnType("nvarchar(max)"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("WebhookName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("AbpWebhookEvents"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("Response") + .HasColumnType("nvarchar(max)"); + + b.Property("ResponseStatusCode") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("WebhookEventId") + .HasColumnType("uniqueidentifier"); + + b.Property("WebhookSubscriptionId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("WebhookEventId"); + + b.ToTable("AbpWebhookSendAttempts"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookSubscriptionInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Headers") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActive") + .HasColumnType("bit"); + + b.Property("Secret") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("WebhookUri") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Webhooks") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("AbpWebhookSubscriptions"); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Roles.Role", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("Description") + .HasColumnType("nvarchar(max)") + .HasMaxLength(5000); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("IsDefault") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsStatic") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.Property("NormalizedName") + .IsRequired() + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenantId", "NormalizedName"); + + b.ToTable("AbpRoles"); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Users.User", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("AccessFailedCount") + .HasColumnType("int"); + + b.Property("AuthenticationSource") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("EmailAddress") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("EmailConfirmationCode") + .HasColumnType("nvarchar(328)") + .HasMaxLength(328); + + b.Property("IsActive") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsEmailConfirmed") + .HasColumnType("bit"); + + b.Property("IsLockoutEnabled") + .HasColumnType("bit"); + + b.Property("IsPhoneNumberConfirmed") + .HasColumnType("bit"); + + b.Property("IsTwoFactorEnabled") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("LockoutEndDateUtc") + .HasColumnType("datetime2"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("NormalizedEmailAddress") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("NormalizedUserName") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("Password") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("PasswordResetCode") + .HasColumnType("nvarchar(328)") + .HasMaxLength(328); + + b.Property("PhoneNumber") + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.Property("SecurityStamp") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("Surname") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserName") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.HasKey("Id"); + + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenantId", "NormalizedEmailAddress"); + + b.HasIndex("TenantId", "NormalizedUserName"); + + b.ToTable("AbpUsers"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.FigureNumber.FigureNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FigureNum") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("FigureNumber"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.GalleryFiles.GalleryFiles", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FileName") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("FileNum") + .HasColumnType("nvarchar(max)"); + + b.Property("GalleryInformationID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Subcode") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("GalleryFiles"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.GalleryInformation.GalleryInformation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("GalleryNum") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("GalleryInformation"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.MaterialNumber.MaterialNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialNum") + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("MaterialNumber"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.ProductNumber.ProductNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ProductNum") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("ProductNumber"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM.BOM", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DesignAssyNum") + .HasColumnType("nvarchar(max)"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Name") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOM"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM.BOMDetails", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("Amount") + .HasColumnType("decimal(18,2)"); + + b.Property("AmountOfUnit") + .HasColumnType("decimal(18,2)"); + + b.Property("BOMID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Borrowings") + .HasColumnType("nvarchar(200)") + .HasMaxLength(200); + + b.Property("CodeOrFigureNum") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Materials") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("NameAndSpecs") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Price") + .HasColumnType("decimal(18,2)"); + + b.Property("RelatedPicID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("RelatedPicName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("RelationshipID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("RelationshipName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("SuppliersID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("SuppliersName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Unit") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOMDetails"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM_Manager.BOM_Manager", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("BOMID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("BOMName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("BOM_ProductionID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("BOM_ProductionName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ProductProjectID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("ProductProjectName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOM_Manager"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM_Production.BOMDetails_Production", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("AccessoryCode") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Amount") + .HasColumnType("decimal(18,2)"); + + b.Property("AmountOfUnit") + .HasColumnType("decimal(18,2)"); + + b.Property("BOM_ProductionID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Borrowings") + .HasColumnType("nvarchar(200)") + .HasMaxLength(200); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Materials") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("NameAndSpecs") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Price") + .HasColumnType("decimal(18,2)"); + + b.Property("RelatedPicID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("RelatedPicName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("SuppliersCode") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("SuppliersID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("SuppliersName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Unit") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("WorkingTypeID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("WorkingTypeName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOMDetails_Production"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM_Production.BOM_Production", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DesignAssyNum") + .HasColumnType("nvarchar(max)"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Name") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOM_Production"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Supplier.Supplier", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("Address") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Bank") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("BankAcount") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Contacts") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreditCode") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Email") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Fax") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Fixedtelephone") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Mainbusiness") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Mobilephone") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Price") + .HasColumnType("decimal(18,2)"); + + b.Property("Price_old") + .HasColumnType("decimal(18,2)"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("SupplierCode") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("SupplierName") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Supplygoods_services") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Website") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.HasKey("Id"); + + b.ToTable("Supplier"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.UserInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("Account") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("CellPhoneNum") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeptID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("DeptName") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("IsAdmin") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("IsLeaving") + .HasColumnType("int"); + + b.Property("PassWord") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("PostID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("PostName") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("PowerLevel") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Remake") + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.Property("Sex") + .HasColumnType("int"); + + b.Property("TelPhoneNum") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UserName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("WorkNo") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.HasKey("Id"); + + b.ToTable("UserInfo"); + }); + + modelBuilder.Entity("MineTec.ProManager.MultiTenancy.Tenant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ConnectionString") + .HasColumnType("nvarchar(1024)") + .HasMaxLength(1024); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("EditionId") + .HasColumnType("int"); + + b.Property("IsActive") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenancyName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.HasKey("Id"); + + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("EditionId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenancyName"); + + b.ToTable("AbpTenants"); + }); + + modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => + { + b.HasBaseType("Abp.Application.Features.FeatureSetting"); + + b.Property("EditionId") + .HasColumnType("int"); + + b.HasIndex("EditionId", "Name"); + + b.ToTable("AbpFeatures"); + + b.HasDiscriminator().HasValue("EditionFeatureSetting"); + }); + + modelBuilder.Entity("Abp.MultiTenancy.TenantFeatureSetting", b => + { + b.HasBaseType("Abp.Application.Features.FeatureSetting"); + + b.HasIndex("TenantId", "Name"); + + b.ToTable("AbpFeatures"); + + b.HasDiscriminator().HasValue("TenantFeatureSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => + { + b.HasBaseType("Abp.Authorization.PermissionSetting"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.HasIndex("RoleId"); + + b.ToTable("AbpPermissions"); + + b.HasDiscriminator().HasValue("RolePermissionSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => + { + b.HasBaseType("Abp.Authorization.PermissionSetting"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasIndex("UserId"); + + b.ToTable("AbpPermissions"); + + b.HasDiscriminator().HasValue("UserPermissionSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => + { + b.HasOne("MineTec.ProManager.Authorization.Roles.Role", null) + .WithMany("Claims") + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Claims") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Logins") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Roles") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Tokens") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Configuration.Setting", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Settings") + .HasForeignKey("UserId"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityProperty", b => + { + b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") + .WithMany() + .HasForeignKey("DynamicPropertyId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => + { + b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty") + .WithMany() + .HasForeignKey("DynamicEntityPropertyId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => + { + b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") + .WithMany("DynamicPropertyValues") + .HasForeignKey("DynamicPropertyId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => + { + b.HasOne("Abp.EntityHistory.EntityChangeSet", null) + .WithMany("EntityChanges") + .HasForeignKey("EntityChangeSetId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => + { + b.HasOne("Abp.EntityHistory.EntityChange", null) + .WithMany("PropertyChanges") + .HasForeignKey("EntityChangeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => + { + b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") + .WithMany("Children") + .HasForeignKey("ParentId"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => + { + b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") + .WithMany() + .HasForeignKey("WebhookEventId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Roles.Role", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Users.User", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + }); + + modelBuilder.Entity("MineTec.ProManager.MultiTenancy.Tenant", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("Abp.Application.Editions.Edition", "Edition") + .WithMany() + .HasForeignKey("EditionId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + }); + + modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => + { + b.HasOne("Abp.Application.Editions.Edition", "Edition") + .WithMany() + .HasForeignKey("EditionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => + { + b.HasOne("MineTec.ProManager.Authorization.Roles.Role", null) + .WithMany("Permissions") + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Permissions") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713155600_updatesupplierwords.cs b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713155600_updatesupplierwords.cs new file mode 100644 index 0000000..0de0434 --- /dev/null +++ b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713155600_updatesupplierwords.cs @@ -0,0 +1,34 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace MineTec.ProManager.Migrations +{ + public partial class updatesupplierwords : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "BankaAcount", + table: "Supplier"); + + migrationBuilder.AddColumn( + name: "BankAcount", + table: "Supplier", + maxLength: 100, + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "BankAcount", + table: "Supplier"); + + migrationBuilder.AddColumn( + name: "BankaAcount", + table: "Supplier", + type: "nvarchar(100)", + maxLength: 100, + nullable: true); + } + } +} diff --git a/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713161553_updatesupplierwords2.Designer.cs b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713161553_updatesupplierwords2.Designer.cs new file mode 100644 index 0000000..9fb476e --- /dev/null +++ b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713161553_updatesupplierwords2.Designer.cs @@ -0,0 +1,2652 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using MineTec.ProManager.EntityFrameworkCore; + +namespace MineTec.ProManager.Migrations +{ + [DbContext(typeof(ProManagerDbContext))] + [Migration("20210713161553_updatesupplierwords2")] + partial class updatesupplierwords2 + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "3.1.5") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Abp.Application.Editions.Edition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.HasKey("Id"); + + b.ToTable("AbpEditions"); + }); + + modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Discriminator") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.HasKey("Id"); + + b.ToTable("AbpFeatures"); + + b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); + }); + + modelBuilder.Entity("Abp.Auditing.AuditLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("BrowserInfo") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("ClientIpAddress") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ClientName") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CustomData") + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.Property("Exception") + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.Property("ExecutionDuration") + .HasColumnType("int"); + + b.Property("ExecutionTime") + .HasColumnType("datetime2"); + + b.Property("ImpersonatorTenantId") + .HasColumnType("int"); + + b.Property("ImpersonatorUserId") + .HasColumnType("bigint"); + + b.Property("MethodName") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("Parameters") + .HasColumnType("nvarchar(1024)") + .HasMaxLength(1024); + + b.Property("ReturnValue") + .HasColumnType("nvarchar(max)"); + + b.Property("ServiceName") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "ExecutionDuration"); + + b.HasIndex("TenantId", "ExecutionTime"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpAuditLogs"); + }); + + modelBuilder.Entity("Abp.Authorization.PermissionSetting", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Discriminator") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("IsGranted") + .HasColumnType("bit"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Name"); + + b.ToTable("AbpPermissions"); + + b.HasDiscriminator("Discriminator").HasValue("PermissionSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ClaimType") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("ClaimValue") + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("RoleId"); + + b.HasIndex("TenantId", "ClaimType"); + + b.ToTable("AbpRoleClaims"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserAccount", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("EmailAddress") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("UserLinkId") + .HasColumnType("bigint"); + + b.Property("UserName") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.HasKey("Id"); + + b.HasIndex("EmailAddress"); + + b.HasIndex("UserName"); + + b.HasIndex("TenantId", "EmailAddress"); + + b.HasIndex("TenantId", "UserId"); + + b.HasIndex("TenantId", "UserName"); + + b.ToTable("AbpUserAccounts"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ClaimType") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("ClaimValue") + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "ClaimType"); + + b.ToTable("AbpUserClaims"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("LoginProvider") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("ProviderKey") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "UserId"); + + b.HasIndex("TenantId", "LoginProvider", "ProviderKey"); + + b.ToTable("AbpUserLogins"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserLoginAttempt", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("BrowserInfo") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("ClientIpAddress") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ClientName") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Result") + .HasColumnType("tinyint"); + + b.Property("TenancyName") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("UserNameOrEmailAddress") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.HasKey("Id"); + + b.HasIndex("UserId", "TenantId"); + + b.HasIndex("TenancyName", "UserNameOrEmailAddress", "Result"); + + b.ToTable("AbpUserLoginAttempts"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserOrganizationUnit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("OrganizationUnitId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "OrganizationUnitId"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpUserOrganizationUnits"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "RoleId"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpUserRoles"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ExpireDate") + .HasColumnType("datetime2"); + + b.Property("LoginProvider") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("Name") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("Value") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpUserTokens"); + }); + + modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("IsAbandoned") + .HasColumnType("bit"); + + b.Property("JobArgs") + .IsRequired() + .HasColumnType("nvarchar(max)") + .HasMaxLength(1048576); + + b.Property("JobType") + .IsRequired() + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("LastTryTime") + .HasColumnType("datetime2"); + + b.Property("NextTryTime") + .HasColumnType("datetime2"); + + b.Property("Priority") + .HasColumnType("tinyint"); + + b.Property("TryCount") + .HasColumnType("smallint"); + + b.HasKey("Id"); + + b.HasIndex("IsAbandoned", "NextTryTime"); + + b.ToTable("AbpBackgroundJobs"); + }); + + modelBuilder.Entity("Abp.Configuration.Setting", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.Property("Value") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.HasIndex("TenantId", "Name", "UserId") + .IsUnique(); + + b.ToTable("AbpSettings"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("DynamicPropertyId") + .HasColumnType("int"); + + b.Property("EntityFullName") + .HasColumnType("nvarchar(450)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("DynamicPropertyId"); + + b.HasIndex("EntityFullName", "DynamicPropertyId", "TenantId") + .IsUnique() + .HasFilter("[EntityFullName] IS NOT NULL AND [TenantId] IS NOT NULL"); + + b.ToTable("AbpDynamicEntityProperties"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("DynamicEntityPropertyId") + .HasColumnType("int"); + + b.Property("EntityId") + .HasColumnType("nvarchar(max)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("DynamicEntityPropertyId"); + + b.ToTable("AbpDynamicEntityPropertyValues"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("InputType") + .HasColumnType("nvarchar(max)"); + + b.Property("Permission") + .HasColumnType("nvarchar(max)"); + + b.Property("PropertyName") + .HasColumnType("nvarchar(450)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("PropertyName", "TenantId") + .IsUnique() + .HasFilter("[PropertyName] IS NOT NULL AND [TenantId] IS NOT NULL"); + + b.ToTable("AbpDynamicProperties"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("DynamicPropertyId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("DynamicPropertyId"); + + b.ToTable("AbpDynamicPropertyValues"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ChangeTime") + .HasColumnType("datetime2"); + + b.Property("ChangeType") + .HasColumnType("tinyint"); + + b.Property("EntityChangeSetId") + .HasColumnType("bigint"); + + b.Property("EntityId") + .HasColumnType("nvarchar(48)") + .HasMaxLength(48); + + b.Property("EntityTypeFullName") + .HasColumnType("nvarchar(192)") + .HasMaxLength(192); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("EntityChangeSetId"); + + b.HasIndex("EntityTypeFullName", "EntityId"); + + b.ToTable("AbpEntityChanges"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("BrowserInfo") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("ClientIpAddress") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ClientName") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ExtensionData") + .HasColumnType("nvarchar(max)"); + + b.Property("ImpersonatorTenantId") + .HasColumnType("int"); + + b.Property("ImpersonatorUserId") + .HasColumnType("bigint"); + + b.Property("Reason") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "CreationTime"); + + b.HasIndex("TenantId", "Reason"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpEntityChangeSets"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("EntityChangeId") + .HasColumnType("bigint"); + + b.Property("NewValue") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("OriginalValue") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("PropertyName") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("PropertyTypeFullName") + .HasColumnType("nvarchar(192)") + .HasMaxLength(192); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("EntityChangeId"); + + b.ToTable("AbpEntityPropertyChanges"); + }); + + modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("Icon") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsDisabled") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Name"); + + b.ToTable("AbpLanguages"); + }); + + modelBuilder.Entity("Abp.Localization.ApplicationLanguageText", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Key") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("LanguageName") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Source") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("Value") + .IsRequired() + .HasColumnType("nvarchar(max)") + .HasMaxLength(67108864); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Source", "LanguageName", "Key"); + + b.ToTable("AbpLanguageTexts"); + }); + + modelBuilder.Entity("Abp.Notifications.NotificationInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Data") + .HasColumnType("nvarchar(max)") + .HasMaxLength(1048576); + + b.Property("DataTypeName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityId") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("EntityTypeAssemblyQualifiedName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityTypeName") + .HasColumnType("nvarchar(250)") + .HasMaxLength(250); + + b.Property("ExcludedUserIds") + .HasColumnType("nvarchar(max)") + .HasMaxLength(131072); + + b.Property("NotificationName") + .IsRequired() + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("Severity") + .HasColumnType("tinyint"); + + b.Property("TenantIds") + .HasColumnType("nvarchar(max)") + .HasMaxLength(131072); + + b.Property("UserIds") + .HasColumnType("nvarchar(max)") + .HasMaxLength(131072); + + b.HasKey("Id"); + + b.ToTable("AbpNotifications"); + }); + + modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("EntityId") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("EntityTypeAssemblyQualifiedName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityTypeName") + .HasColumnType("nvarchar(250)") + .HasMaxLength(250); + + b.Property("NotificationName") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("NotificationName", "EntityTypeName", "EntityId", "UserId"); + + b.HasIndex("TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId"); + + b.ToTable("AbpNotificationSubscriptions"); + }); + + modelBuilder.Entity("Abp.Notifications.TenantNotificationInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Data") + .HasColumnType("nvarchar(max)") + .HasMaxLength(1048576); + + b.Property("DataTypeName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityId") + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("EntityTypeAssemblyQualifiedName") + .HasColumnType("nvarchar(512)") + .HasMaxLength(512); + + b.Property("EntityTypeName") + .HasColumnType("nvarchar(250)") + .HasMaxLength(250); + + b.Property("NotificationName") + .IsRequired() + .HasColumnType("nvarchar(96)") + .HasMaxLength(96); + + b.Property("Severity") + .HasColumnType("tinyint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId"); + + b.ToTable("AbpTenantNotifications"); + }); + + modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("State") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("TenantNotificationId") + .HasColumnType("uniqueidentifier"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("UserId", "State", "CreationTime"); + + b.ToTable("AbpUserNotifications"); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("Code") + .IsRequired() + .HasColumnType("nvarchar(95)") + .HasMaxLength(95); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("ParentId") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("ParentId"); + + b.HasIndex("TenantId", "Code"); + + b.ToTable("AbpOrganizationUnits"); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnitRole", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("OrganizationUnitId") + .HasColumnType("bigint"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "OrganizationUnitId"); + + b.HasIndex("TenantId", "RoleId"); + + b.ToTable("AbpOrganizationUnitRoles"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookEvent", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Data") + .HasColumnType("nvarchar(max)"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("WebhookName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("AbpWebhookEvents"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("Response") + .HasColumnType("nvarchar(max)"); + + b.Property("ResponseStatusCode") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("WebhookEventId") + .HasColumnType("uniqueidentifier"); + + b.Property("WebhookSubscriptionId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("WebhookEventId"); + + b.ToTable("AbpWebhookSendAttempts"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookSubscriptionInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("Headers") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActive") + .HasColumnType("bit"); + + b.Property("Secret") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("WebhookUri") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Webhooks") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("AbpWebhookSubscriptions"); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Roles.Role", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("Description") + .HasColumnType("nvarchar(max)") + .HasMaxLength(5000); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("IsDefault") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsStatic") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.Property("NormalizedName") + .IsRequired() + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.Property("TenantId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenantId", "NormalizedName"); + + b.ToTable("AbpRoles"); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Users.User", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("AccessFailedCount") + .HasColumnType("int"); + + b.Property("AuthenticationSource") + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("EmailAddress") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("EmailConfirmationCode") + .HasColumnType("nvarchar(328)") + .HasMaxLength(328); + + b.Property("IsActive") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsEmailConfirmed") + .HasColumnType("bit"); + + b.Property("IsLockoutEnabled") + .HasColumnType("bit"); + + b.Property("IsPhoneNumberConfirmed") + .HasColumnType("bit"); + + b.Property("IsTwoFactorEnabled") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("LockoutEndDateUtc") + .HasColumnType("datetime2"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("NormalizedEmailAddress") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("NormalizedUserName") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.Property("Password") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("PasswordResetCode") + .HasColumnType("nvarchar(328)") + .HasMaxLength(328); + + b.Property("PhoneNumber") + .HasColumnType("nvarchar(32)") + .HasMaxLength(32); + + b.Property("SecurityStamp") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("Surname") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.Property("TenantId") + .HasColumnType("int"); + + b.Property("UserName") + .IsRequired() + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + b.HasKey("Id"); + + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenantId", "NormalizedEmailAddress"); + + b.HasIndex("TenantId", "NormalizedUserName"); + + b.ToTable("AbpUsers"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.FigureNumber.FigureNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FigureNum") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("FigureNumber"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.GalleryFiles.GalleryFiles", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FileName") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("FileNum") + .HasColumnType("nvarchar(max)"); + + b.Property("GalleryInformationID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Subcode") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("GalleryFiles"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.GalleryInformation.GalleryInformation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("GalleryNum") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("GalleryInformation"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.MaterialNumber.MaterialNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialNum") + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("MaterialNumber"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Graphic.ProductNumber.ProductNumber", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ProductNum") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("ProductNumber"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM.BOM", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DesignAssyNum") + .HasColumnType("nvarchar(max)"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Name") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOM"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM.BOMDetails", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("Amount") + .HasColumnType("decimal(18,2)"); + + b.Property("AmountOfUnit") + .HasColumnType("decimal(18,2)"); + + b.Property("BOMID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Borrowings") + .HasColumnType("nvarchar(200)") + .HasMaxLength(200); + + b.Property("CodeOrFigureNum") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Materials") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("NameAndSpecs") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Price") + .HasColumnType("decimal(18,2)"); + + b.Property("RelatedPicID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("RelatedPicName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("RelationshipID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("RelationshipName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("SuppliersID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("SuppliersName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Unit") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOMDetails"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM_Manager.BOM_Manager", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("BOMID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("BOMName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("BOM_ProductionID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("BOM_ProductionName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ProductProjectID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("ProductProjectName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOM_Manager"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM_Production.BOMDetails_Production", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("AccessoryCode") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Amount") + .HasColumnType("decimal(18,2)"); + + b.Property("AmountOfUnit") + .HasColumnType("decimal(18,2)"); + + b.Property("BOM_ProductionID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Borrowings") + .HasColumnType("nvarchar(200)") + .HasMaxLength(200); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Materials") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("NameAndSpecs") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Price") + .HasColumnType("decimal(18,2)"); + + b.Property("RelatedPicID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("RelatedPicName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("SuppliersCode") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("SuppliersID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("SuppliersName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("Unit") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("WorkingTypeID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("WorkingTypeName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOMDetails_Production"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM_Production.BOM_Production", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DesignAssyNum") + .HasColumnType("nvarchar(max)"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Name") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOM_Production"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.Supplier.Supplier", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("Address") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Bank") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("BankAccount") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Contacts") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreditCode") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Email") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Fax") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Fixedtelephone") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Mainbusiness") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Mobilephone") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Price") + .HasColumnType("decimal(18,2)"); + + b.Property("Price_old") + .HasColumnType("decimal(18,2)"); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("SupplierCode") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("SupplierName") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Supplygoods_services") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Website") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.HasKey("Id"); + + b.ToTable("Supplier"); + }); + + modelBuilder.Entity("MineTec.ProManager.Entitys.UserInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("Account") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("CellPhoneNum") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeptID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("DeptName") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("IsAdmin") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("IsLeaving") + .HasColumnType("int"); + + b.Property("PassWord") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("PostID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("PostName") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("PowerLevel") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("Remake") + .HasColumnType("nvarchar(2000)") + .HasMaxLength(2000); + + b.Property("Sex") + .HasColumnType("int"); + + b.Property("TelPhoneNum") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UserName") + .HasColumnType("nvarchar(150)") + .HasMaxLength(150); + + b.Property("WorkNo") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.HasKey("Id"); + + b.ToTable("UserInfo"); + }); + + modelBuilder.Entity("MineTec.ProManager.MultiTenancy.Tenant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ConnectionString") + .HasColumnType("nvarchar(1024)") + .HasMaxLength(1024); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime2"); + + b.Property("EditionId") + .HasColumnType("int"); + + b.Property("IsActive") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + b.Property("TenancyName") + .IsRequired() + .HasColumnType("nvarchar(64)") + .HasMaxLength(64); + + b.HasKey("Id"); + + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("EditionId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenancyName"); + + b.ToTable("AbpTenants"); + }); + + modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => + { + b.HasBaseType("Abp.Application.Features.FeatureSetting"); + + b.Property("EditionId") + .HasColumnType("int"); + + b.HasIndex("EditionId", "Name"); + + b.ToTable("AbpFeatures"); + + b.HasDiscriminator().HasValue("EditionFeatureSetting"); + }); + + modelBuilder.Entity("Abp.MultiTenancy.TenantFeatureSetting", b => + { + b.HasBaseType("Abp.Application.Features.FeatureSetting"); + + b.HasIndex("TenantId", "Name"); + + b.ToTable("AbpFeatures"); + + b.HasDiscriminator().HasValue("TenantFeatureSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => + { + b.HasBaseType("Abp.Authorization.PermissionSetting"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.HasIndex("RoleId"); + + b.ToTable("AbpPermissions"); + + b.HasDiscriminator().HasValue("RolePermissionSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => + { + b.HasBaseType("Abp.Authorization.PermissionSetting"); + + b.Property("UserId") + .HasColumnType("bigint"); + + b.HasIndex("UserId"); + + b.ToTable("AbpPermissions"); + + b.HasDiscriminator().HasValue("UserPermissionSetting"); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => + { + b.HasOne("MineTec.ProManager.Authorization.Roles.Role", null) + .WithMany("Claims") + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Claims") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Logins") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Roles") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Tokens") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Configuration.Setting", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Settings") + .HasForeignKey("UserId"); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityProperty", b => + { + b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") + .WithMany() + .HasForeignKey("DynamicPropertyId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => + { + b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty") + .WithMany() + .HasForeignKey("DynamicEntityPropertyId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => + { + b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") + .WithMany("DynamicPropertyValues") + .HasForeignKey("DynamicPropertyId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => + { + b.HasOne("Abp.EntityHistory.EntityChangeSet", null) + .WithMany("EntityChanges") + .HasForeignKey("EntityChangeSetId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => + { + b.HasOne("Abp.EntityHistory.EntityChange", null) + .WithMany("PropertyChanges") + .HasForeignKey("EntityChangeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => + { + b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") + .WithMany("Children") + .HasForeignKey("ParentId"); + }); + + modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => + { + b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") + .WithMany() + .HasForeignKey("WebhookEventId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Roles.Role", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + }); + + modelBuilder.Entity("MineTec.ProManager.Authorization.Users.User", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + }); + + modelBuilder.Entity("MineTec.ProManager.MultiTenancy.Tenant", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("Abp.Application.Editions.Edition", "Edition") + .WithMany() + .HasForeignKey("EditionId"); + + b.HasOne("MineTec.ProManager.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + }); + + modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => + { + b.HasOne("Abp.Application.Editions.Edition", "Edition") + .WithMany() + .HasForeignKey("EditionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => + { + b.HasOne("MineTec.ProManager.Authorization.Roles.Role", null) + .WithMany("Permissions") + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => + { + b.HasOne("MineTec.ProManager.Authorization.Users.User", null) + .WithMany("Permissions") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713161553_updatesupplierwords2.cs b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713161553_updatesupplierwords2.cs new file mode 100644 index 0000000..4798c12 --- /dev/null +++ b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/20210713161553_updatesupplierwords2.cs @@ -0,0 +1,34 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace MineTec.ProManager.Migrations +{ + public partial class updatesupplierwords2 : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "BankAcount", + table: "Supplier"); + + migrationBuilder.AddColumn( + name: "BankAccount", + table: "Supplier", + maxLength: 100, + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "BankAccount", + table: "Supplier"); + + migrationBuilder.AddColumn( + name: "BankAcount", + table: "Supplier", + type: "nvarchar(100)", + maxLength: 100, + nullable: true); + } + } +} diff --git a/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/ProManagerDbContextModelSnapshot.cs b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/ProManagerDbContextModelSnapshot.cs index ce7ebc4..39b2924 100644 --- a/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/ProManagerDbContextModelSnapshot.cs +++ b/Code/src/MineTec.ProManager.EntityFrameworkCore/Migrations/ProManagerDbContextModelSnapshot.cs @@ -1909,6 +1909,76 @@ namespace MineTec.ProManager.Migrations b.ToTable("BOMDetails"); }); + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM_Manager.BOM_Manager", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("BOMID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("BOMName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("BOM_ProductionID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("BOM_ProductionName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsAnnex") + .HasColumnType("int"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ProductProjectID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("ProductProjectName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("Remark") + .HasColumnType("nvarchar(300)") + .HasMaxLength(300); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUserID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.Property("UpdateUserName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("BOM_Manager"); + }); + modelBuilder.Entity("MineTec.ProManager.Entitys.Order.BOM_Production.BOMDetails_Production", b => { b.Property("Id") @@ -2079,6 +2149,14 @@ namespace MineTec.ProManager.Migrations .HasColumnType("nvarchar(100)") .HasMaxLength(100); + b.Property("Bank") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + b.Property("BankAccount") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + b.Property("Contacts") .HasColumnType("nvarchar(50)") .HasMaxLength(50); @@ -2097,10 +2175,18 @@ namespace MineTec.ProManager.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); + b.Property("CreditCode") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + b.Property("Email") .HasColumnType("nvarchar(100)") .HasMaxLength(100); + b.Property("Fax") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + b.Property("Fixedtelephone") .HasColumnType("nvarchar(100)") .HasMaxLength(100); diff --git a/Pages/page/Order/OrderManager/addOrder.html b/Pages/page/Order/OrderManager/addOrder.html index 8cae630..a8992e9 100644 --- a/Pages/page/Order/OrderManager/addOrder.html +++ b/Pages/page/Order/OrderManager/addOrder.html @@ -454,11 +454,11 @@ form.val("addOrder", { //formTest 即 class="layui-form" 所在元素属性 lay-filter="" 对应的值 "supplier_address": Supplierdata.address,// "name": "value" - "supplier_creditcode": Supplierdata.address,// "name": "value" - "supplier_bank": Supplierdata.address,// "name": "value" - "supplier_bankaccount": Supplierdata.address,// "name": "value" + "supplier_creditcode": Supplierdata.creditCode,// "name": "value" + "supplier_bank": Supplierdata.bank,// "name": "value" + "supplier_bankaccount": Supplierdata.bankAccount,// "name": "value" "supplier_telnum": Supplierdata.fixedtelephone,// "name": "value" - "supplier_fax": Supplierdata.address,// "name": "value" + "supplier_fax": Supplierdata.fax,// "name": "value" "supplier_contactperson": Supplierdata.contacts,// "name": "value" "supplier_phonenum": Supplierdata.mobilephone,// "name": "value" "supplier_email": Supplierdata.email,// "name": "value" @@ -494,11 +494,11 @@ form.val("addOrder", { //formTest 即 class="layui-form" 所在元素属性 lay-filter="" 对应的值 "client_address": clientdata.address,// "name": "value" - "client_creditcode": clientdata.address,// "name": "value" - "client_bank": clientdata.address,// "name": "value" - "client_bankaccount": clientdata.address,// "name": "value" + "client_creditcode": clientdata.creditCode,// "name": "value" + "client_bank": clientdata.bank,// "name": "value" + "client_bankaccount": clientdata.bankAccount,// "name": "value" "client_telnum": clientdata.fixedtelephone,// "name": "value" - "client_fax": clientdata.address,// "name": "value" + "client_fax": clientdata.fax,// "name": "value" "client_contactperson": clientdata.contacts,// "name": "value" "client_phonenum": clientdata.mobilephone,// "name": "value" "client_email": clientdata.email,// "name": "value" diff --git a/Pages/page/Order/Supplier/addSupplier.html b/Pages/page/Order/Supplier/addSupplier.html index 5cbf41e..1c894ab 100644 --- a/Pages/page/Order/Supplier/addSupplier.html +++ b/Pages/page/Order/Supplier/addSupplier.html @@ -86,6 +86,30 @@ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
@@ -129,6 +153,10 @@ email: data.field.email, address: data.field.address, website: data.field.website, + creditCode: data.field.creditcode, + bank: data.field.bank, + bankAccount: data.field.bankaccount, + fax: data.field.fax, remark: data.field.remark, createTime: getDatetime(), diff --git a/Pages/page/Order/Supplier/editSupplier.html b/Pages/page/Order/Supplier/editSupplier.html index 55642dd..8b25e0a 100644 --- a/Pages/page/Order/Supplier/editSupplier.html +++ b/Pages/page/Order/Supplier/editSupplier.html @@ -87,6 +87,30 @@
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
@@ -145,6 +169,10 @@ 'email': data.email, 'address': data.address, 'website': data.website, + 'creditcode': data.creditCode, + 'bank': data.bank, + 'bankaccount': data.bankAccount, + 'fax': data.fax, 'remark': data.remark, }); }, @@ -186,6 +214,10 @@ email: data.field.email, address: data.field.address, website: data.field.website, + creditCode: data.field.creditcode, + bank: data.field.bank, + bankAccount: data.field.bankaccount, + fax: data.field.fax, remark: data.field.remark, }), //参数值 type: "PUT", //请求方式 diff --git a/Pages/page/Order/Supplier/viewSupplier.html b/Pages/page/Order/Supplier/viewSupplier.html index a42e041..948b56a 100644 --- a/Pages/page/Order/Supplier/viewSupplier.html +++ b/Pages/page/Order/Supplier/viewSupplier.html @@ -94,6 +94,30 @@
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
@@ -145,6 +169,10 @@ 'email': data.email, 'address': data.address, 'website': data.website, + 'creditcode': data.creditCode, + 'bank': data.bank, + 'bankaccount': data.bankAccount, + 'fax': data.fax, 'remark': data.remark, }); },