// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using VberAdmin.EntityFrameworkCore; #nullable disable namespace VberAdmin.Migrations { [DbContext(typeof(VberAdminDbContext))] partial class VberAdminDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "6.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); 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("Sys_BackgroundJobs", (string)null); }); 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("Sys_Notifications", (string)null); }); 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("UserId", "TenantId"); b.HasIndex("NotificationName", "EntityTypeName", "EntityId", "UserId"); b.HasIndex("TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId"); b.ToTable("Sys_NotificationSubscriptions", (string)null); }); 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("Sys_TenantNotifications", (string)null); }); 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", "TenantId"); b.HasIndex("UserId", "State", "CreationTime"); b.ToTable("Sys_UserNotifications", (string)null); }); 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.HasIndex("TenantId"); b.ToTable("Sys_WebhookEvents", (string)null); }); 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("TenantId"); b.HasIndex("WebhookEventId"); b.ToTable("Sys_WebhookSendAttempts", (string)null); }); 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.HasIndex("TenantId"); b.ToTable("Sys_WebhookSubscriptions", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.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("LogType") .HasColumnType("int"); b.Property("MethodName") .HasMaxLength(256) .HasColumnType("nvarchar(256)"); b.Property("MethodNameLang") .HasColumnType("nvarchar(max)"); b.Property("Parameters") .HasMaxLength(1024) .HasColumnType("nvarchar(1024)"); b.Property("ReturnValue") .HasColumnType("nvarchar(max)"); b.Property("ServiceName") .HasMaxLength(256) .HasColumnType("nvarchar(256)"); b.Property("ServiceNameLang") .HasColumnType("nvarchar(max)"); 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.HasIndex("UserId", "TenantId"); b.ToTable("Sys_AuditLogs", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.CommonWorkflowAuditorInfo", b => { b.Property("Id") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("AuditTime") .HasColumnType("datetime2"); b.Property("CreationTime") .HasColumnType("datetime2"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("ExecutionPointerId") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("Remark") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("Status") .HasColumnType("int"); b.Property("TenantId") .HasColumnType("int"); b.Property("UserHeadPhoto") .HasColumnType("nvarchar(max)"); b.Property("UserId") .HasColumnType("bigint"); b.Property("UserIdentityName") .HasColumnType("nvarchar(max)"); b.Property("WorkflowId") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.HasKey("Id"); b.HasIndex("ExecutionPointerId"); b.HasIndex("WorkflowId"); b.HasIndex("UserId", "TenantId"); b.ToTable("Sys_WorkflowAuditor"); }); modelBuilder.Entity("VberZero.BaseSystem.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("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("LastModifierUserId"); b.HasIndex("TenancyName"); b.ToTable("Sys_Tenants", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.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("IsLeaf") .HasColumnType("bit"); b.Property("LastModificationTime") .HasColumnType("datetime2"); b.Property("LastModifierUserId") .HasColumnType("bigint"); b.Property("ParentId") .HasColumnType("bigint"); b.Property("Path") .HasColumnType("nvarchar(max)"); b.Property("TenantId") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("ParentId"); b.HasIndex("TenantId"); b.HasIndex("TenantId", "Code"); b.ToTable("Sys_OrganizationUnits", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.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"); b.HasIndex("TenantId", "OrganizationUnitId"); b.HasIndex("TenantId", "RoleId"); b.ToTable("Sys_OrganizationUnitRoles", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.PermissionSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); b.Property("Access") .HasColumnType("int"); b.Property("AccessValue") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("CreationTime") .HasColumnType("datetime2"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("Discriminator") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("IsGranted") .HasColumnType("bit"); b.Property("Master") .HasColumnType("int"); b.Property("MasterValue") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("Name") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("TenantId") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("TenantId"); b.HasIndex("TenantId", "Name"); b.ToTable("Sys_Permissions", (string)null); b.HasDiscriminator("Discriminator").HasValue("PermissionSetting"); }); modelBuilder.Entity("VberZero.BaseSystem.Roles.Role", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); b.Property("AccountType") .HasColumnType("int"); 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.Property("UserType") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("CreatorUserId"); b.HasIndex("DeleterUserId"); b.HasIndex("LastModifierUserId"); b.HasIndex("TenantId"); b.HasIndex("TenantId", "NormalizedName"); b.ToTable("Sys_Roles", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.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"); b.HasIndex("TenantId", "ClaimType"); b.ToTable("Sys_RoleClaims", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.SysAttach", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); b.Property("CodeKey") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CreationTime") .HasColumnType("datetime2"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("Description") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("FileExt") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); b.Property("FileName") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("FilePath") .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); b.Property("FileTitle") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("FileType") .HasColumnType("int"); b.Property("SourceKey") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("TenantId") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("CreatorUserId"); b.HasIndex("TenantId"); b.ToTable("Sys_Attaches", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.SysAutoCompleteQuery", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); b.Property("CodeKey") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ExtensionData") .HasColumnType("nvarchar(max)"); b.Property("LastUseDate") .HasColumnType("datetime2"); b.Property("NameKey") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("Remark") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("UseCount") .HasColumnType("int"); b.Property("ValueKey") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.HasKey("Id"); b.ToTable("Sys_AutoCompleteQueries", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.SysCalendar", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); b.Property("AllDay") .HasColumnType("bit"); b.Property("Colors") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CreationTime") .HasColumnType("datetime2"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("Description") .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); b.Property("End") .HasColumnType("datetime2"); b.Property("IsNotify") .HasColumnType("bit"); b.Property("JobId") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("LastModificationTime") .HasColumnType("datetime2"); b.Property("LastModifierUserId") .HasColumnType("bigint"); b.Property("NotifyType") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("OwnerId") .HasColumnType("bigint"); b.Property("Start") .HasColumnType("datetime2"); b.Property("Title") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.HasKey("Id"); b.HasIndex("CreatorUserId"); b.HasIndex("LastModifierUserId"); b.HasIndex("OwnerId"); b.ToTable("Sys_Calendars", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.SysFunction", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); b.Property("Class") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CreationTime") .HasColumnType("datetime2"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("Depth") .HasColumnType("int"); b.Property("DisplayName") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FunctionType") .HasColumnType("int"); b.Property("Icon") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IsLeaf") .HasColumnType("bit"); b.Property("LastModificationTime") .HasColumnType("datetime2"); b.Property("LastModifierUserId") .HasColumnType("bigint"); b.Property("MultiTenancySides") .HasColumnType("int"); b.Property("Name") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("NeedAuth") .HasColumnType("bit"); b.Property("ParentNo") .HasColumnType("int"); b.Property("Path") .IsRequired() .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("PermissionName") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("Script") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("Sort") .HasColumnType("int"); b.Property("Url") .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); b.HasKey("Id"); b.HasIndex("CreatorUserId"); b.HasIndex("LastModifierUserId"); b.HasIndex("ParentNo"); b.ToTable("Sys_Functions", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.SysHelp", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); b.Property("Content") .HasMaxLength(2147483647) .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("FunctionNo") .HasColumnType("int"); b.Property("HelpType") .HasColumnType("int"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("KeyWords") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("LastModificationTime") .HasColumnType("datetime2"); b.Property("LastModifierUserId") .HasColumnType("bigint"); b.Property("Remark") .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); b.Property("Sequence") .HasColumnType("int"); b.Property("Title") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.HasIndex("CreatorUserId"); b.HasIndex("DeleterUserId"); b.HasIndex("FunctionNo"); b.HasIndex("LastModifierUserId"); b.ToTable("Sys_Helps", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.SysSetting", 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", "TenantId"); b.HasIndex("TenantId", "Name", "UserId") .IsUnique(); b.ToTable("Sys_Settings", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.SysState", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); b.Property("CodeKey") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CodeValue") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CreationTime") .HasColumnType("datetime2"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("DisplayValue") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("LastModificationTime") .HasColumnType("datetime2"); b.Property("LastModifierUserId") .HasColumnType("bigint"); b.Property("Name") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.HasIndex("CreatorUserId"); b.HasIndex("LastModifierUserId"); b.ToTable("Sys_States", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.Users.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); b.Property("AccessFailedCount") .HasColumnType("int"); b.Property("AccountNo") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("AccountType") .HasColumnType("int"); b.Property("AuthenticationSource") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("AvatarPath") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); 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("Gender") .HasColumnType("int"); 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.Property("UserType") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("CreatorUserId"); b.HasIndex("DeleterUserId"); b.HasIndex("LastModifierUserId"); b.HasIndex("TenantId"); b.HasIndex("TenantId", "NormalizedEmailAddress"); b.HasIndex("TenantId", "NormalizedUserName"); b.ToTable("Sys_Users", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.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("PhoneNumber") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); 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.HasIndex("UserId", "TenantId"); b.ToTable("Sys_UserAccounts", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.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("TenantId", "ClaimType"); b.HasIndex("UserId", "TenantId"); b.ToTable("Sys_UserClaims", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.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("ProviderKey", "TenantId") .IsUnique() .HasFilter("[TenantId] IS NOT NULL"); b.HasIndex("TenantId", "UserId"); b.HasIndex("UserId", "TenantId"); b.HasIndex("TenantId", "LoginProvider", "ProviderKey"); b.ToTable("Sys_UserLogins", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.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("UserNameOrEmailOrPhone") .HasMaxLength(256) .HasColumnType("nvarchar(256)"); b.HasKey("Id"); b.HasIndex("UserId", "TenantId"); b.HasIndex("TenancyName", "UserNameOrEmailOrPhone", "Result"); b.ToTable("Sys_UserLoginAttempts", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.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.HasIndex("UserId", "TenantId"); b.ToTable("Sys_UserOrganizationUnits", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.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("TenantId", "RoleId"); b.HasIndex("TenantId", "UserId"); b.HasIndex("UserId", "TenantId"); b.ToTable("Sys_UserRoles", (string)null); }); modelBuilder.Entity("VberZero.BaseSystem.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("TenantId", "UserId"); b.HasIndex("UserId", "TenantId"); b.ToTable("Sys_UserTokens", (string)null); }); modelBuilder.Entity("VberZero.Workflow.DesignInfo.WorkflowDefinitionInfo", b => { b.Property("Id") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasColumnName("Id"); b.Property("Version") .ValueGeneratedOnAdd() .HasColumnType("int") .HasDefaultValue(1) .HasColumnName("Version"); b.Property("Color") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasColumnName("Color"); 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)"); b.Property("Group") .HasMaxLength(100) .HasColumnType("nvarchar(100)") .HasColumnName("Group"); b.Property("Icon") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasColumnName("Icon"); b.Property("Inputs") .HasColumnType("nvarchar(max)") .HasColumnName("Inputs"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("LastModificationTime") .HasColumnType("datetime2"); b.Property("LastModifierUserId") .HasColumnType("bigint"); b.Property("Nodes") .HasColumnType("nvarchar(max)") .HasColumnName("Nodes"); b.Property("TenantId") .HasColumnType("int"); b.Property("Title") .HasMaxLength(256) .HasColumnType("nvarchar(256)") .HasColumnName("Title"); b.HasKey("Id", "Version"); b.HasIndex("TenantId"); b.ToTable("Sys_WorkflowDefinitions"); }); modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowEventInfo", b => { b.Property("Id") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("CreationTime") .HasColumnType("datetime2"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("EventData") .HasColumnType("nvarchar(max)"); b.Property("EventKey") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("EventName") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("EventTime") .HasColumnType("datetime2"); b.Property("IsProcessed") .HasColumnType("bit"); b.Property("TenantId") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("TenantId"); b.ToTable("Sys_Wf_Events"); }); modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowExecutionErrorInfo", b => { b.Property("Id") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("ErrorTime") .HasColumnType("datetime2"); b.Property("ExecutionPointerId") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("Message") .HasColumnType("nvarchar(max)"); b.Property("WorkflowId") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.HasKey("Id"); b.ToTable("Sys_Wf_ExecutionErrors"); }); modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowExecutionPointerInfo", b => { b.Property("Id") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("Active") .HasColumnType("bit"); b.Property("Children") .HasColumnType("nvarchar(max)"); b.Property("ContextItem") .HasColumnType("nvarchar(max)"); b.Property("EndTime") .HasColumnType("datetime2"); b.Property("EventData") .HasColumnType("nvarchar(max)"); b.Property("EventKey") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("EventName") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("EventPublished") .HasColumnType("bit"); b.Property("Outcome") .HasColumnType("nvarchar(max)"); b.Property("PersistenceData") .HasColumnType("nvarchar(max)"); b.Property("PredecessorId") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("RetryCount") .HasColumnType("int"); b.Property("Scope") .HasColumnType("nvarchar(max)"); b.Property("SleepUntil") .HasColumnType("datetime2"); b.Property("StartTime") .HasColumnType("datetime2"); b.Property("Status") .HasColumnType("int"); b.Property("StepId") .HasColumnType("int"); b.Property("StepName") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("WorkflowId") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.HasKey("Id"); b.HasIndex("WorkflowId"); b.ToTable("Sys_Wf_ExecutionPointers"); }); modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowExtensionAttributeInfo", b => { b.Property("Id") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("AttributeKey") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("AttributeValue") .HasColumnType("nvarchar(max)"); b.Property("ExecutionPointerId") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.HasKey("Id"); b.HasIndex("ExecutionPointerId"); b.ToTable("Sys_Wf_ExtensionAttributes"); }); modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowInfo", b => { b.Property("Id") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("CompleteTime") .HasColumnType("datetime2") .HasColumnName("CompleteTime"); b.Property("CreateTime") .HasColumnType("datetime2") .HasColumnName("CreateTime"); b.Property("CreateUserIdentityName") .HasColumnType("nvarchar(max)"); b.Property("CreationTime") .HasColumnType("datetime2"); b.Property("CreatorUserId") .HasColumnType("bigint"); b.Property("Data") .HasMaxLength(2147483647) .HasColumnType("nvarchar(max)") .HasColumnName("Data"); b.Property("DeleterUserId") .HasColumnType("bigint"); b.Property("DeletionTime") .HasColumnType("datetime2"); b.Property("Description") .HasMaxLength(500) .HasColumnType("nvarchar(500)") .HasColumnName("Description"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("LastModificationTime") .HasColumnType("datetime2"); b.Property("LastModifierUserId") .HasColumnType("bigint"); b.Property("NextExecution") .HasColumnType("bigint") .HasColumnName("NextExecution"); b.Property("Reference") .HasMaxLength(200) .HasColumnType("nvarchar(200)") .HasColumnName("Reference"); b.Property("Status") .HasColumnType("int") .HasColumnName("Status"); b.Property("TenantId") .HasColumnType("int") .HasColumnName("TenantId"); b.Property("Version") .HasColumnType("int") .HasColumnName("Version"); b.Property("WorkflowDefinitionId") .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasColumnName("WorkflowDefinitionId"); b.HasKey("Id"); b.HasIndex("TenantId"); b.HasIndex("WorkflowDefinitionId", "Version"); b.ToTable("Sys_Wf_Workflows"); }); modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowSubscriptionInfo", b => { b.Property("Id") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("EventKey") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("EventName") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ExecutionPointerId") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ExternalToken") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ExternalTokenExpiry") .HasColumnType("datetime2"); b.Property("ExternalWorkerId") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("StepId") .HasColumnType("int"); b.Property("SubscribeAsOf") .HasColumnType("datetime2"); b.Property("SubscriptionData") .HasColumnType("nvarchar(max)"); b.Property("WorkflowId") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.HasKey("Id"); b.ToTable("Sys_Wf_Subscriptions"); }); modelBuilder.Entity("VberZero.BaseSystem.Roles.RolePermissionSetting", b => { b.HasBaseType("VberZero.BaseSystem.PermissionSetting"); b.Property("RoleId") .HasColumnType("int"); b.HasIndex("RoleId"); b.ToTable("Sys_Permissions", (string)null); b.HasDiscriminator().HasValue("RolePermissionSetting"); }); modelBuilder.Entity("VberZero.BaseSystem.Users.UserPermissionSetting", b => { b.HasBaseType("VberZero.BaseSystem.PermissionSetting"); b.Property("UserId") .HasColumnType("bigint"); b.HasIndex("UserId"); b.ToTable("Sys_Permissions", (string)null); b.HasDiscriminator().HasValue("UserPermissionSetting"); }); modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => { b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") .WithMany() .HasForeignKey("WebhookEventId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("WebhookEvent"); }); modelBuilder.Entity("VberZero.BaseSystem.CommonWorkflowAuditorInfo", b => { b.HasOne("VberZero.Workflow.Persistence.WorkflowExecutionPointerInfo", "ExecutionPointer") .WithMany() .HasForeignKey("ExecutionPointerId"); b.HasOne("VberZero.Workflow.Persistence.WorkflowInfo", "Workflow") .WithMany() .HasForeignKey("WorkflowId"); b.Navigation("ExecutionPointer"); b.Navigation("Workflow"); }); modelBuilder.Entity("VberZero.BaseSystem.MultiTenancy.Tenant", b => { b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser") .WithMany() .HasForeignKey("CreatorUserId"); b.HasOne("VberZero.BaseSystem.Users.User", "DeleterUser") .WithMany() .HasForeignKey("DeleterUserId"); b.HasOne("VberZero.BaseSystem.Users.User", "LastModifierUser") .WithMany() .HasForeignKey("LastModifierUserId"); b.Navigation("CreatorUser"); b.Navigation("DeleterUser"); b.Navigation("LastModifierUser"); }); modelBuilder.Entity("VberZero.BaseSystem.Organizations.OrganizationUnit", b => { b.HasOne("VberZero.BaseSystem.Organizations.OrganizationUnit", "Parent") .WithMany("Children") .HasForeignKey("ParentId"); b.Navigation("Parent"); }); modelBuilder.Entity("VberZero.BaseSystem.Roles.Role", b => { b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser") .WithMany() .HasForeignKey("CreatorUserId"); b.HasOne("VberZero.BaseSystem.Users.User", "DeleterUser") .WithMany() .HasForeignKey("DeleterUserId"); b.HasOne("VberZero.BaseSystem.Users.User", "LastModifierUser") .WithMany() .HasForeignKey("LastModifierUserId"); b.Navigation("CreatorUser"); b.Navigation("DeleterUser"); b.Navigation("LastModifierUser"); }); modelBuilder.Entity("VberZero.BaseSystem.Roles.RoleClaim", b => { b.HasOne("VberZero.BaseSystem.Roles.Role", null) .WithMany("Claims") .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); }); modelBuilder.Entity("VberZero.BaseSystem.SysAttach", b => { b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser") .WithMany() .HasForeignKey("CreatorUserId"); b.Navigation("CreatorUser"); }); modelBuilder.Entity("VberZero.BaseSystem.SysCalendar", b => { b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser") .WithMany() .HasForeignKey("CreatorUserId"); b.HasOne("VberZero.BaseSystem.Users.User", "LastModifierUser") .WithMany() .HasForeignKey("LastModifierUserId"); b.HasOne("VberZero.BaseSystem.Users.User", "Owner") .WithMany() .HasForeignKey("OwnerId"); b.Navigation("CreatorUser"); b.Navigation("LastModifierUser"); b.Navigation("Owner"); }); modelBuilder.Entity("VberZero.BaseSystem.SysFunction", b => { b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser") .WithMany() .HasForeignKey("CreatorUserId"); b.HasOne("VberZero.BaseSystem.Users.User", "LastModifierUser") .WithMany() .HasForeignKey("LastModifierUserId"); b.HasOne("VberZero.BaseSystem.SysFunction", "Parent") .WithMany() .HasForeignKey("ParentNo"); b.Navigation("CreatorUser"); b.Navigation("LastModifierUser"); b.Navigation("Parent"); }); modelBuilder.Entity("VberZero.BaseSystem.SysHelp", b => { b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser") .WithMany() .HasForeignKey("CreatorUserId"); b.HasOne("VberZero.BaseSystem.Users.User", "DeleterUser") .WithMany() .HasForeignKey("DeleterUserId"); b.HasOne("VberZero.BaseSystem.SysFunction", "Function") .WithMany() .HasForeignKey("FunctionNo"); b.HasOne("VberZero.BaseSystem.Users.User", "LastModifierUser") .WithMany() .HasForeignKey("LastModifierUserId"); b.Navigation("CreatorUser"); b.Navigation("DeleterUser"); b.Navigation("Function"); b.Navigation("LastModifierUser"); }); modelBuilder.Entity("VberZero.BaseSystem.SysSetting", b => { b.HasOne("VberZero.BaseSystem.Users.User", null) .WithMany("Settings") .HasForeignKey("UserId"); }); modelBuilder.Entity("VberZero.BaseSystem.SysState", b => { b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser") .WithMany() .HasForeignKey("CreatorUserId"); b.HasOne("VberZero.BaseSystem.Users.User", "LastModifierUser") .WithMany() .HasForeignKey("LastModifierUserId"); b.Navigation("CreatorUser"); b.Navigation("LastModifierUser"); }); modelBuilder.Entity("VberZero.BaseSystem.Users.User", b => { b.HasOne("VberZero.BaseSystem.Users.User", "CreatorUser") .WithMany() .HasForeignKey("CreatorUserId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("VberZero.BaseSystem.Users.User", "DeleterUser") .WithMany() .HasForeignKey("DeleterUserId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("VberZero.BaseSystem.Users.User", "LastModifierUser") .WithMany() .HasForeignKey("LastModifierUserId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("CreatorUser"); b.Navigation("DeleterUser"); b.Navigation("LastModifierUser"); }); modelBuilder.Entity("VberZero.BaseSystem.Users.UserClaim", b => { b.HasOne("VberZero.BaseSystem.Users.User", null) .WithMany("Claims") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); }); modelBuilder.Entity("VberZero.BaseSystem.Users.UserLogin", b => { b.HasOne("VberZero.BaseSystem.Users.User", null) .WithMany("Logins") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); }); modelBuilder.Entity("VberZero.BaseSystem.Users.UserRole", b => { b.HasOne("VberZero.BaseSystem.Users.User", null) .WithMany("Roles") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); }); modelBuilder.Entity("VberZero.BaseSystem.Users.UserToken", b => { b.HasOne("VberZero.BaseSystem.Users.User", null) .WithMany("Tokens") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); }); modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowExecutionPointerInfo", b => { b.HasOne("VberZero.Workflow.Persistence.WorkflowInfo", "WorkflowInfo") .WithMany("ExecutionPointers") .HasForeignKey("WorkflowId"); b.Navigation("WorkflowInfo"); }); modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowExtensionAttributeInfo", b => { b.HasOne("VberZero.Workflow.Persistence.WorkflowExecutionPointerInfo", "ExecutionPointer") .WithMany("ExtensionAttributes") .HasForeignKey("ExecutionPointerId"); b.Navigation("ExecutionPointer"); }); modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowInfo", b => { b.HasOne("VberZero.Workflow.DesignInfo.WorkflowDefinitionInfo", "WorkflowDefinitionInfo") .WithMany() .HasForeignKey("WorkflowDefinitionId", "Version"); b.Navigation("WorkflowDefinitionInfo"); }); modelBuilder.Entity("VberZero.BaseSystem.Roles.RolePermissionSetting", b => { b.HasOne("VberZero.BaseSystem.Roles.Role", null) .WithMany("Permissions") .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); }); modelBuilder.Entity("VberZero.BaseSystem.Users.UserPermissionSetting", b => { b.HasOne("VberZero.BaseSystem.Users.User", null) .WithMany("Permissions") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); }); modelBuilder.Entity("VberZero.BaseSystem.Organizations.OrganizationUnit", b => { b.Navigation("Children"); }); modelBuilder.Entity("VberZero.BaseSystem.Roles.Role", b => { b.Navigation("Claims"); b.Navigation("Permissions"); }); modelBuilder.Entity("VberZero.BaseSystem.Users.User", b => { b.Navigation("Claims"); b.Navigation("Logins"); b.Navigation("Permissions"); b.Navigation("Roles"); b.Navigation("Settings"); b.Navigation("Tokens"); }); modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowExecutionPointerInfo", b => { b.Navigation("ExtensionAttributes"); }); modelBuilder.Entity("VberZero.Workflow.Persistence.WorkflowInfo", b => { b.Navigation("ExecutionPointers"); }); #pragma warning restore 612, 618 } } }