From be56bd8a1221fe6233de916b88a8cc4110767ca0 Mon Sep 17 00:00:00 2001 From: Jose Andres Date: Wed, 1 Oct 2025 21:34:29 -0600 Subject: [PATCH] changes: initial Setup - Removed old migrations - Added Postgres EF provider - Updated initial seed - Create first migration --- .../ASPBaseOIDC.EntityFrameworkCore.csproj | 7 +- .../ASPBaseOIDCDbContext.cs | 27 + .../ASPBaseOIDCDbContextConfigurer.cs | 9 +- .../Seed/Host/DefaultLanguagesCreator.cs | 15 +- .../Seed/Host/DefaultSettingsCreator.cs | 2 +- .../Seed/Host/HostRoleAndUserCreator.cs | 4 +- .../Seed/Tenants/TenantRoleAndUserBuilder.cs | 4 +- ...70424115119_Initial_Migrations.Designer.cs | 1357 ------------ .../20170424115119_Initial_Migrations.cs | 997 --------- ...08053244_Upgraded_To_Abp_2_1_0.Designer.cs | 1356 ----------- .../20170608053244_Upgraded_To_Abp_2_1_0.cs | 66 - ...scription_And_IsActive_To_Role.Designer.cs | 1363 ------------ ..._Added_Description_And_IsActive_To_Role.cs | 34 - ...4115_Remove_IsActive_From_Role.Designer.cs | 1360 ------------ ...0170703134115_Remove_IsActive_From_Role.cs | 24 - ...4083601_Upgraded_To_Abp_v2.2.2.Designer.cs | 1363 ------------ .../20170804083601_Upgraded_To_Abp_v2.2.2.cs | 24 - ...1051646_Upgraded_To_Abp_v3.4.0.Designer.cs | 1515 ------------- .../20180201051646_Upgraded_To_Abp_v3.4.0.cs | 189 -- ...0131229_Upgraded_To_Abp_v3_5_0.Designer.cs | 1522 ------------- .../20180320131229_Upgraded_To_Abp_v3_5_0.cs | 126 -- ...9121141_Upgraded_To_Abp_v3_6_1.Designer.cs | 1522 ------------- .../20180509121141_Upgraded_To_Abp_v3_6_1.cs | 68 - ...180726102703_Upgrade_ABP_3.8.0.Designer.cs | 1540 ------------- .../20180726102703_Upgrade_ABP_3.8.0.cs | 64 - ...180731132139_Upgrade_ABP_3.8.1.Designer.cs | 1540 ------------- .../20180731132139_Upgrade_ABP_3.8.1.cs | 32 - ...180927062608_Upgrade_ABP_3.8.3.Designer.cs | 1543 ------------- .../20180927062608_Upgrade_ABP_3.8.3.cs | 24 - ...3103914_Upgraded_To_Abp_v3_9_0.Designer.cs | 1543 ------------- .../20181013103914_Upgraded_To_Abp_v3_9_0.cs | 46 - ...190208051931_Upgrade_ABP_4_2_0.Designer.cs | 1573 ------------- .../20190208051931_Upgrade_ABP_4_2_0.cs | 74 - ...03062215_Upgraded_To_Abp_4_7_0.Designer.cs | 1574 ------------- .../20190703062215_Upgraded_To_Abp_4_7_0.cs | 33 - ...19143908_Upgraded_To_Abp_4_8_0.Designer.cs | 1286 ----------- .../20190719143908_Upgraded_To_Abp_4_8_0.cs | 46 - ...16011543_Upgraded_To_Abp_5_1_0.Designer.cs | 1583 ------------- .../20191216011543_Upgraded_To_Abp_5_1_0.cs | 48 - ...20110527_Upgraded_To_Abp_5_2_0.Designer.cs | 1693 -------------- .../20200220110527_Upgraded_To_Abp_5_2_0.cs | 89 - ...20114152_Upgraded_To_Abp_5_4_0.Designer.cs | 1828 --------------- .../20200320114152_Upgraded_To_Abp_5_4_0.cs | 155 -- ...0604091046_Upgraded_To_Abp_5_9.Designer.cs | 1826 --------------- .../20200604091046_Upgraded_To_Abp_5_9.cs | 34 - ...8141743_Upgraded_To_ABP_5_13_0.Designer.cs | 1826 --------------- .../20200928141743_Upgraded_To_ABP_5_13_0.cs | 256 --- ...1112121732_Upgraded_To_ABP_6_0.Designer.cs | 1909 ---------------- .../20201112121732_Upgraded_To_ABP_6_0.cs | 44 - ...217144556_Upgrade_To_ABP_6_1_1.Designer.cs | 1909 ---------------- .../20201217144556_Upgrade_To_ABP_6_1_1.cs | 64 - ...10324090321_Upgrade_To_ABP_6_3.Designer.cs | 1915 ---------------- .../20210324090321_Upgrade_To_ABP_6_3.cs | 65 - ...8103231_Upgrade_To_ABP_6_4_rc1.Designer.cs | 1919 ---------------- .../20210628103231_Upgrade_To_ABP_6_4_rc1.cs | 25 - ...20622074714_Upgrade_To_ABP_7.3.Designer.cs | 1956 ---------------- .../20220622074714_Upgrade_To_ABP_7.3.cs | 36 - ...1213132802_Upgraded_To_Abp_8_0.Designer.cs | 1963 ---------------- .../20221213132802_Upgraded_To_Abp_8_0.cs | 59 - ...0125104915_Upgraded_To_Abp_9_1.Designer.cs | 1969 ---------------- .../20240125104915_Upgraded_To_Abp_9_1.cs | 66 - ...0503071035_Upgraded_To_Abp_9_2.Designer.cs | 1973 ----------------- .../20240503071035_Upgraded_To_Abp_9_2.cs | 30 - ...114124801_Upgraded_To_Abp_10_0.Designer.cs | 1973 ----------------- .../20250114124801_Upgraded_To_Abp_10_0.cs | 42 - .../20250528073026_Upgraded_To_Abp_10_2.cs | 42 - ...ner.cs => 20251002033155_Init.Designer.cs} | 1203 +++++----- .../Migrations/20251002033155_Init.cs | 1334 +++++++++++ .../ASPBaseOIDCDbContextModelSnapshot.cs | 1199 +++++----- .../App_Data/Logs/Logs.txt | 452 ++++ .../Properties/launchSettings.json | 7 +- src/ASPBaseOIDC.Web.Host/appsettings.json | 2 +- 72 files changed, 3030 insertions(+), 52336 deletions(-) delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170424115119_Initial_Migrations.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170424115119_Initial_Migrations.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170608053244_Upgraded_To_Abp_2_1_0.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170608053244_Upgraded_To_Abp_2_1_0.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170621153937_Added_Description_And_IsActive_To_Role.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170621153937_Added_Description_And_IsActive_To_Role.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170703134115_Remove_IsActive_From_Role.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170703134115_Remove_IsActive_From_Role.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170804083601_Upgraded_To_Abp_v2.2.2.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170804083601_Upgraded_To_Abp_v2.2.2.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180201051646_Upgraded_To_Abp_v3.4.0.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180201051646_Upgraded_To_Abp_v3.4.0.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180320131229_Upgraded_To_Abp_v3_5_0.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180320131229_Upgraded_To_Abp_v3_5_0.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180509121141_Upgraded_To_Abp_v3_6_1.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180509121141_Upgraded_To_Abp_v3_6_1.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180726102703_Upgrade_ABP_3.8.0.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180726102703_Upgrade_ABP_3.8.0.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180731132139_Upgrade_ABP_3.8.1.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180731132139_Upgrade_ABP_3.8.1.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180927062608_Upgrade_ABP_3.8.3.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180927062608_Upgrade_ABP_3.8.3.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20181013103914_Upgraded_To_Abp_v3_9_0.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20181013103914_Upgraded_To_Abp_v3_9_0.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190208051931_Upgrade_ABP_4_2_0.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190208051931_Upgrade_ABP_4_2_0.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190703062215_Upgraded_To_Abp_4_7_0.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190703062215_Upgraded_To_Abp_4_7_0.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190719143908_Upgraded_To_Abp_4_8_0.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190719143908_Upgraded_To_Abp_4_8_0.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20191216011543_Upgraded_To_Abp_5_1_0.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20191216011543_Upgraded_To_Abp_5_1_0.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200220110527_Upgraded_To_Abp_5_2_0.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200220110527_Upgraded_To_Abp_5_2_0.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200320114152_Upgraded_To_Abp_5_4_0.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200320114152_Upgraded_To_Abp_5_4_0.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200604091046_Upgraded_To_Abp_5_9.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200604091046_Upgraded_To_Abp_5_9.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200928141743_Upgraded_To_ABP_5_13_0.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200928141743_Upgraded_To_ABP_5_13_0.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201112121732_Upgraded_To_ABP_6_0.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201112121732_Upgraded_To_ABP_6_0.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201217144556_Upgrade_To_ABP_6_1_1.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201217144556_Upgrade_To_ABP_6_1_1.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210324090321_Upgrade_To_ABP_6_3.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210324090321_Upgrade_To_ABP_6_3.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210628103231_Upgrade_To_ABP_6_4_rc1.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210628103231_Upgrade_To_ABP_6_4_rc1.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20220622074714_Upgrade_To_ABP_7.3.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20220622074714_Upgrade_To_ABP_7.3.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20221213132802_Upgraded_To_Abp_8_0.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20221213132802_Upgraded_To_Abp_8_0.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240125104915_Upgraded_To_Abp_9_1.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240125104915_Upgraded_To_Abp_9_1.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240503071035_Upgraded_To_Abp_9_2.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240503071035_Upgraded_To_Abp_9_2.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20250114124801_Upgraded_To_Abp_10_0.Designer.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20250114124801_Upgraded_To_Abp_10_0.cs delete mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20250528073026_Upgraded_To_Abp_10_2.cs rename src/ASPBaseOIDC.EntityFrameworkCore/Migrations/{20250528073026_Upgraded_To_Abp_10_2.Designer.cs => 20251002033155_Init.Designer.cs} (74%) create mode 100644 src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20251002033155_Init.cs create mode 100644 src/ASPBaseOIDC.Web.Host/App_Data/Logs/Logs.txt diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/ASPBaseOIDC.EntityFrameworkCore.csproj b/src/ASPBaseOIDC.EntityFrameworkCore/ASPBaseOIDC.EntityFrameworkCore.csproj index c3bff50..be2e330 100644 --- a/src/ASPBaseOIDC.EntityFrameworkCore/ASPBaseOIDC.EntityFrameworkCore.csproj +++ b/src/ASPBaseOIDC.EntityFrameworkCore/ASPBaseOIDC.EntityFrameworkCore.csproj @@ -8,12 +8,6 @@ true - - - - - - all runtime; build; native; contentfiles; analyzers @@ -22,6 +16,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/ASPBaseOIDCDbContext.cs b/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/ASPBaseOIDCDbContext.cs index e99b3dc..c475f47 100644 --- a/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/ASPBaseOIDCDbContext.cs +++ b/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/ASPBaseOIDCDbContext.cs @@ -3,6 +3,8 @@ using ASPBaseOIDC.Authorization.Roles; using ASPBaseOIDC.Authorization.Users; using ASPBaseOIDC.MultiTenancy; using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using System; namespace ASPBaseOIDC.EntityFrameworkCore; @@ -14,6 +16,31 @@ public class ASPBaseOIDCDbContext : AbpZeroDbContext( + v => v.ToUniversalTime(), // Al guardar: siempre UTC + v => DateTime.SpecifyKind(v, DateTimeKind.Utc) // Al leer: marcar como UTC + )); + } + } + } + + // Automatically apply all configurations from current assembly + //modelBuilder.ApplyConfigurationsFromAssembly(typeof(IsaSolutions_PJ0001DbContext).Assembly); + + //ConfigureOrderEntities(modelBuilder); + } } diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/ASPBaseOIDCDbContextConfigurer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/ASPBaseOIDCDbContextConfigurer.cs index 09f7987..3d85707 100644 --- a/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/ASPBaseOIDCDbContextConfigurer.cs +++ b/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/ASPBaseOIDCDbContextConfigurer.cs @@ -1,4 +1,5 @@ using Microsoft.EntityFrameworkCore; +using Npgsql; using System.Data.Common; namespace ASPBaseOIDC.EntityFrameworkCore; @@ -7,12 +8,16 @@ public static class ASPBaseOIDCDbContextConfigurer { public static void Configure(DbContextOptionsBuilder builder, string connectionString) { - builder.UseSqlServer(connectionString); + var connectionStringBuilder = new NpgsqlConnectionStringBuilder(connectionString); + + builder.UseNpgsql(connectionStringBuilder.ToString(), options => options.CommandTimeout(600)); } public static void Configure(DbContextOptionsBuilder builder, DbConnection connection) { - builder.UseSqlServer(connection); + var connectionStringBuilder = new NpgsqlConnectionStringBuilder(connection.ConnectionString); + + builder.UseNpgsql(connectionStringBuilder.ToString(), options => options.CommandTimeout(600)); } } diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Host/DefaultLanguagesCreator.cs b/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Host/DefaultLanguagesCreator.cs index 3c7144d..9d3173f 100644 --- a/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Host/DefaultLanguagesCreator.cs +++ b/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Host/DefaultLanguagesCreator.cs @@ -18,18 +18,9 @@ public class DefaultLanguagesCreator return new List { new ApplicationLanguage(tenantId, "en", "English", "famfamfam-flags us"), - new ApplicationLanguage(tenantId, "ar", "العربية", "famfamfam-flags sa"), - new ApplicationLanguage(tenantId, "de", "German", "famfamfam-flags de"), - new ApplicationLanguage(tenantId, "it", "Italiano", "famfamfam-flags it"), - new ApplicationLanguage(tenantId, "fa", "فارسی", "famfamfam-flags ir"), - new ApplicationLanguage(tenantId, "fr", "Français", "famfamfam-flags fr"), - new ApplicationLanguage(tenantId, "pt-BR", "Português", "famfamfam-flags br"), - new ApplicationLanguage(tenantId, "tr", "Türkçe", "famfamfam-flags tr"), - new ApplicationLanguage(tenantId, "ru", "Русский", "famfamfam-flags ru"), - new ApplicationLanguage(tenantId, "zh-Hans", "简体中文", "famfamfam-flags cn"), - new ApplicationLanguage(tenantId, "es-MX", "Español México", "famfamfam-flags mx"), - new ApplicationLanguage(tenantId, "nl", "Nederlands", "famfamfam-flags nl"), - new ApplicationLanguage(tenantId, "ja", "日本語", "famfamfam-flags jp") + new ApplicationLanguage(tenantId, "es-MX", "Español México", "famfamfam-flags mx") + //new ApplicationLanguage(tenantId, "nl", "Nederlands", "famfamfam-flags nl"), + //new ApplicationLanguage(tenantId, "ja", "日本語", "famfamfam-flags jp") }; } diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Host/DefaultSettingsCreator.cs b/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Host/DefaultSettingsCreator.cs index 86d42c5..9b2824f 100644 --- a/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Host/DefaultSettingsCreator.cs +++ b/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Host/DefaultSettingsCreator.cs @@ -30,7 +30,7 @@ public class DefaultSettingsCreator AddSettingIfNotExists(EmailSettingNames.DefaultFromDisplayName, "mydomain.com mailer", tenantId); // Languages - AddSettingIfNotExists(LocalizationSettingNames.DefaultLanguage, "en", tenantId); + AddSettingIfNotExists(LocalizationSettingNames.DefaultLanguage, "es-MX", tenantId); } private void AddSettingIfNotExists(string name, string value, int? tenantId = null) diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Host/HostRoleAndUserCreator.cs b/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Host/HostRoleAndUserCreator.cs index efc9041..d5c28ab 100644 --- a/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Host/HostRoleAndUserCreator.cs +++ b/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Host/HostRoleAndUserCreator.cs @@ -76,12 +76,12 @@ public class HostRoleAndUserCreator UserName = AbpUserBase.AdminUserName, Name = "admin", Surname = "admin", - EmailAddress = "admin@aspnetboilerplate.com", + EmailAddress = "admin@jjsolutions.com", IsEmailConfirmed = true, IsActive = true }; - user.Password = new PasswordHasher(new OptionsWrapper(new PasswordHasherOptions())).HashPassword(user, "123qwe"); + user.Password = new PasswordHasher(new OptionsWrapper(new PasswordHasherOptions())).HashPassword(user, "admin"); user.SetNormalizedNames(); adminUserForHost = _context.Users.Add(user).Entity; diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Tenants/TenantRoleAndUserBuilder.cs b/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Tenants/TenantRoleAndUserBuilder.cs index b54ea14..c857e81 100644 --- a/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Tenants/TenantRoleAndUserBuilder.cs +++ b/src/ASPBaseOIDC.EntityFrameworkCore/EntityFrameworkCore/Seed/Tenants/TenantRoleAndUserBuilder.cs @@ -72,8 +72,8 @@ public class TenantRoleAndUserBuilder var adminUser = _context.Users.IgnoreQueryFilters().FirstOrDefault(u => u.TenantId == _tenantId && u.UserName == AbpUserBase.AdminUserName); if (adminUser == null) { - adminUser = User.CreateTenantAdminUser(_tenantId, "admin@defaulttenant.com"); - adminUser.Password = new PasswordHasher(new OptionsWrapper(new PasswordHasherOptions())).HashPassword(adminUser, "123qwe"); + adminUser = User.CreateTenantAdminUser(_tenantId, "admin@jjsolutions.com"); + adminUser.Password = new PasswordHasher(new OptionsWrapper(new PasswordHasherOptions())).HashPassword(adminUser, "admin"); adminUser.IsEmailConfirmed = true; adminUser.IsActive = true; diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170424115119_Initial_Migrations.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170424115119_Initial_Migrations.Designer.cs deleted file mode 100644 index be35683..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170424115119_Initial_Migrations.Designer.cs +++ /dev/null @@ -1,1357 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using ASPBaseOIDC.EntityFrameworkCore; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20170424115119_Initial_Migrations")] - partial class Initial_Migrations - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "1.1.1") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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"); - - 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("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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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("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"); - - 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"); - - b.Property("ClaimType") - .HasColumnType("nvarchar(450)"); - - 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.Property("UserId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - 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(450)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - 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(450)"); - - 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"); - - b.Property("ClaimType") - .HasColumnType("nvarchar(450)"); - - 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"); - - 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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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(255)") - .HasMaxLength(255); - - 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"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - 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"); - - 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"); - - b.Property("LoginProvider") - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - 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", "UserId"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - 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"); - - 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(2000)") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("nvarchar(10)") - .HasMaxLength(10); - - 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"); - - 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(10)") - .HasMaxLength(10); - - 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"); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); - - 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("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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasColumnType("nvarchar(64)") - .HasMaxLength(64); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); - - 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("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime2"); - - b.Property("Name") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(128)") - .HasMaxLength(128); - - b.Property("PasswordResetCode") - .HasColumnType("nvarchar(328)") - .HasMaxLength(328); - - b.Property("PhoneNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SecurityStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Surname") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - 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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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.Property("TenantId") - .HasColumnType("int"); - - 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("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170424115119_Initial_Migrations.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170424115119_Initial_Migrations.cs deleted file mode 100644 index 95c7f7f..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170424115119_Initial_Migrations.cs +++ /dev/null @@ -1,997 +0,0 @@ -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using System; - -namespace ASPBaseOIDC.Migrations; - -public partial class Initial_Migrations : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "AbpEditions", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - DeleterUserId = table.Column(nullable: true), - DeletionTime = table.Column(nullable: true), - DisplayName = table.Column(maxLength: 64, nullable: false), - IsDeleted = table.Column(nullable: false), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - Name = table.Column(maxLength: 32, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEditions", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpAuditLogs", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - BrowserInfo = table.Column(maxLength: 256, nullable: true), - ClientIpAddress = table.Column(maxLength: 64, nullable: true), - ClientName = table.Column(maxLength: 128, nullable: true), - CustomData = table.Column(maxLength: 2000, nullable: true), - Exception = table.Column(maxLength: 2000, nullable: true), - ExecutionDuration = table.Column(nullable: false), - ExecutionTime = table.Column(nullable: false), - ImpersonatorTenantId = table.Column(nullable: true), - ImpersonatorUserId = table.Column(nullable: true), - MethodName = table.Column(maxLength: 256, nullable: true), - Parameters = table.Column(maxLength: 1024, nullable: true), - ServiceName = table.Column(maxLength: 256, nullable: true), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpAuditLogs", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpUserAccounts", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - DeleterUserId = table.Column(nullable: true), - DeletionTime = table.Column(nullable: true), - EmailAddress = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), - LastLoginTime = table.Column(nullable: true), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: false), - UserLinkId = table.Column(nullable: true), - UserName = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserAccounts", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpUserLoginAttempts", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - BrowserInfo = table.Column(maxLength: 256, nullable: true), - ClientIpAddress = table.Column(maxLength: 64, nullable: true), - ClientName = table.Column(maxLength: 128, nullable: true), - CreationTime = table.Column(nullable: false), - Result = table.Column(nullable: false), - TenancyName = table.Column(maxLength: 64, nullable: true), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: true), - UserNameOrEmailAddress = table.Column(maxLength: 255, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserLoginAttempts", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpUserOrganizationUnits", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - OrganizationUnitId = table.Column(nullable: false), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserOrganizationUnits", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpBackgroundJobs", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - IsAbandoned = table.Column(nullable: false), - JobArgs = table.Column(maxLength: 1048576, nullable: false), - JobType = table.Column(maxLength: 512, nullable: false), - LastTryTime = table.Column(nullable: true), - NextTryTime = table.Column(nullable: false), - Priority = table.Column(nullable: false), - TryCount = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpBackgroundJobs", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpLanguages", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - DeleterUserId = table.Column(nullable: true), - DeletionTime = table.Column(nullable: true), - DisplayName = table.Column(maxLength: 64, nullable: false), - Icon = table.Column(maxLength: 128, nullable: true), - IsDeleted = table.Column(nullable: false), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - Name = table.Column(maxLength: 10, nullable: false), - TenantId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpLanguages", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpLanguageTexts", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - Key = table.Column(maxLength: 256, nullable: false), - LanguageName = table.Column(maxLength: 10, nullable: false), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - Source = table.Column(maxLength: 128, nullable: false), - TenantId = table.Column(nullable: true), - Value = table.Column(maxLength: 67108864, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpLanguageTexts", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpNotifications", - columns: table => new - { - Id = table.Column(nullable: false), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - Data = table.Column(maxLength: 1048576, nullable: true), - DataTypeName = table.Column(maxLength: 512, nullable: true), - EntityId = table.Column(maxLength: 96, nullable: true), - EntityTypeAssemblyQualifiedName = table.Column(maxLength: 512, nullable: true), - EntityTypeName = table.Column(maxLength: 250, nullable: true), - ExcludedUserIds = table.Column(maxLength: 131072, nullable: true), - NotificationName = table.Column(maxLength: 96, nullable: false), - Severity = table.Column(nullable: false), - TenantIds = table.Column(maxLength: 131072, nullable: true), - UserIds = table.Column(maxLength: 131072, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpNotifications", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpNotificationSubscriptions", - columns: table => new - { - Id = table.Column(nullable: false), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - EntityId = table.Column(maxLength: 96, nullable: true), - EntityTypeAssemblyQualifiedName = table.Column(maxLength: 512, nullable: true), - EntityTypeName = table.Column(maxLength: 250, nullable: true), - NotificationName = table.Column(maxLength: 96, nullable: true), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpNotificationSubscriptions", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpTenantNotifications", - columns: table => new - { - Id = table.Column(nullable: false), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - Data = table.Column(maxLength: 1048576, nullable: true), - DataTypeName = table.Column(maxLength: 512, nullable: true), - EntityId = table.Column(maxLength: 96, nullable: true), - EntityTypeAssemblyQualifiedName = table.Column(maxLength: 512, nullable: true), - EntityTypeName = table.Column(maxLength: 250, nullable: true), - NotificationName = table.Column(maxLength: 96, nullable: false), - Severity = table.Column(nullable: false), - TenantId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpTenantNotifications", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpUserNotifications", - columns: table => new - { - Id = table.Column(nullable: false), - CreationTime = table.Column(nullable: false), - State = table.Column(nullable: false), - TenantId = table.Column(nullable: true), - TenantNotificationId = table.Column(nullable: false), - UserId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserNotifications", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpOrganizationUnits", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Code = table.Column(maxLength: 95, nullable: false), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - DeleterUserId = table.Column(nullable: true), - DeletionTime = table.Column(nullable: true), - DisplayName = table.Column(maxLength: 128, nullable: false), - IsDeleted = table.Column(nullable: false), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - ParentId = table.Column(nullable: true), - TenantId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id); - table.ForeignKey( - name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId", - column: x => x.ParentId, - principalTable: "AbpOrganizationUnits", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "AbpUsers", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - AccessFailedCount = table.Column(nullable: false), - AuthenticationSource = table.Column(maxLength: 64, nullable: true), - ConcurrencyStamp = table.Column(nullable: true), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - DeleterUserId = table.Column(nullable: true), - DeletionTime = table.Column(nullable: true), - EmailAddress = table.Column(maxLength: 256, nullable: false), - EmailConfirmationCode = table.Column(maxLength: 328, nullable: true), - IsActive = table.Column(nullable: false), - IsDeleted = table.Column(nullable: false), - IsEmailConfirmed = table.Column(nullable: false), - IsLockoutEnabled = table.Column(nullable: false), - IsPhoneNumberConfirmed = table.Column(nullable: false), - IsTwoFactorEnabled = table.Column(nullable: false), - LastLoginTime = table.Column(nullable: true), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - LockoutEndDateUtc = table.Column(nullable: true), - Name = table.Column(maxLength: 32, nullable: false), - NormalizedEmailAddress = table.Column(maxLength: 256, nullable: false), - NormalizedUserName = table.Column(maxLength: 32, nullable: false), - Password = table.Column(maxLength: 128, nullable: false), - PasswordResetCode = table.Column(maxLength: 328, nullable: true), - PhoneNumber = table.Column(nullable: true), - SecurityStamp = table.Column(nullable: true), - Surname = table.Column(maxLength: 32, nullable: false), - TenantId = table.Column(nullable: true), - UserName = table.Column(maxLength: 32, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUsers", x => x.Id); - table.ForeignKey( - name: "FK_AbpUsers_AbpUsers_CreatorUserId", - column: x => x.CreatorUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_AbpUsers_AbpUsers_DeleterUserId", - column: x => x.DeleterUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_AbpUsers_AbpUsers_LastModifierUserId", - column: x => x.LastModifierUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "AbpFeatures", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - Discriminator = table.Column(nullable: false), - Name = table.Column(maxLength: 128, nullable: false), - Value = table.Column(maxLength: 2000, nullable: false), - EditionId = table.Column(nullable: true), - TenantId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpFeatures", x => x.Id); - table.ForeignKey( - name: "FK_AbpFeatures_AbpEditions_EditionId", - column: x => x.EditionId, - principalTable: "AbpEditions", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserClaims", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ClaimType = table.Column(nullable: true), - ClaimValue = table.Column(nullable: true), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserClaims", x => x.Id); - table.ForeignKey( - name: "FK_AbpUserClaims_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserLogins", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - LoginProvider = table.Column(maxLength: 128, nullable: false), - ProviderKey = table.Column(maxLength: 256, nullable: false), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserLogins", x => x.Id); - table.ForeignKey( - name: "FK_AbpUserLogins_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserRoles", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - RoleId = table.Column(nullable: false), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserRoles", x => x.Id); - table.ForeignKey( - name: "FK_AbpUserRoles_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserTokens", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - LoginProvider = table.Column(nullable: true), - Name = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: false), - Value = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserTokens", x => x.Id); - table.ForeignKey( - name: "FK_AbpUserTokens_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpSettings", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - Name = table.Column(maxLength: 256, nullable: false), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: true), - Value = table.Column(maxLength: 2000, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpSettings", x => x.Id); - table.ForeignKey( - name: "FK_AbpSettings_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "AbpRoles", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ConcurrencyStamp = table.Column(nullable: true), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - DeleterUserId = table.Column(nullable: true), - DeletionTime = table.Column(nullable: true), - DisplayName = table.Column(maxLength: 64, nullable: false), - IsDefault = table.Column(nullable: false), - IsDeleted = table.Column(nullable: false), - IsStatic = table.Column(nullable: false), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - Name = table.Column(maxLength: 32, nullable: false), - NormalizedName = table.Column(maxLength: 32, nullable: false), - TenantId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpRoles", x => x.Id); - table.ForeignKey( - name: "FK_AbpRoles_AbpUsers_CreatorUserId", - column: x => x.CreatorUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_AbpRoles_AbpUsers_DeleterUserId", - column: x => x.DeleterUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_AbpRoles_AbpUsers_LastModifierUserId", - column: x => x.LastModifierUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "AbpTenants", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ConnectionString = table.Column(maxLength: 1024, nullable: true), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - DeleterUserId = table.Column(nullable: true), - DeletionTime = table.Column(nullable: true), - EditionId = table.Column(nullable: true), - IsActive = table.Column(nullable: false), - IsDeleted = table.Column(nullable: false), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - Name = table.Column(maxLength: 128, nullable: false), - TenancyName = table.Column(maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpTenants", x => x.Id); - table.ForeignKey( - name: "FK_AbpTenants_AbpUsers_CreatorUserId", - column: x => x.CreatorUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_AbpTenants_AbpUsers_DeleterUserId", - column: x => x.DeleterUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_AbpTenants_AbpEditions_EditionId", - column: x => x.EditionId, - principalTable: "AbpEditions", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_AbpTenants_AbpUsers_LastModifierUserId", - column: x => x.LastModifierUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "AbpPermissions", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - Discriminator = table.Column(nullable: false), - IsGranted = table.Column(nullable: false), - Name = table.Column(maxLength: 128, nullable: false), - TenantId = table.Column(nullable: true), - RoleId = table.Column(nullable: true), - UserId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpPermissions", x => x.Id); - table.ForeignKey( - name: "FK_AbpPermissions_AbpRoles_RoleId", - column: x => x.RoleId, - principalTable: "AbpRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_AbpPermissions_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpRoleClaims", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ClaimType = table.Column(nullable: true), - ClaimValue = table.Column(nullable: true), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - RoleId = table.Column(nullable: false), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpRoleClaims", x => x.Id); - table.ForeignKey( - name: "FK_AbpRoleClaims_AbpRoles_UserId", - column: x => x.UserId, - principalTable: "AbpRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateIndex( - name: "IX_AbpFeatures_EditionId_Name", - table: "AbpFeatures", - columns: new[] { "EditionId", "Name" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpFeatures_TenantId_Name", - table: "AbpFeatures", - columns: new[] { "TenantId", "Name" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpAuditLogs_TenantId_ExecutionDuration", - table: "AbpAuditLogs", - columns: new[] { "TenantId", "ExecutionDuration" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpAuditLogs_TenantId_ExecutionTime", - table: "AbpAuditLogs", - columns: new[] { "TenantId", "ExecutionTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpAuditLogs_TenantId_UserId", - table: "AbpAuditLogs", - columns: new[] { "TenantId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpPermissions_TenantId_Name", - table: "AbpPermissions", - columns: new[] { "TenantId", "Name" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpPermissions_RoleId", - table: "AbpPermissions", - column: "RoleId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpPermissions_UserId", - table: "AbpPermissions", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoleClaims_RoleId", - table: "AbpRoleClaims", - column: "RoleId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoleClaims_UserId", - table: "AbpRoleClaims", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoleClaims_TenantId_ClaimType", - table: "AbpRoleClaims", - columns: new[] { "TenantId", "ClaimType" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserAccounts_EmailAddress", - table: "AbpUserAccounts", - column: "EmailAddress"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserAccounts_UserName", - table: "AbpUserAccounts", - column: "UserName"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserAccounts_TenantId_EmailAddress", - table: "AbpUserAccounts", - columns: new[] { "TenantId", "EmailAddress" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserAccounts_TenantId_UserId", - table: "AbpUserAccounts", - columns: new[] { "TenantId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserAccounts_TenantId_UserName", - table: "AbpUserAccounts", - columns: new[] { "TenantId", "UserName" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserClaims_UserId", - table: "AbpUserClaims", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserClaims_TenantId_ClaimType", - table: "AbpUserClaims", - columns: new[] { "TenantId", "ClaimType" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserLogins_UserId", - table: "AbpUserLogins", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserLogins_TenantId_UserId", - table: "AbpUserLogins", - columns: new[] { "TenantId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserLogins_TenantId_LoginProvider_ProviderKey", - table: "AbpUserLogins", - columns: new[] { "TenantId", "LoginProvider", "ProviderKey" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserLoginAttempts_UserId_TenantId", - table: "AbpUserLoginAttempts", - columns: new[] { "UserId", "TenantId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserLoginAttempts_TenancyName_UserNameOrEmailAddress_Result", - table: "AbpUserLoginAttempts", - columns: new[] { "TenancyName", "UserNameOrEmailAddress", "Result" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserOrganizationUnits_TenantId_OrganizationUnitId", - table: "AbpUserOrganizationUnits", - columns: new[] { "TenantId", "OrganizationUnitId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserOrganizationUnits_TenantId_UserId", - table: "AbpUserOrganizationUnits", - columns: new[] { "TenantId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserRoles_UserId", - table: "AbpUserRoles", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserRoles_TenantId_RoleId", - table: "AbpUserRoles", - columns: new[] { "TenantId", "RoleId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserRoles_TenantId_UserId", - table: "AbpUserRoles", - columns: new[] { "TenantId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserTokens_UserId", - table: "AbpUserTokens", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserTokens_TenantId_UserId", - table: "AbpUserTokens", - columns: new[] { "TenantId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpBackgroundJobs_IsAbandoned_NextTryTime", - table: "AbpBackgroundJobs", - columns: new[] { "IsAbandoned", "NextTryTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpSettings_UserId", - table: "AbpSettings", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpSettings_TenantId_Name", - table: "AbpSettings", - columns: new[] { "TenantId", "Name" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpLanguages_TenantId_Name", - table: "AbpLanguages", - columns: new[] { "TenantId", "Name" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpLanguageTexts_TenantId_Source_LanguageName_Key", - table: "AbpLanguageTexts", - columns: new[] { "TenantId", "Source", "LanguageName", "Key" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpNotificationSubscriptions_NotificationName_EntityTypeName_EntityId_UserId", - table: "AbpNotificationSubscriptions", - columns: new[] { "NotificationName", "EntityTypeName", "EntityId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpNotificationSubscriptions_TenantId_NotificationName_EntityTypeName_EntityId_UserId", - table: "AbpNotificationSubscriptions", - columns: new[] { "TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpTenantNotifications_TenantId", - table: "AbpTenantNotifications", - column: "TenantId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserNotifications_UserId_State_CreationTime", - table: "AbpUserNotifications", - columns: new[] { "UserId", "State", "CreationTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnits_ParentId", - table: "AbpOrganizationUnits", - column: "ParentId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnits_TenantId_Code", - table: "AbpOrganizationUnits", - columns: new[] { "TenantId", "Code" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoles_CreatorUserId", - table: "AbpRoles", - column: "CreatorUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoles_DeleterUserId", - table: "AbpRoles", - column: "DeleterUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoles_LastModifierUserId", - table: "AbpRoles", - column: "LastModifierUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoles_TenantId_NormalizedName", - table: "AbpRoles", - columns: new[] { "TenantId", "NormalizedName" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_CreatorUserId", - table: "AbpUsers", - column: "CreatorUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_DeleterUserId", - table: "AbpUsers", - column: "DeleterUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_LastModifierUserId", - table: "AbpUsers", - column: "LastModifierUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_TenantId_NormalizedEmailAddress", - table: "AbpUsers", - columns: new[] { "TenantId", "NormalizedEmailAddress" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_TenantId_NormalizedUserName", - table: "AbpUsers", - columns: new[] { "TenantId", "NormalizedUserName" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpTenants_CreatorUserId", - table: "AbpTenants", - column: "CreatorUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpTenants_DeleterUserId", - table: "AbpTenants", - column: "DeleterUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpTenants_EditionId", - table: "AbpTenants", - column: "EditionId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpTenants_LastModifierUserId", - table: "AbpTenants", - column: "LastModifierUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpTenants_TenancyName", - table: "AbpTenants", - column: "TenancyName"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "AbpFeatures"); - - migrationBuilder.DropTable( - name: "AbpAuditLogs"); - - migrationBuilder.DropTable( - name: "AbpPermissions"); - - migrationBuilder.DropTable( - name: "AbpRoleClaims"); - - migrationBuilder.DropTable( - name: "AbpUserAccounts"); - - migrationBuilder.DropTable( - name: "AbpUserClaims"); - - migrationBuilder.DropTable( - name: "AbpUserLogins"); - - migrationBuilder.DropTable( - name: "AbpUserLoginAttempts"); - - migrationBuilder.DropTable( - name: "AbpUserOrganizationUnits"); - - migrationBuilder.DropTable( - name: "AbpUserRoles"); - - migrationBuilder.DropTable( - name: "AbpUserTokens"); - - migrationBuilder.DropTable( - name: "AbpBackgroundJobs"); - - migrationBuilder.DropTable( - name: "AbpSettings"); - - migrationBuilder.DropTable( - name: "AbpLanguages"); - - migrationBuilder.DropTable( - name: "AbpLanguageTexts"); - - migrationBuilder.DropTable( - name: "AbpNotifications"); - - migrationBuilder.DropTable( - name: "AbpNotificationSubscriptions"); - - migrationBuilder.DropTable( - name: "AbpTenantNotifications"); - - migrationBuilder.DropTable( - name: "AbpUserNotifications"); - - migrationBuilder.DropTable( - name: "AbpOrganizationUnits"); - - migrationBuilder.DropTable( - name: "AbpTenants"); - - migrationBuilder.DropTable( - name: "AbpRoles"); - - migrationBuilder.DropTable( - name: "AbpEditions"); - - migrationBuilder.DropTable( - name: "AbpUsers"); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170608053244_Upgraded_To_Abp_2_1_0.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170608053244_Upgraded_To_Abp_2_1_0.Designer.cs deleted file mode 100644 index dc920d0..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170608053244_Upgraded_To_Abp_2_1_0.Designer.cs +++ /dev/null @@ -1,1356 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using ASPBaseOIDC.EntityFrameworkCore; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20170608053244_Upgraded_To_Abp_2_1_0")] - partial class Upgraded_To_Abp_2_1_0 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "1.1.2") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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"); - - 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("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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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("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"); - - 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"); - - b.Property("ClaimType") - .HasColumnType("nvarchar(450)"); - - 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"); - - 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(450)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - 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(450)"); - - 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"); - - b.Property("ClaimType") - .HasColumnType("nvarchar(450)"); - - 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"); - - 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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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(255)") - .HasMaxLength(255); - - 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"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - 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"); - - 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"); - - b.Property("LoginProvider") - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - 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", "UserId"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - 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"); - - 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(2000)") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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(10)") - .HasMaxLength(10); - - 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"); - - 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(10)") - .HasMaxLength(10); - - 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"); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); - - 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("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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasColumnType("nvarchar(64)") - .HasMaxLength(64); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); - - 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("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime2"); - - b.Property("Name") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(128)") - .HasMaxLength(128); - - b.Property("PasswordResetCode") - .HasColumnType("nvarchar(328)") - .HasMaxLength(328); - - b.Property("PhoneNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SecurityStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Surname") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - 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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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.Property("TenantId") - .HasColumnType("int"); - - 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("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170608053244_Upgraded_To_Abp_2_1_0.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170608053244_Upgraded_To_Abp_2_1_0.cs deleted file mode 100644 index 7769cd0..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170608053244_Upgraded_To_Abp_2_1_0.cs +++ /dev/null @@ -1,66 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgraded_To_Abp_2_1_0 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_AbpRoleClaims_AbpRoles_UserId", - table: "AbpRoleClaims"); - - migrationBuilder.DropIndex( - name: "IX_AbpRoleClaims_UserId", - table: "AbpRoleClaims"); - - migrationBuilder.DropColumn( - name: "UserId", - table: "AbpRoleClaims"); - - migrationBuilder.AddColumn( - name: "IsDisabled", - table: "AbpLanguages", - nullable: false, - defaultValue: false); - - migrationBuilder.AddForeignKey( - name: "FK_AbpRoleClaims_AbpRoles_RoleId", - table: "AbpRoleClaims", - column: "RoleId", - principalTable: "AbpRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_AbpRoleClaims_AbpRoles_RoleId", - table: "AbpRoleClaims"); - - migrationBuilder.DropColumn( - name: "IsDisabled", - table: "AbpLanguages"); - - migrationBuilder.AddColumn( - name: "UserId", - table: "AbpRoleClaims", - nullable: true); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoleClaims_UserId", - table: "AbpRoleClaims", - column: "UserId"); - - migrationBuilder.AddForeignKey( - name: "FK_AbpRoleClaims_AbpRoles_UserId", - table: "AbpRoleClaims", - column: "UserId", - principalTable: "AbpRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170621153937_Added_Description_And_IsActive_To_Role.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170621153937_Added_Description_And_IsActive_To_Role.Designer.cs deleted file mode 100644 index 604e8cb..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170621153937_Added_Description_And_IsActive_To_Role.Designer.cs +++ /dev/null @@ -1,1363 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using ASPBaseOIDC.EntityFrameworkCore; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20170621153937_Added_Description_And_IsActive_To_Role")] - partial class Added_Description_And_IsActive_To_Role - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "1.1.2") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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"); - - 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("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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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("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"); - - 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"); - - b.Property("ClaimType") - .HasColumnType("nvarchar(450)"); - - 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"); - - 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(450)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - 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(450)"); - - 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"); - - b.Property("ClaimType") - .HasColumnType("nvarchar(450)"); - - 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"); - - 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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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(255)") - .HasMaxLength(255); - - 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"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - 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"); - - 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"); - - b.Property("LoginProvider") - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - 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", "UserId"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - 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"); - - 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(2000)") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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(10)") - .HasMaxLength(10); - - 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"); - - 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(10)") - .HasMaxLength(10); - - 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"); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); - - 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("IsActive") - .HasColumnType("bit"); - - 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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasColumnType("nvarchar(64)") - .HasMaxLength(64); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); - - 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("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime2"); - - b.Property("Name") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(128)") - .HasMaxLength(128); - - b.Property("PasswordResetCode") - .HasColumnType("nvarchar(328)") - .HasMaxLength(328); - - b.Property("PhoneNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SecurityStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Surname") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - 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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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.Property("TenantId") - .HasColumnType("int"); - - 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("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170621153937_Added_Description_And_IsActive_To_Role.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170621153937_Added_Description_And_IsActive_To_Role.cs deleted file mode 100644 index 201a09a..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170621153937_Added_Description_And_IsActive_To_Role.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Added_Description_And_IsActive_To_Role : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Description", - table: "AbpRoles", - maxLength: 5000, - nullable: true); - - migrationBuilder.AddColumn( - name: "IsActive", - table: "AbpRoles", - nullable: false, - defaultValue: false); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Description", - table: "AbpRoles"); - - migrationBuilder.DropColumn( - name: "IsActive", - table: "AbpRoles"); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170703134115_Remove_IsActive_From_Role.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170703134115_Remove_IsActive_From_Role.Designer.cs deleted file mode 100644 index 9c02c49..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170703134115_Remove_IsActive_From_Role.Designer.cs +++ /dev/null @@ -1,1360 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using ASPBaseOIDC.EntityFrameworkCore; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20170703134115_Remove_IsActive_From_Role")] - partial class Remove_IsActive_From_Role - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "1.1.2") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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"); - - 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("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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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("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"); - - 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"); - - b.Property("ClaimType") - .HasColumnType("nvarchar(450)"); - - 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"); - - 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(450)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - 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(450)"); - - 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"); - - b.Property("ClaimType") - .HasColumnType("nvarchar(450)"); - - 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"); - - 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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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(255)") - .HasMaxLength(255); - - 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"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - 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"); - - 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"); - - b.Property("LoginProvider") - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - 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", "UserId"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - 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"); - - 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(2000)") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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(10)") - .HasMaxLength(10); - - 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"); - - 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(10)") - .HasMaxLength(10); - - 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"); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); - - 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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasColumnType("nvarchar(64)") - .HasMaxLength(64); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); - - 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("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime2"); - - b.Property("Name") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(128)") - .HasMaxLength(128); - - b.Property("PasswordResetCode") - .HasColumnType("nvarchar(328)") - .HasMaxLength(328); - - b.Property("PhoneNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SecurityStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Surname") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - 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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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.Property("TenantId") - .HasColumnType("int"); - - 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("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170703134115_Remove_IsActive_From_Role.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170703134115_Remove_IsActive_From_Role.cs deleted file mode 100644 index a79bcf1..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170703134115_Remove_IsActive_From_Role.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Remove_IsActive_From_Role : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "IsActive", - table: "AbpRoles"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "IsActive", - table: "AbpRoles", - nullable: false, - defaultValue: false); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170804083601_Upgraded_To_Abp_v2.2.2.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170804083601_Upgraded_To_Abp_v2.2.2.Designer.cs deleted file mode 100644 index 0bbf8cb..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170804083601_Upgraded_To_Abp_v2.2.2.Designer.cs +++ /dev/null @@ -1,1363 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using ASPBaseOIDC.EntityFrameworkCore; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20170804083601_Upgraded_To_Abp_v2.2.2")] - partial class Upgraded_To_Abp_v222 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "1.1.2") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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"); - - 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("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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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("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"); - - 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"); - - b.Property("ClaimType") - .HasColumnType("nvarchar(450)"); - - 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"); - - 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(450)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("LastLoginTime") - .HasColumnType("datetime2"); - - 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(450)"); - - 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"); - - b.Property("ClaimType") - .HasColumnType("nvarchar(450)"); - - 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"); - - 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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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(255)") - .HasMaxLength(255); - - 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"); - - 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"); - - 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"); - - b.Property("LoginProvider") - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - 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", "UserId"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - 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"); - - 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(2000)") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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(10)") - .HasMaxLength(10); - - 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"); - - 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(10)") - .HasMaxLength(10); - - 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"); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); - - 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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasColumnType("nvarchar(64)") - .HasMaxLength(64); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); - - 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("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime2"); - - b.Property("Name") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(128)") - .HasMaxLength(128); - - b.Property("PasswordResetCode") - .HasColumnType("nvarchar(328)") - .HasMaxLength(328); - - b.Property("PhoneNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SecurityStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Surname") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - 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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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.Property("TenantId") - .HasColumnType("int"); - - 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("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170804083601_Upgraded_To_Abp_v2.2.2.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170804083601_Upgraded_To_Abp_v2.2.2.cs deleted file mode 100644 index 9ab51a4..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20170804083601_Upgraded_To_Abp_v2.2.2.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgraded_To_Abp_v222 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "IsDeleted", - table: "AbpUserOrganizationUnits", - nullable: false, - defaultValue: false); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "IsDeleted", - table: "AbpUserOrganizationUnits"); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180201051646_Upgraded_To_Abp_v3.4.0.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180201051646_Upgraded_To_Abp_v3.4.0.Designer.cs deleted file mode 100644 index d463f6a..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180201051646_Upgraded_To_Abp_v3.4.0.Designer.cs +++ /dev/null @@ -1,1515 +0,0 @@ -// -using Abp.Authorization; -using Abp.BackgroundJobs; -using Abp.Events.Bus.Entities; -using Abp.Notifications; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage; -using Microsoft.EntityFrameworkCore.Storage.Internal; -using Microsoft.EntityFrameworkCore.ValueGeneration; -using System; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20180201051646_Upgraded_To_Abp_v3.4.0")] - partial class Upgraded_To_Abp_v340 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.0.1-rtm-125") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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"); - - 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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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("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"); - - 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"); - - 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"); - - 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("LastLoginTime") - .HasColumnType("datetime2"); - - 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(32)") - .HasMaxLength(32); - - 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"); - - 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"); - - 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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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(255)") - .HasMaxLength(255); - - 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"); - - 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"); - - 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"); - - b.Property("LoginProvider") - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - 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", "UserId"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - 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"); - - 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(2000)") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - 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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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"); - - 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"); - - 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(10)") - .HasMaxLength(10); - - 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"); - - 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(10)") - .HasMaxLength(10); - - 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"); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); - - 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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasColumnType("nvarchar(64)") - .HasMaxLength(64); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); - - 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("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime2"); - - b.Property("Name") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(128)") - .HasMaxLength(128); - - b.Property("PasswordResetCode") - .HasColumnType("nvarchar(328)") - .HasMaxLength(328); - - b.Property("PhoneNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SecurityStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("Surname") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - 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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet") - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange") - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180201051646_Upgraded_To_Abp_v3.4.0.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180201051646_Upgraded_To_Abp_v3.4.0.cs deleted file mode 100644 index bb83477..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180201051646_Upgraded_To_Abp_v3.4.0.cs +++ /dev/null @@ -1,189 +0,0 @@ -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using System; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgraded_To_Abp_v340 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "ClaimType", - table: "AbpUserClaims", - maxLength: 256, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserName", - table: "AbpUserAccounts", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EmailAddress", - table: "AbpUserAccounts", - maxLength: 256, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ClaimType", - table: "AbpRoleClaims", - maxLength: 256, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.CreateTable( - name: "AbpEntityChangeSets", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - BrowserInfo = table.Column(maxLength: 256, nullable: true), - ClientIpAddress = table.Column(maxLength: 64, nullable: true), - ClientName = table.Column(maxLength: 128, nullable: true), - CreationTime = table.Column(nullable: false), - ExtensionData = table.Column(nullable: true), - ImpersonatorTenantId = table.Column(nullable: true), - ImpersonatorUserId = table.Column(nullable: true), - Reason = table.Column(maxLength: 256, nullable: true), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEntityChangeSets", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpEntityChanges", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ChangeTime = table.Column(nullable: false), - ChangeType = table.Column(nullable: false), - EntityChangeSetId = table.Column(nullable: false), - EntityId = table.Column(maxLength: 48, nullable: true), - EntityTypeFullName = table.Column(maxLength: 192, nullable: true), - TenantId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEntityChanges", x => x.Id); - table.ForeignKey( - name: "FK_AbpEntityChanges_AbpEntityChangeSets_EntityChangeSetId", - column: x => x.EntityChangeSetId, - principalTable: "AbpEntityChangeSets", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpEntityPropertyChanges", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - EntityChangeId = table.Column(nullable: false), - NewValue = table.Column(maxLength: 512, nullable: true), - OriginalValue = table.Column(maxLength: 512, nullable: true), - PropertyName = table.Column(maxLength: 96, nullable: true), - PropertyTypeFullName = table.Column(maxLength: 192, nullable: true), - TenantId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEntityPropertyChanges", x => x.Id); - table.ForeignKey( - name: "FK_AbpEntityPropertyChanges_AbpEntityChanges_EntityChangeId", - column: x => x.EntityChangeId, - principalTable: "AbpEntityChanges", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityChanges_EntityChangeSetId", - table: "AbpEntityChanges", - column: "EntityChangeSetId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityChanges_EntityTypeFullName_EntityId", - table: "AbpEntityChanges", - columns: new[] { "EntityTypeFullName", "EntityId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityChangeSets_TenantId_CreationTime", - table: "AbpEntityChangeSets", - columns: new[] { "TenantId", "CreationTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityChangeSets_TenantId_Reason", - table: "AbpEntityChangeSets", - columns: new[] { "TenantId", "Reason" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityChangeSets_TenantId_UserId", - table: "AbpEntityChangeSets", - columns: new[] { "TenantId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityPropertyChanges_EntityChangeId", - table: "AbpEntityPropertyChanges", - column: "EntityChangeId"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "AbpEntityPropertyChanges"); - - migrationBuilder.DropTable( - name: "AbpEntityChanges"); - - migrationBuilder.DropTable( - name: "AbpEntityChangeSets"); - - migrationBuilder.AlterColumn( - name: "ClaimType", - table: "AbpUserClaims", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 256, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserName", - table: "AbpUserAccounts", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EmailAddress", - table: "AbpUserAccounts", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 256, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ClaimType", - table: "AbpRoleClaims", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 256, - oldNullable: true); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180320131229_Upgraded_To_Abp_v3_5_0.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180320131229_Upgraded_To_Abp_v3_5_0.Designer.cs deleted file mode 100644 index 8987544..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180320131229_Upgraded_To_Abp_v3_5_0.Designer.cs +++ /dev/null @@ -1,1522 +0,0 @@ -// -using Abp.Authorization; -using Abp.BackgroundJobs; -using Abp.Events.Bus.Entities; -using Abp.Notifications; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage; -using Microsoft.EntityFrameworkCore.Storage.Internal; -using Microsoft.EntityFrameworkCore.ValueGeneration; -using System; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20180320131229_Upgraded_To_Abp_v3_5_0")] - partial class Upgraded_To_Abp_v3_5_0 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.0.1-rtm-125") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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"); - - 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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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("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"); - - 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"); - - 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"); - - 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("LastLoginTime") - .HasColumnType("datetime2"); - - 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(32)") - .HasMaxLength(32); - - 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"); - - 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"); - - 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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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(255)") - .HasMaxLength(255); - - 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"); - - 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"); - - 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"); - - b.Property("LoginProvider") - .HasColumnType("nvarchar(64)") - .HasMaxLength(64); - - 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"); - - 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"); - - 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(2000)") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - 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"); - - b.Property("BrowserInfo") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - 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"); - - 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"); - - 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(10)") - .HasMaxLength(10); - - 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"); - - 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(10)") - .HasMaxLength(10); - - 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"); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - 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("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime2"); - - b.Property("Name") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - 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(32)") - .HasMaxLength(32); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - 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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet") - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange") - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180320131229_Upgraded_To_Abp_v3_5_0.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180320131229_Upgraded_To_Abp_v3_5_0.cs deleted file mode 100644 index f858bf3..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180320131229_Upgraded_To_Abp_v3_5_0.cs +++ /dev/null @@ -1,126 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgraded_To_Abp_v3_5_0 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Value", - table: "AbpUserTokens", - maxLength: 512, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Name", - table: "AbpUserTokens", - maxLength: 128, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LoginProvider", - table: "AbpUserTokens", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SecurityStamp", - table: "AbpUsers", - maxLength: 128, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PhoneNumber", - table: "AbpUsers", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ConcurrencyStamp", - table: "AbpUsers", - maxLength: 128, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ConcurrencyStamp", - table: "AbpRoles", - maxLength: 128, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Value", - table: "AbpUserTokens", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 512, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Name", - table: "AbpUserTokens", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 128, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LoginProvider", - table: "AbpUserTokens", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SecurityStamp", - table: "AbpUsers", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 128, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PhoneNumber", - table: "AbpUsers", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ConcurrencyStamp", - table: "AbpUsers", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 128, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ConcurrencyStamp", - table: "AbpRoles", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 128, - oldNullable: true); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180509121141_Upgraded_To_Abp_v3_6_1.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180509121141_Upgraded_To_Abp_v3_6_1.Designer.cs deleted file mode 100644 index 2ae3a49..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180509121141_Upgraded_To_Abp_v3_6_1.Designer.cs +++ /dev/null @@ -1,1522 +0,0 @@ -// -using Abp.Authorization; -using Abp.BackgroundJobs; -using Abp.Events.Bus.Entities; -using Abp.Notifications; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage; -using Microsoft.EntityFrameworkCore.Storage.Internal; -using Microsoft.EntityFrameworkCore.ValueGeneration; -using System; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20180509121141_Upgraded_To_Abp_v3_6_1")] - partial class Upgraded_To_Abp_v3_6_1 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.0.3-rtm-10026") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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"); - - 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"); - - 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("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"); - - 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"); - - 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"); - - 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("LastLoginTime") - .HasColumnType("datetime2"); - - 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(32)") - .HasMaxLength(32); - - 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"); - - 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"); - - 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"); - - 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(255)") - .HasMaxLength(255); - - 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"); - - 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"); - - 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"); - - b.Property("LoginProvider") - .HasColumnType("nvarchar(64)") - .HasMaxLength(64); - - 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"); - - 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"); - - 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(2000)") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - 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"); - - 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"); - - 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"); - - 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(10)") - .HasMaxLength(10); - - 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"); - - 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(10)") - .HasMaxLength(10); - - 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"); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - 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("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime2"); - - b.Property("Name") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - 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(32)") - .HasMaxLength(32); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - 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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - 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("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet") - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange") - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180509121141_Upgraded_To_Abp_v3_6_1.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180509121141_Upgraded_To_Abp_v3_6_1.cs deleted file mode 100644 index 045e343..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180509121141_Upgraded_To_Abp_v3_6_1.cs +++ /dev/null @@ -1,68 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgraded_To_Abp_v3_6_1 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "BrowserInfo", - table: "AbpUserLoginAttempts", - maxLength: 512, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 256, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BrowserInfo", - table: "AbpEntityChangeSets", - maxLength: 512, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 256, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BrowserInfo", - table: "AbpAuditLogs", - maxLength: 512, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 256, - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "BrowserInfo", - table: "AbpUserLoginAttempts", - maxLength: 256, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 512, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BrowserInfo", - table: "AbpEntityChangeSets", - maxLength: 256, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 512, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BrowserInfo", - table: "AbpAuditLogs", - maxLength: 256, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 512, - oldNullable: true); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180726102703_Upgrade_ABP_3.8.0.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180726102703_Upgrade_ABP_3.8.0.Designer.cs deleted file mode 100644 index ccda9a8..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180726102703_Upgrade_ABP_3.8.0.Designer.cs +++ /dev/null @@ -1,1540 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20180726102703_Upgrade_ABP_3.8.0")] - partial class Upgrade_ABP_380 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.1-rtm-30846") - .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("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("LastLoginTime") - .HasColumnType("datetime2"); - - 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(255)") - .HasMaxLength(255); - - 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("LoginProvider") - .HasColumnType("nvarchar(64)") - .HasMaxLength(64); - - 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(2000)") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpSettings"); - }); - - 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(10)") - .HasMaxLength(10); - - 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(10)") - .HasMaxLength(10); - - 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("ASPBaseOIDC.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("ASPBaseOIDC.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("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime2"); - - b.Property("Name") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - 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(32)") - .HasMaxLength(32); - - 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("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet") - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange") - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180726102703_Upgrade_ABP_3.8.0.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180726102703_Upgrade_ABP_3.8.0.cs deleted file mode 100644 index 253adb8..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180726102703_Upgrade_ABP_3.8.0.cs +++ /dev/null @@ -1,64 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgrade_ABP_380 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "UserName", - table: "AbpUsers", - maxLength: 256, - nullable: false, - oldClrType: typeof(string), - oldMaxLength: 32); - - migrationBuilder.AlterColumn( - name: "NormalizedUserName", - table: "AbpUsers", - maxLength: 256, - nullable: false, - oldClrType: typeof(string), - oldMaxLength: 32); - - migrationBuilder.AlterColumn( - name: "UserName", - table: "AbpUserAccounts", - maxLength: 256, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 32, - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "UserName", - table: "AbpUsers", - maxLength: 32, - nullable: false, - oldClrType: typeof(string), - oldMaxLength: 256); - - migrationBuilder.AlterColumn( - name: "NormalizedUserName", - table: "AbpUsers", - maxLength: 32, - nullable: false, - oldClrType: typeof(string), - oldMaxLength: 256); - - migrationBuilder.AlterColumn( - name: "UserName", - table: "AbpUserAccounts", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 256, - oldNullable: true); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180731132139_Upgrade_ABP_3.8.1.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180731132139_Upgrade_ABP_3.8.1.Designer.cs deleted file mode 100644 index 38b271a..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180731132139_Upgrade_ABP_3.8.1.Designer.cs +++ /dev/null @@ -1,1540 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20180731132139_Upgrade_ABP_3.8.1")] - partial class Upgrade_ABP_381 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.1-rtm-30846") - .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("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("LastLoginTime") - .HasColumnType("datetime2"); - - 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(255)") - .HasMaxLength(255); - - 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("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(2000)") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpSettings"); - }); - - 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(10)") - .HasMaxLength(10); - - 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(10)") - .HasMaxLength(10); - - 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("ASPBaseOIDC.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("ASPBaseOIDC.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("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime2"); - - b.Property("Name") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - 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(32)") - .HasMaxLength(32); - - 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("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet") - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange") - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180731132139_Upgrade_ABP_3.8.1.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180731132139_Upgrade_ABP_3.8.1.cs deleted file mode 100644 index d2fb05d..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180731132139_Upgrade_ABP_3.8.1.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgrade_ABP_381 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "LoginProvider", - table: "AbpUserTokens", - maxLength: 128, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 64, - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "LoginProvider", - table: "AbpUserTokens", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 128, - oldNullable: true); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180927062608_Upgrade_ABP_3.8.3.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180927062608_Upgrade_ABP_3.8.3.Designer.cs deleted file mode 100644 index 3e150af..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180927062608_Upgrade_ABP_3.8.3.Designer.cs +++ /dev/null @@ -1,1543 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20180927062608_Upgrade_ABP_3.8.3")] - partial class Upgrade_ABP_383 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.3-rtm-32065") - .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("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("LastLoginTime") - .HasColumnType("datetime2"); - - 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(255)") - .HasMaxLength(255); - - 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(2000)") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpSettings"); - }); - - 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(10)") - .HasMaxLength(10); - - 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(10)") - .HasMaxLength(10); - - 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("ASPBaseOIDC.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("ASPBaseOIDC.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("LastLoginTime") - .HasColumnType("datetime2"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime2"); - - b.Property("Name") - .IsRequired() - .HasColumnType("nvarchar(32)") - .HasMaxLength(32); - - 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(32)") - .HasMaxLength(32); - - 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("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet") - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange") - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180927062608_Upgrade_ABP_3.8.3.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180927062608_Upgrade_ABP_3.8.3.cs deleted file mode 100644 index a2af402..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20180927062608_Upgrade_ABP_3.8.3.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; -using System; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgrade_ABP_383 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ExpireDate", - table: "AbpUserTokens", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ExpireDate", - table: "AbpUserTokens"); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20181013103914_Upgraded_To_Abp_v3_9_0.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20181013103914_Upgraded_To_Abp_v3_9_0.Designer.cs deleted file mode 100644 index 6f92162..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20181013103914_Upgraded_To_Abp_v3_9_0.Designer.cs +++ /dev/null @@ -1,1543 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20181013103914_Upgraded_To_Abp_v3_9_0")] - partial class Upgraded_To_Abp_v3_9_0 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.4-rtm-31024") - .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("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("LastLoginTime") - .HasColumnType("datetime2"); - - 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(255)") - .HasMaxLength(255); - - 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(2000)") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpSettings"); - }); - - 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(10)") - .HasMaxLength(10); - - 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(10)") - .HasMaxLength(10); - - 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("ASPBaseOIDC.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("ASPBaseOIDC.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("LastLoginTime") - .HasColumnType("datetime2"); - - 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("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet") - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange") - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20181013103914_Upgraded_To_Abp_v3_9_0.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20181013103914_Upgraded_To_Abp_v3_9_0.cs deleted file mode 100644 index 107c48f..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20181013103914_Upgraded_To_Abp_v3_9_0.cs +++ /dev/null @@ -1,46 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgraded_To_Abp_v3_9_0 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Surname", - table: "AbpUsers", - maxLength: 64, - nullable: false, - oldClrType: typeof(string), - oldMaxLength: 32); - - migrationBuilder.AlterColumn( - name: "Name", - table: "AbpUsers", - maxLength: 64, - nullable: false, - oldClrType: typeof(string), - oldMaxLength: 32); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Surname", - table: "AbpUsers", - maxLength: 32, - nullable: false, - oldClrType: typeof(string), - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Name", - table: "AbpUsers", - maxLength: 32, - nullable: false, - oldClrType: typeof(string), - oldMaxLength: 64); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190208051931_Upgrade_ABP_4_2_0.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190208051931_Upgrade_ABP_4_2_0.Designer.cs deleted file mode 100644 index af98c00..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190208051931_Upgrade_ABP_4_2_0.Designer.cs +++ /dev/null @@ -1,1573 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20190208051931_Upgrade_ABP_4_2_0")] - partial class Upgrade_ABP_4_2_0 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.2.1-servicing-10028") - .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(255)") - .HasMaxLength(255); - - 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(2000)") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpSettings"); - }); - - 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(10)") - .HasMaxLength(10); - - 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(10)") - .HasMaxLength(10); - - 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("ASPBaseOIDC.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("ASPBaseOIDC.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("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet") - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange") - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190208051931_Upgrade_ABP_4_2_0.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190208051931_Upgrade_ABP_4_2_0.cs deleted file mode 100644 index 2658b6e..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190208051931_Upgrade_ABP_4_2_0.cs +++ /dev/null @@ -1,74 +0,0 @@ -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using System; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgrade_ABP_4_2_0 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "LastLoginTime", - table: "AbpUsers"); - - migrationBuilder.DropColumn( - name: "LastLoginTime", - table: "AbpUserAccounts"); - - migrationBuilder.AddColumn( - name: "ReturnValue", - table: "AbpAuditLogs", - nullable: true); - - migrationBuilder.CreateTable( - name: "AbpOrganizationUnitRoles", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - RoleId = table.Column(nullable: false), - OrganizationUnitId = table.Column(nullable: false), - IsDeleted = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => x.Id); - }); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnitRoles_TenantId_OrganizationUnitId", - table: "AbpOrganizationUnitRoles", - columns: new[] { "TenantId", "OrganizationUnitId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnitRoles_TenantId_RoleId", - table: "AbpOrganizationUnitRoles", - columns: new[] { "TenantId", "RoleId" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "AbpOrganizationUnitRoles"); - - migrationBuilder.DropColumn( - name: "ReturnValue", - table: "AbpAuditLogs"); - - migrationBuilder.AddColumn( - name: "LastLoginTime", - table: "AbpUsers", - nullable: true); - - migrationBuilder.AddColumn( - name: "LastLoginTime", - table: "AbpUserAccounts", - nullable: true); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190703062215_Upgraded_To_Abp_4_7_0.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190703062215_Upgraded_To_Abp_4_7_0.Designer.cs deleted file mode 100644 index 5d3524b..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190703062215_Upgraded_To_Abp_4_7_0.Designer.cs +++ /dev/null @@ -1,1574 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20190703062215_Upgraded_To_Abp_4_7_0")] - partial class Upgraded_To_Abp_4_7_0 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.2.4-servicing-10062") - .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(255)") - .HasMaxLength(255); - - 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(2000)") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name", "UserId") - .IsUnique(); - - b.ToTable("AbpSettings"); - }); - - 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(10)") - .HasMaxLength(10); - - 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(10)") - .HasMaxLength(10); - - 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("ASPBaseOIDC.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("ASPBaseOIDC.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("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet") - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange") - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190703062215_Upgraded_To_Abp_4_7_0.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190703062215_Upgraded_To_Abp_4_7_0.cs deleted file mode 100644 index 6d7aae6..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190703062215_Upgraded_To_Abp_4_7_0.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgraded_To_Abp_4_7_0 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_AbpSettings_TenantId_Name", - table: "AbpSettings"); - - migrationBuilder.CreateIndex( - name: "IX_AbpSettings_TenantId_Name_UserId", - table: "AbpSettings", - columns: new[] { "TenantId", "Name", "UserId" }, - unique: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_AbpSettings_TenantId_Name_UserId", - table: "AbpSettings"); - - migrationBuilder.CreateIndex( - name: "IX_AbpSettings_TenantId_Name", - table: "AbpSettings", - columns: new[] { "TenantId", "Name" }); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190719143908_Upgraded_To_Abp_4_8_0.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190719143908_Upgraded_To_Abp_4_8_0.Designer.cs deleted file mode 100644 index 8c5d4e7..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190719143908_Upgraded_To_Abp_4_8_0.Designer.cs +++ /dev/null @@ -1,1286 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20190719143908_Upgraded_To_Abp_4_8_0")] - partial class Upgraded_To_Abp_4_8_0 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.2.4-servicing-10062") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("DeleterUserId"); - - b.Property("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64); - - b.Property("IsDeleted"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("TenantId"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BrowserInfo") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasMaxLength(64); - - b.Property("ClientName") - .HasMaxLength(128); - - b.Property("CustomData") - .HasMaxLength(2000); - - b.Property("Exception") - .HasMaxLength(2000); - - b.Property("ExecutionDuration"); - - b.Property("ExecutionTime"); - - b.Property("ImpersonatorTenantId"); - - b.Property("ImpersonatorUserId"); - - b.Property("MethodName") - .HasMaxLength(256); - - b.Property("Parameters") - .HasMaxLength(1024); - - b.Property("ReturnValue"); - - b.Property("ServiceName") - .HasMaxLength(256); - - b.Property("TenantId"); - - b.Property("UserId"); - - 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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("IsGranted"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("TenantId"); - - 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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType") - .HasMaxLength(256); - - b.Property("ClaimValue"); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("RoleId"); - - b.Property("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("DeleterUserId"); - - b.Property("DeletionTime"); - - b.Property("EmailAddress") - .HasMaxLength(256); - - b.Property("IsDeleted"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("TenantId"); - - b.Property("UserId"); - - b.Property("UserLinkId"); - - b.Property("UserName") - .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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType") - .HasMaxLength(256); - - b.Property("ClaimValue"); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("TenantId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LoginProvider") - .IsRequired() - .HasMaxLength(128); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(256); - - b.Property("TenantId"); - - b.Property("UserId"); - - 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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BrowserInfo") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasMaxLength(64); - - b.Property("ClientName") - .HasMaxLength(128); - - b.Property("CreationTime"); - - b.Property("Result"); - - b.Property("TenancyName") - .HasMaxLength(64); - - b.Property("TenantId"); - - b.Property("UserId"); - - b.Property("UserNameOrEmailAddress") - .HasMaxLength(255); - - 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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("IsDeleted"); - - b.Property("OrganizationUnitId"); - - b.Property("TenantId"); - - b.Property("UserId"); - - 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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("RoleId"); - - b.Property("TenantId"); - - b.Property("UserId"); - - 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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ExpireDate"); - - b.Property("LoginProvider") - .HasMaxLength(128); - - b.Property("Name") - .HasMaxLength(128); - - b.Property("TenantId"); - - b.Property("UserId"); - - b.Property("Value") - .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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("IsAbandoned"); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(512); - - b.Property("LastTryTime"); - - b.Property("NextTryTime"); - - b.Property("Priority"); - - b.Property("TryCount"); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256); - - b.Property("TenantId"); - - b.Property("UserId"); - - b.Property("Value") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name", "UserId") - .IsUnique(); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ChangeTime"); - - b.Property("ChangeType"); - - b.Property("EntityChangeSetId"); - - b.Property("EntityId") - .HasMaxLength(48); - - b.Property("EntityTypeFullName") - .HasMaxLength(192); - - b.Property("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeSetId"); - - b.HasIndex("EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BrowserInfo") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasMaxLength(64); - - b.Property("ClientName") - .HasMaxLength(128); - - b.Property("CreationTime"); - - b.Property("ExtensionData"); - - b.Property("ImpersonatorTenantId"); - - b.Property("ImpersonatorUserId"); - - b.Property("Reason") - .HasMaxLength(256); - - b.Property("TenantId"); - - b.Property("UserId"); - - 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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("EntityChangeId"); - - b.Property("NewValue") - .HasMaxLength(512); - - b.Property("OriginalValue") - .HasMaxLength(512); - - b.Property("PropertyName") - .HasMaxLength(96); - - b.Property("PropertyTypeFullName") - .HasMaxLength(192); - - b.Property("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("DeleterUserId"); - - b.Property("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64); - - b.Property("Icon") - .HasMaxLength(128); - - b.Property("IsDeleted"); - - b.Property("IsDisabled"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpLanguages"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguageText", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("Key") - .IsRequired() - .HasMaxLength(256); - - b.Property("LanguageName") - .IsRequired() - .HasMaxLength(128); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("Source") - .IsRequired() - .HasMaxLength(128); - - b.Property("TenantId"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(67108864); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Source", "LanguageName", "Key"); - - b.ToTable("AbpLanguageTexts"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("Data") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasMaxLength(512); - - b.Property("EntityId") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasMaxLength(250); - - b.Property("ExcludedUserIds") - .HasMaxLength(131072); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96); - - b.Property("Severity"); - - b.Property("TenantIds") - .HasMaxLength(131072); - - b.Property("UserIds") - .HasMaxLength(131072); - - b.HasKey("Id"); - - b.ToTable("AbpNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("EntityId") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasMaxLength(250); - - b.Property("NotificationName") - .HasMaxLength(96); - - b.Property("TenantId"); - - b.Property("UserId"); - - 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(); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("Data") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasMaxLength(512); - - b.Property("EntityId") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasMaxLength(250); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96); - - b.Property("Severity"); - - b.Property("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("TenantId"); - - b.ToTable("AbpTenantNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CreationTime"); - - b.Property("State"); - - b.Property("TenantId"); - - b.Property("TenantNotificationId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId", "State", "CreationTime"); - - b.ToTable("AbpUserNotifications"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("DeleterUserId"); - - b.Property("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128); - - b.Property("IsDeleted"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("ParentId"); - - b.Property("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("TenantId", "Code"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnitRole", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("IsDeleted"); - - b.Property("OrganizationUnitId"); - - b.Property("RoleId"); - - b.Property("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "OrganizationUnitId"); - - b.HasIndex("TenantId", "RoleId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("DeleterUserId"); - - b.Property("DeletionTime"); - - b.Property("Description") - .HasMaxLength(5000); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64); - - b.Property("IsDefault"); - - b.Property("IsDeleted"); - - b.Property("IsStatic"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(32); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(32); - - b.Property("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenantId", "NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AccessFailedCount"); - - b.Property("AuthenticationSource") - .HasMaxLength(64); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("DeleterUserId"); - - b.Property("DeletionTime"); - - b.Property("EmailAddress") - .IsRequired() - .HasMaxLength(256); - - b.Property("EmailConfirmationCode") - .HasMaxLength(328); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("IsEmailConfirmed"); - - b.Property("IsLockoutEnabled"); - - b.Property("IsPhoneNumberConfirmed"); - - b.Property("IsTwoFactorEnabled"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("LockoutEndDateUtc"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256); - - b.Property("Password") - .IsRequired() - .HasMaxLength(128); - - b.Property("PasswordResetCode") - .HasMaxLength(328); - - b.Property("PhoneNumber") - .HasMaxLength(32); - - b.Property("SecurityStamp") - .HasMaxLength(128); - - b.Property("Surname") - .IsRequired() - .HasMaxLength(64); - - b.Property("TenantId"); - - b.Property("UserName") - .IsRequired() - .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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ConnectionString") - .HasMaxLength(1024); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("DeleterUserId"); - - b.Property("DeletionTime"); - - b.Property("EditionId"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("TenancyName") - .IsRequired() - .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"); - - 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"); - - 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"); - - b.HasIndex("UserId"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator().HasValue("UserPermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet") - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange") - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190719143908_Upgraded_To_Abp_4_8_0.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190719143908_Upgraded_To_Abp_4_8_0.cs deleted file mode 100644 index 2c8017e..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20190719143908_Upgraded_To_Abp_4_8_0.cs +++ /dev/null @@ -1,46 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgraded_To_Abp_4_8_0 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "LanguageName", - table: "AbpLanguageTexts", - maxLength: 128, - nullable: false, - oldClrType: typeof(string), - oldMaxLength: 10); - - migrationBuilder.AlterColumn( - name: "Name", - table: "AbpLanguages", - maxLength: 128, - nullable: false, - oldClrType: typeof(string), - oldMaxLength: 10); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "LanguageName", - table: "AbpLanguageTexts", - maxLength: 10, - nullable: false, - oldClrType: typeof(string), - oldMaxLength: 128); - - migrationBuilder.AlterColumn( - name: "Name", - table: "AbpLanguages", - maxLength: 10, - nullable: false, - oldClrType: typeof(string), - oldMaxLength: 128); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20191216011543_Upgraded_To_Abp_5_1_0.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20191216011543_Upgraded_To_Abp_5_1_0.Designer.cs deleted file mode 100644 index 65ede26..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20191216011543_Upgraded_To_Abp_5_1_0.Designer.cs +++ /dev/null @@ -1,1583 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20191216011543_Upgraded_To_Abp_5_1_0")] - partial class Upgraded_To_Abp_5_1_0 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.0") - .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.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("ASPBaseOIDC.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("ASPBaseOIDC.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("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20191216011543_Upgraded_To_Abp_5_1_0.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20191216011543_Upgraded_To_Abp_5_1_0.cs deleted file mode 100644 index 9d697f0..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20191216011543_Upgraded_To_Abp_5_1_0.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgraded_To_Abp_5_1_0 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "UserNameOrEmailAddress", - table: "AbpUserLoginAttempts", - maxLength: 256, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 255, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Value", - table: "AbpSettings", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 2000, - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "UserNameOrEmailAddress", - table: "AbpUserLoginAttempts", - maxLength: 255, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 256, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Value", - table: "AbpSettings", - maxLength: 2000, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200220110527_Upgraded_To_Abp_5_2_0.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200220110527_Upgraded_To_Abp_5_2_0.Designer.cs deleted file mode 100644 index d6e8d42..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200220110527_Upgraded_To_Abp_5_2_0.Designer.cs +++ /dev/null @@ -1,1693 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20200220110527_Upgraded_To_Abp_5_2_0")] - partial class Upgraded_To_Abp_5_2_0 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.1") - .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.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("ASPBaseOIDC.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("ASPBaseOIDC.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("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200220110527_Upgraded_To_Abp_5_2_0.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200220110527_Upgraded_To_Abp_5_2_0.cs deleted file mode 100644 index 99906e5..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200220110527_Upgraded_To_Abp_5_2_0.cs +++ /dev/null @@ -1,89 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; -using System; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgraded_To_Abp_5_2_0 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "AbpWebhookEvents", - columns: table => new - { - Id = table.Column(nullable: false), - WebhookName = table.Column(nullable: false), - Data = table.Column(nullable: true), - CreationTime = table.Column(nullable: false), - TenantId = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), - DeletionTime = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpWebhookEvents", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpWebhookSubscriptions", - columns: table => new - { - Id = table.Column(nullable: false), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - WebhookUri = table.Column(nullable: false), - Secret = table.Column(nullable: false), - IsActive = table.Column(nullable: false), - Webhooks = table.Column(nullable: true), - Headers = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpWebhookSubscriptions", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpWebhookSendAttempts", - columns: table => new - { - Id = table.Column(nullable: false), - WebhookEventId = table.Column(nullable: false), - WebhookSubscriptionId = table.Column(nullable: false), - Response = table.Column(nullable: true), - ResponseStatusCode = table.Column(nullable: true), - CreationTime = table.Column(nullable: false), - LastModificationTime = table.Column(nullable: true), - TenantId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpWebhookSendAttempts", x => x.Id); - table.ForeignKey( - name: "FK_AbpWebhookSendAttempts_AbpWebhookEvents_WebhookEventId", - column: x => x.WebhookEventId, - principalTable: "AbpWebhookEvents", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_AbpWebhookSendAttempts_WebhookEventId", - table: "AbpWebhookSendAttempts", - column: "WebhookEventId"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "AbpWebhookSendAttempts"); - - migrationBuilder.DropTable( - name: "AbpWebhookSubscriptions"); - - migrationBuilder.DropTable( - name: "AbpWebhookEvents"); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200320114152_Upgraded_To_Abp_5_4_0.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200320114152_Upgraded_To_Abp_5_4_0.Designer.cs deleted file mode 100644 index 433c446..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200320114152_Upgraded_To_Abp_5_4_0.Designer.cs +++ /dev/null @@ -1,1828 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20200320114152_Upgraded_To_Abp_5_4_0")] - partial class Upgraded_To_Abp_5_4_0 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.1") - .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.DynamicEntityParameters.DynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("InputType") - .HasColumnType("nvarchar(max)"); - - b.Property("ParameterName") - .HasColumnType("nvarchar(450)"); - - b.Property("Permission") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ParameterName", "TenantId") - .IsUnique() - .HasFilter("[ParameterName] IS NOT NULL AND [TenantId] IS NOT NULL"); - - b.ToTable("AbpDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.ToTable("AbpDynamicParameterValues"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("EntityFullName") - .HasColumnType("nvarchar(450)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.HasIndex("EntityFullName", "DynamicParameterId", "TenantId") - .IsUnique() - .HasFilter("[EntityFullName] IS NOT NULL AND [TenantId] IS NOT NULL"); - - b.ToTable("AbpEntityDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("EntityDynamicParameterId") - .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("EntityDynamicParameterId"); - - b.ToTable("AbpEntityDynamicParameterValues"); - }); - - 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") - .IsUnique() - .HasFilter("[TenantId] IS NOT NULL"); - - 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("ASPBaseOIDC.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("ASPBaseOIDC.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("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany("DynamicParameterValues") - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany() - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.EntityDynamicParameter", "EntityDynamicParameter") - .WithMany() - .HasForeignKey("EntityDynamicParameterId") - .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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200320114152_Upgraded_To_Abp_5_4_0.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200320114152_Upgraded_To_Abp_5_4_0.cs deleted file mode 100644 index ec16b1f..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200320114152_Upgraded_To_Abp_5_4_0.cs +++ /dev/null @@ -1,155 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgraded_To_Abp_5_4_0 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_AbpOrganizationUnits_TenantId_Code", - table: "AbpOrganizationUnits"); - - migrationBuilder.CreateTable( - name: "AbpDynamicParameters", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ParameterName = table.Column(nullable: true), - InputType = table.Column(nullable: true), - Permission = table.Column(nullable: true), - TenantId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpDynamicParameters", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpDynamicParameterValues", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Value = table.Column(nullable: false), - TenantId = table.Column(nullable: true), - DynamicParameterId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpDynamicParameterValues", x => x.Id); - table.ForeignKey( - name: "FK_AbpDynamicParameterValues_AbpDynamicParameters_DynamicParameterId", - column: x => x.DynamicParameterId, - principalTable: "AbpDynamicParameters", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpEntityDynamicParameters", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - EntityFullName = table.Column(nullable: true), - DynamicParameterId = table.Column(nullable: false), - TenantId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEntityDynamicParameters", x => x.Id); - table.ForeignKey( - name: "FK_AbpEntityDynamicParameters_AbpDynamicParameters_DynamicParameterId", - column: x => x.DynamicParameterId, - principalTable: "AbpDynamicParameters", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpEntityDynamicParameterValues", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Value = table.Column(nullable: false), - EntityId = table.Column(nullable: true), - EntityDynamicParameterId = table.Column(nullable: false), - TenantId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEntityDynamicParameterValues", x => x.Id); - table.ForeignKey( - name: "FK_AbpEntityDynamicParameterValues_AbpEntityDynamicParameters_EntityDynamicParameterId", - column: x => x.EntityDynamicParameterId, - principalTable: "AbpEntityDynamicParameters", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnits_TenantId_Code", - table: "AbpOrganizationUnits", - columns: new[] { "TenantId", "Code" }, - unique: true, - filter: "[TenantId] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_AbpDynamicParameters_ParameterName_TenantId", - table: "AbpDynamicParameters", - columns: new[] { "ParameterName", "TenantId" }, - unique: true, - filter: "[ParameterName] IS NOT NULL AND [TenantId] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_AbpDynamicParameterValues_DynamicParameterId", - table: "AbpDynamicParameterValues", - column: "DynamicParameterId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityDynamicParameters_DynamicParameterId", - table: "AbpEntityDynamicParameters", - column: "DynamicParameterId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityDynamicParameters_EntityFullName_DynamicParameterId_TenantId", - table: "AbpEntityDynamicParameters", - columns: new[] { "EntityFullName", "DynamicParameterId", "TenantId" }, - unique: true, - filter: "[EntityFullName] IS NOT NULL AND [TenantId] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityDynamicParameterValues_EntityDynamicParameterId", - table: "AbpEntityDynamicParameterValues", - column: "EntityDynamicParameterId"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "AbpDynamicParameterValues"); - - migrationBuilder.DropTable( - name: "AbpEntityDynamicParameterValues"); - - migrationBuilder.DropTable( - name: "AbpEntityDynamicParameters"); - - migrationBuilder.DropTable( - name: "AbpDynamicParameters"); - - migrationBuilder.DropIndex( - name: "IX_AbpOrganizationUnits_TenantId_Code", - table: "AbpOrganizationUnits"); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnits_TenantId_Code", - table: "AbpOrganizationUnits", - columns: new[] { "TenantId", "Code" }); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200604091046_Upgraded_To_Abp_5_9.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200604091046_Upgraded_To_Abp_5_9.Designer.cs deleted file mode 100644 index b52de46..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200604091046_Upgraded_To_Abp_5_9.Designer.cs +++ /dev/null @@ -1,1826 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20200604091046_Upgraded_To_Abp_5_9")] - partial class Upgraded_To_Abp_5_9 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.4") - .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.DynamicEntityParameters.DynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("InputType") - .HasColumnType("nvarchar(max)"); - - b.Property("ParameterName") - .HasColumnType("nvarchar(450)"); - - b.Property("Permission") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ParameterName", "TenantId") - .IsUnique() - .HasFilter("[ParameterName] IS NOT NULL AND [TenantId] IS NOT NULL"); - - b.ToTable("AbpDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.ToTable("AbpDynamicParameterValues"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("EntityFullName") - .HasColumnType("nvarchar(450)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.HasIndex("EntityFullName", "DynamicParameterId", "TenantId") - .IsUnique() - .HasFilter("[EntityFullName] IS NOT NULL AND [TenantId] IS NOT NULL"); - - b.ToTable("AbpEntityDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("EntityDynamicParameterId") - .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("EntityDynamicParameterId"); - - b.ToTable("AbpEntityDynamicParameterValues"); - }); - - 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("ASPBaseOIDC.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("ASPBaseOIDC.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("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany("DynamicParameterValues") - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany() - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.EntityDynamicParameter", "EntityDynamicParameter") - .WithMany() - .HasForeignKey("EntityDynamicParameterId") - .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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200604091046_Upgraded_To_Abp_5_9.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200604091046_Upgraded_To_Abp_5_9.cs deleted file mode 100644 index 2f03eb6..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200604091046_Upgraded_To_Abp_5_9.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgraded_To_Abp_5_9 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_AbpOrganizationUnits_TenantId_Code", - table: "AbpOrganizationUnits"); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnits_TenantId_Code", - table: "AbpOrganizationUnits", - columns: new[] { "TenantId", "Code" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_AbpOrganizationUnits_TenantId_Code", - table: "AbpOrganizationUnits"); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnits_TenantId_Code", - table: "AbpOrganizationUnits", - columns: new[] { "TenantId", "Code" }, - unique: true, - filter: "[TenantId] IS NOT NULL"); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200928141743_Upgraded_To_ABP_5_13_0.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200928141743_Upgraded_To_ABP_5_13_0.Designer.cs deleted file mode 100644 index ebc2add..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200928141743_Upgraded_To_ABP_5_13_0.Designer.cs +++ /dev/null @@ -1,1826 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20200928141743_Upgraded_To_ABP_5_13_0")] - partial class Upgraded_To_ABP_5_13_0 - { - 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("ASPBaseOIDC.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("ASPBaseOIDC.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("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200928141743_Upgraded_To_ABP_5_13_0.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200928141743_Upgraded_To_ABP_5_13_0.cs deleted file mode 100644 index 3e304fe..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20200928141743_Upgraded_To_ABP_5_13_0.cs +++ /dev/null @@ -1,256 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgraded_To_ABP_5_13_0 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "AbpDynamicParameterValues"); - - migrationBuilder.DropTable( - name: "AbpEntityDynamicParameterValues"); - - migrationBuilder.DropTable( - name: "AbpEntityDynamicParameters"); - - migrationBuilder.DropTable( - name: "AbpDynamicParameters"); - - migrationBuilder.CreateTable( - name: "AbpDynamicProperties", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - PropertyName = table.Column(nullable: true), - InputType = table.Column(nullable: true), - Permission = table.Column(nullable: true), - TenantId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpDynamicProperties", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpDynamicEntityProperties", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - EntityFullName = table.Column(nullable: true), - DynamicPropertyId = table.Column(nullable: false), - TenantId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpDynamicEntityProperties", x => x.Id); - table.ForeignKey( - name: "FK_AbpDynamicEntityProperties_AbpDynamicProperties_DynamicPropertyId", - column: x => x.DynamicPropertyId, - principalTable: "AbpDynamicProperties", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpDynamicPropertyValues", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Value = table.Column(nullable: false), - TenantId = table.Column(nullable: true), - DynamicPropertyId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpDynamicPropertyValues", x => x.Id); - table.ForeignKey( - name: "FK_AbpDynamicPropertyValues_AbpDynamicProperties_DynamicPropertyId", - column: x => x.DynamicPropertyId, - principalTable: "AbpDynamicProperties", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpDynamicEntityPropertyValues", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Value = table.Column(nullable: false), - EntityId = table.Column(nullable: true), - DynamicEntityPropertyId = table.Column(nullable: false), - TenantId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpDynamicEntityPropertyValues", x => x.Id); - table.ForeignKey( - name: "FK_AbpDynamicEntityPropertyValues_AbpDynamicEntityProperties_DynamicEntityPropertyId", - column: x => x.DynamicEntityPropertyId, - principalTable: "AbpDynamicEntityProperties", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_AbpDynamicEntityProperties_DynamicPropertyId", - table: "AbpDynamicEntityProperties", - column: "DynamicPropertyId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpDynamicEntityProperties_EntityFullName_DynamicPropertyId_TenantId", - table: "AbpDynamicEntityProperties", - columns: new[] { "EntityFullName", "DynamicPropertyId", "TenantId" }, - unique: true, - filter: "[EntityFullName] IS NOT NULL AND [TenantId] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_AbpDynamicEntityPropertyValues_DynamicEntityPropertyId", - table: "AbpDynamicEntityPropertyValues", - column: "DynamicEntityPropertyId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpDynamicProperties_PropertyName_TenantId", - table: "AbpDynamicProperties", - columns: new[] { "PropertyName", "TenantId" }, - unique: true, - filter: "[PropertyName] IS NOT NULL AND [TenantId] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_AbpDynamicPropertyValues_DynamicPropertyId", - table: "AbpDynamicPropertyValues", - column: "DynamicPropertyId"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "AbpDynamicEntityPropertyValues"); - - migrationBuilder.DropTable( - name: "AbpDynamicPropertyValues"); - - migrationBuilder.DropTable( - name: "AbpDynamicEntityProperties"); - - migrationBuilder.DropTable( - name: "AbpDynamicProperties"); - - migrationBuilder.CreateTable( - name: "AbpDynamicParameters", - columns: table => new - { - Id = table.Column(type: "int", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - InputType = table.Column(type: "nvarchar(max)", nullable: true), - ParameterName = table.Column(type: "nvarchar(450)", nullable: true), - Permission = table.Column(type: "nvarchar(max)", nullable: true), - TenantId = table.Column(type: "int", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpDynamicParameters", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpDynamicParameterValues", - columns: table => new - { - Id = table.Column(type: "int", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - DynamicParameterId = table.Column(type: "int", nullable: false), - TenantId = table.Column(type: "int", nullable: true), - Value = table.Column(type: "nvarchar(max)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpDynamicParameterValues", x => x.Id); - table.ForeignKey( - name: "FK_AbpDynamicParameterValues_AbpDynamicParameters_DynamicParameterId", - column: x => x.DynamicParameterId, - principalTable: "AbpDynamicParameters", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpEntityDynamicParameters", - columns: table => new - { - Id = table.Column(type: "int", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - DynamicParameterId = table.Column(type: "int", nullable: false), - EntityFullName = table.Column(type: "nvarchar(450)", nullable: true), - TenantId = table.Column(type: "int", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEntityDynamicParameters", x => x.Id); - table.ForeignKey( - name: "FK_AbpEntityDynamicParameters_AbpDynamicParameters_DynamicParameterId", - column: x => x.DynamicParameterId, - principalTable: "AbpDynamicParameters", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpEntityDynamicParameterValues", - columns: table => new - { - Id = table.Column(type: "int", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - EntityDynamicParameterId = table.Column(type: "int", nullable: false), - EntityId = table.Column(type: "nvarchar(max)", nullable: true), - TenantId = table.Column(type: "int", nullable: true), - Value = table.Column(type: "nvarchar(max)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEntityDynamicParameterValues", x => x.Id); - table.ForeignKey( - name: "FK_AbpEntityDynamicParameterValues_AbpEntityDynamicParameters_EntityDynamicParameterId", - column: x => x.EntityDynamicParameterId, - principalTable: "AbpEntityDynamicParameters", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_AbpDynamicParameters_ParameterName_TenantId", - table: "AbpDynamicParameters", - columns: new[] { "ParameterName", "TenantId" }, - unique: true, - filter: "[ParameterName] IS NOT NULL AND [TenantId] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_AbpDynamicParameterValues_DynamicParameterId", - table: "AbpDynamicParameterValues", - column: "DynamicParameterId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityDynamicParameters_DynamicParameterId", - table: "AbpEntityDynamicParameters", - column: "DynamicParameterId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityDynamicParameters_EntityFullName_DynamicParameterId_TenantId", - table: "AbpEntityDynamicParameters", - columns: new[] { "EntityFullName", "DynamicParameterId", "TenantId" }, - unique: true, - filter: "[EntityFullName] IS NOT NULL AND [TenantId] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityDynamicParameterValues_EntityDynamicParameterId", - table: "AbpEntityDynamicParameterValues", - column: "EntityDynamicParameterId"); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201112121732_Upgraded_To_ABP_6_0.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201112121732_Upgraded_To_ABP_6_0.Designer.cs deleted file mode 100644 index f9e6fb9..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201112121732_Upgraded_To_ABP_6_0.Designer.cs +++ /dev/null @@ -1,1909 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20201112121732_Upgraded_To_ABP_6_0")] - partial class Upgraded_To_ABP_6_0 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .UseIdentityColumns() - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.0"); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .UseIdentityColumn(); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CustomData") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Exception") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ExecutionDuration") - .HasColumnType("int"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("MethodName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Parameters") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ReturnValue") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - 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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("EmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("LoginProvider") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Result") - .HasColumnType("tinyint"); - - b.Property("TenancyName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserNameOrEmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("LoginProvider") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasMaxLength(512) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsAbandoned") - .HasColumnType("bit"); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); - - 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") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - b.Property("ChangeTime") - .HasColumnType("datetime2"); - - b.Property("ChangeType") - .HasColumnType("tinyint"); - - b.Property("EntityChangeSetId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasMaxLength(48) - .HasColumnType("nvarchar(48)"); - - b.Property("EntityTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("EntityChangeId") - .HasColumnType("bigint"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("NewValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("OriginalValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("PropertyTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Icon") - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Key") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("LanguageName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Source") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(67108864) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("ExcludedUserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("Severity") - .HasColumnType("tinyint"); - - b.Property("TenantIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("UserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .UseIdentityColumn(); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .HasMaxLength(5000) - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .UseIdentityColumn(); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EmailConfirmationCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(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() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PasswordResetCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(328)"); - - b.Property("PhoneNumber") - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("SecurityStamp") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Surname") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .UseIdentityColumn(); - - b.Property("ConnectionString") - .HasMaxLength(1024) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenancyName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.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(); - - b.Navigation("DynamicProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty") - .WithMany() - .HasForeignKey("DynamicEntityPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicEntityProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") - .WithMany("DynamicPropertyValues") - .HasForeignKey("DynamicPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicProperty"); - }); - - 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"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") - .WithMany() - .HasForeignKey("WebhookEventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("WebhookEvent"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("Edition"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Edition"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => - { - b.Navigation("DynamicPropertyValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Navigation("Claims"); - - b.Navigation("Permissions"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("Permissions"); - - b.Navigation("Roles"); - - b.Navigation("Settings"); - - b.Navigation("Tokens"); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201112121732_Upgraded_To_ABP_6_0.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201112121732_Upgraded_To_ABP_6_0.cs deleted file mode 100644 index 7eb96f7..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201112121732_Upgraded_To_ABP_6_0.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgraded_To_ABP_6_0 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "NewValueHash", - table: "AbpEntityPropertyChanges", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OriginalValueHash", - table: "AbpEntityPropertyChanges", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "DisplayName", - table: "AbpDynamicProperties", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "NewValueHash", - table: "AbpEntityPropertyChanges"); - - migrationBuilder.DropColumn( - name: "OriginalValueHash", - table: "AbpEntityPropertyChanges"); - - migrationBuilder.DropColumn( - name: "DisplayName", - table: "AbpDynamicProperties"); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201217144556_Upgrade_To_ABP_6_1_1.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201217144556_Upgrade_To_ABP_6_1_1.Designer.cs deleted file mode 100644 index 18c7e22..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201217144556_Upgrade_To_ABP_6_1_1.Designer.cs +++ /dev/null @@ -1,1909 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20201217144556_Upgrade_To_ABP_6_1_1")] - partial class Upgrade_To_ABP_6_1_1 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .UseIdentityColumns() - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.0"); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .UseIdentityColumn(); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CustomData") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Exception") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ExecutionDuration") - .HasColumnType("int"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("MethodName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Parameters") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ReturnValue") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - 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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("EmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("LoginProvider") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Result") - .HasColumnType("tinyint"); - - b.Property("TenancyName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserNameOrEmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("LoginProvider") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasMaxLength(512) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsAbandoned") - .HasColumnType("bit"); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - 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("bigint") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); - - 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("bigint") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - b.Property("ChangeTime") - .HasColumnType("datetime2"); - - b.Property("ChangeType") - .HasColumnType("tinyint"); - - b.Property("EntityChangeSetId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasMaxLength(48) - .HasColumnType("nvarchar(48)"); - - b.Property("EntityTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("EntityChangeId") - .HasColumnType("bigint"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("NewValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("OriginalValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("PropertyTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Icon") - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Key") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("LanguageName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Source") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(67108864) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("ExcludedUserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("Severity") - .HasColumnType("tinyint"); - - b.Property("TenantIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("UserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .UseIdentityColumn(); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .HasMaxLength(5000) - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .UseIdentityColumn(); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EmailConfirmationCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(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() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PasswordResetCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(328)"); - - b.Property("PhoneNumber") - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("SecurityStamp") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Surname") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .UseIdentityColumn(); - - b.Property("ConnectionString") - .HasMaxLength(1024) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenancyName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.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(); - - b.Navigation("DynamicProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty") - .WithMany() - .HasForeignKey("DynamicEntityPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicEntityProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") - .WithMany("DynamicPropertyValues") - .HasForeignKey("DynamicPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicProperty"); - }); - - 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"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") - .WithMany() - .HasForeignKey("WebhookEventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("WebhookEvent"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("Edition"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Edition"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => - { - b.Navigation("DynamicPropertyValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Navigation("Claims"); - - b.Navigation("Permissions"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("Permissions"); - - b.Navigation("Roles"); - - b.Navigation("Settings"); - - b.Navigation("Tokens"); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201217144556_Upgrade_To_ABP_6_1_1.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201217144556_Upgrade_To_ABP_6_1_1.cs deleted file mode 100644 index 377095f..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20201217144556_Upgrade_To_ABP_6_1_1.cs +++ /dev/null @@ -1,64 +0,0 @@ -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgrade_To_ABP_6_1_1 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropPrimaryKey("PK_AbpDynamicPropertyValues", "AbpDynamicPropertyValues"); - migrationBuilder.DropColumn("Id", "AbpDynamicPropertyValues"); - migrationBuilder.AddColumn( - name: "Id", - table: "AbpDynamicPropertyValues", - nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - migrationBuilder.AddPrimaryKey( - name: "PK_AbpDynamicPropertyValues", - table: "AbpDynamicPropertyValues", - columns: new[] { "Id" }); - - migrationBuilder.DropPrimaryKey("PK_AbpDynamicEntityPropertyValues", "AbpDynamicEntityPropertyValues"); - migrationBuilder.DropColumn("Id", "AbpDynamicEntityPropertyValues"); - migrationBuilder.AddColumn( - name: "Id", - table: "AbpDynamicEntityPropertyValues", - nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - migrationBuilder.AddPrimaryKey( - name: "PK_AbpDynamicEntityPropertyValues", - table: "AbpDynamicEntityPropertyValues", - columns: new[] { "Id" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropPrimaryKey("PK_AbpDynamicPropertyValues", "AbpDynamicPropertyValues"); - migrationBuilder.DropColumn("Id", "AbpDynamicPropertyValues"); - migrationBuilder.AddColumn( - name: "Id", - table: "AbpDynamicPropertyValues", - nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - migrationBuilder.AddPrimaryKey( - name: "PK_AbpDynamicPropertyValues", - table: "AbpDynamicPropertyValues", - columns: new[] { "Id" }); - - migrationBuilder.DropPrimaryKey("PK_AbpDynamicEntityPropertyValues", "AbpDynamicEntityPropertyValues"); - migrationBuilder.DropColumn("Id", "AbpDynamicEntityPropertyValues"); - migrationBuilder.AddColumn( - name: "Id", - table: "AbpDynamicEntityPropertyValues", - nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - migrationBuilder.AddPrimaryKey( - name: "PK_AbpDynamicEntityPropertyValues", - table: "AbpDynamicEntityPropertyValues", - columns: new[] { "Id" }); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210324090321_Upgrade_To_ABP_6_3.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210324090321_Upgrade_To_ABP_6_3.Designer.cs deleted file mode 100644 index a899c18..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210324090321_Upgrade_To_ABP_6_3.Designer.cs +++ /dev/null @@ -1,1915 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20210324090321_Upgrade_To_ABP_6_3")] - partial class Upgrade_To_ABP_6_3 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .UseIdentityColumns() - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.3"); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .UseIdentityColumn(); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CustomData") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Exception") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ExceptionMessage") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ExecutionDuration") - .HasColumnType("int"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("MethodName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Parameters") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ReturnValue") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - 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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("EmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("LoginProvider") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Result") - .HasColumnType("tinyint"); - - b.Property("TenancyName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserNameOrEmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("LoginProvider") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasMaxLength(512) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsAbandoned") - .HasColumnType("bit"); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("DynamicPropertyId") - .HasColumnType("int"); - - b.Property("EntityFullName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("bigint") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); - - b.Property("InputType") - .HasColumnType("nvarchar(max)"); - - b.Property("Permission") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("bigint") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - b.Property("ChangeTime") - .HasColumnType("datetime2"); - - b.Property("ChangeType") - .HasColumnType("tinyint"); - - b.Property("EntityChangeSetId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasMaxLength(48) - .HasColumnType("nvarchar(48)"); - - b.Property("EntityTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("EntityChangeId") - .HasColumnType("bigint"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("NewValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("OriginalValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("PropertyTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Icon") - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Key") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("LanguageName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Source") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(67108864) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("ExcludedUserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("Severity") - .HasColumnType("tinyint"); - - b.Property("TenantIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("UserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .UseIdentityColumn(); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .HasMaxLength(5000) - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .UseIdentityColumn(); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EmailConfirmationCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(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() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PasswordResetCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(328)"); - - b.Property("PhoneNumber") - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("SecurityStamp") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Surname") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .UseIdentityColumn(); - - b.Property("ConnectionString") - .HasMaxLength(1024) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenancyName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.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(); - - b.Navigation("DynamicProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty") - .WithMany() - .HasForeignKey("DynamicEntityPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicEntityProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") - .WithMany("DynamicPropertyValues") - .HasForeignKey("DynamicPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicProperty"); - }); - - 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"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") - .WithMany() - .HasForeignKey("WebhookEventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("WebhookEvent"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("Edition"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Edition"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => - { - b.Navigation("DynamicPropertyValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Navigation("Claims"); - - b.Navigation("Permissions"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("Permissions"); - - b.Navigation("Roles"); - - b.Navigation("Settings"); - - b.Navigation("Tokens"); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210324090321_Upgrade_To_ABP_6_3.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210324090321_Upgrade_To_ABP_6_3.cs deleted file mode 100644 index aad6fe9..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210324090321_Upgrade_To_ABP_6_3.cs +++ /dev/null @@ -1,65 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgrade_To_ABP_6_3 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "PropertyName", - table: "AbpDynamicProperties", - type: "nvarchar(256)", - maxLength: 256, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EntityFullName", - table: "AbpDynamicEntityProperties", - type: "nvarchar(256)", - maxLength: 256, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ExceptionMessage", - table: "AbpAuditLogs", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ExceptionMessage", - table: "AbpAuditLogs"); - - migrationBuilder.AlterColumn( - name: "PropertyName", - table: "AbpDynamicProperties", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(256)", - oldMaxLength: 256, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EntityFullName", - table: "AbpDynamicEntityProperties", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(256)", - oldMaxLength: 256, - oldNullable: true); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210628103231_Upgrade_To_ABP_6_4_rc1.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210628103231_Upgrade_To_ABP_6_4_rc1.Designer.cs deleted file mode 100644 index 670c135..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210628103231_Upgrade_To_ABP_6_4_rc1.Designer.cs +++ /dev/null @@ -1,1919 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20210628103231_Upgrade_To_ABP_6_4_rc1")] - partial class Upgrade_To_ABP_6_4_rc1 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .UseIdentityColumns() - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.3"); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .UseIdentityColumn(); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CustomData") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Exception") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ExceptionMessage") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ExecutionDuration") - .HasColumnType("int"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("MethodName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Parameters") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ReturnValue") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - 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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("EmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("LoginProvider") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("ProviderKey", "TenantId") - .IsUnique() - .HasFilter("[TenantId] IS NOT NULL"); - - 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") - .UseIdentityColumn(); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Result") - .HasColumnType("tinyint"); - - b.Property("TenancyName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserNameOrEmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("LoginProvider") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasMaxLength(512) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsAbandoned") - .HasColumnType("bit"); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("DynamicPropertyId") - .HasColumnType("int"); - - b.Property("EntityFullName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("bigint") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); - - b.Property("InputType") - .HasColumnType("nvarchar(max)"); - - b.Property("Permission") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("bigint") - .UseIdentityColumn(); - - 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") - .UseIdentityColumn(); - - b.Property("ChangeTime") - .HasColumnType("datetime2"); - - b.Property("ChangeType") - .HasColumnType("tinyint"); - - b.Property("EntityChangeSetId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasMaxLength(48) - .HasColumnType("nvarchar(48)"); - - b.Property("EntityTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("EntityChangeId") - .HasColumnType("bigint"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("NewValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("OriginalValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("PropertyTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Icon") - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Key") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("LanguageName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Source") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(67108864) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("ExcludedUserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("Severity") - .HasColumnType("tinyint"); - - b.Property("TenantIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("UserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .UseIdentityColumn(); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .UseIdentityColumn(); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .HasMaxLength(5000) - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .UseIdentityColumn(); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EmailConfirmationCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(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() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PasswordResetCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(328)"); - - b.Property("PhoneNumber") - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("SecurityStamp") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Surname") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .UseIdentityColumn(); - - b.Property("ConnectionString") - .HasMaxLength(1024) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenancyName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.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(); - - b.Navigation("DynamicProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty") - .WithMany() - .HasForeignKey("DynamicEntityPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicEntityProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") - .WithMany("DynamicPropertyValues") - .HasForeignKey("DynamicPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicProperty"); - }); - - 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"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") - .WithMany() - .HasForeignKey("WebhookEventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("WebhookEvent"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("Edition"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Edition"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => - { - b.Navigation("DynamicPropertyValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Navigation("Claims"); - - b.Navigation("Permissions"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("Permissions"); - - b.Navigation("Roles"); - - b.Navigation("Settings"); - - b.Navigation("Tokens"); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210628103231_Upgrade_To_ABP_6_4_rc1.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210628103231_Upgrade_To_ABP_6_4_rc1.cs deleted file mode 100644 index ed0db8d..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20210628103231_Upgrade_To_ABP_6_4_rc1.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgrade_To_ABP_6_4_rc1 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateIndex( - name: "IX_AbpUserLogins_ProviderKey_TenantId", - table: "AbpUserLogins", - columns: new[] { "ProviderKey", "TenantId" }, - unique: true, - filter: "[TenantId] IS NOT NULL"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_AbpUserLogins_ProviderKey_TenantId", - table: "AbpUserLogins"); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20220622074714_Upgrade_To_ABP_7.3.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20220622074714_Upgrade_To_ABP_7.3.Designer.cs deleted file mode 100644 index 5a2a8ab..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20220622074714_Upgrade_To_ABP_7.3.Designer.cs +++ /dev/null @@ -1,1956 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20220622074714_Upgrade_To_ABP_7.3")] - partial class Upgrade_To_ABP_73 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "6.0.4") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CustomData") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Exception") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ExceptionMessage") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ExecutionDuration") - .HasColumnType("int"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("MethodName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Parameters") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ReturnValue") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - 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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("EmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("LoginProvider") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("ProviderKey", "TenantId") - .IsUnique() - .HasFilter("[TenantId] IS NOT NULL"); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Result") - .HasColumnType("tinyint"); - - b.Property("TenancyName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserNameOrEmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("LoginProvider") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasMaxLength(512) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsAbandoned") - .HasColumnType("bit"); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("DynamicPropertyId") - .HasColumnType("int"); - - b.Property("EntityFullName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); - - b.Property("InputType") - .HasColumnType("nvarchar(max)"); - - b.Property("Permission") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("ChangeTime") - .HasColumnType("datetime2"); - - b.Property("ChangeType") - .HasColumnType("tinyint"); - - b.Property("EntityChangeSetId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasMaxLength(48) - .HasColumnType("nvarchar(48)"); - - b.Property("EntityTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("EntityChangeId") - .HasColumnType("bigint"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("NewValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("OriginalValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("PropertyTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Icon") - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Key") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("LanguageName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Source") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(67108864) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("ExcludedUserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("Severity") - .HasColumnType("tinyint"); - - b.Property("TargetNotifiers") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("UserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(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("TargetNotifiers") - .HasColumnType("nvarchar(max)"); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .HasMaxLength(5000) - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EmailConfirmationCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(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() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PasswordResetCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(328)"); - - b.Property("PhoneNumber") - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("SecurityStamp") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Surname") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("ConnectionString") - .HasMaxLength(1024) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenancyName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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.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.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.RoleClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.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(); - - b.Navigation("DynamicProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty") - .WithMany() - .HasForeignKey("DynamicEntityPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicEntityProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") - .WithMany("DynamicPropertyValues") - .HasForeignKey("DynamicPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicProperty"); - }); - - 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"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") - .WithMany() - .HasForeignKey("WebhookEventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("WebhookEvent"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("Edition"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Edition"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => - { - b.Navigation("DynamicPropertyValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Navigation("Claims"); - - b.Navigation("Permissions"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("Permissions"); - - b.Navigation("Roles"); - - b.Navigation("Settings"); - - b.Navigation("Tokens"); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20220622074714_Upgrade_To_ABP_7.3.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20220622074714_Upgrade_To_ABP_7.3.cs deleted file mode 100644 index 251e954..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20220622074714_Upgrade_To_ABP_7.3.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace ASPBaseOIDC.Migrations; - -public partial class Upgrade_To_ABP_73 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "TargetNotifiers", - table: "AbpUserNotifications", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "TargetNotifiers", - table: "AbpNotifications", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "TargetNotifiers", - table: "AbpUserNotifications"); - - migrationBuilder.DropColumn( - name: "TargetNotifiers", - table: "AbpNotifications"); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20221213132802_Upgraded_To_Abp_8_0.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20221213132802_Upgraded_To_Abp_8_0.Designer.cs deleted file mode 100644 index edc6821..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20221213132802_Upgraded_To_Abp_8_0.Designer.cs +++ /dev/null @@ -1,1963 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20221213132802_Upgraded_To_Abp_8_0")] - partial class UpgradedToAbp80 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - - b.UseTphMappingStrategy(); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CustomData") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Exception") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ExceptionMessage") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ExecutionDuration") - .HasColumnType("int"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("MethodName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Parameters") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ReturnValue") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator("Discriminator").HasValue("PermissionSetting"); - - b.UseTphMappingStrategy(); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("EmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("LoginProvider") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("ProviderKey", "TenantId") - .IsUnique() - .HasFilter("[TenantId] IS NOT NULL"); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Result") - .HasColumnType("tinyint"); - - b.Property("TenancyName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserNameOrEmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("LoginProvider") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasMaxLength(512) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsAbandoned") - .HasColumnType("bit"); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("DynamicPropertyId") - .HasColumnType("int"); - - b.Property("EntityFullName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); - - b.Property("InputType") - .HasColumnType("nvarchar(max)"); - - b.Property("Permission") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ChangeTime") - .HasColumnType("datetime2"); - - b.Property("ChangeType") - .HasColumnType("tinyint"); - - b.Property("EntityChangeSetId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasMaxLength(48) - .HasColumnType("nvarchar(48)"); - - b.Property("EntityTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("EntityChangeId") - .HasColumnType("bigint"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("NewValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("OriginalValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("PropertyTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Icon") - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Key") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("LanguageName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Source") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(67108864) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("ExcludedUserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("Severity") - .HasColumnType("tinyint"); - - b.Property("TargetNotifiers") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("UserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(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("TargetNotifiers") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .HasMaxLength(5000) - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EmailConfirmationCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(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() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PasswordResetCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(328)"); - - b.Property("PhoneNumber") - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("SecurityStamp") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Surname") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ConnectionString") - .HasMaxLength(1024) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenancyName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.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(); - - b.Navigation("DynamicProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty") - .WithMany() - .HasForeignKey("DynamicEntityPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicEntityProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") - .WithMany("DynamicPropertyValues") - .HasForeignKey("DynamicPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicProperty"); - }); - - 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"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") - .WithMany() - .HasForeignKey("WebhookEventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("WebhookEvent"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("Edition"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Edition"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => - { - b.Navigation("DynamicPropertyValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Navigation("Claims"); - - b.Navigation("Permissions"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("Permissions"); - - b.Navigation("Roles"); - - b.Navigation("Settings"); - - b.Navigation("Tokens"); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20221213132802_Upgraded_To_Abp_8_0.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20221213132802_Upgraded_To_Abp_8_0.cs deleted file mode 100644 index 0a6d7ea..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20221213132802_Upgraded_To_Abp_8_0.cs +++ /dev/null @@ -1,59 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace ASPBaseOIDC.Migrations; - -/// -public partial class UpgradedToAbp80 : Migration -{ - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "TargetNotifiers", - table: "AbpUserNotifications", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TargetNotifiers", - table: "AbpNotifications", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "TargetNotifiers", - table: "AbpUserNotifications", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TargetNotifiers", - table: "AbpNotifications", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240125104915_Upgraded_To_Abp_9_1.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240125104915_Upgraded_To_Abp_9_1.Designer.cs deleted file mode 100644 index c7518b9..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240125104915_Upgraded_To_Abp_9_1.Designer.cs +++ /dev/null @@ -1,1969 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20240125104915_Upgraded_To_Abp_9_1")] - partial class Upgraded_To_Abp_9_1 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasMaxLength(21) - .HasColumnType("nvarchar(21)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - - b.UseTphMappingStrategy(); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CustomData") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Exception") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ExceptionMessage") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ExecutionDuration") - .HasColumnType("int"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("MethodName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Parameters") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ReturnValue") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasMaxLength(21) - .HasColumnType("nvarchar(21)"); - - b.Property("IsGranted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator("Discriminator").HasValue("PermissionSetting"); - - b.UseTphMappingStrategy(); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("EmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("LoginProvider") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("ProviderKey", "TenantId") - .IsUnique() - .HasFilter("[TenantId] IS NOT NULL"); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Result") - .HasColumnType("tinyint"); - - b.Property("TenancyName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserNameOrEmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("LoginProvider") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasMaxLength(512) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsAbandoned") - .HasColumnType("bit"); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("DynamicPropertyId") - .HasColumnType("int"); - - b.Property("EntityFullName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); - - b.Property("InputType") - .HasColumnType("nvarchar(max)"); - - b.Property("Permission") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ChangeTime") - .HasColumnType("datetime2"); - - b.Property("ChangeType") - .HasColumnType("tinyint"); - - b.Property("EntityChangeSetId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasMaxLength(48) - .HasColumnType("nvarchar(48)"); - - b.Property("EntityTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("EntityChangeId") - .HasColumnType("bigint"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("NewValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("OriginalValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("PropertyTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Icon") - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Key") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("LanguageName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Source") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(67108864) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("ExcludedUserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("Severity") - .HasColumnType("tinyint"); - - b.Property("TargetNotifiers") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("UserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TargetNotifiers") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - 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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(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("TargetNotifiers") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .HasMaxLength(5000) - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EmailConfirmationCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(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() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PasswordResetCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(328)"); - - b.Property("PhoneNumber") - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("SecurityStamp") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Surname") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ConnectionString") - .HasMaxLength(1024) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenancyName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.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(); - - b.Navigation("DynamicProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty") - .WithMany() - .HasForeignKey("DynamicEntityPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicEntityProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") - .WithMany("DynamicPropertyValues") - .HasForeignKey("DynamicPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicProperty"); - }); - - 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"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") - .WithMany() - .HasForeignKey("WebhookEventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("WebhookEvent"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("Edition"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Edition"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => - { - b.Navigation("DynamicPropertyValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Navigation("Claims"); - - b.Navigation("Permissions"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("Permissions"); - - b.Navigation("Roles"); - - b.Navigation("Settings"); - - b.Navigation("Tokens"); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240125104915_Upgraded_To_Abp_9_1.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240125104915_Upgraded_To_Abp_9_1.cs deleted file mode 100644 index e478845..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240125104915_Upgraded_To_Abp_9_1.cs +++ /dev/null @@ -1,66 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace ASPBaseOIDC.Migrations; - -/// -public partial class Upgraded_To_Abp_9_1 : Migration -{ - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Discriminator", - table: "AbpPermissions", - type: "nvarchar(21)", - maxLength: 21, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AddColumn( - name: "TargetNotifiers", - table: "AbpNotificationSubscriptions", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Discriminator", - table: "AbpFeatures", - type: "nvarchar(21)", - maxLength: 21, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "TargetNotifiers", - table: "AbpNotificationSubscriptions"); - - migrationBuilder.AlterColumn( - name: "Discriminator", - table: "AbpPermissions", - type: "nvarchar(max)", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(21)", - oldMaxLength: 21); - - migrationBuilder.AlterColumn( - name: "Discriminator", - table: "AbpFeatures", - type: "nvarchar(max)", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(21)", - oldMaxLength: 21); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240503071035_Upgraded_To_Abp_9_2.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240503071035_Upgraded_To_Abp_9_2.Designer.cs deleted file mode 100644 index ed2b8d5..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240503071035_Upgraded_To_Abp_9_2.Designer.cs +++ /dev/null @@ -1,1973 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20240503071035_Upgraded_To_Abp_9_2")] - partial class Upgraded_To_Abp_9_2 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.4") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasMaxLength(21) - .HasColumnType("nvarchar(21)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - - b.UseTphMappingStrategy(); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CustomData") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Exception") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ExceptionMessage") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ExecutionDuration") - .HasColumnType("int"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("MethodName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Parameters") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ReturnValue") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasMaxLength(21) - .HasColumnType("nvarchar(21)"); - - b.Property("IsGranted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator("Discriminator").HasValue("PermissionSetting"); - - b.UseTphMappingStrategy(); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("EmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("LoginProvider") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("ProviderKey", "TenantId") - .IsUnique() - .HasFilter("[TenantId] IS NOT NULL"); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FailReason") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Result") - .HasColumnType("tinyint"); - - b.Property("TenancyName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserNameOrEmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("LoginProvider") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasMaxLength(512) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsAbandoned") - .HasColumnType("bit"); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("DynamicPropertyId") - .HasColumnType("int"); - - b.Property("EntityFullName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); - - b.Property("InputType") - .HasColumnType("nvarchar(max)"); - - b.Property("Permission") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ChangeTime") - .HasColumnType("datetime2"); - - b.Property("ChangeType") - .HasColumnType("tinyint"); - - b.Property("EntityChangeSetId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasMaxLength(48) - .HasColumnType("nvarchar(48)"); - - b.Property("EntityTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("EntityChangeId") - .HasColumnType("bigint"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("NewValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("OriginalValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("PropertyTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Icon") - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Key") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("LanguageName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Source") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(67108864) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("ExcludedUserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("Severity") - .HasColumnType("tinyint"); - - b.Property("TargetNotifiers") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("UserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TargetNotifiers") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - 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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(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("TargetNotifiers") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .HasMaxLength(5000) - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EmailConfirmationCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(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() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PasswordResetCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(328)"); - - b.Property("PhoneNumber") - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("SecurityStamp") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Surname") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ConnectionString") - .HasMaxLength(1024) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenancyName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.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(); - - b.Navigation("DynamicProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty") - .WithMany() - .HasForeignKey("DynamicEntityPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicEntityProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") - .WithMany("DynamicPropertyValues") - .HasForeignKey("DynamicPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicProperty"); - }); - - 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"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") - .WithMany() - .HasForeignKey("WebhookEventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("WebhookEvent"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("Edition"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Edition"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => - { - b.Navigation("DynamicPropertyValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Navigation("Claims"); - - b.Navigation("Permissions"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("Permissions"); - - b.Navigation("Roles"); - - b.Navigation("Settings"); - - b.Navigation("Tokens"); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240503071035_Upgraded_To_Abp_9_2.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240503071035_Upgraded_To_Abp_9_2.cs deleted file mode 100644 index e859418..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20240503071035_Upgraded_To_Abp_9_2.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace ASPBaseOIDC.Migrations; - -/// -public partial class Upgraded_To_Abp_9_2 : Migration -{ - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "FailReason", - table: "AbpUserLoginAttempts", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "FailReason", - table: "AbpUserLoginAttempts"); - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20250114124801_Upgraded_To_Abp_10_0.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20250114124801_Upgraded_To_Abp_10_0.Designer.cs deleted file mode 100644 index 8633578..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20250114124801_Upgraded_To_Abp_10_0.Designer.cs +++ /dev/null @@ -1,1973 +0,0 @@ -// -using System; -using ASPBaseOIDC.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace ASPBaseOIDC.Migrations -{ - [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20250114124801_Upgraded_To_Abp_10_0")] - partial class Upgraded_To_Abp_10_0 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasMaxLength(21) - .HasColumnType("nvarchar(21)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator().HasValue("FeatureSetting"); - - b.UseTphMappingStrategy(); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CustomData") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Exception") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ExceptionMessage") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ExecutionDuration") - .HasColumnType("int"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("MethodName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Parameters") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ReturnValue") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasMaxLength(21) - .HasColumnType("nvarchar(21)"); - - b.Property("IsGranted") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator().HasValue("PermissionSetting"); - - b.UseTphMappingStrategy(); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("EmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("LoginProvider") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("ProviderKey", "TenantId") - .IsUnique() - .HasFilter("[TenantId] IS NOT NULL"); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FailReason") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Result") - .HasColumnType("tinyint"); - - b.Property("TenancyName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserNameOrEmailAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("LoginProvider") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasMaxLength(512) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsAbandoned") - .HasColumnType("bit"); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("DynamicPropertyId") - .HasColumnType("int"); - - b.Property("EntityFullName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); - - b.Property("InputType") - .HasColumnType("nvarchar(max)"); - - b.Property("Permission") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ChangeTime") - .HasColumnType("datetime2"); - - b.Property("ChangeType") - .HasColumnType("tinyint"); - - b.Property("EntityChangeSetId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasMaxLength(48) - .HasColumnType("nvarchar(48)"); - - b.Property("EntityTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(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") - .HasMaxLength(256) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("EntityChangeId") - .HasColumnType("bigint"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("NewValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("OriginalValueHash") - .HasColumnType("nvarchar(max)"); - - b.Property("PropertyName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("PropertyTypeFullName") - .HasMaxLength(192) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Icon") - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Key") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("LanguageName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Source") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(67108864) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("ExcludedUserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("Severity") - .HasColumnType("tinyint"); - - b.Property("TargetNotifiers") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - b.Property("UserIds") - .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); - - 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") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TargetNotifiers") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - 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") - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("DataTypeName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityId") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EntityTypeName") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96) - .HasColumnType("nvarchar(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("TargetNotifiers") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - 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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(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"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - 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("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .HasMaxLength(5000) - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EmailConfirmationCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(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() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PasswordResetCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(328)"); - - b.Property("PhoneNumber") - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("SecurityStamp") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Surname") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ConnectionString") - .HasMaxLength(1024) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenancyName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("ASPBaseOIDC.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(); - - b.Navigation("DynamicProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty") - .WithMany() - .HasForeignKey("DynamicEntityPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicEntityProperty"); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => - { - b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") - .WithMany("DynamicPropertyValues") - .HasForeignKey("DynamicPropertyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DynamicProperty"); - }); - - 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"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") - .WithMany() - .HasForeignKey("WebhookEventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("WebhookEvent"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("Edition"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Edition"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => - { - b.Navigation("DynamicPropertyValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Navigation("Claims"); - - b.Navigation("Permissions"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("Permissions"); - - b.Navigation("Roles"); - - b.Navigation("Settings"); - - b.Navigation("Tokens"); - }); -#pragma warning restore 612, 618 - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20250114124801_Upgraded_To_Abp_10_0.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20250114124801_Upgraded_To_Abp_10_0.cs deleted file mode 100644 index e6284d5..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20250114124801_Upgraded_To_Abp_10_0.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace ASPBaseOIDC.Migrations -{ - /// - public partial class Upgraded_To_Abp_10_0 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Parameters", - table: "AbpAuditLogs", - type: "nvarchar(2048)", - maxLength: 2048, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Parameters", - table: "AbpAuditLogs", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(2048)", - oldMaxLength: 2048, - oldNullable: true); - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20250528073026_Upgraded_To_Abp_10_2.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20250528073026_Upgraded_To_Abp_10_2.cs deleted file mode 100644 index 2141b5f..0000000 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20250528073026_Upgraded_To_Abp_10_2.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace ASPBaseOIDC.Migrations -{ - /// - public partial class Upgraded_To_Abp_10_2 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Parameters", - table: "AbpAuditLogs", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(2048)", - oldMaxLength: 2048, - oldNullable: true); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Parameters", - table: "AbpAuditLogs", - type: "nvarchar(2048)", - maxLength: 2048, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - } - } -} - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20250528073026_Upgraded_To_Abp_10_2.Designer.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20251002033155_Init.Designer.cs similarity index 74% rename from src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20250528073026_Upgraded_To_Abp_10_2.Designer.cs rename to src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20251002033155_Init.Designer.cs index a83ebfc..79b61e9 100644 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20250528073026_Upgraded_To_Abp_10_2.Designer.cs +++ b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20251002033155_Init.Designer.cs @@ -3,17 +3,17 @@ using System; using ASPBaseOIDC.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace ASPBaseOIDC.Migrations { [DbContext(typeof(ASPBaseOIDCDbContext))] - [Migration("20250528073026_Upgraded_To_Abp_10_2")] - partial class Upgraded_To_Abp_10_2 + [Migration("20251002033155_Init")] + partial class Init { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) @@ -21,20 +21,25 @@ namespace ASPBaseOIDC.Migrations #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.5") - .HasAnnotation("Relational:MaxIdentifierLength", 128); + .HasAnnotation("Relational:MaxIdentifierLength", 63); - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - modelBuilder.Entity("Abp.Application.Editions.Edition", b => + modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); + .HasColumnType("integer"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(128) + .HasColumnType("character varying(128)"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); @@ -43,18 +48,28 @@ namespace ASPBaseOIDC.Migrations .HasColumnType("bigint"); b.Property("DeletionTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); + + b.Property("Description") + .HasMaxLength(5000) + .HasColumnType("character varying(5000)"); b.Property("DisplayName") .IsRequired() .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + .HasColumnType("character varying(64)"); + + b.Property("IsDefault") + .HasColumnType("boolean"); b.Property("IsDeleted") - .HasColumnType("bit"); + .HasColumnType("boolean"); + + b.Property("IsStatic") + .HasColumnType("boolean"); b.Property("LastModificationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LastModifierUserId") .HasColumnType("bigint"); @@ -62,7 +77,259 @@ namespace ASPBaseOIDC.Migrations b.Property("Name") .IsRequired() .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); + .HasColumnType("character varying(32)"); + + b.Property("NormalizedName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("character varying(32)"); + + b.Property("TenantId") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenantId", "NormalizedName"); + + b.ToTable("AbpRoles"); + }); + + modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("AccessFailedCount") + .HasColumnType("integer"); + + b.Property("AuthenticationSource") + .HasMaxLength(64) + .HasColumnType("character varying(64)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(128) + .HasColumnType("character varying(128)"); + + b.Property("CreationTime") + .HasColumnType("timestamp with time zone"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("timestamp with time zone"); + + b.Property("EmailAddress") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(256)"); + + b.Property("EmailConfirmationCode") + .HasMaxLength(328) + .HasColumnType("character varying(328)"); + + b.Property("IsActive") + .HasColumnType("boolean"); + + b.Property("IsDeleted") + .HasColumnType("boolean"); + + b.Property("IsEmailConfirmed") + .HasColumnType("boolean"); + + b.Property("IsLockoutEnabled") + .HasColumnType("boolean"); + + b.Property("IsPhoneNumberConfirmed") + .HasColumnType("boolean"); + + b.Property("IsTwoFactorEnabled") + .HasColumnType("boolean"); + + b.Property("LastModificationTime") + .HasColumnType("timestamp with time zone"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("LockoutEndDateUtc") + .HasColumnType("timestamp with time zone"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("character varying(64)"); + + b.Property("NormalizedEmailAddress") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(256)"); + + b.Property("NormalizedUserName") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(256)"); + + b.Property("Password") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("character varying(128)"); + + b.Property("PasswordResetCode") + .HasMaxLength(328) + .HasColumnType("character varying(328)"); + + b.Property("PhoneNumber") + .HasMaxLength(32) + .HasColumnType("character varying(32)"); + + b.Property("SecurityStamp") + .HasMaxLength(128) + .HasColumnType("character varying(128)"); + + b.Property("Surname") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("character varying(64)"); + + b.Property("TenantId") + .HasColumnType("integer"); + + b.Property("UserName") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(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("ASPBaseOIDC.MultiTenancy.Tenant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("ConnectionString") + .HasMaxLength(1024) + .HasColumnType("character varying(1024)"); + + b.Property("CreationTime") + .HasColumnType("timestamp with time zone"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("timestamp with time zone"); + + b.Property("EditionId") + .HasColumnType("integer"); + + b.Property("IsActive") + .HasColumnType("boolean"); + + b.Property("IsDeleted") + .HasColumnType("boolean"); + + b.Property("LastModificationTime") + .HasColumnType("timestamp with time zone"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("character varying(128)"); + + b.Property("TenancyName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("character varying(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.Editions.Edition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("CreationTime") + .HasColumnType("timestamp with time zone"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("timestamp with time zone"); + + b.Property("DisplayName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("character varying(64)"); + + b.Property("IsDeleted") + .HasColumnType("boolean"); + + b.Property("LastModificationTime") + .HasColumnType("timestamp with time zone"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("character varying(32)"); b.HasKey("Id"); @@ -75,10 +342,10 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); @@ -86,20 +353,20 @@ namespace ASPBaseOIDC.Migrations b.Property("Discriminator") .IsRequired() .HasMaxLength(21) - .HasColumnType("nvarchar(21)"); + .HasColumnType("character varying(21)"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("Value") .IsRequired() .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasColumnType("character varying(2000)"); b.HasKey("Id"); @@ -116,61 +383,61 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("BrowserInfo") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("ClientIpAddress") .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + .HasColumnType("character varying(64)"); b.Property("ClientName") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("CustomData") .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasColumnType("character varying(2000)"); b.Property("Exception") .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasColumnType("character varying(2000)"); b.Property("ExceptionMessage") .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); + .HasColumnType("character varying(1024)"); b.Property("ExecutionDuration") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("ExecutionTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("ImpersonatorTenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("ImpersonatorUserId") .HasColumnType("bigint"); b.Property("MethodName") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("Parameters") .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); + .HasColumnType("character varying(4096)"); b.Property("ReturnValue") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("ServiceName") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -192,10 +459,10 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); @@ -203,18 +470,18 @@ namespace ASPBaseOIDC.Migrations b.Property("Discriminator") .IsRequired() .HasMaxLength(21) - .HasColumnType("nvarchar(21)"); + .HasColumnType("character varying(21)"); b.Property("IsGranted") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -233,26 +500,26 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ClaimType") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("ClaimValue") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("RoleId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -269,10 +536,10 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); @@ -281,23 +548,23 @@ namespace ASPBaseOIDC.Migrations .HasColumnType("bigint"); b.Property("DeletionTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("EmailAddress") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("IsDeleted") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("LastModificationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LastModifierUserId") .HasColumnType("bigint"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -307,7 +574,7 @@ namespace ASPBaseOIDC.Migrations b.Property("UserName") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.HasKey("Id"); @@ -330,23 +597,23 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ClaimType") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("ClaimValue") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -366,20 +633,20 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("LoginProvider") .IsRequired() .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("ProviderKey") .IsRequired() .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -389,8 +656,7 @@ namespace ASPBaseOIDC.Migrations b.HasIndex("UserId"); b.HasIndex("ProviderKey", "TenantId") - .IsUnique() - .HasFilter("[TenantId] IS NOT NULL"); + .IsUnique(); b.HasIndex("TenantId", "UserId"); @@ -405,43 +671,43 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("BrowserInfo") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("ClientIpAddress") .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + .HasColumnType("character varying(64)"); b.Property("ClientName") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("FailReason") .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); + .HasColumnType("character varying(1024)"); b.Property("Result") - .HasColumnType("tinyint"); + .HasColumnType("smallint"); b.Property("TenancyName") .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + .HasColumnType("character varying(64)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); b.Property("UserNameOrEmailAddress") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.HasKey("Id"); @@ -458,22 +724,22 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("IsDeleted") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("OrganizationUnitId") .HasColumnType("bigint"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -493,19 +759,19 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("RoleId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -527,28 +793,28 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ExpireDate") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LoginProvider") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("Name") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); b.Property("Value") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.HasKey("Id"); @@ -565,35 +831,35 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("IsAbandoned") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("JobArgs") .IsRequired() .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); + .HasColumnType("character varying(1048576)"); b.Property("JobType") .IsRequired() .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("LastTryTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("NextTryTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("Priority") - .HasColumnType("tinyint"); + .HasColumnType("smallint"); b.Property("TryCount") .HasColumnType("smallint"); @@ -611,16 +877,16 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("LastModificationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LastModifierUserId") .HasColumnType("bigint"); @@ -628,16 +894,16 @@ namespace ASPBaseOIDC.Migrations b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); b.Property("Value") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.HasKey("Id"); @@ -653,27 +919,26 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); + .HasColumnType("integer"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("DynamicPropertyId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("EntityFullName") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("DynamicPropertyId"); b.HasIndex("EntityFullName", "DynamicPropertyId", "TenantId") - .IsUnique() - .HasFilter("[EntityFullName] IS NOT NULL AND [TenantId] IS NOT NULL"); + .IsUnique(); b.ToTable("AbpDynamicEntityProperties"); }); @@ -684,20 +949,20 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("DynamicEntityPropertyId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("EntityId") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("Value") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.HasKey("Id"); @@ -710,31 +975,30 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); + .HasColumnType("integer"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("InputType") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("Permission") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("PropertyName") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("PropertyName", "TenantId") - .IsUnique() - .HasFilter("[PropertyName] IS NOT NULL AND [TenantId] IS NOT NULL"); + .IsUnique(); b.ToTable("AbpDynamicProperties"); }); @@ -745,17 +1009,17 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("DynamicPropertyId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("Value") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.HasKey("Id"); @@ -770,27 +1034,27 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ChangeTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("ChangeType") - .HasColumnType("tinyint"); + .HasColumnType("smallint"); b.Property("EntityChangeSetId") .HasColumnType("bigint"); b.Property("EntityId") .HasMaxLength(48) - .HasColumnType("nvarchar(48)"); + .HasColumnType("character varying(48)"); b.Property("EntityTypeFullName") .HasMaxLength(192) - .HasColumnType("nvarchar(192)"); + .HasColumnType("character varying(192)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -807,38 +1071,38 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("BrowserInfo") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("ClientIpAddress") .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + .HasColumnType("character varying(64)"); b.Property("ClientName") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("ExtensionData") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("ImpersonatorTenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("ImpersonatorUserId") .HasColumnType("bigint"); b.Property("Reason") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -860,35 +1124,35 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("EntityChangeId") .HasColumnType("bigint"); b.Property("NewValue") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("NewValueHash") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("OriginalValue") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("OriginalValueHash") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("PropertyName") .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); + .HasColumnType("character varying(96)"); b.Property("PropertyTypeFullName") .HasMaxLength(192) - .HasColumnType("nvarchar(192)"); + .HasColumnType("character varying(192)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -901,12 +1165,12 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); + .HasColumnType("integer"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); @@ -915,25 +1179,25 @@ namespace ASPBaseOIDC.Migrations .HasColumnType("bigint"); b.Property("DeletionTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("DisplayName") .IsRequired() .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + .HasColumnType("character varying(64)"); b.Property("Icon") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("IsDeleted") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("IsDisabled") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("LastModificationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LastModifierUserId") .HasColumnType("bigint"); @@ -941,10 +1205,10 @@ namespace ASPBaseOIDC.Migrations b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -959,10 +1223,10 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); @@ -970,15 +1234,15 @@ namespace ASPBaseOIDC.Migrations b.Property("Key") .IsRequired() .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("LanguageName") .IsRequired() .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("LastModificationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LastModifierUserId") .HasColumnType("bigint"); @@ -986,15 +1250,15 @@ namespace ASPBaseOIDC.Migrations b.Property("Source") .IsRequired() .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("Value") .IsRequired() .HasMaxLength(67108864) - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.HasKey("Id"); @@ -1007,57 +1271,57 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("Data") .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); + .HasColumnType("character varying(1048576)"); b.Property("DataTypeName") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("EntityId") .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); + .HasColumnType("character varying(96)"); b.Property("EntityTypeAssemblyQualifiedName") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("EntityTypeName") .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasColumnType("character varying(250)"); b.Property("ExcludedUserIds") .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); + .HasColumnType("character varying(131072)"); b.Property("NotificationName") .IsRequired() .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); + .HasColumnType("character varying(96)"); b.Property("Severity") - .HasColumnType("tinyint"); + .HasColumnType("smallint"); b.Property("TargetNotifiers") .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); + .HasColumnType("character varying(1024)"); b.Property("TenantIds") .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); + .HasColumnType("character varying(131072)"); b.Property("UserIds") .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); + .HasColumnType("character varying(131072)"); b.HasKey("Id"); @@ -1068,36 +1332,36 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("EntityId") .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); + .HasColumnType("character varying(96)"); b.Property("EntityTypeAssemblyQualifiedName") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("EntityTypeName") .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasColumnType("character varying(250)"); b.Property("NotificationName") .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); + .HasColumnType("character varying(96)"); b.Property("TargetNotifiers") .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); + .HasColumnType("character varying(1024)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -1115,44 +1379,44 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("Data") .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); + .HasColumnType("character varying(1048576)"); b.Property("DataTypeName") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("EntityId") .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); + .HasColumnType("character varying(96)"); b.Property("EntityTypeAssemblyQualifiedName") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("EntityTypeName") .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasColumnType("character varying(250)"); b.Property("NotificationName") .IsRequired() .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); + .HasColumnType("character varying(96)"); b.Property("Severity") - .HasColumnType("tinyint"); + .HasColumnType("smallint"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -1165,23 +1429,23 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("State") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("TargetNotifiers") .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); + .HasColumnType("character varying(1024)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("TenantNotificationId") - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("UserId") .HasColumnType("bigint"); @@ -1199,15 +1463,15 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("Code") .IsRequired() .HasMaxLength(95) - .HasColumnType("nvarchar(95)"); + .HasColumnType("character varying(95)"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); @@ -1216,18 +1480,18 @@ namespace ASPBaseOIDC.Migrations .HasColumnType("bigint"); b.Property("DeletionTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("DisplayName") .IsRequired() .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("IsDeleted") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("LastModificationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LastModifierUserId") .HasColumnType("bigint"); @@ -1236,7 +1500,7 @@ namespace ASPBaseOIDC.Migrations .HasColumnType("bigint"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -1253,25 +1517,25 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("IsDeleted") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("OrganizationUnitId") .HasColumnType("bigint"); b.Property("RoleId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -1286,26 +1550,26 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("Data") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("DeletionTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("IsDeleted") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("WebhookName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.HasKey("Id"); @@ -1316,28 +1580,28 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LastModificationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("Response") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("ResponseStatusCode") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("WebhookEventId") - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("WebhookSubscriptionId") - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.HasKey("Id"); @@ -1350,312 +1614,45 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("Headers") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("IsActive") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("Secret") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("WebhookUri") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("Webhooks") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.HasKey("Id"); b.ToTable("AbpWebhookSubscriptions"); }); - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .HasMaxLength(5000) - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EmailConfirmationCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(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() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PasswordResetCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(328)"); - - b.Property("PhoneNumber") - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("SecurityStamp") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Surname") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ConnectionString") - .HasMaxLength(1024) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenancyName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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"); + .HasColumnType("integer"); b.HasIndex("EditionId", "Name"); @@ -1680,7 +1677,7 @@ namespace ASPBaseOIDC.Migrations b.HasBaseType("Abp.Authorization.PermissionSetting"); b.Property("RoleId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasIndex("RoleId"); @@ -1703,6 +1700,75 @@ namespace ASPBaseOIDC.Migrations b.HasDiscriminator().HasValue("UserPermissionSetting"); }); + modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => + { + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + + b.Navigation("CreatorUser"); + + b.Navigation("DeleterUser"); + + b.Navigation("LastModifierUser"); + }); + + modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => + { + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + + b.Navigation("CreatorUser"); + + b.Navigation("DeleterUser"); + + b.Navigation("LastModifierUser"); + }); + + modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => + { + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("Abp.Application.Editions.Edition", "Edition") + .WithMany() + .HasForeignKey("EditionId"); + + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + + b.Navigation("CreatorUser"); + + b.Navigation("DeleterUser"); + + b.Navigation("Edition"); + + b.Navigation("LastModifierUser"); + }); + modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => { b.HasOne("ASPBaseOIDC.Authorization.Roles.Role", null) @@ -1826,75 +1892,6 @@ namespace ASPBaseOIDC.Migrations b.Navigation("WebhookEvent"); }); - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("Edition"); - - b.Navigation("LastModifierUser"); - }); - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => { b.HasOne("Abp.Application.Editions.Edition", "Edition") @@ -1924,26 +1921,6 @@ namespace ASPBaseOIDC.Migrations .IsRequired(); }); - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => - { - b.Navigation("DynamicPropertyValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Navigation("Children"); - }); - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => { b.Navigation("Claims"); @@ -1965,9 +1942,27 @@ namespace ASPBaseOIDC.Migrations b.Navigation("Tokens"); }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => + { + b.Navigation("DynamicPropertyValues"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => + { + b.Navigation("PropertyChanges"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => + { + b.Navigation("EntityChanges"); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => + { + b.Navigation("Children"); + }); #pragma warning restore 612, 618 } } } - - diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20251002033155_Init.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20251002033155_Init.cs new file mode 100644 index 0000000..128ea0a --- /dev/null +++ b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/20251002033155_Init.cs @@ -0,0 +1,1334 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; + +#nullable disable + +namespace ASPBaseOIDC.Migrations +{ + /// + public partial class Init : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "AbpAuditLogs", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + UserId = table.Column(type: "bigint", nullable: true), + ServiceName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + MethodName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + Parameters = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true), + ReturnValue = table.Column(type: "text", nullable: true), + ExecutionTime = table.Column(type: "timestamp with time zone", nullable: false), + ExecutionDuration = table.Column(type: "integer", nullable: false), + ClientIpAddress = table.Column(type: "character varying(64)", maxLength: 64, nullable: true), + ClientName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true), + BrowserInfo = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + ExceptionMessage = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true), + Exception = table.Column(type: "character varying(2000)", maxLength: 2000, nullable: true), + ImpersonatorUserId = table.Column(type: "bigint", nullable: true), + ImpersonatorTenantId = table.Column(type: "integer", nullable: true), + CustomData = table.Column(type: "character varying(2000)", maxLength: 2000, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpAuditLogs", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpBackgroundJobs", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + JobType = table.Column(type: "character varying(512)", maxLength: 512, nullable: false), + JobArgs = table.Column(type: "character varying(1048576)", maxLength: 1048576, nullable: false), + TryCount = table.Column(type: "smallint", nullable: false), + NextTryTime = table.Column(type: "timestamp with time zone", nullable: false), + LastTryTime = table.Column(type: "timestamp with time zone", nullable: true), + IsAbandoned = table.Column(type: "boolean", nullable: false), + Priority = table.Column(type: "smallint", nullable: false), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpBackgroundJobs", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpDynamicProperties", + columns: table => new + { + Id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + PropertyName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + DisplayName = table.Column(type: "text", nullable: true), + InputType = table.Column(type: "text", nullable: true), + Permission = table.Column(type: "text", nullable: true), + TenantId = table.Column(type: "integer", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpDynamicProperties", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpEditions", + columns: table => new + { + Id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(32)", maxLength: 32, nullable: false), + DisplayName = table.Column(type: "character varying(64)", maxLength: 64, nullable: false), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "boolean", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpEditions", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpEntityChangeSets", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + BrowserInfo = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + ClientIpAddress = table.Column(type: "character varying(64)", maxLength: 64, nullable: true), + ClientName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + ExtensionData = table.Column(type: "text", nullable: true), + ImpersonatorTenantId = table.Column(type: "integer", nullable: true), + ImpersonatorUserId = table.Column(type: "bigint", nullable: true), + Reason = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + TenantId = table.Column(type: "integer", nullable: true), + UserId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpEntityChangeSets", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpLanguages", + columns: table => new + { + Id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), + DisplayName = table.Column(type: "character varying(64)", maxLength: 64, nullable: false), + Icon = table.Column(type: "character varying(128)", maxLength: 128, nullable: true), + IsDisabled = table.Column(type: "boolean", nullable: false), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "boolean", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpLanguages", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpLanguageTexts", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + LanguageName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), + Source = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), + Key = table.Column(type: "character varying(256)", maxLength: 256, nullable: false), + Value = table.Column(type: "text", maxLength: 67108864, nullable: false), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpLanguageTexts", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpNotifications", + columns: table => new + { + Id = table.Column(type: "uuid", nullable: false), + NotificationName = table.Column(type: "character varying(96)", maxLength: 96, nullable: false), + Data = table.Column(type: "character varying(1048576)", maxLength: 1048576, nullable: true), + DataTypeName = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + EntityTypeName = table.Column(type: "character varying(250)", maxLength: 250, nullable: true), + EntityTypeAssemblyQualifiedName = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + EntityId = table.Column(type: "character varying(96)", maxLength: 96, nullable: true), + Severity = table.Column(type: "smallint", nullable: false), + UserIds = table.Column(type: "character varying(131072)", maxLength: 131072, nullable: true), + ExcludedUserIds = table.Column(type: "character varying(131072)", maxLength: 131072, nullable: true), + TenantIds = table.Column(type: "character varying(131072)", maxLength: 131072, nullable: true), + TargetNotifiers = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpNotifications", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpNotificationSubscriptions", + columns: table => new + { + Id = table.Column(type: "uuid", nullable: false), + TenantId = table.Column(type: "integer", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + NotificationName = table.Column(type: "character varying(96)", maxLength: 96, nullable: true), + EntityTypeName = table.Column(type: "character varying(250)", maxLength: 250, nullable: true), + EntityTypeAssemblyQualifiedName = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + EntityId = table.Column(type: "character varying(96)", maxLength: 96, nullable: true), + TargetNotifiers = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpNotificationSubscriptions", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpOrganizationUnitRoles", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + RoleId = table.Column(type: "integer", nullable: false), + OrganizationUnitId = table.Column(type: "bigint", nullable: false), + IsDeleted = table.Column(type: "boolean", nullable: false), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpOrganizationUnits", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + ParentId = table.Column(type: "bigint", nullable: true), + Code = table.Column(type: "character varying(95)", maxLength: 95, nullable: false), + DisplayName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "boolean", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id); + table.ForeignKey( + name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId", + column: x => x.ParentId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id"); + }); + + migrationBuilder.CreateTable( + name: "AbpTenantNotifications", + columns: table => new + { + Id = table.Column(type: "uuid", nullable: false), + TenantId = table.Column(type: "integer", nullable: true), + NotificationName = table.Column(type: "character varying(96)", maxLength: 96, nullable: false), + Data = table.Column(type: "character varying(1048576)", maxLength: 1048576, nullable: true), + DataTypeName = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + EntityTypeName = table.Column(type: "character varying(250)", maxLength: 250, nullable: true), + EntityTypeAssemblyQualifiedName = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + EntityId = table.Column(type: "character varying(96)", maxLength: 96, nullable: true), + Severity = table.Column(type: "smallint", nullable: false), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpTenantNotifications", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpUserAccounts", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + UserLinkId = table.Column(type: "bigint", nullable: true), + UserName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + EmailAddress = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "boolean", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserAccounts", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpUserLoginAttempts", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + TenancyName = table.Column(type: "character varying(64)", maxLength: 64, nullable: true), + UserId = table.Column(type: "bigint", nullable: true), + UserNameOrEmailAddress = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + ClientIpAddress = table.Column(type: "character varying(64)", maxLength: 64, nullable: true), + ClientName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true), + BrowserInfo = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + Result = table.Column(type: "smallint", nullable: false), + FailReason = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserLoginAttempts", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpUserNotifications", + columns: table => new + { + Id = table.Column(type: "uuid", nullable: false), + TenantId = table.Column(type: "integer", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + TenantNotificationId = table.Column(type: "uuid", nullable: false), + State = table.Column(type: "integer", nullable: false), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + TargetNotifiers = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserNotifications", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpUserOrganizationUnits", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + OrganizationUnitId = table.Column(type: "bigint", nullable: false), + IsDeleted = table.Column(type: "boolean", nullable: false), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserOrganizationUnits", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpUsers", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "boolean", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "timestamp with time zone", nullable: true), + AuthenticationSource = table.Column(type: "character varying(64)", maxLength: 64, nullable: true), + UserName = table.Column(type: "character varying(256)", maxLength: 256, nullable: false), + TenantId = table.Column(type: "integer", nullable: true), + EmailAddress = table.Column(type: "character varying(256)", maxLength: 256, nullable: false), + Name = table.Column(type: "character varying(64)", maxLength: 64, nullable: false), + Surname = table.Column(type: "character varying(64)", maxLength: 64, nullable: false), + Password = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), + EmailConfirmationCode = table.Column(type: "character varying(328)", maxLength: 328, nullable: true), + PasswordResetCode = table.Column(type: "character varying(328)", maxLength: 328, nullable: true), + LockoutEndDateUtc = table.Column(type: "timestamp with time zone", nullable: true), + AccessFailedCount = table.Column(type: "integer", nullable: false), + IsLockoutEnabled = table.Column(type: "boolean", nullable: false), + PhoneNumber = table.Column(type: "character varying(32)", maxLength: 32, nullable: true), + IsPhoneNumberConfirmed = table.Column(type: "boolean", nullable: false), + SecurityStamp = table.Column(type: "character varying(128)", maxLength: 128, nullable: true), + IsTwoFactorEnabled = table.Column(type: "boolean", nullable: false), + IsEmailConfirmed = table.Column(type: "boolean", nullable: false), + IsActive = table.Column(type: "boolean", nullable: false), + NormalizedUserName = table.Column(type: "character varying(256)", maxLength: 256, nullable: false), + NormalizedEmailAddress = table.Column(type: "character varying(256)", maxLength: 256, nullable: false), + ConcurrencyStamp = table.Column(type: "character varying(128)", maxLength: 128, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUsers", x => x.Id); + table.ForeignKey( + name: "FK_AbpUsers_AbpUsers_CreatorUserId", + column: x => x.CreatorUserId, + principalTable: "AbpUsers", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_AbpUsers_AbpUsers_DeleterUserId", + column: x => x.DeleterUserId, + principalTable: "AbpUsers", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_AbpUsers_AbpUsers_LastModifierUserId", + column: x => x.LastModifierUserId, + principalTable: "AbpUsers", + principalColumn: "Id"); + }); + + migrationBuilder.CreateTable( + name: "AbpWebhookEvents", + columns: table => new + { + Id = table.Column(type: "uuid", nullable: false), + WebhookName = table.Column(type: "text", nullable: false), + Data = table.Column(type: "text", nullable: true), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + TenantId = table.Column(type: "integer", nullable: true), + IsDeleted = table.Column(type: "boolean", nullable: false), + DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpWebhookEvents", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpWebhookSubscriptions", + columns: table => new + { + Id = table.Column(type: "uuid", nullable: false), + TenantId = table.Column(type: "integer", nullable: true), + WebhookUri = table.Column(type: "text", nullable: false), + Secret = table.Column(type: "text", nullable: false), + IsActive = table.Column(type: "boolean", nullable: false), + Webhooks = table.Column(type: "text", nullable: true), + Headers = table.Column(type: "text", nullable: true), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpWebhookSubscriptions", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpDynamicEntityProperties", + columns: table => new + { + Id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + EntityFullName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + DynamicPropertyId = table.Column(type: "integer", nullable: false), + TenantId = table.Column(type: "integer", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpDynamicEntityProperties", x => x.Id); + table.ForeignKey( + name: "FK_AbpDynamicEntityProperties_AbpDynamicProperties_DynamicProp~", + column: x => x.DynamicPropertyId, + principalTable: "AbpDynamicProperties", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpDynamicPropertyValues", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Value = table.Column(type: "text", nullable: false), + TenantId = table.Column(type: "integer", nullable: true), + DynamicPropertyId = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpDynamicPropertyValues", x => x.Id); + table.ForeignKey( + name: "FK_AbpDynamicPropertyValues_AbpDynamicProperties_DynamicProper~", + column: x => x.DynamicPropertyId, + principalTable: "AbpDynamicProperties", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpFeatures", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), + Value = table.Column(type: "character varying(2000)", maxLength: 2000, nullable: false), + Discriminator = table.Column(type: "character varying(21)", maxLength: 21, nullable: false), + EditionId = table.Column(type: "integer", nullable: true), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpFeatures", x => x.Id); + table.ForeignKey( + name: "FK_AbpFeatures_AbpEditions_EditionId", + column: x => x.EditionId, + principalTable: "AbpEditions", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpEntityChanges", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ChangeTime = table.Column(type: "timestamp with time zone", nullable: false), + ChangeType = table.Column(type: "smallint", nullable: false), + EntityChangeSetId = table.Column(type: "bigint", nullable: false), + EntityId = table.Column(type: "character varying(48)", maxLength: 48, nullable: true), + EntityTypeFullName = table.Column(type: "character varying(192)", maxLength: 192, nullable: true), + TenantId = table.Column(type: "integer", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpEntityChanges", x => x.Id); + table.ForeignKey( + name: "FK_AbpEntityChanges_AbpEntityChangeSets_EntityChangeSetId", + column: x => x.EntityChangeSetId, + principalTable: "AbpEntityChangeSets", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpRoles", + columns: table => new + { + Id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Description = table.Column(type: "character varying(5000)", maxLength: 5000, nullable: true), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "boolean", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "timestamp with time zone", nullable: true), + TenantId = table.Column(type: "integer", nullable: true), + Name = table.Column(type: "character varying(32)", maxLength: 32, nullable: false), + DisplayName = table.Column(type: "character varying(64)", maxLength: 64, nullable: false), + IsStatic = table.Column(type: "boolean", nullable: false), + IsDefault = table.Column(type: "boolean", nullable: false), + NormalizedName = table.Column(type: "character varying(32)", maxLength: 32, nullable: false), + ConcurrencyStamp = table.Column(type: "character varying(128)", maxLength: 128, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpRoles", x => x.Id); + table.ForeignKey( + name: "FK_AbpRoles_AbpUsers_CreatorUserId", + column: x => x.CreatorUserId, + principalTable: "AbpUsers", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_AbpRoles_AbpUsers_DeleterUserId", + column: x => x.DeleterUserId, + principalTable: "AbpUsers", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_AbpRoles_AbpUsers_LastModifierUserId", + column: x => x.LastModifierUserId, + principalTable: "AbpUsers", + principalColumn: "Id"); + }); + + migrationBuilder.CreateTable( + name: "AbpSettings", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + UserId = table.Column(type: "bigint", nullable: true), + Name = table.Column(type: "character varying(256)", maxLength: 256, nullable: false), + Value = table.Column(type: "text", nullable: true), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpSettings", x => x.Id); + table.ForeignKey( + name: "FK_AbpSettings_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id"); + }); + + migrationBuilder.CreateTable( + name: "AbpTenants", + columns: table => new + { + Id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "boolean", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "timestamp with time zone", nullable: true), + TenancyName = table.Column(type: "character varying(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), + ConnectionString = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true), + IsActive = table.Column(type: "boolean", nullable: false), + EditionId = table.Column(type: "integer", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpTenants", x => x.Id); + table.ForeignKey( + name: "FK_AbpTenants_AbpEditions_EditionId", + column: x => x.EditionId, + principalTable: "AbpEditions", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_AbpTenants_AbpUsers_CreatorUserId", + column: x => x.CreatorUserId, + principalTable: "AbpUsers", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_AbpTenants_AbpUsers_DeleterUserId", + column: x => x.DeleterUserId, + principalTable: "AbpUsers", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_AbpTenants_AbpUsers_LastModifierUserId", + column: x => x.LastModifierUserId, + principalTable: "AbpUsers", + principalColumn: "Id"); + }); + + migrationBuilder.CreateTable( + name: "AbpUserClaims", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + ClaimType = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + ClaimValue = table.Column(type: "text", nullable: true), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserClaims", x => x.Id); + table.ForeignKey( + name: "FK_AbpUserClaims_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserLogins", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + LoginProvider = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), + ProviderKey = table.Column(type: "character varying(256)", maxLength: 256, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserLogins", x => x.Id); + table.ForeignKey( + name: "FK_AbpUserLogins_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserRoles", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + RoleId = table.Column(type: "integer", nullable: false), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserRoles", x => x.Id); + table.ForeignKey( + name: "FK_AbpUserRoles_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserTokens", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + LoginProvider = table.Column(type: "character varying(128)", maxLength: 128, nullable: true), + Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: true), + Value = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + ExpireDate = table.Column(type: "timestamp with time zone", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserTokens", x => x.Id); + table.ForeignKey( + name: "FK_AbpUserTokens_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpWebhookSendAttempts", + columns: table => new + { + Id = table.Column(type: "uuid", nullable: false), + WebhookEventId = table.Column(type: "uuid", nullable: false), + WebhookSubscriptionId = table.Column(type: "uuid", nullable: false), + Response = table.Column(type: "text", nullable: true), + ResponseStatusCode = table.Column(type: "integer", nullable: true), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + TenantId = table.Column(type: "integer", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpWebhookSendAttempts", x => x.Id); + table.ForeignKey( + name: "FK_AbpWebhookSendAttempts_AbpWebhookEvents_WebhookEventId", + column: x => x.WebhookEventId, + principalTable: "AbpWebhookEvents", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpDynamicEntityPropertyValues", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Value = table.Column(type: "text", nullable: false), + EntityId = table.Column(type: "text", nullable: true), + DynamicEntityPropertyId = table.Column(type: "integer", nullable: false), + TenantId = table.Column(type: "integer", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpDynamicEntityPropertyValues", x => x.Id); + table.ForeignKey( + name: "FK_AbpDynamicEntityPropertyValues_AbpDynamicEntityProperties_D~", + column: x => x.DynamicEntityPropertyId, + principalTable: "AbpDynamicEntityProperties", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpEntityPropertyChanges", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + EntityChangeId = table.Column(type: "bigint", nullable: false), + NewValue = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + OriginalValue = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + PropertyName = table.Column(type: "character varying(96)", maxLength: 96, nullable: true), + PropertyTypeFullName = table.Column(type: "character varying(192)", maxLength: 192, nullable: true), + TenantId = table.Column(type: "integer", nullable: true), + NewValueHash = table.Column(type: "text", nullable: true), + OriginalValueHash = table.Column(type: "text", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpEntityPropertyChanges", x => x.Id); + table.ForeignKey( + name: "FK_AbpEntityPropertyChanges_AbpEntityChanges_EntityChangeId", + column: x => x.EntityChangeId, + principalTable: "AbpEntityChanges", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpPermissions", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), + IsGranted = table.Column(type: "boolean", nullable: false), + Discriminator = table.Column(type: "character varying(21)", maxLength: 21, nullable: false), + RoleId = table.Column(type: "integer", nullable: true), + UserId = table.Column(type: "bigint", nullable: true), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpPermissions", x => x.Id); + table.ForeignKey( + name: "FK_AbpPermissions_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpPermissions_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpRoleClaims", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TenantId = table.Column(type: "integer", nullable: true), + RoleId = table.Column(type: "integer", nullable: false), + ClaimType = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + ClaimValue = table.Column(type: "text", nullable: true), + CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpRoleClaims", x => x.Id); + table.ForeignKey( + name: "FK_AbpRoleClaims_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogs_TenantId_ExecutionDuration", + table: "AbpAuditLogs", + columns: new[] { "TenantId", "ExecutionDuration" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogs_TenantId_ExecutionTime", + table: "AbpAuditLogs", + columns: new[] { "TenantId", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogs_TenantId_UserId", + table: "AbpAuditLogs", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpBackgroundJobs_IsAbandoned_NextTryTime", + table: "AbpBackgroundJobs", + columns: new[] { "IsAbandoned", "NextTryTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpDynamicEntityProperties_DynamicPropertyId", + table: "AbpDynamicEntityProperties", + column: "DynamicPropertyId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpDynamicEntityProperties_EntityFullName_DynamicPropertyId~", + table: "AbpDynamicEntityProperties", + columns: new[] { "EntityFullName", "DynamicPropertyId", "TenantId" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_AbpDynamicEntityPropertyValues_DynamicEntityPropertyId", + table: "AbpDynamicEntityPropertyValues", + column: "DynamicEntityPropertyId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpDynamicProperties_PropertyName_TenantId", + table: "AbpDynamicProperties", + columns: new[] { "PropertyName", "TenantId" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_AbpDynamicPropertyValues_DynamicPropertyId", + table: "AbpDynamicPropertyValues", + column: "DynamicPropertyId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityChanges_EntityChangeSetId", + table: "AbpEntityChanges", + column: "EntityChangeSetId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityChanges_EntityTypeFullName_EntityId", + table: "AbpEntityChanges", + columns: new[] { "EntityTypeFullName", "EntityId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityChangeSets_TenantId_CreationTime", + table: "AbpEntityChangeSets", + columns: new[] { "TenantId", "CreationTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityChangeSets_TenantId_Reason", + table: "AbpEntityChangeSets", + columns: new[] { "TenantId", "Reason" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityChangeSets_TenantId_UserId", + table: "AbpEntityChangeSets", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityPropertyChanges_EntityChangeId", + table: "AbpEntityPropertyChanges", + column: "EntityChangeId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpFeatures_EditionId_Name", + table: "AbpFeatures", + columns: new[] { "EditionId", "Name" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpFeatures_TenantId_Name", + table: "AbpFeatures", + columns: new[] { "TenantId", "Name" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpLanguages_TenantId_Name", + table: "AbpLanguages", + columns: new[] { "TenantId", "Name" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpLanguageTexts_TenantId_Source_LanguageName_Key", + table: "AbpLanguageTexts", + columns: new[] { "TenantId", "Source", "LanguageName", "Key" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpNotificationSubscriptions_NotificationName_EntityTypeNam~", + table: "AbpNotificationSubscriptions", + columns: new[] { "NotificationName", "EntityTypeName", "EntityId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpNotificationSubscriptions_TenantId_NotificationName_Enti~", + table: "AbpNotificationSubscriptions", + columns: new[] { "TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnitRoles_TenantId_OrganizationUnitId", + table: "AbpOrganizationUnitRoles", + columns: new[] { "TenantId", "OrganizationUnitId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnitRoles_TenantId_RoleId", + table: "AbpOrganizationUnitRoles", + columns: new[] { "TenantId", "RoleId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnits_ParentId", + table: "AbpOrganizationUnits", + column: "ParentId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnits_TenantId_Code", + table: "AbpOrganizationUnits", + columns: new[] { "TenantId", "Code" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpPermissions_RoleId", + table: "AbpPermissions", + column: "RoleId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpPermissions_TenantId_Name", + table: "AbpPermissions", + columns: new[] { "TenantId", "Name" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpPermissions_UserId", + table: "AbpPermissions", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoleClaims_RoleId", + table: "AbpRoleClaims", + column: "RoleId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoleClaims_TenantId_ClaimType", + table: "AbpRoleClaims", + columns: new[] { "TenantId", "ClaimType" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoles_CreatorUserId", + table: "AbpRoles", + column: "CreatorUserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoles_DeleterUserId", + table: "AbpRoles", + column: "DeleterUserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoles_LastModifierUserId", + table: "AbpRoles", + column: "LastModifierUserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoles_TenantId_NormalizedName", + table: "AbpRoles", + columns: new[] { "TenantId", "NormalizedName" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSettings_TenantId_Name_UserId", + table: "AbpSettings", + columns: new[] { "TenantId", "Name", "UserId" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_AbpSettings_UserId", + table: "AbpSettings", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpTenantNotifications_TenantId", + table: "AbpTenantNotifications", + column: "TenantId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpTenants_CreatorUserId", + table: "AbpTenants", + column: "CreatorUserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpTenants_DeleterUserId", + table: "AbpTenants", + column: "DeleterUserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpTenants_EditionId", + table: "AbpTenants", + column: "EditionId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpTenants_LastModifierUserId", + table: "AbpTenants", + column: "LastModifierUserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpTenants_TenancyName", + table: "AbpTenants", + column: "TenancyName"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserAccounts_EmailAddress", + table: "AbpUserAccounts", + column: "EmailAddress"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserAccounts_TenantId_EmailAddress", + table: "AbpUserAccounts", + columns: new[] { "TenantId", "EmailAddress" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserAccounts_TenantId_UserId", + table: "AbpUserAccounts", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserAccounts_TenantId_UserName", + table: "AbpUserAccounts", + columns: new[] { "TenantId", "UserName" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserAccounts_UserName", + table: "AbpUserAccounts", + column: "UserName"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserClaims_TenantId_ClaimType", + table: "AbpUserClaims", + columns: new[] { "TenantId", "ClaimType" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserClaims_UserId", + table: "AbpUserClaims", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserLoginAttempts_TenancyName_UserNameOrEmailAddress_Res~", + table: "AbpUserLoginAttempts", + columns: new[] { "TenancyName", "UserNameOrEmailAddress", "Result" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserLoginAttempts_UserId_TenantId", + table: "AbpUserLoginAttempts", + columns: new[] { "UserId", "TenantId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserLogins_ProviderKey_TenantId", + table: "AbpUserLogins", + columns: new[] { "ProviderKey", "TenantId" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserLogins_TenantId_LoginProvider_ProviderKey", + table: "AbpUserLogins", + columns: new[] { "TenantId", "LoginProvider", "ProviderKey" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserLogins_TenantId_UserId", + table: "AbpUserLogins", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserLogins_UserId", + table: "AbpUserLogins", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserNotifications_UserId_State_CreationTime", + table: "AbpUserNotifications", + columns: new[] { "UserId", "State", "CreationTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserOrganizationUnits_TenantId_OrganizationUnitId", + table: "AbpUserOrganizationUnits", + columns: new[] { "TenantId", "OrganizationUnitId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserOrganizationUnits_TenantId_UserId", + table: "AbpUserOrganizationUnits", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserRoles_TenantId_RoleId", + table: "AbpUserRoles", + columns: new[] { "TenantId", "RoleId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserRoles_TenantId_UserId", + table: "AbpUserRoles", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserRoles_UserId", + table: "AbpUserRoles", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_CreatorUserId", + table: "AbpUsers", + column: "CreatorUserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_DeleterUserId", + table: "AbpUsers", + column: "DeleterUserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_LastModifierUserId", + table: "AbpUsers", + column: "LastModifierUserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_TenantId_NormalizedEmailAddress", + table: "AbpUsers", + columns: new[] { "TenantId", "NormalizedEmailAddress" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_TenantId_NormalizedUserName", + table: "AbpUsers", + columns: new[] { "TenantId", "NormalizedUserName" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserTokens_TenantId_UserId", + table: "AbpUserTokens", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserTokens_UserId", + table: "AbpUserTokens", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpWebhookSendAttempts_WebhookEventId", + table: "AbpWebhookSendAttempts", + column: "WebhookEventId"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "AbpAuditLogs"); + + migrationBuilder.DropTable( + name: "AbpBackgroundJobs"); + + migrationBuilder.DropTable( + name: "AbpDynamicEntityPropertyValues"); + + migrationBuilder.DropTable( + name: "AbpDynamicPropertyValues"); + + migrationBuilder.DropTable( + name: "AbpEntityPropertyChanges"); + + migrationBuilder.DropTable( + name: "AbpFeatures"); + + migrationBuilder.DropTable( + name: "AbpLanguages"); + + migrationBuilder.DropTable( + name: "AbpLanguageTexts"); + + migrationBuilder.DropTable( + name: "AbpNotifications"); + + migrationBuilder.DropTable( + name: "AbpNotificationSubscriptions"); + + migrationBuilder.DropTable( + name: "AbpOrganizationUnitRoles"); + + migrationBuilder.DropTable( + name: "AbpOrganizationUnits"); + + migrationBuilder.DropTable( + name: "AbpPermissions"); + + migrationBuilder.DropTable( + name: "AbpRoleClaims"); + + migrationBuilder.DropTable( + name: "AbpSettings"); + + migrationBuilder.DropTable( + name: "AbpTenantNotifications"); + + migrationBuilder.DropTable( + name: "AbpTenants"); + + migrationBuilder.DropTable( + name: "AbpUserAccounts"); + + migrationBuilder.DropTable( + name: "AbpUserClaims"); + + migrationBuilder.DropTable( + name: "AbpUserLoginAttempts"); + + migrationBuilder.DropTable( + name: "AbpUserLogins"); + + migrationBuilder.DropTable( + name: "AbpUserNotifications"); + + migrationBuilder.DropTable( + name: "AbpUserOrganizationUnits"); + + migrationBuilder.DropTable( + name: "AbpUserRoles"); + + migrationBuilder.DropTable( + name: "AbpUserTokens"); + + migrationBuilder.DropTable( + name: "AbpWebhookSendAttempts"); + + migrationBuilder.DropTable( + name: "AbpWebhookSubscriptions"); + + migrationBuilder.DropTable( + name: "AbpDynamicEntityProperties"); + + migrationBuilder.DropTable( + name: "AbpEntityChanges"); + + migrationBuilder.DropTable( + name: "AbpRoles"); + + migrationBuilder.DropTable( + name: "AbpEditions"); + + migrationBuilder.DropTable( + name: "AbpWebhookEvents"); + + migrationBuilder.DropTable( + name: "AbpDynamicProperties"); + + migrationBuilder.DropTable( + name: "AbpEntityChangeSets"); + + migrationBuilder.DropTable( + name: "AbpUsers"); + } + } +} diff --git a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/ASPBaseOIDCDbContextModelSnapshot.cs b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/ASPBaseOIDCDbContextModelSnapshot.cs index f8e7888..1105011 100644 --- a/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/ASPBaseOIDCDbContextModelSnapshot.cs +++ b/src/ASPBaseOIDC.EntityFrameworkCore/Migrations/ASPBaseOIDCDbContextModelSnapshot.cs @@ -3,8 +3,8 @@ using System; using ASPBaseOIDC.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable @@ -18,20 +18,25 @@ namespace ASPBaseOIDC.Migrations #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.5") - .HasAnnotation("Relational:MaxIdentifierLength", 128); + .HasAnnotation("Relational:MaxIdentifierLength", 63); - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - modelBuilder.Entity("Abp.Application.Editions.Edition", b => + modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); + .HasColumnType("integer"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(128) + .HasColumnType("character varying(128)"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); @@ -40,18 +45,28 @@ namespace ASPBaseOIDC.Migrations .HasColumnType("bigint"); b.Property("DeletionTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); + + b.Property("Description") + .HasMaxLength(5000) + .HasColumnType("character varying(5000)"); b.Property("DisplayName") .IsRequired() .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + .HasColumnType("character varying(64)"); + + b.Property("IsDefault") + .HasColumnType("boolean"); b.Property("IsDeleted") - .HasColumnType("bit"); + .HasColumnType("boolean"); + + b.Property("IsStatic") + .HasColumnType("boolean"); b.Property("LastModificationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LastModifierUserId") .HasColumnType("bigint"); @@ -59,7 +74,259 @@ namespace ASPBaseOIDC.Migrations b.Property("Name") .IsRequired() .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); + .HasColumnType("character varying(32)"); + + b.Property("NormalizedName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("character varying(32)"); + + b.Property("TenantId") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenantId", "NormalizedName"); + + b.ToTable("AbpRoles"); + }); + + modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("AccessFailedCount") + .HasColumnType("integer"); + + b.Property("AuthenticationSource") + .HasMaxLength(64) + .HasColumnType("character varying(64)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(128) + .HasColumnType("character varying(128)"); + + b.Property("CreationTime") + .HasColumnType("timestamp with time zone"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("timestamp with time zone"); + + b.Property("EmailAddress") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(256)"); + + b.Property("EmailConfirmationCode") + .HasMaxLength(328) + .HasColumnType("character varying(328)"); + + b.Property("IsActive") + .HasColumnType("boolean"); + + b.Property("IsDeleted") + .HasColumnType("boolean"); + + b.Property("IsEmailConfirmed") + .HasColumnType("boolean"); + + b.Property("IsLockoutEnabled") + .HasColumnType("boolean"); + + b.Property("IsPhoneNumberConfirmed") + .HasColumnType("boolean"); + + b.Property("IsTwoFactorEnabled") + .HasColumnType("boolean"); + + b.Property("LastModificationTime") + .HasColumnType("timestamp with time zone"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("LockoutEndDateUtc") + .HasColumnType("timestamp with time zone"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("character varying(64)"); + + b.Property("NormalizedEmailAddress") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(256)"); + + b.Property("NormalizedUserName") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(256)"); + + b.Property("Password") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("character varying(128)"); + + b.Property("PasswordResetCode") + .HasMaxLength(328) + .HasColumnType("character varying(328)"); + + b.Property("PhoneNumber") + .HasMaxLength(32) + .HasColumnType("character varying(32)"); + + b.Property("SecurityStamp") + .HasMaxLength(128) + .HasColumnType("character varying(128)"); + + b.Property("Surname") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("character varying(64)"); + + b.Property("TenantId") + .HasColumnType("integer"); + + b.Property("UserName") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(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("ASPBaseOIDC.MultiTenancy.Tenant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("ConnectionString") + .HasMaxLength(1024) + .HasColumnType("character varying(1024)"); + + b.Property("CreationTime") + .HasColumnType("timestamp with time zone"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("timestamp with time zone"); + + b.Property("EditionId") + .HasColumnType("integer"); + + b.Property("IsActive") + .HasColumnType("boolean"); + + b.Property("IsDeleted") + .HasColumnType("boolean"); + + b.Property("LastModificationTime") + .HasColumnType("timestamp with time zone"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("character varying(128)"); + + b.Property("TenancyName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("character varying(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.Editions.Edition", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("CreationTime") + .HasColumnType("timestamp with time zone"); + + b.Property("CreatorUserId") + .HasColumnType("bigint"); + + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("timestamp with time zone"); + + b.Property("DisplayName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("character varying(64)"); + + b.Property("IsDeleted") + .HasColumnType("boolean"); + + b.Property("LastModificationTime") + .HasColumnType("timestamp with time zone"); + + b.Property("LastModifierUserId") + .HasColumnType("bigint"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("character varying(32)"); b.HasKey("Id"); @@ -72,10 +339,10 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); @@ -83,20 +350,20 @@ namespace ASPBaseOIDC.Migrations b.Property("Discriminator") .IsRequired() .HasMaxLength(21) - .HasColumnType("nvarchar(21)"); + .HasColumnType("character varying(21)"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("Value") .IsRequired() .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasColumnType("character varying(2000)"); b.HasKey("Id"); @@ -113,61 +380,61 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("BrowserInfo") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("ClientIpAddress") .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + .HasColumnType("character varying(64)"); b.Property("ClientName") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("CustomData") .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasColumnType("character varying(2000)"); b.Property("Exception") .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); + .HasColumnType("character varying(2000)"); b.Property("ExceptionMessage") .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); + .HasColumnType("character varying(1024)"); b.Property("ExecutionDuration") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("ExecutionTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("ImpersonatorTenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("ImpersonatorUserId") .HasColumnType("bigint"); b.Property("MethodName") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("Parameters") .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); + .HasColumnType("character varying(4096)"); b.Property("ReturnValue") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("ServiceName") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -189,10 +456,10 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); @@ -200,18 +467,18 @@ namespace ASPBaseOIDC.Migrations b.Property("Discriminator") .IsRequired() .HasMaxLength(21) - .HasColumnType("nvarchar(21)"); + .HasColumnType("character varying(21)"); b.Property("IsGranted") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -230,26 +497,26 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ClaimType") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("ClaimValue") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("RoleId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -266,10 +533,10 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); @@ -278,23 +545,23 @@ namespace ASPBaseOIDC.Migrations .HasColumnType("bigint"); b.Property("DeletionTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("EmailAddress") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("IsDeleted") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("LastModificationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LastModifierUserId") .HasColumnType("bigint"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -304,7 +571,7 @@ namespace ASPBaseOIDC.Migrations b.Property("UserName") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.HasKey("Id"); @@ -327,23 +594,23 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ClaimType") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("ClaimValue") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -363,20 +630,20 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("LoginProvider") .IsRequired() .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("ProviderKey") .IsRequired() .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -386,8 +653,7 @@ namespace ASPBaseOIDC.Migrations b.HasIndex("UserId"); b.HasIndex("ProviderKey", "TenantId") - .IsUnique() - .HasFilter("[TenantId] IS NOT NULL"); + .IsUnique(); b.HasIndex("TenantId", "UserId"); @@ -402,43 +668,43 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("BrowserInfo") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("ClientIpAddress") .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + .HasColumnType("character varying(64)"); b.Property("ClientName") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("FailReason") .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); + .HasColumnType("character varying(1024)"); b.Property("Result") - .HasColumnType("tinyint"); + .HasColumnType("smallint"); b.Property("TenancyName") .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + .HasColumnType("character varying(64)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); b.Property("UserNameOrEmailAddress") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.HasKey("Id"); @@ -455,22 +721,22 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("IsDeleted") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("OrganizationUnitId") .HasColumnType("bigint"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -490,19 +756,19 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("RoleId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -524,28 +790,28 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ExpireDate") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LoginProvider") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("Name") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); b.Property("Value") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.HasKey("Id"); @@ -562,35 +828,35 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("IsAbandoned") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("JobArgs") .IsRequired() .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); + .HasColumnType("character varying(1048576)"); b.Property("JobType") .IsRequired() .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("LastTryTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("NextTryTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("Priority") - .HasColumnType("tinyint"); + .HasColumnType("smallint"); b.Property("TryCount") .HasColumnType("smallint"); @@ -608,16 +874,16 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("LastModificationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LastModifierUserId") .HasColumnType("bigint"); @@ -625,16 +891,16 @@ namespace ASPBaseOIDC.Migrations b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); b.Property("Value") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.HasKey("Id"); @@ -650,27 +916,26 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); + .HasColumnType("integer"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("DynamicPropertyId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("EntityFullName") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("DynamicPropertyId"); b.HasIndex("EntityFullName", "DynamicPropertyId", "TenantId") - .IsUnique() - .HasFilter("[EntityFullName] IS NOT NULL AND [TenantId] IS NOT NULL"); + .IsUnique(); b.ToTable("AbpDynamicEntityProperties"); }); @@ -681,20 +946,20 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("DynamicEntityPropertyId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("EntityId") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("Value") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.HasKey("Id"); @@ -707,31 +972,30 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); + .HasColumnType("integer"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("InputType") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("Permission") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("PropertyName") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("PropertyName", "TenantId") - .IsUnique() - .HasFilter("[PropertyName] IS NOT NULL AND [TenantId] IS NOT NULL"); + .IsUnique(); b.ToTable("AbpDynamicProperties"); }); @@ -742,17 +1006,17 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("DynamicPropertyId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("Value") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.HasKey("Id"); @@ -767,27 +1031,27 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ChangeTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("ChangeType") - .HasColumnType("tinyint"); + .HasColumnType("smallint"); b.Property("EntityChangeSetId") .HasColumnType("bigint"); b.Property("EntityId") .HasMaxLength(48) - .HasColumnType("nvarchar(48)"); + .HasColumnType("character varying(48)"); b.Property("EntityTypeFullName") .HasMaxLength(192) - .HasColumnType("nvarchar(192)"); + .HasColumnType("character varying(192)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -804,38 +1068,38 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("BrowserInfo") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("ClientIpAddress") .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + .HasColumnType("character varying(64)"); b.Property("ClientName") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("ExtensionData") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("ImpersonatorTenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("ImpersonatorUserId") .HasColumnType("bigint"); b.Property("Reason") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -857,35 +1121,35 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("EntityChangeId") .HasColumnType("bigint"); b.Property("NewValue") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("NewValueHash") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("OriginalValue") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("OriginalValueHash") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("PropertyName") .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); + .HasColumnType("character varying(96)"); b.Property("PropertyTypeFullName") .HasMaxLength(192) - .HasColumnType("nvarchar(192)"); + .HasColumnType("character varying(192)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -898,12 +1162,12 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); + .HasColumnType("integer"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); @@ -912,25 +1176,25 @@ namespace ASPBaseOIDC.Migrations .HasColumnType("bigint"); b.Property("DeletionTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("DisplayName") .IsRequired() .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + .HasColumnType("character varying(64)"); b.Property("Icon") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("IsDeleted") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("IsDisabled") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("LastModificationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LastModifierUserId") .HasColumnType("bigint"); @@ -938,10 +1202,10 @@ namespace ASPBaseOIDC.Migrations b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -956,10 +1220,10 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); @@ -967,15 +1231,15 @@ namespace ASPBaseOIDC.Migrations b.Property("Key") .IsRequired() .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("character varying(256)"); b.Property("LanguageName") .IsRequired() .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("LastModificationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LastModifierUserId") .HasColumnType("bigint"); @@ -983,15 +1247,15 @@ namespace ASPBaseOIDC.Migrations b.Property("Source") .IsRequired() .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("Value") .IsRequired() .HasMaxLength(67108864) - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.HasKey("Id"); @@ -1004,57 +1268,57 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("Data") .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); + .HasColumnType("character varying(1048576)"); b.Property("DataTypeName") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("EntityId") .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); + .HasColumnType("character varying(96)"); b.Property("EntityTypeAssemblyQualifiedName") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("EntityTypeName") .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasColumnType("character varying(250)"); b.Property("ExcludedUserIds") .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); + .HasColumnType("character varying(131072)"); b.Property("NotificationName") .IsRequired() .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); + .HasColumnType("character varying(96)"); b.Property("Severity") - .HasColumnType("tinyint"); + .HasColumnType("smallint"); b.Property("TargetNotifiers") .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); + .HasColumnType("character varying(1024)"); b.Property("TenantIds") .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); + .HasColumnType("character varying(131072)"); b.Property("UserIds") .HasMaxLength(131072) - .HasColumnType("nvarchar(max)"); + .HasColumnType("character varying(131072)"); b.HasKey("Id"); @@ -1065,36 +1329,36 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("EntityId") .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); + .HasColumnType("character varying(96)"); b.Property("EntityTypeAssemblyQualifiedName") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("EntityTypeName") .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasColumnType("character varying(250)"); b.Property("NotificationName") .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); + .HasColumnType("character varying(96)"); b.Property("TargetNotifiers") .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); + .HasColumnType("character varying(1024)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("UserId") .HasColumnType("bigint"); @@ -1112,44 +1376,44 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("Data") .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); + .HasColumnType("character varying(1048576)"); b.Property("DataTypeName") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("EntityId") .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); + .HasColumnType("character varying(96)"); b.Property("EntityTypeAssemblyQualifiedName") .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); + .HasColumnType("character varying(512)"); b.Property("EntityTypeName") .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); + .HasColumnType("character varying(250)"); b.Property("NotificationName") .IsRequired() .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); + .HasColumnType("character varying(96)"); b.Property("Severity") - .HasColumnType("tinyint"); + .HasColumnType("smallint"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -1162,23 +1426,23 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("State") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("TargetNotifiers") .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); + .HasColumnType("character varying(1024)"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("TenantNotificationId") - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("UserId") .HasColumnType("bigint"); @@ -1196,15 +1460,15 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("Code") .IsRequired() .HasMaxLength(95) - .HasColumnType("nvarchar(95)"); + .HasColumnType("character varying(95)"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); @@ -1213,18 +1477,18 @@ namespace ASPBaseOIDC.Migrations .HasColumnType("bigint"); b.Property("DeletionTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("DisplayName") .IsRequired() .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("character varying(128)"); b.Property("IsDeleted") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("LastModificationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LastModifierUserId") .HasColumnType("bigint"); @@ -1233,7 +1497,7 @@ namespace ASPBaseOIDC.Migrations .HasColumnType("bigint"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -1250,25 +1514,25 @@ namespace ASPBaseOIDC.Migrations .ValueGeneratedOnAdd() .HasColumnType("bigint"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("IsDeleted") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("OrganizationUnitId") .HasColumnType("bigint"); b.Property("RoleId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasKey("Id"); @@ -1283,26 +1547,26 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("Data") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("DeletionTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("IsDeleted") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("WebhookName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.HasKey("Id"); @@ -1313,28 +1577,28 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("LastModificationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("Response") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("ResponseStatusCode") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("WebhookEventId") - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("WebhookSubscriptionId") - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.HasKey("Id"); @@ -1347,312 +1611,45 @@ namespace ASPBaseOIDC.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasColumnType("timestamp with time zone"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("Headers") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("IsActive") - .HasColumnType("bit"); + .HasColumnType("boolean"); b.Property("Secret") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("TenantId") - .HasColumnType("int"); + .HasColumnType("integer"); b.Property("WebhookUri") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.Property("Webhooks") - .HasColumnType("nvarchar(max)"); + .HasColumnType("text"); b.HasKey("Id"); b.ToTable("AbpWebhookSubscriptions"); }); - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime2"); - - b.Property("Description") - .HasMaxLength(5000) - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(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("ASPBaseOIDC.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128) - .HasColumnType("nvarchar(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() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EmailConfirmationCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(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() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PasswordResetCode") - .HasMaxLength(328) - .HasColumnType("nvarchar(328)"); - - b.Property("PhoneNumber") - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("SecurityStamp") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Surname") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(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("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("ConnectionString") - .HasMaxLength(1024) - .HasColumnType("nvarchar(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() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenancyName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(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"); + .HasColumnType("integer"); b.HasIndex("EditionId", "Name"); @@ -1677,7 +1674,7 @@ namespace ASPBaseOIDC.Migrations b.HasBaseType("Abp.Authorization.PermissionSetting"); b.Property("RoleId") - .HasColumnType("int"); + .HasColumnType("integer"); b.HasIndex("RoleId"); @@ -1700,6 +1697,75 @@ namespace ASPBaseOIDC.Migrations b.HasDiscriminator().HasValue("UserPermissionSetting"); }); + modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => + { + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + + b.Navigation("CreatorUser"); + + b.Navigation("DeleterUser"); + + b.Navigation("LastModifierUser"); + }); + + modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => + { + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + + b.Navigation("CreatorUser"); + + b.Navigation("DeleterUser"); + + b.Navigation("LastModifierUser"); + }); + + modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => + { + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") + .WithMany() + .HasForeignKey("CreatorUserId"); + + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") + .WithMany() + .HasForeignKey("DeleterUserId"); + + b.HasOne("Abp.Application.Editions.Edition", "Edition") + .WithMany() + .HasForeignKey("EditionId"); + + b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") + .WithMany() + .HasForeignKey("LastModifierUserId"); + + b.Navigation("CreatorUser"); + + b.Navigation("DeleterUser"); + + b.Navigation("Edition"); + + b.Navigation("LastModifierUser"); + }); + modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => { b.HasOne("ASPBaseOIDC.Authorization.Roles.Role", null) @@ -1823,75 +1889,6 @@ namespace ASPBaseOIDC.Migrations b.Navigation("WebhookEvent"); }); - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.Authorization.Users.User", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("LastModifierUser"); - }); - - modelBuilder.Entity("ASPBaseOIDC.MultiTenancy.Tenant", b => - { - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("ASPBaseOIDC.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - - b.Navigation("CreatorUser"); - - b.Navigation("DeleterUser"); - - b.Navigation("Edition"); - - b.Navigation("LastModifierUser"); - }); - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => { b.HasOne("Abp.Application.Editions.Edition", "Edition") @@ -1921,26 +1918,6 @@ namespace ASPBaseOIDC.Migrations .IsRequired(); }); - modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => - { - b.Navigation("DynamicPropertyValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Navigation("Children"); - }); - modelBuilder.Entity("ASPBaseOIDC.Authorization.Roles.Role", b => { b.Navigation("Claims"); @@ -1962,9 +1939,27 @@ namespace ASPBaseOIDC.Migrations b.Navigation("Tokens"); }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => + { + b.Navigation("DynamicPropertyValues"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => + { + b.Navigation("PropertyChanges"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => + { + b.Navigation("EntityChanges"); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => + { + b.Navigation("Children"); + }); #pragma warning restore 612, 618 } } } - - diff --git a/src/ASPBaseOIDC.Web.Host/App_Data/Logs/Logs.txt b/src/ASPBaseOIDC.Web.Host/App_Data/Logs/Logs.txt new file mode 100644 index 0000000..c9e875b --- /dev/null +++ b/src/ASPBaseOIDC.Web.Host/App_Data/Logs/Logs.txt @@ -0,0 +1,452 @@ +DEBUG 2025-10-01 21:28:37,488 [2 ] Abp.Modules.AbpModuleManager - Loading Abp modules... +DEBUG 2025-10-01 21:28:38,832 [2 ] Abp.Modules.AbpModuleManager - Found 15 ABP modules in total. +DEBUG 2025-10-01 21:28:38,864 [2 ] Abp.Modules.AbpModuleManager - Loaded module: ASPBaseOIDC.Web.Host.Startup.ASPBaseOIDCWebHostModule, ASPBaseOIDC.Web.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:38,869 [2 ] Abp.Modules.AbpModuleManager - Loaded module: ASPBaseOIDC.ASPBaseOIDCWebCoreModule, ASPBaseOIDC.Web.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:38,870 [2 ] Abp.Modules.AbpModuleManager - Loaded module: ASPBaseOIDC.ASPBaseOIDCApplicationModule, ASPBaseOIDC.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:38,875 [2 ] Abp.Modules.AbpModuleManager - Loaded module: ASPBaseOIDC.ASPBaseOIDCCoreModule, ASPBaseOIDC.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:38,876 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.AbpZeroCoreModule, Abp.ZeroCore, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:38,876 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.AbpZeroCommonModule, Abp.Zero.Common, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:38,877 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AbpKernelModule, Abp, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:38,880 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AutoMapper.AbpAutoMapperModule, Abp.AutoMapper, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:38,881 [2 ] Abp.Modules.AbpModuleManager - Loaded module: ASPBaseOIDC.EntityFrameworkCore.ASPBaseOIDCEntityFrameworkModule, ASPBaseOIDC.EntityFrameworkCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:38,881 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.EntityFrameworkCore.AbpZeroCoreEntityFrameworkCoreModule, Abp.ZeroCore.EntityFrameworkCore, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:38,882 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule, Abp.EntityFrameworkCore, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:38,882 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.EntityFramework.AbpEntityFrameworkCommonModule, Abp.EntityFramework.Common, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:38,883 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AspNetCore.AbpAspNetCoreModule, Abp.AspNetCore, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:38,883 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Web.AbpWebCommonModule, Abp.Web.Common, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:38,883 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AspNetCore.SignalR.AbpAspNetCoreSignalRModule, Abp.AspNetCore.SignalR, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:38,885 [2 ] Abp.Modules.AbpModuleManager - 15 modules loaded. +DEBUG 2025-10-01 21:28:39,193 [2 ] o.Configuration.LanguageManagementConfig - Converted Abp (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource +DEBUG 2025-10-01 21:28:39,194 [2 ] o.Configuration.LanguageManagementConfig - Converted AbpZero (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource +DEBUG 2025-10-01 21:28:39,194 [2 ] o.Configuration.LanguageManagementConfig - Converted ASPBaseOIDC (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource +DEBUG 2025-10-01 21:28:39,194 [2 ] o.Configuration.LanguageManagementConfig - Converted AbpWeb (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource +DEBUG 2025-10-01 21:28:39,748 [2 ] ameworkCore.AbpEntityFrameworkCoreModule - Registering DbContext: ASPBaseOIDC.EntityFrameworkCore.ASPBaseOIDCDbContext, ASPBaseOIDC.EntityFrameworkCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:28:39,954 [2 ] Abp.Localization.LocalizationManager - Initializing 4 localization sources. +DEBUG 2025-10-01 21:28:40,051 [2 ] Abp.Localization.LocalizationManager - Initialized localization source: Abp +DEBUG 2025-10-01 21:28:40,093 [2 ] Abp.Localization.LocalizationManager - Initialized localization source: AbpZero +DEBUG 2025-10-01 21:28:40,110 [2 ] Abp.Localization.LocalizationManager - Initialized localization source: ASPBaseOIDC +DEBUG 2025-10-01 21:28:40,136 [2 ] Abp.Localization.LocalizationManager - Initialized localization source: AbpWeb +DEBUG 2025-10-01 21:28:40,148 [2 ] Abp.BackgroundJobs.BackgroundJobManager - Start background worker: Abp.BackgroundJobs.BackgroundJobManager +DEBUG 2025-10-01 21:28:40,159 [2 ] , Culture=neutral, PublicKeyToken=null]] - Start background worker: Abp.Authorization.Users.UserTokenExpirationWorker`2[[ASPBaseOIDC.MultiTenancy.Tenant, ASPBaseOIDC.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[ASPBaseOIDC.Authorization.Users.User, ASPBaseOIDC.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] +DEBUG 2025-10-01 21:28:40,185 [2 ] Abp.AutoMapper.AbpAutoMapperModule - Found 7 classes define auto mapping attributes +DEBUG 2025-10-01 21:28:40,185 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.Users.Dto.CreateUserDto +DEBUG 2025-10-01 21:28:40,190 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.Users.Dto.UserDto +DEBUG 2025-10-01 21:28:40,191 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.Sessions.Dto.TenantLoginInfoDto +DEBUG 2025-10-01 21:28:40,191 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.Sessions.Dto.UserLoginInfoDto +DEBUG 2025-10-01 21:28:40,191 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.Roles.Dto.PermissionDto +DEBUG 2025-10-01 21:28:40,191 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.MultiTenancy.Dto.CreateTenantDto +DEBUG 2025-10-01 21:28:40,191 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.MultiTenancy.Dto.TenantDto +ERROR 2025-10-01 21:28:46,396 [5 ] Microsoft.EntityFrameworkCore.Query - An exception occurred while iterating over the results of a query for context type 'ASPBaseOIDC.EntityFrameworkCore.ASPBaseOIDCDbContext'. +System.ArgumentException: Cannot write DateTime with Kind=Local to PostgreSQL type 'timestamp with time zone', only UTC is supported. Note that it's not possible to mix DateTimes with different Kinds in an array, range, or multirange. (Parameter 'value') + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(DateTime value, Nullable`1 expectedPgTypeId, Boolean validateOnly) + at Npgsql.Internal.Converters.DateTimeConverterResolver.<>c.b__0_0(DateTimeConverterResolver`1 resolver, DateTime value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(T value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgConverterResolver`1.GetAsObjectInternal(PgTypeInfo typeInfo, Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgResolverTypeInfo.GetResolutionAsObject(Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgTypeInfo.GetObjectResolution(Object value) + at Npgsql.NpgsqlParameter.ResolveConverter(PgTypeInfo typeInfo) + at Npgsql.NpgsqlParameter.ResolveTypeInfo(PgSerializerOptions options) + at Npgsql.NpgsqlParameterCollection.ProcessParameters(PgSerializerOptions options, Boolean validateValues, CommandType commandType) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior) + at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) + at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) + at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.<>c.b__21_0(DbContext _, Enumerator enumerator) + at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) + at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() +System.ArgumentException: Cannot write DateTime with Kind=Local to PostgreSQL type 'timestamp with time zone', only UTC is supported. Note that it's not possible to mix DateTimes with different Kinds in an array, range, or multirange. (Parameter 'value') + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(DateTime value, Nullable`1 expectedPgTypeId, Boolean validateOnly) + at Npgsql.Internal.Converters.DateTimeConverterResolver.<>c.b__0_0(DateTimeConverterResolver`1 resolver, DateTime value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(T value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgConverterResolver`1.GetAsObjectInternal(PgTypeInfo typeInfo, Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgResolverTypeInfo.GetResolutionAsObject(Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgTypeInfo.GetObjectResolution(Object value) + at Npgsql.NpgsqlParameter.ResolveConverter(PgTypeInfo typeInfo) + at Npgsql.NpgsqlParameter.ResolveTypeInfo(PgSerializerOptions options) + at Npgsql.NpgsqlParameterCollection.ProcessParameters(PgSerializerOptions options, Boolean validateValues, CommandType commandType) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior) + at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) + at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) + at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.<>c.b__21_0(DbContext _, Enumerator enumerator) + at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) + at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() +ERROR 2025-10-01 21:28:46,440 [2 ] Microsoft.EntityFrameworkCore.Update - An exception occurred in the database while saving changes for context type 'ASPBaseOIDC.EntityFrameworkCore.ASPBaseOIDCDbContext'. +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. + ---> System.ArgumentException: Cannot write DateTime with Kind=Local to PostgreSQL type 'timestamp with time zone', only UTC is supported. Note that it's not possible to mix DateTimes with different Kinds in an array, range, or multirange. (Parameter 'value') + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(DateTime value, Nullable`1 expectedPgTypeId, Boolean validateOnly) + at Npgsql.Internal.Converters.DateTimeConverterResolver.<>c.b__0_0(DateTimeConverterResolver`1 resolver, DateTime value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(T value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgConverterResolver`1.GetAsObjectInternal(PgTypeInfo typeInfo, Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgResolverTypeInfo.GetResolutionAsObject(Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgTypeInfo.GetObjectResolution(Object value) + at Npgsql.NpgsqlParameter.ResolveConverter(PgTypeInfo typeInfo) + at Npgsql.NpgsqlParameter.ResolveTypeInfo(PgSerializerOptions options) + at Npgsql.NpgsqlParameterCollection.ProcessParameters(PgSerializerOptions options, Boolean validateValues, CommandType commandType) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior) + at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection) + at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(StateManager stateManager, Boolean acceptAllChangesOnSuccess) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.<>c.b__112_0(DbContext _, ValueTuple`2 t) + at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess) + at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess) +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. + ---> System.ArgumentException: Cannot write DateTime with Kind=Local to PostgreSQL type 'timestamp with time zone', only UTC is supported. Note that it's not possible to mix DateTimes with different Kinds in an array, range, or multirange. (Parameter 'value') + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(DateTime value, Nullable`1 expectedPgTypeId, Boolean validateOnly) + at Npgsql.Internal.Converters.DateTimeConverterResolver.<>c.b__0_0(DateTimeConverterResolver`1 resolver, DateTime value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(T value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgConverterResolver`1.GetAsObjectInternal(PgTypeInfo typeInfo, Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgResolverTypeInfo.GetResolutionAsObject(Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgTypeInfo.GetObjectResolution(Object value) + at Npgsql.NpgsqlParameter.ResolveConverter(PgTypeInfo typeInfo) + at Npgsql.NpgsqlParameter.ResolveTypeInfo(PgSerializerOptions options) + at Npgsql.NpgsqlParameterCollection.ProcessParameters(PgSerializerOptions options, Boolean validateValues, CommandType commandType) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior) + at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection) + at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(StateManager stateManager, Boolean acceptAllChangesOnSuccess) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.<>c.b__112_0(DbContext _, ValueTuple`2 t) + at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess) + at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess) +WARN 2025-10-01 21:28:56,448 [5 ] Abp.BackgroundJobs.BackgroundJobManager - System.ArgumentException: Cannot write DateTime with Kind=Local to PostgreSQL type 'timestamp with time zone', only UTC is supported. Note that it's not possible to mix DateTimes with different Kinds in an array, range, or multirange. (Parameter 'value') + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(DateTime value, Nullable`1 expectedPgTypeId, Boolean validateOnly) + at Npgsql.Internal.Converters.DateTimeConverterResolver.<>c.b__0_0(DateTimeConverterResolver`1 resolver, DateTime value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(T value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgConverterResolver`1.GetAsObjectInternal(PgTypeInfo typeInfo, Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgResolverTypeInfo.GetResolutionAsObject(Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgTypeInfo.GetObjectResolution(Object value) + at Npgsql.NpgsqlParameter.ResolveConverter(PgTypeInfo typeInfo) + at Npgsql.NpgsqlParameter.ResolveTypeInfo(PgSerializerOptions options) + at Npgsql.NpgsqlParameterCollection.ProcessParameters(PgSerializerOptions options, Boolean validateValues, CommandType commandType) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior) + at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) + at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) + at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.<>c.b__21_0(DbContext _, Enumerator enumerator) + at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) + at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() + at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) + at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) + at Abp.BackgroundJobs.BackgroundJobStore.<>c__DisplayClass7_0.b__0() + at Abp.Domain.Uow.UnitOfWorkManagerExtensions.WithUnitOfWork[TResult](IUnitOfWorkManager manager, Func`1 action, UnitOfWorkOptions options) + at Abp.BackgroundJobs.BackgroundJobStore.GetWaitingJobsAsync(Int32 maxResultCount) + at Abp.BackgroundJobs.BackgroundJobManager.DoWorkAsync() + at Abp.Threading.BackgroundWorkers.AsyncPeriodicBackgroundWorkerBase.Timer_Elapsed(AbpAsyncTimer timer) +System.ArgumentException: Cannot write DateTime with Kind=Local to PostgreSQL type 'timestamp with time zone', only UTC is supported. Note that it's not possible to mix DateTimes with different Kinds in an array, range, or multirange. (Parameter 'value') + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(DateTime value, Nullable`1 expectedPgTypeId, Boolean validateOnly) + at Npgsql.Internal.Converters.DateTimeConverterResolver.<>c.b__0_0(DateTimeConverterResolver`1 resolver, DateTime value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(T value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgConverterResolver`1.GetAsObjectInternal(PgTypeInfo typeInfo, Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgResolverTypeInfo.GetResolutionAsObject(Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgTypeInfo.GetObjectResolution(Object value) + at Npgsql.NpgsqlParameter.ResolveConverter(PgTypeInfo typeInfo) + at Npgsql.NpgsqlParameter.ResolveTypeInfo(PgSerializerOptions options) + at Npgsql.NpgsqlParameterCollection.ProcessParameters(PgSerializerOptions options, Boolean validateValues, CommandType commandType) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior) + at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) + at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) + at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.<>c.b__21_0(DbContext _, Enumerator enumerator) + at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) + at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() + at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) + at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) + at Abp.BackgroundJobs.BackgroundJobStore.<>c__DisplayClass7_0.b__0() + at Abp.Domain.Uow.UnitOfWorkManagerExtensions.WithUnitOfWork[TResult](IUnitOfWorkManager manager, Func`1 action, UnitOfWorkOptions options) + at Abp.BackgroundJobs.BackgroundJobStore.GetWaitingJobsAsync(Int32 maxResultCount) + at Abp.BackgroundJobs.BackgroundJobManager.DoWorkAsync() + at Abp.Threading.BackgroundWorkers.AsyncPeriodicBackgroundWorkerBase.Timer_Elapsed(AbpAsyncTimer timer) +FATAL 2025-10-01 21:28:56,605 [2 ] Abp.AbpBootstrapper - Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. + ---> System.ArgumentException: Cannot write DateTime with Kind=Local to PostgreSQL type 'timestamp with time zone', only UTC is supported. Note that it's not possible to mix DateTimes with different Kinds in an array, range, or multirange. (Parameter 'value') + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(DateTime value, Nullable`1 expectedPgTypeId, Boolean validateOnly) + at Npgsql.Internal.Converters.DateTimeConverterResolver.<>c.b__0_0(DateTimeConverterResolver`1 resolver, DateTime value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(T value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgConverterResolver`1.GetAsObjectInternal(PgTypeInfo typeInfo, Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgResolverTypeInfo.GetResolutionAsObject(Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgTypeInfo.GetObjectResolution(Object value) + at Npgsql.NpgsqlParameter.ResolveConverter(PgTypeInfo typeInfo) + at Npgsql.NpgsqlParameter.ResolveTypeInfo(PgSerializerOptions options) + at Npgsql.NpgsqlParameterCollection.ProcessParameters(PgSerializerOptions options, Boolean validateValues, CommandType commandType) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior) + at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection) + at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(StateManager stateManager, Boolean acceptAllChangesOnSuccess) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.<>c.b__112_0(DbContext _, ValueTuple`2 t) + at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess) + at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess) + at Microsoft.EntityFrameworkCore.DbContext.SaveChanges() + at Abp.EntityFrameworkCore.AbpDbContext.SaveChanges() + at Abp.Zero.EntityFrameworkCore.AbpZeroCommonDbContext`3.SaveChanges() + at ASPBaseOIDC.EntityFrameworkCore.Seed.Host.DefaultEditionCreator.CreateEditions() in C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.EntityFrameworkCore\EntityFrameworkCore\Seed\Host\DefaultEditionCreator.cs:line 30 + at ASPBaseOIDC.EntityFrameworkCore.Seed.Host.DefaultEditionCreator.Create() in C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.EntityFrameworkCore\EntityFrameworkCore\Seed\Host\DefaultEditionCreator.cs:line 20 + at ASPBaseOIDC.EntityFrameworkCore.Seed.Host.InitialHostDbBuilder.Create() in C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.EntityFrameworkCore\EntityFrameworkCore\Seed\Host\InitialHostDbBuilder.cs:line 14 + at ASPBaseOIDC.EntityFrameworkCore.Seed.SeedHelper.SeedHostDb(ASPBaseOIDCDbContext context) in C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.EntityFrameworkCore\EntityFrameworkCore\Seed\SeedHelper.cs:line 25 + at ASPBaseOIDC.EntityFrameworkCore.Seed.SeedHelper.WithDbContext[TDbContext](IIocResolver iocResolver, Action`1 contextAction) in C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.EntityFrameworkCore\EntityFrameworkCore\Seed\SeedHelper.cs:line 41 + at ASPBaseOIDC.EntityFrameworkCore.Seed.SeedHelper.SeedHostDb(IIocResolver iocResolver) in C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.EntityFrameworkCore\EntityFrameworkCore\Seed\SeedHelper.cs:line 17 + at ASPBaseOIDC.EntityFrameworkCore.ASPBaseOIDCEntityFrameworkModule.PostInitialize() in C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.EntityFrameworkCore\EntityFrameworkCore\ASPBaseOIDCEntityFrameworkModule.cs:line 46 + at Abp.Modules.AbpModuleManager.<>c.b__15_2(AbpModuleInfo module) + at System.Collections.Generic.List`1.ForEach(Action`1 action) + at Abp.Modules.AbpModuleManager.StartModules() + at Abp.AbpBootstrapper.Initialize() +Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. + ---> System.ArgumentException: Cannot write DateTime with Kind=Local to PostgreSQL type 'timestamp with time zone', only UTC is supported. Note that it's not possible to mix DateTimes with different Kinds in an array, range, or multirange. (Parameter 'value') + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(DateTime value, Nullable`1 expectedPgTypeId, Boolean validateOnly) + at Npgsql.Internal.Converters.DateTimeConverterResolver.<>c.b__0_0(DateTimeConverterResolver`1 resolver, DateTime value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.Converters.DateTimeConverterResolver`1.Get(T value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgConverterResolver`1.GetAsObjectInternal(PgTypeInfo typeInfo, Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgResolverTypeInfo.GetResolutionAsObject(Object value, Nullable`1 expectedPgTypeId) + at Npgsql.Internal.PgTypeInfo.GetObjectResolution(Object value) + at Npgsql.NpgsqlParameter.ResolveConverter(PgTypeInfo typeInfo) + at Npgsql.NpgsqlParameter.ResolveTypeInfo(PgSerializerOptions options) + at Npgsql.NpgsqlParameterCollection.ProcessParameters(PgSerializerOptions options, Boolean validateValues, CommandType commandType) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) + at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior) + at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior) + at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) + --- End of inner exception stack trace --- + at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) + at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection) + at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(StateManager stateManager, Boolean acceptAllChangesOnSuccess) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.<>c.b__112_0(DbContext _, ValueTuple`2 t) + at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) + at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess) + at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess) + at Microsoft.EntityFrameworkCore.DbContext.SaveChanges() + at Abp.EntityFrameworkCore.AbpDbContext.SaveChanges() + at Abp.Zero.EntityFrameworkCore.AbpZeroCommonDbContext`3.SaveChanges() + at ASPBaseOIDC.EntityFrameworkCore.Seed.Host.DefaultEditionCreator.CreateEditions() in C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.EntityFrameworkCore\EntityFrameworkCore\Seed\Host\DefaultEditionCreator.cs:line 30 + at ASPBaseOIDC.EntityFrameworkCore.Seed.Host.DefaultEditionCreator.Create() in C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.EntityFrameworkCore\EntityFrameworkCore\Seed\Host\DefaultEditionCreator.cs:line 20 + at ASPBaseOIDC.EntityFrameworkCore.Seed.Host.InitialHostDbBuilder.Create() in C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.EntityFrameworkCore\EntityFrameworkCore\Seed\Host\InitialHostDbBuilder.cs:line 14 + at ASPBaseOIDC.EntityFrameworkCore.Seed.SeedHelper.SeedHostDb(ASPBaseOIDCDbContext context) in C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.EntityFrameworkCore\EntityFrameworkCore\Seed\SeedHelper.cs:line 25 + at ASPBaseOIDC.EntityFrameworkCore.Seed.SeedHelper.WithDbContext[TDbContext](IIocResolver iocResolver, Action`1 contextAction) in C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.EntityFrameworkCore\EntityFrameworkCore\Seed\SeedHelper.cs:line 41 + at ASPBaseOIDC.EntityFrameworkCore.Seed.SeedHelper.SeedHostDb(IIocResolver iocResolver) in C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.EntityFrameworkCore\EntityFrameworkCore\Seed\SeedHelper.cs:line 17 + at ASPBaseOIDC.EntityFrameworkCore.ASPBaseOIDCEntityFrameworkModule.PostInitialize() in C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.EntityFrameworkCore\EntityFrameworkCore\ASPBaseOIDCEntityFrameworkModule.cs:line 46 + at Abp.Modules.AbpModuleManager.<>c.b__15_2(AbpModuleInfo module) + at System.Collections.Generic.List`1.ForEach(Action`1 action) + at Abp.Modules.AbpModuleManager.StartModules() + at Abp.AbpBootstrapper.Initialize() +DEBUG 2025-10-01 21:30:00,201 [2 ] Abp.Modules.AbpModuleManager - Loading Abp modules... +DEBUG 2025-10-01 21:30:00,356 [2 ] Abp.Modules.AbpModuleManager - Found 15 ABP modules in total. +DEBUG 2025-10-01 21:30:00,363 [2 ] Abp.Modules.AbpModuleManager - Loaded module: ASPBaseOIDC.Web.Host.Startup.ASPBaseOIDCWebHostModule, ASPBaseOIDC.Web.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,364 [2 ] Abp.Modules.AbpModuleManager - Loaded module: ASPBaseOIDC.ASPBaseOIDCWebCoreModule, ASPBaseOIDC.Web.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,364 [2 ] Abp.Modules.AbpModuleManager - Loaded module: ASPBaseOIDC.ASPBaseOIDCApplicationModule, ASPBaseOIDC.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,364 [2 ] Abp.Modules.AbpModuleManager - Loaded module: ASPBaseOIDC.ASPBaseOIDCCoreModule, ASPBaseOIDC.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,364 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.AbpZeroCoreModule, Abp.ZeroCore, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,365 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.AbpZeroCommonModule, Abp.Zero.Common, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,365 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AbpKernelModule, Abp, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,365 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AutoMapper.AbpAutoMapperModule, Abp.AutoMapper, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,366 [2 ] Abp.Modules.AbpModuleManager - Loaded module: ASPBaseOIDC.EntityFrameworkCore.ASPBaseOIDCEntityFrameworkModule, ASPBaseOIDC.EntityFrameworkCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,366 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.EntityFrameworkCore.AbpZeroCoreEntityFrameworkCoreModule, Abp.ZeroCore.EntityFrameworkCore, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,366 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule, Abp.EntityFrameworkCore, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,366 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.EntityFramework.AbpEntityFrameworkCommonModule, Abp.EntityFramework.Common, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,366 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AspNetCore.AbpAspNetCoreModule, Abp.AspNetCore, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,366 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Web.AbpWebCommonModule, Abp.Web.Common, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,367 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AspNetCore.SignalR.AbpAspNetCoreSignalRModule, Abp.AspNetCore.SignalR, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,368 [2 ] Abp.Modules.AbpModuleManager - 15 modules loaded. +DEBUG 2025-10-01 21:30:00,407 [2 ] o.Configuration.LanguageManagementConfig - Converted Abp (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource +DEBUG 2025-10-01 21:30:00,407 [2 ] o.Configuration.LanguageManagementConfig - Converted AbpZero (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource +DEBUG 2025-10-01 21:30:00,407 [2 ] o.Configuration.LanguageManagementConfig - Converted ASPBaseOIDC (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource +DEBUG 2025-10-01 21:30:00,407 [2 ] o.Configuration.LanguageManagementConfig - Converted AbpWeb (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource +DEBUG 2025-10-01 21:30:00,614 [2 ] ameworkCore.AbpEntityFrameworkCoreModule - Registering DbContext: ASPBaseOIDC.EntityFrameworkCore.ASPBaseOIDCDbContext, ASPBaseOIDC.EntityFrameworkCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:30:00,703 [2 ] Abp.Localization.LocalizationManager - Initializing 4 localization sources. +DEBUG 2025-10-01 21:30:00,739 [2 ] Abp.Localization.LocalizationManager - Initialized localization source: Abp +DEBUG 2025-10-01 21:30:00,762 [2 ] Abp.Localization.LocalizationManager - Initialized localization source: AbpZero +DEBUG 2025-10-01 21:30:00,770 [2 ] Abp.Localization.LocalizationManager - Initialized localization source: ASPBaseOIDC +DEBUG 2025-10-01 21:30:00,795 [2 ] Abp.Localization.LocalizationManager - Initialized localization source: AbpWeb +DEBUG 2025-10-01 21:30:00,801 [2 ] Abp.BackgroundJobs.BackgroundJobManager - Start background worker: Abp.BackgroundJobs.BackgroundJobManager +DEBUG 2025-10-01 21:30:00,825 [2 ] , Culture=neutral, PublicKeyToken=null]] - Start background worker: Abp.Authorization.Users.UserTokenExpirationWorker`2[[ASPBaseOIDC.MultiTenancy.Tenant, ASPBaseOIDC.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[ASPBaseOIDC.Authorization.Users.User, ASPBaseOIDC.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] +DEBUG 2025-10-01 21:30:00,841 [2 ] Abp.AutoMapper.AbpAutoMapperModule - Found 7 classes define auto mapping attributes +DEBUG 2025-10-01 21:30:00,841 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.Users.Dto.CreateUserDto +DEBUG 2025-10-01 21:30:00,843 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.Users.Dto.UserDto +DEBUG 2025-10-01 21:30:00,844 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.Sessions.Dto.TenantLoginInfoDto +DEBUG 2025-10-01 21:30:00,844 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.Sessions.Dto.UserLoginInfoDto +DEBUG 2025-10-01 21:30:00,844 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.Roles.Dto.PermissionDto +DEBUG 2025-10-01 21:30:00,844 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.MultiTenancy.Dto.CreateTenantDto +DEBUG 2025-10-01 21:30:00,844 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.MultiTenancy.Dto.TenantDto +INFO 2025-10-01 21:30:10,157 [2 ] tCore.Builder.RequestLocalizationOptions - Supported Request Localization Cultures: en,es-MX +INFO 2025-10-01 21:30:10,921 [17 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/ - - - +INFO 2025-10-01 21:30:11,061 [2 ] Microsoft.Hosting.Lifetime - Application started. Press Ctrl+C to shut down. +INFO 2025-10-01 21:30:11,067 [2 ] Microsoft.Hosting.Lifetime - Hosting environment: Development +INFO 2025-10-01 21:30:11,071 [2 ] Microsoft.Hosting.Lifetime - Content root path: C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.Web.Host +INFO 2025-10-01 21:30:11,586 [9 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'ASPBaseOIDC.Web.Host.Controllers.HomeController.Index (ASPBaseOIDC.Web.Host)' +INFO 2025-10-01 21:30:11,715 [9 ] c.Infrastructure.ControllerActionInvoker - Route matched with {action = "Index", controller = "Home", area = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Index() on controller ASPBaseOIDC.Web.Host.Controllers.HomeController (ASPBaseOIDC.Web.Host). +INFO 2025-10-01 21:30:12,356 [16 ] vc.Infrastructure.RedirectResultExecutor - Executing RedirectResult, redirecting to /swagger. +INFO 2025-10-01 21:30:12,385 [16 ] c.Infrastructure.ControllerActionInvoker - Executed action ASPBaseOIDC.Web.Host.Controllers.HomeController.Index (ASPBaseOIDC.Web.Host) in 642.3489ms +INFO 2025-10-01 21:30:12,389 [16 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'ASPBaseOIDC.Web.Host.Controllers.HomeController.Index (ASPBaseOIDC.Web.Host)' +INFO 2025-10-01 21:30:12,418 [17 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/swagger - - - +INFO 2025-10-01 21:30:12,431 [16 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/ - 302 - - 1526.7641ms +INFO 2025-10-01 21:30:12,447 [9 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/swagger/index.html - - - +INFO 2025-10-01 21:30:12,451 [10 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/swagger - 301 - - 33.2418ms +INFO 2025-10-01 21:30:12,615 [16 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/swagger/index.html - 200 - text/html;charset=utf-8 121.1147ms +INFO 2025-10-01 21:30:12,618 [17 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/swagger/swagger-ui-bundle.js - - - +INFO 2025-10-01 21:30:12,622 [9 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/swagger/swagger-ui-standalone-preset.js - - - +INFO 2025-10-01 21:30:12,625 [10 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/swagger/swagger-ui.css - - - +INFO 2025-10-01 21:30:12,689 [9 ] NetCore.StaticFiles.StaticFileMiddleware - Sending file. Request path: '/swagger-ui-standalone-preset.js'. Physical path: 'N/A' +INFO 2025-10-01 21:30:12,689 [10 ] NetCore.StaticFiles.StaticFileMiddleware - Sending file. Request path: '/swagger-ui.css'. Physical path: 'N/A' +INFO 2025-10-01 21:30:12,694 [10 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/swagger/swagger-ui.css - 200 154949 text/css 76.3078ms +INFO 2025-10-01 21:30:12,698 [10 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/swagger/ui/abp.js - - - +INFO 2025-10-01 21:30:12,704 [9 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/swagger/swagger-ui-standalone-preset.js - 200 229223 text/javascript 85.3293ms +INFO 2025-10-01 21:30:12,717 [27 ] NetCore.StaticFiles.StaticFileMiddleware - Sending file. Request path: '/swagger/ui/abp.js'. Physical path: 'C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.Web.Host\wwwroot\swagger\ui\abp.js' +INFO 2025-10-01 21:30:12,721 [17 ] NetCore.StaticFiles.StaticFileMiddleware - Sending file. Request path: '/swagger-ui-bundle.js'. Physical path: 'N/A' +INFO 2025-10-01 21:30:12,730 [27 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/swagger/ui/abp.js - 200 3697 text/javascript 32.2333ms +INFO 2025-10-01 21:30:12,739 [16 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/swagger/ui/abp.swagger.js - - - +INFO 2025-10-01 21:30:12,747 [17 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/_framework/aspnetcore-browser-refresh.js - - - +INFO 2025-10-01 21:30:12,751 [27 ] NetCore.StaticFiles.StaticFileMiddleware - Sending file. Request path: '/swagger/ui/abp.swagger.js'. Physical path: 'C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.Web.Host\wwwroot\swagger\ui\abp.swagger.js' +INFO 2025-10-01 21:30:12,753 [27 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/swagger/ui/abp.swagger.js - 200 8029 text/javascript 23.0223ms +INFO 2025-10-01 21:30:12,759 [27 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/_vs/browserLink - - - +INFO 2025-10-01 21:30:12,766 [17 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/_framework/aspnetcore-browser-refresh.js - 200 16525 application/javascript;+charset=utf-8 14.8847ms +INFO 2025-10-01 21:30:12,812 [27 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/swagger/swagger-ui-bundle.js - 200 1484234 text/javascript 166.7026ms +INFO 2025-10-01 21:30:12,934 [27 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/_vs/browserLink - 200 - text/javascript;+charset=UTF-8 175.5469ms +INFO 2025-10-01 21:30:13,024 [27 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/AntiForgery/SetCookie - - - +INFO 2025-10-01 21:30:13,030 [27 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'ASPBaseOIDC.Web.Host.Controllers.AntiForgeryController.SetCookie (ASPBaseOIDC.Web.Host)' +INFO 2025-10-01 21:30:13,038 [27 ] c.Infrastructure.ControllerActionInvoker - Route matched with {action = "SetCookie", controller = "AntiForgery", area = ""}. Executing controller action with signature Void SetCookie() on controller ASPBaseOIDC.Web.Host.Controllers.AntiForgeryController (ASPBaseOIDC.Web.Host). +INFO 2025-10-01 21:30:13,093 [27 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/swagger/v1/swagger.json - - - +INFO 2025-10-01 21:30:13,096 [17 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/swagger/favicon-32x32.png - - - +INFO 2025-10-01 21:30:13,100 [17 ] NetCore.StaticFiles.StaticFileMiddleware - Sending file. Request path: '/favicon-32x32.png'. Physical path: 'N/A' +INFO 2025-10-01 21:30:13,102 [17 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/swagger/favicon-32x32.png - 200 628 image/png 6.0632ms +INFO 2025-10-01 21:30:13,131 [27 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/swagger/v1/swagger.json - 200 - application/json;charset=utf-8 37.2879ms +INFO 2025-10-01 21:30:13,483 [27 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'. +INFO 2025-10-01 21:30:13,502 [27 ] c.Infrastructure.ControllerActionInvoker - Executed action ASPBaseOIDC.Web.Host.Controllers.AntiForgeryController.SetCookie (ASPBaseOIDC.Web.Host) in 458.9284ms +INFO 2025-10-01 21:30:13,506 [27 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'ASPBaseOIDC.Web.Host.Controllers.AntiForgeryController.SetCookie (ASPBaseOIDC.Web.Host)' +INFO 2025-10-01 21:30:13,510 [27 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/AntiForgery/SetCookie - 200 - application/json;+charset=utf-8 487.1330ms +DEBUG 2025-10-01 21:32:36,963 [2 ] Abp.Modules.AbpModuleManager - Loading Abp modules... +DEBUG 2025-10-01 21:32:37,092 [2 ] Abp.Modules.AbpModuleManager - Found 15 ABP modules in total. +DEBUG 2025-10-01 21:32:37,099 [2 ] Abp.Modules.AbpModuleManager - Loaded module: ASPBaseOIDC.Web.Host.Startup.ASPBaseOIDCWebHostModule, ASPBaseOIDC.Web.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,100 [2 ] Abp.Modules.AbpModuleManager - Loaded module: ASPBaseOIDC.ASPBaseOIDCWebCoreModule, ASPBaseOIDC.Web.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,101 [2 ] Abp.Modules.AbpModuleManager - Loaded module: ASPBaseOIDC.ASPBaseOIDCApplicationModule, ASPBaseOIDC.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,101 [2 ] Abp.Modules.AbpModuleManager - Loaded module: ASPBaseOIDC.ASPBaseOIDCCoreModule, ASPBaseOIDC.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,101 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.AbpZeroCoreModule, Abp.ZeroCore, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,101 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.AbpZeroCommonModule, Abp.Zero.Common, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,101 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AbpKernelModule, Abp, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,102 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AutoMapper.AbpAutoMapperModule, Abp.AutoMapper, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,102 [2 ] Abp.Modules.AbpModuleManager - Loaded module: ASPBaseOIDC.EntityFrameworkCore.ASPBaseOIDCEntityFrameworkModule, ASPBaseOIDC.EntityFrameworkCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,102 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.EntityFrameworkCore.AbpZeroCoreEntityFrameworkCoreModule, Abp.ZeroCore.EntityFrameworkCore, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,102 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule, Abp.EntityFrameworkCore, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,103 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.EntityFramework.AbpEntityFrameworkCommonModule, Abp.EntityFramework.Common, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,103 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AspNetCore.AbpAspNetCoreModule, Abp.AspNetCore, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,103 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Web.AbpWebCommonModule, Abp.Web.Common, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,103 [2 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AspNetCore.SignalR.AbpAspNetCoreSignalRModule, Abp.AspNetCore.SignalR, Version=10.2.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,104 [2 ] Abp.Modules.AbpModuleManager - 15 modules loaded. +DEBUG 2025-10-01 21:32:37,147 [2 ] o.Configuration.LanguageManagementConfig - Converted Abp (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource +DEBUG 2025-10-01 21:32:37,147 [2 ] o.Configuration.LanguageManagementConfig - Converted AbpZero (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource +DEBUG 2025-10-01 21:32:37,147 [2 ] o.Configuration.LanguageManagementConfig - Converted ASPBaseOIDC (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource +DEBUG 2025-10-01 21:32:37,147 [2 ] o.Configuration.LanguageManagementConfig - Converted AbpWeb (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource +DEBUG 2025-10-01 21:32:37,357 [2 ] ameworkCore.AbpEntityFrameworkCoreModule - Registering DbContext: ASPBaseOIDC.EntityFrameworkCore.ASPBaseOIDCDbContext, ASPBaseOIDC.EntityFrameworkCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +DEBUG 2025-10-01 21:32:37,451 [2 ] Abp.Localization.LocalizationManager - Initializing 4 localization sources. +DEBUG 2025-10-01 21:32:37,497 [2 ] Abp.Localization.LocalizationManager - Initialized localization source: Abp +DEBUG 2025-10-01 21:32:37,520 [2 ] Abp.Localization.LocalizationManager - Initialized localization source: AbpZero +DEBUG 2025-10-01 21:32:37,528 [2 ] Abp.Localization.LocalizationManager - Initialized localization source: ASPBaseOIDC +DEBUG 2025-10-01 21:32:37,541 [2 ] Abp.Localization.LocalizationManager - Initialized localization source: AbpWeb +DEBUG 2025-10-01 21:32:37,547 [2 ] Abp.BackgroundJobs.BackgroundJobManager - Start background worker: Abp.BackgroundJobs.BackgroundJobManager +DEBUG 2025-10-01 21:32:37,592 [2 ] , Culture=neutral, PublicKeyToken=null]] - Start background worker: Abp.Authorization.Users.UserTokenExpirationWorker`2[[ASPBaseOIDC.MultiTenancy.Tenant, ASPBaseOIDC.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[ASPBaseOIDC.Authorization.Users.User, ASPBaseOIDC.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] +DEBUG 2025-10-01 21:32:37,605 [2 ] Abp.AutoMapper.AbpAutoMapperModule - Found 7 classes define auto mapping attributes +DEBUG 2025-10-01 21:32:37,605 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.Users.Dto.CreateUserDto +DEBUG 2025-10-01 21:32:37,607 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.Users.Dto.UserDto +DEBUG 2025-10-01 21:32:37,608 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.Sessions.Dto.TenantLoginInfoDto +DEBUG 2025-10-01 21:32:37,608 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.Sessions.Dto.UserLoginInfoDto +DEBUG 2025-10-01 21:32:37,608 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.Roles.Dto.PermissionDto +DEBUG 2025-10-01 21:32:37,608 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.MultiTenancy.Dto.CreateTenantDto +DEBUG 2025-10-01 21:32:37,608 [2 ] Abp.AutoMapper.AbpAutoMapperModule - ASPBaseOIDC.MultiTenancy.Dto.TenantDto +INFO 2025-10-01 21:32:49,602 [2 ] tCore.Builder.RequestLocalizationOptions - Supported Request Localization Cultures: en,es-MX +INFO 2025-10-01 21:32:49,844 [16 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/ - - - +INFO 2025-10-01 21:32:49,898 [2 ] Microsoft.Hosting.Lifetime - Application started. Press Ctrl+C to shut down. +INFO 2025-10-01 21:32:49,900 [2 ] Microsoft.Hosting.Lifetime - Hosting environment: Development +INFO 2025-10-01 21:32:49,901 [2 ] Microsoft.Hosting.Lifetime - Content root path: C:\Users\jandres\source\repos\JJSolutions.ASPBaseOIDC\aspnet-core\src\ASPBaseOIDC.Web.Host +INFO 2025-10-01 21:32:50,017 [14 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'ASPBaseOIDC.Web.Host.Controllers.HomeController.Index (ASPBaseOIDC.Web.Host)' +INFO 2025-10-01 21:32:50,059 [14 ] c.Infrastructure.ControllerActionInvoker - Route matched with {action = "Index", controller = "Home", area = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Index() on controller ASPBaseOIDC.Web.Host.Controllers.HomeController (ASPBaseOIDC.Web.Host). +INFO 2025-10-01 21:32:50,568 [14 ] vc.Infrastructure.RedirectResultExecutor - Executing RedirectResult, redirecting to /swagger. +INFO 2025-10-01 21:32:50,582 [14 ] c.Infrastructure.ControllerActionInvoker - Executed action ASPBaseOIDC.Web.Host.Controllers.HomeController.Index (ASPBaseOIDC.Web.Host) in 510.3757ms +INFO 2025-10-01 21:32:50,584 [14 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'ASPBaseOIDC.Web.Host.Controllers.HomeController.Index (ASPBaseOIDC.Web.Host)' +INFO 2025-10-01 21:32:50,603 [14 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/ - 302 - - 762.4794ms +INFO 2025-10-01 21:32:50,651 [16 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/_framework/aspnetcore-browser-refresh.js - - - +INFO 2025-10-01 21:32:50,667 [15 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/_vs/browserLink - - - +INFO 2025-10-01 21:32:50,695 [16 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/_framework/aspnetcore-browser-refresh.js - 200 16525 application/javascript;+charset=utf-8 21.7859ms +INFO 2025-10-01 21:32:50,735 [14 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/_vs/browserLink - 200 - text/javascript;+charset=UTF-8 68.3243ms +INFO 2025-10-01 21:32:50,936 [16 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/AntiForgery/SetCookie - - - +INFO 2025-10-01 21:32:50,941 [16 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'ASPBaseOIDC.Web.Host.Controllers.AntiForgeryController.SetCookie (ASPBaseOIDC.Web.Host)' +INFO 2025-10-01 21:32:50,972 [16 ] c.Infrastructure.ControllerActionInvoker - Route matched with {action = "SetCookie", controller = "AntiForgery", area = ""}. Executing controller action with signature Void SetCookie() on controller ASPBaseOIDC.Web.Host.Controllers.AntiForgeryController (ASPBaseOIDC.Web.Host). +INFO 2025-10-01 21:32:50,988 [15 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/swagger/v1/swagger.json - - - +INFO 2025-10-01 21:32:51,011 [15 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/swagger/v1/swagger.json - 200 - application/json;charset=utf-8 23.6846ms +INFO 2025-10-01 21:32:51,385 [14 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'. +INFO 2025-10-01 21:32:51,394 [14 ] c.Infrastructure.ControllerActionInvoker - Executed action ASPBaseOIDC.Web.Host.Controllers.AntiForgeryController.SetCookie (ASPBaseOIDC.Web.Host) in 419.766ms +INFO 2025-10-01 21:32:51,396 [14 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'ASPBaseOIDC.Web.Host.Controllers.AntiForgeryController.SetCookie (ASPBaseOIDC.Web.Host)' +INFO 2025-10-01 21:32:51,400 [14 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/AntiForgery/SetCookie - 200 - application/json;+charset=utf-8 463.2759ms +INFO 2025-10-01 21:33:13,292 [16 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 POST https://localhost:44313/api/services/app/Account/IsTenantAvailable - application/json 25 +INFO 2025-10-01 21:33:13,302 [16 ] pNetCore.Cors.Infrastructure.CorsService - CORS policy execution failed. +INFO 2025-10-01 21:33:13,306 [16 ] pNetCore.Cors.Infrastructure.CorsService - Request origin https://localhost:44313 does not have permission to access the resource. +INFO 2025-10-01 21:33:13,313 [16 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'ASPBaseOIDC.Authorization.Accounts.AccountAppService.IsTenantAvailable (ASPBaseOIDC.Application)' +INFO 2025-10-01 21:33:13,350 [16 ] c.Infrastructure.ControllerActionInvoker - Route matched with {area = "app", action = "IsTenantAvailable", controller = "Account"}. Executing controller action with signature System.Threading.Tasks.Task`1[ASPBaseOIDC.Authorization.Accounts.Dto.IsTenantAvailableOutput] IsTenantAvailable(ASPBaseOIDC.Authorization.Accounts.Dto.IsTenantAvailableInput) on controller ASPBaseOIDC.Authorization.Accounts.AccountAppService (ASPBaseOIDC.Application). +INFO 2025-10-01 21:33:14,419 [16 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'. +INFO 2025-10-01 21:33:14,443 [16 ] c.Infrastructure.ControllerActionInvoker - Executed action ASPBaseOIDC.Authorization.Accounts.AccountAppService.IsTenantAvailable (ASPBaseOIDC.Application) in 1089.857ms +INFO 2025-10-01 21:33:14,446 [16 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'ASPBaseOIDC.Authorization.Accounts.AccountAppService.IsTenantAvailable (ASPBaseOIDC.Application)' +INFO 2025-10-01 21:33:14,449 [16 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 POST https://localhost:44313/api/services/app/Account/IsTenantAvailable - 200 - application/json;+charset=utf-8 1157.8989ms +INFO 2025-10-01 21:33:14,456 [16 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 POST https://localhost:44313/api/TokenAuth/Authenticate - application/json 53 +INFO 2025-10-01 21:33:14,460 [16 ] pNetCore.Cors.Infrastructure.CorsService - CORS policy execution failed. +INFO 2025-10-01 21:33:14,462 [16 ] pNetCore.Cors.Infrastructure.CorsService - Request origin https://localhost:44313 does not have permission to access the resource. +INFO 2025-10-01 21:33:15,041 [16 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'ASPBaseOIDC.Controllers.TokenAuthController.Authenticate (ASPBaseOIDC.Web.Core)' +INFO 2025-10-01 21:33:15,053 [16 ] c.Infrastructure.ControllerActionInvoker - Route matched with {action = "Authenticate", controller = "TokenAuth", area = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[ASPBaseOIDC.Models.TokenAuth.AuthenticateResultModel] Authenticate(ASPBaseOIDC.Models.TokenAuth.AuthenticateModel) on controller ASPBaseOIDC.Controllers.TokenAuthController (ASPBaseOIDC.Web.Core). +INFO 2025-10-01 21:33:17,696 [16 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'. +INFO 2025-10-01 21:33:17,702 [16 ] c.Infrastructure.ControllerActionInvoker - Executed action ASPBaseOIDC.Controllers.TokenAuthController.Authenticate (ASPBaseOIDC.Web.Core) in 2647.1345ms +INFO 2025-10-01 21:33:17,704 [16 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'ASPBaseOIDC.Controllers.TokenAuthController.Authenticate (ASPBaseOIDC.Web.Core)' +INFO 2025-10-01 21:33:17,706 [16 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 POST https://localhost:44313/api/TokenAuth/Authenticate - 200 - application/json;+charset=utf-8 3250.9957ms +INFO 2025-10-01 21:33:17,722 [16 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/swagger/index.html - - - +INFO 2025-10-01 21:33:17,775 [15 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/swagger/index.html - 200 - text/html;charset=utf-8 52.9578ms +INFO 2025-10-01 21:33:17,789 [16 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/_framework/aspnetcore-browser-refresh.js - - - +INFO 2025-10-01 21:33:17,790 [15 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/_vs/browserLink - - - +INFO 2025-10-01 21:33:17,794 [16 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/_framework/aspnetcore-browser-refresh.js - 200 16525 application/javascript;+charset=utf-8 4.5005ms +INFO 2025-10-01 21:33:17,855 [15 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/_vs/browserLink - 200 - text/javascript;+charset=UTF-8 64.2830ms +INFO 2025-10-01 21:33:17,862 [15 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/AntiForgery/SetCookie - - - +INFO 2025-10-01 21:33:17,880 [16 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/swagger/v1/swagger.json - - - +INFO 2025-10-01 21:33:18,251 [15 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'ASPBaseOIDC.Web.Host.Controllers.AntiForgeryController.SetCookie (ASPBaseOIDC.Web.Host)' +INFO 2025-10-01 21:33:18,255 [15 ] c.Infrastructure.ControllerActionInvoker - Route matched with {action = "SetCookie", controller = "AntiForgery", area = ""}. Executing controller action with signature Void SetCookie() on controller ASPBaseOIDC.Web.Host.Controllers.AntiForgeryController (ASPBaseOIDC.Web.Host). +INFO 2025-10-01 21:33:18,268 [10 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/swagger/v1/swagger.json - 200 - application/json;charset=utf-8 388.0320ms +INFO 2025-10-01 21:33:18,717 [15 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'. +INFO 2025-10-01 21:33:18,720 [15 ] c.Infrastructure.ControllerActionInvoker - Executed action ASPBaseOIDC.Web.Host.Controllers.AntiForgeryController.SetCookie (ASPBaseOIDC.Web.Host) in 462.4395ms +INFO 2025-10-01 21:33:18,722 [15 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'ASPBaseOIDC.Web.Host.Controllers.AntiForgeryController.SetCookie (ASPBaseOIDC.Web.Host)' +INFO 2025-10-01 21:33:18,748 [15 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/AntiForgery/SetCookie - 200 - application/json;+charset=utf-8 863.1723ms +INFO 2025-10-01 21:33:25,253 [15 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2 GET https://localhost:44313/api/services/app/User/GetAll - - - +INFO 2025-10-01 21:33:25,263 [15 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'ASPBaseOIDC.Users.UserAppService.GetAllAsync (ASPBaseOIDC.Application)' +INFO 2025-10-01 21:33:25,293 [15 ] c.Infrastructure.ControllerActionInvoker - Route matched with {area = "app", action = "GetAll", controller = "User"}. Executing controller action with signature System.Threading.Tasks.Task`1[Abp.Application.Services.Dto.PagedResultDto`1[ASPBaseOIDC.Users.Dto.UserDto]] GetAllAsync(ASPBaseOIDC.Users.Dto.PagedUserResultRequestDto) on controller ASPBaseOIDC.Users.UserAppService (ASPBaseOIDC.Application). +INFO 2025-10-01 21:33:29,883 [28 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'. +INFO 2025-10-01 21:33:29,915 [28 ] c.Infrastructure.ControllerActionInvoker - Executed action ASPBaseOIDC.Users.UserAppService.GetAllAsync (ASPBaseOIDC.Application) in 4618.4573ms +INFO 2025-10-01 21:33:29,918 [28 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'ASPBaseOIDC.Users.UserAppService.GetAllAsync (ASPBaseOIDC.Application)' +INFO 2025-10-01 21:33:29,942 [28 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/2 GET https://localhost:44313/api/services/app/User/GetAll - 200 - application/json;+charset=utf-8 4668.4694ms diff --git a/src/ASPBaseOIDC.Web.Host/Properties/launchSettings.json b/src/ASPBaseOIDC.Web.Host/Properties/launchSettings.json index 3c04502..400f1ef 100644 --- a/src/ASPBaseOIDC.Web.Host/Properties/launchSettings.json +++ b/src/ASPBaseOIDC.Web.Host/Properties/launchSettings.json @@ -3,8 +3,8 @@ "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { - "applicationUrl": "https://localhost:44311/", - "sslPort": 44311 + "applicationUrl": "https://localhost:44313/", + "sslPort": 44313 } }, "profiles": { @@ -18,7 +18,8 @@ "ASPBaseOIDC.Web.Host": { "commandName": "Project", "launchBrowser": true, - "applicationUrl": "https://localhost:44311/", + "applicationUrl": "https://localhost:44313/", + "sslPort": 44313, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } diff --git a/src/ASPBaseOIDC.Web.Host/appsettings.json b/src/ASPBaseOIDC.Web.Host/appsettings.json index 3df88fd..407cc8d 100644 --- a/src/ASPBaseOIDC.Web.Host/appsettings.json +++ b/src/ASPBaseOIDC.Web.Host/appsettings.json @@ -1,6 +1,6 @@ { "ConnectionStrings": { - "Default": "Server=localhost; Database=ASPBaseOIDCDb; Trusted_Connection=True; TrustServerCertificate=True;" + "Default": "User Id=postgres;Password=admin57$;Server=134.199.235.213;Port=5432;Database=isa_base_auth_db" }, "App": { "ServerRootAddress": "https://localhost:44311/",