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