//
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