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