From cd7cbcbe1de93748390f469d84eb4cbf7f2ca11d Mon Sep 17 00:00:00 2001
From: "239573049@qq.com" <239573049@qq.com>
Date: Tue, 7 Jun 2022 02:44:53 +0800
Subject: [PATCH 01/10] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=A7=8D=E5=AD=90?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../20220606181747_CreateConfig.Designer.cs | 1062 +++++++++++++++++
.../Migrations/20220606181747_CreateConfig.cs | 883 ++++++++++++++
.../Migrations/TokenDbContextModelSnapshot.cs | 1060 ++++++++++++++++
3 files changed, 3005 insertions(+)
create mode 100644 src/Token.Management.EntityFrameworkCore/Migrations/20220606181747_CreateConfig.Designer.cs
create mode 100644 src/Token.Management.EntityFrameworkCore/Migrations/20220606181747_CreateConfig.cs
create mode 100644 src/Token.Management.EntityFrameworkCore/Migrations/TokenDbContextModelSnapshot.cs
diff --git a/src/Token.Management.EntityFrameworkCore/Migrations/20220606181747_CreateConfig.Designer.cs b/src/Token.Management.EntityFrameworkCore/Migrations/20220606181747_CreateConfig.Designer.cs
new file mode 100644
index 0000000..b6386a4
--- /dev/null
+++ b/src/Token.Management.EntityFrameworkCore/Migrations/20220606181747_CreateConfig.Designer.cs
@@ -0,0 +1,1062 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Token.Management.EntityFrameworkCore.EntityFrameworkCore;
+
+#nullable disable
+
+namespace Token.Management.EntityFrameworkCore.Migrations
+{
+ [DbContext(typeof(TokenDbContext))]
+ [Migration("20220606181747_CreateConfig")]
+ partial class CreateConfig
+ {
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "6.0.5")
+ .HasAnnotation("Relational:MaxIdentifierLength", 64);
+
+ modelBuilder.Entity("Token.Management.Domain.Management.AccessFunction.MenuRoleFunction", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime(6)");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("MenuId")
+ .HasColumnType("char(36)");
+
+ b.Property("RoleId")
+ .HasColumnType("char(36)");
+
+ b.Property("UserInfoId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.HasIndex("Id");
+
+ b.HasIndex("MenuId");
+
+ b.HasIndex("RoleId");
+
+ b.HasIndex("UserInfoId");
+
+ b.ToTable("token_menu_role_function", (string)null);
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Management.AccessFunction.UserDepartmentFunction", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime(6)");
+
+ b.Property("DepartmentId")
+ .HasColumnType("char(36)");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("UserInfoId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("DepartmentId");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.HasIndex("Id");
+
+ b.HasIndex("UserInfoId");
+
+ b.ToTable("token_user_department_function", (string)null);
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Management.AccessFunction.UserRoleFunction", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime(6)");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("RoleId")
+ .HasColumnType("char(36)");
+
+ b.Property("UserInfoId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.HasIndex("Id");
+
+ b.HasIndex("RoleId");
+
+ b.HasIndex("UserInfoId");
+
+ b.ToTable("token_user_role_function", (string)null);
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Management.Company", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("Code")
+ .HasColumnType("longtext");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Describe")
+ .HasColumnType("longtext");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("Logo")
+ .HasColumnType("longtext");
+
+ b.Property("Name")
+ .HasColumnType("longtext");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.ToTable("Company");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Management.Department", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("Code")
+ .HasColumnType("longtext");
+
+ b.Property("CompanyId")
+ .HasColumnType("char(36)");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime(6)");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("Index")
+ .HasColumnType("int");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("Name")
+ .HasColumnType("longtext");
+
+ b.Property("ParentId")
+ .HasColumnType("char(36)");
+
+ b.Property("UserInfoId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CompanyId");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.HasIndex("Id");
+
+ b.HasIndex("UserInfoId");
+
+ b.ToTable("token_department", (string)null);
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Management.Menu", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("Component")
+ .HasColumnType("longtext");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime(6)");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("Icon")
+ .HasColumnType("longtext");
+
+ b.Property("Index")
+ .HasColumnType("int");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("Name")
+ .HasColumnType("longtext");
+
+ b.Property("ParentId")
+ .HasColumnType("char(36)");
+
+ b.Property("Path")
+ .HasColumnType("longtext");
+
+ b.Property("Title")
+ .HasColumnType("longtext");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.HasIndex("Id");
+
+ b.ToTable("token_menu", (string)null);
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Management.Role", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("Code")
+ .HasColumnType("longtext")
+ .HasComment("角色编号");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime(6)");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("Index")
+ .HasColumnType("int")
+ .HasComment("序号");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("Name")
+ .HasColumnType("longtext")
+ .HasComment("角色名称");
+
+ b.Property("ParentId")
+ .HasColumnType("char(36)")
+ .HasComment("父节点");
+
+ b.Property("Remark")
+ .HasColumnType("longtext")
+ .HasComment("备注");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.HasIndex("Id");
+
+ b.ToTable("token_role", (string)null);
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.SystemService.SystemMessage", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("IsCheck")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("Message")
+ .HasColumnType("longtext");
+
+ b.Property("Title")
+ .HasColumnType("longtext");
+
+ b.Property("WorkFormCode")
+ .HasColumnType("int");
+
+ b.Property("WorkFormId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.HasIndex("Id");
+
+ b.ToTable("token_system_message", (string)null);
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Users.UserInfo", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("AccountNumber")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime(6)");
+
+ b.Property("EMail")
+ .HasColumnType("longtext")
+ .HasComment("邮箱");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("HeadPortraits")
+ .HasColumnType("longtext")
+ .HasComment("头像");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("MobileNumber")
+ .HasMaxLength(11)
+ .HasColumnType("bigint");
+
+ b.Property("Name")
+ .HasColumnType("longtext")
+ .HasComment("用户昵称");
+
+ b.Property("Password")
+ .HasColumnType("longtext")
+ .HasComment("密码");
+
+ b.Property("Sex")
+ .HasColumnType("int")
+ .HasComment("性别");
+
+ b.Property("Statue")
+ .HasColumnType("int")
+ .HasComment("状态");
+
+ b.Property("WXOpenId")
+ .HasMaxLength(50)
+ .HasColumnType("varchar(50)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.HasIndex("Id");
+
+ b.ToTable("token_user_info", (string)null);
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkContent.WorkDemoMain", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("Content")
+ .HasColumnType("longtext");
+
+ b.Property("Count")
+ .HasColumnType("int");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("Name")
+ .HasColumnType("longtext");
+
+ b.Property("Remark")
+ .HasColumnType("longtext");
+
+ b.Property("SubmitTime")
+ .HasColumnType("datetime(6)");
+
+ b.Property("WorkFlowNodeStatus")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.HasIndex("Id");
+
+ b.ToTable("token_work_demo_main", (string)null);
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkFlow.WorkflowApprovalRole", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("RoleId")
+ .HasColumnType("char(36)");
+
+ b.Property("WorkflowNodeTemplateId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.HasIndex("Id");
+
+ b.HasIndex("RoleId");
+
+ b.HasIndex("WorkflowNodeTemplateId");
+
+ b.ToTable("token_workflow_approval_role", (string)null);
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkFlow.WorkflowApprovers", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("UserInfoId")
+ .HasColumnType("char(36)");
+
+ b.Property("UserName")
+ .HasColumnType("longtext");
+
+ b.Property("WorkFlowFormCode")
+ .HasColumnType("int");
+
+ b.Property("WorkflowInstanceId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.HasIndex("Id");
+
+ b.HasIndex("WorkflowInstanceId");
+
+ b.ToTable("token_workflow_approvers", (string)null);
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkFlow.WorkflowInstance", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("ArchiveDate")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Code")
+ .HasColumnType("longtext")
+ .HasComment("工作流实例code");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("CurrentRoleCode")
+ .HasColumnType("longtext");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("HasBeenRead")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("Name")
+ .HasColumnType("longtext");
+
+ b.Property("Remark")
+ .HasColumnType("longtext")
+ .HasComment("工作流实例备注");
+
+ b.Property("SponsorId")
+ .HasColumnType("char(36)");
+
+ b.Property("SponsorName")
+ .HasColumnType("longtext");
+
+ b.Property("SponsoredDate")
+ .HasColumnType("datetime(6)");
+
+ b.Property("WorkFlowFormCode")
+ .HasColumnType("int");
+
+ b.Property("WorkFormId")
+ .HasColumnType("char(36)");
+
+ b.Property("WorkflowStatus")
+ .HasColumnType("int");
+
+ b.Property("WorkflowTemplateId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.HasIndex("Id");
+
+ b.HasIndex("SponsorId");
+
+ b.HasIndex("WorkflowTemplateId");
+
+ b.ToTable("token_workflow_instance", (string)null);
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkFlow.WorkflowNodeInstance", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("AuditDate")
+ .HasColumnType("datetime(6)");
+
+ b.Property("AuditPersonId")
+ .HasColumnType("char(36)");
+
+ b.Property("AuditPersonName")
+ .HasColumnType("longtext");
+
+ b.Property("Code")
+ .HasColumnType("int");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("Name")
+ .HasColumnType("longtext");
+
+ b.Property("NextNodeId")
+ .HasColumnType("char(36)");
+
+ b.Property("NextTemplateNodeId")
+ .HasColumnType("char(36)");
+
+ b.Property("NodeStatus")
+ .HasColumnType("int");
+
+ b.Property("PrevNodeId")
+ .HasColumnType("char(36)");
+
+ b.Property("PrevTemplateNodeId")
+ .HasColumnType("char(36)");
+
+ b.Property("Remark")
+ .HasColumnType("longtext");
+
+ b.Property("TemplateNodeId")
+ .HasColumnType("char(36)");
+
+ b.Property("WorkflowInstanceId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.HasIndex("Id");
+
+ b.HasIndex("WorkflowInstanceId");
+
+ b.ToTable("token_workflowNode_instance", (string)null);
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkFlow.WorkflowNodeTemplate", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("Code")
+ .HasColumnType("int");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("NextNodeId")
+ .HasColumnType("char(36)");
+
+ b.Property("PrevNodeId")
+ .HasColumnType("char(36)");
+
+ b.Property("Remark")
+ .HasColumnType("longtext");
+
+ b.Property("WorkflowTemplateId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.HasIndex("Id");
+
+ b.HasIndex("WorkflowTemplateId");
+
+ b.ToTable("token_workflow_node_template", (string)null);
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkFlow.WorkflowTemplate", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("Code")
+ .HasColumnType("longtext")
+ .HasComment("工作流模板编号");
+
+ b.Property("ConcurrencyStamp")
+ .HasColumnType("longtext");
+
+ b.Property("ExtraPropertiesCount")
+ .HasColumnType("int");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("Name")
+ .HasColumnType("longtext")
+ .HasComment("工作流模板名称");
+
+ b.Property("Remark")
+ .HasColumnType("longtext")
+ .HasComment("工作流模板备注");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ExtraPropertiesCount");
+
+ b.HasIndex("Id");
+
+ b.ToTable("token_workflow_template", (string)null);
+ });
+
+ modelBuilder.Entity("Volo.Abp.Data.ExtraPropertyDictionary", b =>
+ {
+ b.Property("Count")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.HasKey("Count");
+
+ b.ToTable("ExtraPropertyDictionary");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Management.AccessFunction.MenuRoleFunction", b =>
+ {
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.HasOne("Token.Management.Domain.Management.Menu", "Menu")
+ .WithMany()
+ .HasForeignKey("MenuId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.HasOne("Token.Management.Domain.Management.Role", "Role")
+ .WithMany()
+ .HasForeignKey("RoleId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.HasOne("Token.Management.Domain.Users.UserInfo", null)
+ .WithMany("MenuRoleFunction")
+ .HasForeignKey("UserInfoId");
+
+ b.Navigation("ExtraProperties");
+
+ b.Navigation("Menu");
+
+ b.Navigation("Role");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Management.AccessFunction.UserDepartmentFunction", b =>
+ {
+ b.HasOne("Token.Management.Domain.Management.Department", "Department")
+ .WithMany("UserDepartmentFunction")
+ .HasForeignKey("DepartmentId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.HasOne("Token.Management.Domain.Users.UserInfo", "UserInfo")
+ .WithMany("UserDepartmentFunction")
+ .HasForeignKey("UserInfoId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Department");
+
+ b.Navigation("ExtraProperties");
+
+ b.Navigation("UserInfo");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Management.AccessFunction.UserRoleFunction", b =>
+ {
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.HasOne("Token.Management.Domain.Management.Role", "Role")
+ .WithMany()
+ .HasForeignKey("RoleId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.HasOne("Token.Management.Domain.Users.UserInfo", "UserInfo")
+ .WithMany("UserRoleFunction")
+ .HasForeignKey("UserInfoId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("ExtraProperties");
+
+ b.Navigation("Role");
+
+ b.Navigation("UserInfo");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Management.Company", b =>
+ {
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.Navigation("ExtraProperties");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Management.Department", b =>
+ {
+ b.HasOne("Token.Management.Domain.Management.Company", "Company")
+ .WithMany("Department")
+ .HasForeignKey("CompanyId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.HasOne("Token.Management.Domain.Users.UserInfo", null)
+ .WithMany("Department")
+ .HasForeignKey("UserInfoId");
+
+ b.Navigation("Company");
+
+ b.Navigation("ExtraProperties");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Management.Menu", b =>
+ {
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.Navigation("ExtraProperties");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Management.Role", b =>
+ {
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.Navigation("ExtraProperties");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.SystemService.SystemMessage", b =>
+ {
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.Navigation("ExtraProperties");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Users.UserInfo", b =>
+ {
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.Navigation("ExtraProperties");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkContent.WorkDemoMain", b =>
+ {
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.Navigation("ExtraProperties");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkFlow.WorkflowApprovalRole", b =>
+ {
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.HasOne("Token.Management.Domain.Management.Role", "Role")
+ .WithMany()
+ .HasForeignKey("RoleId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.HasOne("Token.Management.Domain.WorkFlow.WorkflowNodeTemplate", "WorkflowNodeTemplate")
+ .WithMany("WorkflowApprovalRole")
+ .HasForeignKey("WorkflowNodeTemplateId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("ExtraProperties");
+
+ b.Navigation("Role");
+
+ b.Navigation("WorkflowNodeTemplate");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkFlow.WorkflowApprovers", b =>
+ {
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.HasOne("Token.Management.Domain.WorkFlow.WorkflowInstance", "WorkflowInstance")
+ .WithMany("WorkflowApprovers")
+ .HasForeignKey("WorkflowInstanceId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("ExtraProperties");
+
+ b.Navigation("WorkflowInstance");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkFlow.WorkflowInstance", b =>
+ {
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.HasOne("Token.Management.Domain.Users.UserInfo", "Sponsor")
+ .WithMany()
+ .HasForeignKey("SponsorId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.HasOne("Token.Management.Domain.WorkFlow.WorkflowTemplate", "WorkflowTemplate")
+ .WithMany("WorkflowInstance")
+ .HasForeignKey("WorkflowTemplateId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("ExtraProperties");
+
+ b.Navigation("Sponsor");
+
+ b.Navigation("WorkflowTemplate");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkFlow.WorkflowNodeInstance", b =>
+ {
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.HasOne("Token.Management.Domain.WorkFlow.WorkflowInstance", "WorkflowInstance")
+ .WithMany("WorkflowNodeInstances")
+ .HasForeignKey("WorkflowInstanceId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("ExtraProperties");
+
+ b.Navigation("WorkflowInstance");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkFlow.WorkflowNodeTemplate", b =>
+ {
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.HasOne("Token.Management.Domain.WorkFlow.WorkflowTemplate", "WorkflowTemplate")
+ .WithMany("WorkflowNodeTemplate")
+ .HasForeignKey("WorkflowTemplateId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("ExtraProperties");
+
+ b.Navigation("WorkflowTemplate");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkFlow.WorkflowTemplate", b =>
+ {
+ b.HasOne("Volo.Abp.Data.ExtraPropertyDictionary", "ExtraProperties")
+ .WithMany()
+ .HasForeignKey("ExtraPropertiesCount");
+
+ b.Navigation("ExtraProperties");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Management.Company", b =>
+ {
+ b.Navigation("Department");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Management.Department", b =>
+ {
+ b.Navigation("UserDepartmentFunction");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.Users.UserInfo", b =>
+ {
+ b.Navigation("Department");
+
+ b.Navigation("MenuRoleFunction");
+
+ b.Navigation("UserDepartmentFunction");
+
+ b.Navigation("UserRoleFunction");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkFlow.WorkflowInstance", b =>
+ {
+ b.Navigation("WorkflowApprovers");
+
+ b.Navigation("WorkflowNodeInstances");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkFlow.WorkflowNodeTemplate", b =>
+ {
+ b.Navigation("WorkflowApprovalRole");
+ });
+
+ modelBuilder.Entity("Token.Management.Domain.WorkFlow.WorkflowTemplate", b =>
+ {
+ b.Navigation("WorkflowInstance");
+
+ b.Navigation("WorkflowNodeTemplate");
+ });
+#pragma warning restore 612, 618
+ }
+ }
+}
diff --git a/src/Token.Management.EntityFrameworkCore/Migrations/20220606181747_CreateConfig.cs b/src/Token.Management.EntityFrameworkCore/Migrations/20220606181747_CreateConfig.cs
new file mode 100644
index 0000000..5c63ce0
--- /dev/null
+++ b/src/Token.Management.EntityFrameworkCore/Migrations/20220606181747_CreateConfig.cs
@@ -0,0 +1,883 @@
+using System;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace Token.Management.EntityFrameworkCore.Migrations
+{
+ public partial class CreateConfig : Migration
+ {
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.AlterDatabase()
+ .Annotation("MySql:CharSet", "utf8mb4");
+
+ migrationBuilder.CreateTable(
+ name: "ExtraPropertyDictionary",
+ columns: table => new
+ {
+ Count = table.Column(type: "int", nullable: false)
+ .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_ExtraPropertyDictionary", x => x.Count);
+ })
+ .Annotation("MySql:CharSet", "utf8mb4");
+
+ migrationBuilder.CreateTable(
+ name: "Company",
+ columns: table => new
+ {
+ Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
+ Name = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Code = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Logo = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Describe = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ IsDeleted = table.Column(type: "tinyint(1)", nullable: false),
+ CreationTime = table.Column(type: "datetime(6)", nullable: false),
+ ExtraPropertiesCount = table.Column(type: "int", nullable: true),
+ ConcurrencyStamp = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4")
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_Company", x => x.Id);
+ table.ForeignKey(
+ name: "FK_Company_ExtraPropertyDictionary_ExtraPropertiesCount",
+ column: x => x.ExtraPropertiesCount,
+ principalTable: "ExtraPropertyDictionary",
+ principalColumn: "Count");
+ })
+ .Annotation("MySql:CharSet", "utf8mb4");
+
+ migrationBuilder.CreateTable(
+ name: "token_menu",
+ columns: table => new
+ {
+ Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
+ Index = table.Column(type: "int", nullable: false),
+ Component = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Title = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Name = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Icon = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Path = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ ParentId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ IsDeleted = table.Column(type: "tinyint(1)", nullable: false),
+ CreationTime = table.Column(type: "datetime(6)", nullable: false),
+ ExtraPropertiesCount = table.Column(type: "int", nullable: true),
+ ConcurrencyStamp = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4")
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_token_menu", x => x.Id);
+ table.ForeignKey(
+ name: "FK_token_menu_ExtraPropertyDictionary_ExtraPropertiesCount",
+ column: x => x.ExtraPropertiesCount,
+ principalTable: "ExtraPropertyDictionary",
+ principalColumn: "Count");
+ })
+ .Annotation("MySql:CharSet", "utf8mb4");
+
+ migrationBuilder.CreateTable(
+ name: "token_role",
+ columns: table => new
+ {
+ Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
+ Name = table.Column(type: "longtext", nullable: true, comment: "角色名称")
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Code = table.Column(type: "longtext", nullable: true, comment: "角色编号")
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Remark = table.Column(type: "longtext", nullable: true, comment: "备注")
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Index = table.Column(type: "int", nullable: false, comment: "序号"),
+ ParentId = table.Column(type: "char(36)", nullable: true, comment: "父节点", collation: "ascii_general_ci"),
+ IsDeleted = table.Column(type: "tinyint(1)", nullable: false),
+ CreationTime = table.Column(type: "datetime(6)", nullable: false),
+ ExtraPropertiesCount = table.Column(type: "int", nullable: true),
+ ConcurrencyStamp = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4")
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_token_role", x => x.Id);
+ table.ForeignKey(
+ name: "FK_token_role_ExtraPropertyDictionary_ExtraPropertiesCount",
+ column: x => x.ExtraPropertiesCount,
+ principalTable: "ExtraPropertyDictionary",
+ principalColumn: "Count");
+ })
+ .Annotation("MySql:CharSet", "utf8mb4");
+
+ migrationBuilder.CreateTable(
+ name: "token_system_message",
+ columns: table => new
+ {
+ Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
+ Title = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Message = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ IsCheck = table.Column(type: "tinyint(1)", nullable: false),
+ WorkFormCode = table.Column(type: "int", nullable: false),
+ WorkFormId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ ExtraPropertiesCount = table.Column(type: "int", nullable: true),
+ ConcurrencyStamp = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4")
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_token_system_message", x => x.Id);
+ table.ForeignKey(
+ name: "FK_token_system_message_ExtraPropertyDictionary_ExtraProperties~",
+ column: x => x.ExtraPropertiesCount,
+ principalTable: "ExtraPropertyDictionary",
+ principalColumn: "Count");
+ })
+ .Annotation("MySql:CharSet", "utf8mb4");
+
+ migrationBuilder.CreateTable(
+ name: "token_user_info",
+ columns: table => new
+ {
+ Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
+ AccountNumber = table.Column(type: "longtext", nullable: false)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Password = table.Column(type: "longtext", nullable: true, comment: "密码")
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ WXOpenId = table.Column(type: "varchar(50)", maxLength: 50, nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Name = table.Column(type: "longtext", nullable: true, comment: "用户昵称")
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ HeadPortraits = table.Column(type: "longtext", nullable: true, comment: "头像")
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Sex = table.Column(type: "int", nullable: false, comment: "性别"),
+ Statue = table.Column(type: "int", nullable: false, comment: "状态"),
+ MobileNumber = table.Column(type: "bigint", maxLength: 11, nullable: true),
+ EMail = table.Column(type: "longtext", nullable: true, comment: "邮箱")
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ IsDeleted = table.Column(type: "tinyint(1)", nullable: false),
+ CreationTime = table.Column(type: "datetime(6)", nullable: false),
+ ExtraPropertiesCount = table.Column(type: "int", nullable: true),
+ ConcurrencyStamp = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4")
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_token_user_info", x => x.Id);
+ table.ForeignKey(
+ name: "FK_token_user_info_ExtraPropertyDictionary_ExtraPropertiesCount",
+ column: x => x.ExtraPropertiesCount,
+ principalTable: "ExtraPropertyDictionary",
+ principalColumn: "Count");
+ })
+ .Annotation("MySql:CharSet", "utf8mb4");
+
+ migrationBuilder.CreateTable(
+ name: "token_work_demo_main",
+ columns: table => new
+ {
+ Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
+ Name = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Remark = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Content = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Count = table.Column(type: "int", nullable: false),
+ ExtraPropertiesCount = table.Column(type: "int", nullable: true),
+ ConcurrencyStamp = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ WorkFlowNodeStatus = table.Column(type: "int", nullable: false),
+ SubmitTime = table.Column(type: "datetime(6)", nullable: true),
+ IsDeleted = table.Column(type: "tinyint(1)", nullable: false)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_token_work_demo_main", x => x.Id);
+ table.ForeignKey(
+ name: "FK_token_work_demo_main_ExtraPropertyDictionary_ExtraProperties~",
+ column: x => x.ExtraPropertiesCount,
+ principalTable: "ExtraPropertyDictionary",
+ principalColumn: "Count");
+ })
+ .Annotation("MySql:CharSet", "utf8mb4");
+
+ migrationBuilder.CreateTable(
+ name: "token_workflow_template",
+ columns: table => new
+ {
+ Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
+ Name = table.Column(type: "longtext", nullable: true, comment: "工作流模板名称")
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Code = table.Column(type: "longtext", nullable: true, comment: "工作流模板编号")
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Remark = table.Column(type: "longtext", nullable: true, comment: "工作流模板备注")
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ IsDeleted = table.Column(type: "tinyint(1)", nullable: false),
+ ExtraPropertiesCount = table.Column(type: "int", nullable: true),
+ ConcurrencyStamp = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4")
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_token_workflow_template", x => x.Id);
+ table.ForeignKey(
+ name: "FK_token_workflow_template_ExtraPropertyDictionary_ExtraPropert~",
+ column: x => x.ExtraPropertiesCount,
+ principalTable: "ExtraPropertyDictionary",
+ principalColumn: "Count");
+ })
+ .Annotation("MySql:CharSet", "utf8mb4");
+
+ migrationBuilder.CreateTable(
+ name: "token_department",
+ columns: table => new
+ {
+ Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
+ Name = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ Code = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4"),
+ ParentId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ Index = table.Column(type: "int", nullable: false),
+ CompanyId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
+ IsDeleted = table.Column(type: "tinyint(1)", nullable: false),
+ CreationTime = table.Column(type: "datetime(6)", nullable: false),
+ UserInfoId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ ExtraPropertiesCount = table.Column(type: "int", nullable: true),
+ ConcurrencyStamp = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4")
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_token_department", x => x.Id);
+ table.ForeignKey(
+ name: "FK_token_department_Company_CompanyId",
+ column: x => x.CompanyId,
+ principalTable: "Company",
+ principalColumn: "Id",
+ onDelete: ReferentialAction.Cascade);
+ table.ForeignKey(
+ name: "FK_token_department_ExtraPropertyDictionary_ExtraPropertiesCount",
+ column: x => x.ExtraPropertiesCount,
+ principalTable: "ExtraPropertyDictionary",
+ principalColumn: "Count");
+ table.ForeignKey(
+ name: "FK_token_department_token_user_info_UserInfoId",
+ column: x => x.UserInfoId,
+ principalTable: "token_user_info",
+ principalColumn: "Id");
+ })
+ .Annotation("MySql:CharSet", "utf8mb4");
+
+ migrationBuilder.CreateTable(
+ name: "token_menu_role_function",
+ columns: table => new
+ {
+ Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
+ MenuId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
+ RoleId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
+ IsDeleted = table.Column(type: "tinyint(1)", nullable: false),
+ CreationTime = table.Column(type: "datetime(6)", nullable: false),
+ UserInfoId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ ExtraPropertiesCount = table.Column(type: "int", nullable: true),
+ ConcurrencyStamp = table.Column(type: "longtext", nullable: true)
+ .Annotation("MySql:CharSet", "utf8mb4")
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_token_menu_role_function", x => x.Id);
+ table.ForeignKey(
+ name: "FK_token_menu_role_function_ExtraPropertyDictionary_ExtraProper~",
+ column: x => x.ExtraPropertiesCount,
+ principalTable: "ExtraPropertyDictionary",
+ principalColumn: "Count");
+ table.ForeignKey(
+ name: "FK_token_menu_role_function_token_menu_MenuId",
+ column: x => x.MenuId,
+ principalTable: "token_menu",
+ principalColumn: "Id",
+ onDelete: ReferentialAction.Cascade);
+ table.ForeignKey(
+ name: "FK_token_menu_role_function_token_role_RoleId",
+ column: x => x.RoleId,
+ principalTable: "token_role",
+ principalColumn: "Id",
+ onDelete: ReferentialAction.Cascade);
+ table.ForeignKey(
+ name: "FK_token_menu_role_function_token_user_info_UserInfoId",
+ column: x => x.UserInfoId,
+ principalTable: "token_user_info",
+ principalColumn: "Id");
+ })
+ .Annotation("MySql:CharSet", "utf8mb4");
+
+ migrationBuilder.CreateTable(
+ name: "token_user_role_function",
+ columns: table => new
+ {
+ Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
+ UserInfoId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
+ RoleId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
+ CreationTime = table.Column