diff --git a/LICENSE b/LICENSE index 650fa6bbc6c331caaf6cba9b67aff1782c4af0c8..b6d2fece810bbb5896733f349b7de4173ae1e251 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -MIT License +The MIT License (MIT) Copyright (c) 2016 ASP.NET Boilerplate @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/module/PearAdmin.AbpTemplate.Storage.Aliyun/PearAdmin.AbpTemplate.Storage.Aliyun.csproj b/module/PearAdmin.AbpTemplate.Storage.Aliyun/PearAdmin.AbpTemplate.Storage.Aliyun.csproj index d974b2b472b079b611fb584c3a5eb67d703894a0..d18f0199c7e8ac8005eec9873390e94e5e0ea675 100644 --- a/module/PearAdmin.AbpTemplate.Storage.Aliyun/PearAdmin.AbpTemplate.Storage.Aliyun.csproj +++ b/module/PearAdmin.AbpTemplate.Storage.Aliyun/PearAdmin.AbpTemplate.Storage.Aliyun.csproj @@ -1,13 +1,13 @@  - netcoreapp3.1 + net5.0 - + - + diff --git a/module/PearAdmin.AbpTemplate.Storage.Local/PearAdmin.AbpTemplate.Storage.Local.csproj b/module/PearAdmin.AbpTemplate.Storage.Local/PearAdmin.AbpTemplate.Storage.Local.csproj index 7c4ae4ca62de0ce5035e56acec67f8c58dfb0aee..2f002aa338c556c5b1b7d2eb597b1d7f5394a1aa 100644 --- a/module/PearAdmin.AbpTemplate.Storage.Local/PearAdmin.AbpTemplate.Storage.Local.csproj +++ b/module/PearAdmin.AbpTemplate.Storage.Local/PearAdmin.AbpTemplate.Storage.Local.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1 + net5.0 diff --git a/module/PearAdmin.AbpTemplate.Storage.Minio/PearAdmin.AbpTemplate.Storage.Minio.csproj b/module/PearAdmin.AbpTemplate.Storage.Minio/PearAdmin.AbpTemplate.Storage.Minio.csproj index 5428c9f540c101c5bd3dcb35eadb0d7162760d00..df5fd60070f6c92252ca38bdb71caeea528b3f23 100644 --- a/module/PearAdmin.AbpTemplate.Storage.Minio/PearAdmin.AbpTemplate.Storage.Minio.csproj +++ b/module/PearAdmin.AbpTemplate.Storage.Minio/PearAdmin.AbpTemplate.Storage.Minio.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1 + net5.0 @@ -9,8 +9,8 @@ - - + + diff --git a/module/PearAdmin.AbpTemplate.Storage/PearAdmin.AbpTemplate.Storage.csproj b/module/PearAdmin.AbpTemplate.Storage/PearAdmin.AbpTemplate.Storage.csproj index 30aaefc09492a49b09115cc382c102426d1cfbe8..cdce87c1d624918efc0022dafda28cf50678a9c2 100644 --- a/module/PearAdmin.AbpTemplate.Storage/PearAdmin.AbpTemplate.Storage.csproj +++ b/module/PearAdmin.AbpTemplate.Storage/PearAdmin.AbpTemplate.Storage.csproj @@ -1,11 +1,11 @@  - netcoreapp3.1 + net5.0 - + diff --git a/src/PearAdmin.AbpTemplate.Admin/AbpTemplateAdminModule.cs b/src/PearAdmin.AbpTemplate.Admin/AbpTemplateAdminModule.cs index 73756da0b6d832003183fd987cc830d58ed0f299..eb73c9f3242352285bcc37dc34c58bfbc8486d8c 100644 --- a/src/PearAdmin.AbpTemplate.Admin/AbpTemplateAdminModule.cs +++ b/src/PearAdmin.AbpTemplate.Admin/AbpTemplateAdminModule.cs @@ -1,6 +1,9 @@ using System.IO; using Abp.AspNetCore; using Abp.AspNetCore.SignalR; +using Abp.Configuration.Startup; +using Abp.Hangfire; +using Abp.Hangfire.Configuration; using Abp.Modules; using Abp.Reflection.Extensions; using Abp.Zero.Configuration; @@ -8,7 +11,7 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc.ApplicationParts; using Microsoft.Extensions.Configuration; using PearAdmin.AbpTemplate.Admin.Configuration; -using PearAdmin.AbpTemplate.Admin.ViewResources; +using PearAdmin.AbpTemplate.Admin.Views; using PearAdmin.AbpTemplate.EntityFrameworkCore; using PearAdmin.AbpTemplate.Gateway; @@ -19,7 +22,8 @@ namespace PearAdmin.AbpTemplate.Admin typeof(AbpTemplateEntityFrameworkModule), typeof(AbpTemplateGatewayModule), typeof(AbpAspNetCoreModule), - typeof(AbpAspNetCoreSignalRModule) + typeof(AbpAspNetCoreSignalRModule), + typeof(AbpHangfireAspNetCoreModule) )] public class AbpTemplateAdminModule : AbpModule { @@ -34,15 +38,17 @@ namespace PearAdmin.AbpTemplate.Admin public override void PreInitialize() { - Configuration.DefaultNameOrConnectionString = _appConfiguration.GetConnectionString( - AbpTemplateCoreConsts.ConnectionStringName - ); + Configuration.DefaultNameOrConnectionString = _appConfiguration.GetConnectionString(AbpTemplateCoreConsts.ConnectionStringName); // Use database for language management Configuration.Modules.Zero().LanguageManagement.EnableDbLocalization(); + // 显示所有错误信息到客户端 + Configuration.Modules.AbpWebCommon().SendAllExceptionsToClients = false; Configuration.Navigation.Providers.Add(); + + Configuration.BackgroundJobs.UseHangfire(); } public override void Initialize() diff --git a/src/PearAdmin.AbpTemplate.Admin/Areas/Resource/Views/_ViewStart.cshtml b/src/PearAdmin.AbpTemplate.Admin/Areas/Resource/Views/_ViewStart.cshtml index e367860f05f48de938df593a0bdb5b572227f67d..efda124b1fc041d169e0bb26232fccf1a9803b6b 100644 --- a/src/PearAdmin.AbpTemplate.Admin/Areas/Resource/Views/_ViewStart.cshtml +++ b/src/PearAdmin.AbpTemplate.Admin/Areas/Resource/Views/_ViewStart.cshtml @@ -1,3 +1,3 @@ @{ - Layout = "~/Views/Shared/Layout/_Layout.cshtml"; -} + Layout = "~/Views/Shared/_Layout.cshtml"; +} \ No newline at end of file diff --git a/src/PearAdmin.AbpTemplate.Admin/Areas/TaskCenter/Views/DailyTask/Index.cshtml b/src/PearAdmin.AbpTemplate.Admin/Areas/TaskCenter/Views/DailyTask/Index.cshtml index 49dc3f6e13dea51a88a87f799f1bb98c52f8f24b..bdeb88a7d7bff45e968fea88d9e23912d6ba05b4 100644 --- a/src/PearAdmin.AbpTemplate.Admin/Areas/TaskCenter/Views/DailyTask/Index.cshtml +++ b/src/PearAdmin.AbpTemplate.Admin/Areas/TaskCenter/Views/DailyTask/Index.cshtml @@ -1,8 +1,8 @@ -@using PearAdmin.AbpTemplate.Admin.ViewResources +@using PearAdmin.AbpTemplate.Admin.Views @using PearAdmin.AbpTemplate.Authorization @using PearAdmin.AbpTemplate.TaskCenter.DailyTasks @{ - ViewBag.CurrentPageName = PageNames.DailyTask; + ViewBag.CurrentPageName = AbpTemplatePageName.DailyTask; } @section styles{ @@ -157,32 +157,15 @@ @section scripts{ - - + + + @RenderSection("scripts", required: false) diff --git a/src/PearAdmin.AbpTemplate.Admin/Views/AuditLogs/Index.cshtml b/src/PearAdmin.AbpTemplate.Admin/Views/AuditLogs/Index.cshtml index 41d52971aff000745f406020da8564a89b1dc42c..fce9c55614958b600572a2bbfd7ce2129596d11f 100644 --- a/src/PearAdmin.AbpTemplate.Admin/Views/AuditLogs/Index.cshtml +++ b/src/PearAdmin.AbpTemplate.Admin/Views/AuditLogs/Index.cshtml @@ -1,7 +1,7 @@ -@using PearAdmin.AbpTemplate.Admin.ViewResources +@using PearAdmin.AbpTemplate.Admin.Views @using PearAdmin.AbpTemplate.Authorization @{ - ViewBag.CurrentPageName = PageNames.AuditLogs; + ViewBag.CurrentPageName = AbpTemplatePageName.AuditLogs; var startDate = DateTime.Now.AddDays(-6).ToString("yyyy-MM-dd"); var endDate = DateTime.Now.AddDays(+1).ToString("yyyy-MM-dd"); } diff --git a/src/PearAdmin.AbpTemplate.Admin/Views/Editions/Index.cshtml b/src/PearAdmin.AbpTemplate.Admin/Views/Editions/Index.cshtml index 93c8fe4cfb6344e15b0485cbf7aaf77f35fdd7be..6e3880821e79849783ad6b0d98315aebba639ffd 100644 --- a/src/PearAdmin.AbpTemplate.Admin/Views/Editions/Index.cshtml +++ b/src/PearAdmin.AbpTemplate.Admin/Views/Editions/Index.cshtml @@ -1,7 +1,7 @@ -@using PearAdmin.AbpTemplate.Admin.ViewResources +@using PearAdmin.AbpTemplate.Admin.Views @using PearAdmin.AbpTemplate.Authorization @{ - ViewBag.CurrentPageName = PageNames.Editions; + ViewBag.CurrentPageName = AbpTemplatePageName.Editions; }
diff --git a/src/PearAdmin.AbpTemplate.Admin/Views/Home/Index.cshtml b/src/PearAdmin.AbpTemplate.Admin/Views/Home/Index.cshtml index 2fa7e54c1685a351224206763c34bb0e1def5107..216b508c00791a71120cb5e372d98476b84fe0c3 100644 --- a/src/PearAdmin.AbpTemplate.Admin/Views/Home/Index.cshtml +++ b/src/PearAdmin.AbpTemplate.Admin/Views/Home/Index.cshtml @@ -1,15 +1,14 @@ -@using PearAdmin.AbpTemplate.Admin.ViewResources +@using PearAdmin.AbpTemplate.Admin.Views @using PearAdmin.AbpTemplate.Admin.Views.Shared.Components.RightNavbarUserArea @using PearAdmin.AbpTemplate.Admin.Views.Shared.Components.SideBarMenu @{ ViewBag.Title = L("HomePage"); - ViewBag.CurrentPageName = PageNames.HomePage; + ViewBag.CurrentPageName = AbpTemplatePageName.Home; } @section styles{ - } @@ -83,7 +82,7 @@ control: false, // 是 否 开 启 多 系 统 菜 单 true 开启 false 关闭 accordion: true, async: false, - select: hash.md5("@Url.Action(!AbpSession.TenantId.HasValue ? "HostConsole": "TenantConsole","WorkSpace")").toUpperCase(), // 默 认 选 中 菜 单 项 + select: hash.md5("@Url.Action(!AbpSession.TenantId.HasValue ? "HostConsole": "TenantConsole", "WorkSpace")").toUpperCase(), // 默 认 选 中 菜 单 项 }, tab: { muiltTab: true, // 是 否 开 启 多 标 签 页 true 开启 false 关闭 diff --git a/src/PearAdmin.AbpTemplate.Admin/Views/Home/_Layout.cshtml b/src/PearAdmin.AbpTemplate.Admin/Views/Home/_Layout.cshtml index 10987c087244c9ab7a2dee70fdcaf8179c6c2416..7bbfc98657c3cc5321edacb3773ce418267422b6 100644 --- a/src/PearAdmin.AbpTemplate.Admin/Views/Home/_Layout.cshtml +++ b/src/PearAdmin.AbpTemplate.Admin/Views/Home/_Layout.cshtml @@ -6,6 +6,7 @@ @inject IAlertManager AlertManager @inject ILanguageManager LanguageManager @{ + Layout = null; AbpAntiForgeryManager.SetCookie(Context); var pageTitle = !string.IsNullOrWhiteSpace(ViewBag.Title) ? ViewBag.Title + " / " : ""; @@ -19,14 +20,18 @@ @pageTitle - @await Html.PartialAsync("_Styles.cshtml") + + + @RenderSection("styles", required: false) @RenderBody() - @await Html.PartialAsync("_Scripts.cshtml") + + + @RenderSection("scripts", required: false) diff --git a/src/PearAdmin.AbpTemplate.Admin/Views/Home/_ViewStart.cshtml b/src/PearAdmin.AbpTemplate.Admin/Views/Home/_ViewStart.cshtml index ef104f4bbe03492b6a5adf8eae23bdb68450923d..e469ddcd0dcda79fd1b277aa0b8c5a213af1b3c8 100644 --- a/src/PearAdmin.AbpTemplate.Admin/Views/Home/_ViewStart.cshtml +++ b/src/PearAdmin.AbpTemplate.Admin/Views/Home/_ViewStart.cshtml @@ -1,3 +1,3 @@ @{ Layout = "~/Views/Home/_Layout.cshtml"; -} +} \ No newline at end of file diff --git a/src/PearAdmin.AbpTemplate.Admin/Views/Maintenance/Index.cshtml b/src/PearAdmin.AbpTemplate.Admin/Views/Maintenance/Index.cshtml index e12b9fbac3faf3be7617a5b32c201d30c57474c3..6b265a64bea9ac76dd10c6441257d2b7936bd675 100644 --- a/src/PearAdmin.AbpTemplate.Admin/Views/Maintenance/Index.cshtml +++ b/src/PearAdmin.AbpTemplate.Admin/Views/Maintenance/Index.cshtml @@ -1,7 +1,7 @@ @using PearAdmin.AbpTemplate.Authorization -@using PearAdmin.AbpTemplate.Admin.ViewResources +@using PearAdmin.AbpTemplate.Admin.Views @{ - ViewBag.CurrentPageName = PageNames.Maintenance; + ViewBag.CurrentPageName = AbpTemplatePageName.Maintenance; } @section styles{ diff --git a/src/PearAdmin.AbpTemplate.Admin/Views/OrganizationUnits/Index.cshtml b/src/PearAdmin.AbpTemplate.Admin/Views/OrganizationUnits/Index.cshtml index 88a6ab9c08959a13dd02b74974bf93d0508f41b6..00d97c0385de42afbff77b2db0a0a4fbaa6fd359 100644 --- a/src/PearAdmin.AbpTemplate.Admin/Views/OrganizationUnits/Index.cshtml +++ b/src/PearAdmin.AbpTemplate.Admin/Views/OrganizationUnits/Index.cshtml @@ -1,7 +1,7 @@ @using PearAdmin.AbpTemplate.Authorization -@using PearAdmin.AbpTemplate.Admin.ViewResources +@using PearAdmin.AbpTemplate.Admin.Views @{ - ViewBag.CurrentPageName = PageNames.OrganizationUnits; + ViewBag.CurrentPageName = AbpTemplatePageName.OrganizationUnits; } @section styles{ diff --git a/src/PearAdmin.AbpTemplate.Admin/Views/Permissions/Index.cshtml b/src/PearAdmin.AbpTemplate.Admin/Views/Permissions/Index.cshtml index bd8c70d5ea3599324fb1b057757d79aa3da8d679..1bec2cd71f13b4b1046fec81614f6d9975a32984 100644 --- a/src/PearAdmin.AbpTemplate.Admin/Views/Permissions/Index.cshtml +++ b/src/PearAdmin.AbpTemplate.Admin/Views/Permissions/Index.cshtml @@ -1,7 +1,7 @@ -@using PearAdmin.AbpTemplate.Admin.ViewResources +@using PearAdmin.AbpTemplate.Admin.Views @using PearAdmin.AbpTemplate.Authorization @{ - ViewBag.CurrentPageName = PageNames.Permissions; + ViewBag.CurrentPageName = AbpTemplatePageName.Permissions; }
diff --git a/src/PearAdmin.AbpTemplate.Admin/Views/Roles/Index.cshtml b/src/PearAdmin.AbpTemplate.Admin/Views/Roles/Index.cshtml index 91d28435a0cdc7b6404b2438f11a98d948b61eef..e74fc6a35308afc1811d8e552a7f096d575776b9 100644 --- a/src/PearAdmin.AbpTemplate.Admin/Views/Roles/Index.cshtml +++ b/src/PearAdmin.AbpTemplate.Admin/Views/Roles/Index.cshtml @@ -1,7 +1,7 @@ -@using PearAdmin.AbpTemplate.Admin.ViewResources +@using PearAdmin.AbpTemplate.Admin.Views @using PearAdmin.AbpTemplate.Authorization @{ - ViewBag.CurrentPageName = PageNames.Roles; + ViewBag.CurrentPageName = AbpTemplatePageName.Roles; }
diff --git a/src/PearAdmin.AbpTemplate.Admin/Views/Shared/_Layout.cshtml b/src/PearAdmin.AbpTemplate.Admin/Views/Shared/_Layout.cshtml new file mode 100644 index 0000000000000000000000000000000000000000..d257fff5e3bca033ee04830490e32ca55f770211 --- /dev/null +++ b/src/PearAdmin.AbpTemplate.Admin/Views/Shared/_Layout.cshtml @@ -0,0 +1,32 @@ +@using Abp.Configuration.Startup +@using Abp.Web.Mvc.Alerts +@using Abp.Web.Security.AntiForgery +@inject IAbpAntiForgeryManager AbpAntiForgeryManager +@inject IMultiTenancyConfig MultiTenancyConfig +@inject IAlertManager AlertManager +@inject ILanguageManager LanguageManager +@{ + Layout = null; + AbpAntiForgeryManager.SetCookie(Context); +} + + + + + + + + + + @RenderSection("styles", required: false) + + + + @RenderBody() + + + + @RenderSection("scripts", required: false) + + + diff --git a/src/PearAdmin.AbpTemplate.Admin/Views/Tenants/Index.cshtml b/src/PearAdmin.AbpTemplate.Admin/Views/Tenants/Index.cshtml index 1bfd65ab37316969a3c0e9e72e3ff2fc79d899c3..7709773d978db6b4241fd8453a4f37b98ea3a91c 100644 --- a/src/PearAdmin.AbpTemplate.Admin/Views/Tenants/Index.cshtml +++ b/src/PearAdmin.AbpTemplate.Admin/Views/Tenants/Index.cshtml @@ -1,7 +1,7 @@ -@using PearAdmin.AbpTemplate.Admin.ViewResources +@using PearAdmin.AbpTemplate.Admin.Views @using PearAdmin.AbpTemplate.Authorization @{ - ViewBag.CurrentPageName = PageNames.Tenants; + ViewBag.CurrentPageName = AbpTemplatePageName.Tenants; }
diff --git a/src/PearAdmin.AbpTemplate.Admin/Views/Users/Index.cshtml b/src/PearAdmin.AbpTemplate.Admin/Views/Users/Index.cshtml index 89852d312a09e5fc4f4fc4b03c386c086e4ea33b..61a07f2d4127fe9303f2be4f7f5951d5b311a67d 100644 --- a/src/PearAdmin.AbpTemplate.Admin/Views/Users/Index.cshtml +++ b/src/PearAdmin.AbpTemplate.Admin/Views/Users/Index.cshtml @@ -1,7 +1,7 @@ -@using PearAdmin.AbpTemplate.Admin.ViewResources +@using PearAdmin.AbpTemplate.Admin.Views @using PearAdmin.AbpTemplate.Authorization @{ - ViewBag.CurrentPageName = PageNames.Users; + ViewBag.CurrentPageName = AbpTemplatePageName.Users; }
diff --git a/src/PearAdmin.AbpTemplate.Admin/Views/_ViewStart.cshtml b/src/PearAdmin.AbpTemplate.Admin/Views/_ViewStart.cshtml index e367860f05f48de938df593a0bdb5b572227f67d..efda124b1fc041d169e0bb26232fccf1a9803b6b 100644 --- a/src/PearAdmin.AbpTemplate.Admin/Views/_ViewStart.cshtml +++ b/src/PearAdmin.AbpTemplate.Admin/Views/_ViewStart.cshtml @@ -1,3 +1,3 @@ @{ - Layout = "~/Views/Shared/Layout/_Layout.cshtml"; -} + Layout = "~/Views/Shared/_Layout.cshtml"; +} \ No newline at end of file diff --git a/src/PearAdmin.AbpTemplate.Admin/appsettings.Development.json b/src/PearAdmin.AbpTemplate.Admin/appsettings.Development.json index a2cb9ccffc0ae44c262f4c6fdfbf696137f178a3..bfe419937725352c4f19a6c770f7c010b12a2159 100644 --- a/src/PearAdmin.AbpTemplate.Admin/appsettings.Development.json +++ b/src/PearAdmin.AbpTemplate.Admin/appsettings.Development.json @@ -1,6 +1,7 @@ { "ConnectionStrings": { - "Default": "Server=***; Database=PearAdminAbpTemplate;charset=utf8;uid==***;;pwd==***;" + "Default": "Server=***; Database=PearAdminAbpTemplate;charset=utf8;uid==***;;pwd==***;", + "Redis": "" }, "App": { "WebSiteRootAddress": "http://localhost:9527/" diff --git a/src/PearAdmin.AbpTemplate.Admin/appsettings.json b/src/PearAdmin.AbpTemplate.Admin/appsettings.json index a267666520caf09e7c1cab2ef62150e9db8b8c3f..5dcd4c6d7839b93e0e8e0facb07e4048c6efafd5 100644 --- a/src/PearAdmin.AbpTemplate.Admin/appsettings.json +++ b/src/PearAdmin.AbpTemplate.Admin/appsettings.json @@ -1,6 +1,7 @@ { "ConnectionStrings": { - "Default": "" + "Default": "", + "Redis": "" }, "App": { "WebSiteRootAddress": "", diff --git a/src/PearAdmin.AbpTemplate.Admin/wwwroot/libs/pear/module/card.js b/src/PearAdmin.AbpTemplate.Admin/wwwroot/libs/pear/module/card.js index e597aeedccbab6e759b21a981f2279e0cd7cb563..33d0760423720b73ab7a51bec05e3d6ed16e5864 100644 --- a/src/PearAdmin.AbpTemplate.Admin/wwwroot/libs/pear/module/card.js +++ b/src/PearAdmin.AbpTemplate.Admin/wwwroot/libs/pear/module/card.js @@ -1,90 +1,76 @@ -layui.define(['table', 'laypage', 'jquery', 'element'], function (exports) { +layui.define(['table', 'laypage', 'jquery', 'element', 'laytpl'], function (exports) { "use strict"; var MOD_NAME = 'card', $ = layui.jquery, element = layui.element, - laypage = layui.laypage; - - var pearCard = function (opt) { - this.option = opt; - }; - - pearCard.prototype.render = function (opt) { - var option = { - // 构建的模型 - elem: opt.elem, - // 数据 url 连接 - url: opt.url, - // lineSize 每行的个数 - lineSize: opt.lineSize ? opt.lineSize : 4, - // 共多少个 - pageSize: opt.pageSize ? opt.pageSize : 12, - // 当前页 - currentPage: opt.currentSize ? opt.currentSize : 0, - // 完 成 函 数 - done: opt.done ? opt.done : function () { - alert("跳转页面"); + laypage = layui.laypage, + laytpl = layui.laytpl; + + var pearCard = { + render: function (opt) { + var self = this; + var option = { + elem: opt.elem, + url: opt.url, + template: opt.template, + lineSize: opt.lineSize ? opt.lineSize : 4, + layout: opt.layout ? opt.layout : ['count', 'prev', 'page', 'next', 'limit', 'refresh', 'skip'], + limit: opt.limit ? opt.limit : 12, + currentPage: opt.currentPage ? opt.currentPage : 1, + parseData: opt.parseData ? opt.parseData : function (res) { + return res; + }, + done: opt.done ? opt.done : function () { + + } } - } - // 根 据 请 求 方 式 获 取 数 据 - if (option.url != null) { - // 复制数据 - option.data = getData(option.url).data; - } - - // 根据结果进行相应结构的创建 - var html = createComponent(option.data); - $(option.elem).html(html); - - // 初始化分页组件 - laypage.render({ - elem: 'cardpage' - , count: 100 - , layout: ['count', 'prev', 'page', 'next', 'limit', 'refresh', 'skip'] - , jump: function (obj) { - console.log(obj) + if (option.url != null) { + var data = getData(option.url + "?page=" + option.currentPage + "&limit=" + option.limit); + option.data = option.parseData(data); } - }); - return new pearCard(option); + var html = createComponent(option); + $(option.elem).html(html); + + laypage.render({ + elem: 'cardpage', + count: option.data.count, + limit: option.limit, + curr: option.currentPage, + layout: option.layout, + jump: function (obj, first) { + option.limit = obj.limit; + option.currentPage = obj.curr; + if (!first) { + self.render(option); + } + } + }); + } } - function createComponent(data) { + function createComponent(option) { var html = "
" - var content = createCards(data); + var content = createCards(option); var page = "
" content = content + page; html += content + "
" return html; } - - /** 创建指定数量的卡片 */ - function createCards(data) { - + function createCards(option) { var content = "
"; - $.each(data, function (i, item) { - - content += createCard(item); - - }) + $.each(option.data.data, function (i, item) { + laytpl($(option.template).html()).render(item, function (html) { + content += html; + }); + }); content += "
" return content; } - - /** 创建一个卡片 */ - function createCard(item) { - - var card = - '

' + item.title + '

' + item.remark + '
' + item.time + '
' - - return card; - } - - /** 同 步 请 求 获 取 数 据 */ function getData(url) { $.ajaxSettings.async = false; @@ -98,5 +84,5 @@ return data; } - exports(MOD_NAME, new pearCard()); + exports(MOD_NAME, pearCard); }); diff --git a/src/PearAdmin.AbpTemplate.Application/AbpTemplateApplicationModule.cs b/src/PearAdmin.AbpTemplate.Application/AbpTemplateApplicationModule.cs index 2035b9d6ae493a6c2f02e8fd83a0086fb858db5b..888386c8be85d5948737d33cc44dfd1d05989994 100644 --- a/src/PearAdmin.AbpTemplate.Application/AbpTemplateApplicationModule.cs +++ b/src/PearAdmin.AbpTemplate.Application/AbpTemplateApplicationModule.cs @@ -3,13 +3,13 @@ using Abp.Modules; using Abp.Reflection.Extensions; using PearAdmin.AbpTemplate.Authorization; using PearAdmin.AbpTemplate.Monitoring; +using PearAdmin.AbpTemplate.MultiTenancy; using PearAdmin.AbpTemplate.Notifications; using PearAdmin.AbpTemplate.Organizations; using PearAdmin.AbpTemplate.Resource; using PearAdmin.AbpTemplate.Social; -using PearAdmin.AbpTemplate.MultiTenancy; -using PearAdmin.AbpTemplate.TaskCenter; using PearAdmin.AbpTemplate.Storage.Minio; +using PearAdmin.AbpTemplate.TaskCenter; namespace PearAdmin.AbpTemplate { diff --git a/src/PearAdmin.AbpTemplate.Application/AbpTemplateApplicationServiceBase.cs b/src/PearAdmin.AbpTemplate.Application/AbpTemplateApplicationServiceBase.cs index 8c7c1702ca5f8235785ff62e967b075142a3b66e..fdbf6102c1affcebbb9491643342ed3ab1e437ea 100644 --- a/src/PearAdmin.AbpTemplate.Application/AbpTemplateApplicationServiceBase.cs +++ b/src/PearAdmin.AbpTemplate.Application/AbpTemplateApplicationServiceBase.cs @@ -1,9 +1,9 @@ using System; using System.Threading.Tasks; -using Microsoft.AspNetCore.Identity; using Abp.Application.Services; using Abp.IdentityFramework; using Abp.Runtime.Session; +using Microsoft.AspNetCore.Identity; using PearAdmin.AbpTemplate.Authorization.Users; using PearAdmin.AbpTemplate.MultiTenancy; diff --git a/src/PearAdmin.AbpTemplate.Application/Notifications/NotificationAppService.cs b/src/PearAdmin.AbpTemplate.Application/Notifications/NotificationAppService.cs index 61d20ce35c8d062b3b70665ee7ba654fc2cbe859..8e8170f4159c56f1c61fa47f8dcb1a50c041e931 100644 --- a/src/PearAdmin.AbpTemplate.Application/Notifications/NotificationAppService.cs +++ b/src/PearAdmin.AbpTemplate.Application/Notifications/NotificationAppService.cs @@ -1,13 +1,13 @@ -using Abp.Application.Services.Dto; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Abp.Application.Services.Dto; using Abp.Auditing; using Abp.Notifications; using Abp.Runtime.Session; using Abp.UI; using PearAdmin.AbpTemplate.Notifications.Dto; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace PearAdmin.AbpTemplate.Notifications { diff --git a/src/PearAdmin.AbpTemplate.Application/Organizations/OrganizationUnitAppService.cs b/src/PearAdmin.AbpTemplate.Application/Organizations/OrganizationUnitAppService.cs index e2b44ca90f2eb6d9275229f839033a1a40c1e256..3983842f18b6fc70e396ae6856b529b6944ee87b 100644 --- a/src/PearAdmin.AbpTemplate.Application/Organizations/OrganizationUnitAppService.cs +++ b/src/PearAdmin.AbpTemplate.Application/Organizations/OrganizationUnitAppService.cs @@ -1,17 +1,16 @@ -using Abp.Application.Services.Dto; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Abp.Application.Services.Dto; using Abp.Authorization; using Abp.Authorization.Users; using Abp.Domain.Repositories; +using Abp.Extensions; using Abp.Linq.Extensions; using Abp.Organizations; -using Abp.UI; using Microsoft.EntityFrameworkCore; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using PearAdmin.AbpTemplate.Authorization; using PearAdmin.AbpTemplate.Organizations.Dto; -using Abp.Extensions; namespace PearAdmin.AbpTemplate.Organizations { diff --git a/src/PearAdmin.AbpTemplate.Application/PearAdmin.AbpTemplate.Application.csproj b/src/PearAdmin.AbpTemplate.Application/PearAdmin.AbpTemplate.Application.csproj index 63725e514f82e33f56931b96697d33c53b766f2f..ef75364abbb4c535690b32efc77fc619e4e2fb47 100644 --- a/src/PearAdmin.AbpTemplate.Application/PearAdmin.AbpTemplate.Application.csproj +++ b/src/PearAdmin.AbpTemplate.Application/PearAdmin.AbpTemplate.Application.csproj @@ -1,7 +1,7 @@  1.0.0.0 - netcoreapp3.1 + net5.0 $(AssetTargetFallback);portable-net45+win8+wp8+wpa81; PearAdmin.AbpTemplate.Application PearAdmin.AbpTemplate.Application @@ -10,14 +10,6 @@ false PearAdmin.AbpTemplate - - - - - - - - diff --git a/src/PearAdmin.AbpTemplate.Core/AbpTemplateCoreConsts.cs b/src/PearAdmin.AbpTemplate.Core/AbpTemplateCoreConsts.cs index 1475b208594a9e94fdecbc631a99a01978fa2ee2..78a72ef24b8b6cd96cfe38d57a50fa10cbd2a72e 100644 --- a/src/PearAdmin.AbpTemplate.Core/AbpTemplateCoreConsts.cs +++ b/src/PearAdmin.AbpTemplate.Core/AbpTemplateCoreConsts.cs @@ -1,6 +1,6 @@ -using Abp.Reflection.Extensions; -using System; +using System; using System.IO; +using Abp.Reflection.Extensions; namespace PearAdmin.AbpTemplate { @@ -23,6 +23,7 @@ namespace PearAdmin.AbpTemplate public const string LocalizationSourceName = "zh-Hans"; public const string ConnectionStringName = "Default"; + public const string RedisConnectionStringName = "Redis"; public const bool MultiTenancyEnabled = true; diff --git a/src/PearAdmin.AbpTemplate.Core/AbpTemplateCoreModule.cs b/src/PearAdmin.AbpTemplate.Core/AbpTemplateCoreModule.cs index 9876d155010c4ed134ad4a632b97a57537d3b868..b411130e691077d2d6c25a194ab838fc67ba178a 100644 --- a/src/PearAdmin.AbpTemplate.Core/AbpTemplateCoreModule.cs +++ b/src/PearAdmin.AbpTemplate.Core/AbpTemplateCoreModule.cs @@ -8,13 +8,13 @@ using Abp.Zero.Configuration; using PearAdmin.AbpTemplate.Authorization; using PearAdmin.AbpTemplate.Authorization.Roles; using PearAdmin.AbpTemplate.Authorization.Users; -using PearAdmin.AbpTemplate.Social.Chat; using PearAdmin.AbpTemplate.Configuration; using PearAdmin.AbpTemplate.Features; -using PearAdmin.AbpTemplate.Social.Friendships; using PearAdmin.AbpTemplate.Localization; using PearAdmin.AbpTemplate.MultiTenancy; using PearAdmin.AbpTemplate.Notifications; +using PearAdmin.AbpTemplate.Social.Chat; +using PearAdmin.AbpTemplate.Social.Friendships; using PearAdmin.AbpTemplate.Timing; namespace PearAdmin.AbpTemplate diff --git a/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/AppConfigurationAccessor.cs b/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/AppConfigurationAccessor.cs index 4e4cbefb6e3dc88ebab99a5e3c4c49e017bab109..660444cb23ad51952dab5b897ce3ea508ccb69d4 100644 --- a/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/AppConfigurationAccessor.cs +++ b/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/AppConfigurationAccessor.cs @@ -1,9 +1,6 @@ -using Abp.Dependency; +using System.IO; +using Abp.Dependency; using Microsoft.Extensions.Configuration; -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; namespace PearAdmin.AbpTemplate.Configuration { diff --git a/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/AppConfigurations.cs b/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/AppConfigurations.cs index 54b8e0b85dec123b649517cf2a940958e3137285..c4608e445e3e77b1e441ba003accf51ded227b74 100644 --- a/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/AppConfigurations.cs +++ b/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/AppConfigurations.cs @@ -1,7 +1,7 @@ using System.Collections.Concurrent; -using Microsoft.Extensions.Configuration; using Abp.Extensions; using Abp.Reflection.Extensions; +using Microsoft.Extensions.Configuration; namespace PearAdmin.AbpTemplate.Configuration { diff --git a/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/AppSettingProvider.cs b/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/AppSettingProvider.cs index ec496f0cd6d87c46ad2b72efea32908e2593fad4..23de5a339f3e76218d36f2a081e27607e067b883 100644 --- a/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/AppSettingProvider.cs +++ b/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/AppSettingProvider.cs @@ -8,10 +8,6 @@ using Microsoft.Extensions.Configuration; namespace PearAdmin.AbpTemplate.Configuration { - /// - /// Defines settings for the application. - /// See for setting names. - /// public class AppSettingProvider : SettingProvider { private readonly IConfigurationRoot _appConfiguration; diff --git a/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/IAppConfigurationAccessor.cs b/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/IAppConfigurationAccessor.cs index 55dd2bbba2b38aece624c6f459d71993324ae105..0a237ab5df226c6764ae807b2d527a706963604d 100644 --- a/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/IAppConfigurationAccessor.cs +++ b/src/PearAdmin.AbpTemplate.Core/AppProvider/Configuration/IAppConfigurationAccessor.cs @@ -1,7 +1,4 @@ using Microsoft.Extensions.Configuration; -using System; -using System.Collections.Generic; -using System.Text; namespace PearAdmin.AbpTemplate.Configuration { diff --git a/src/PearAdmin.AbpTemplate.Core/AppProvider/Features/AppFeatureNames.cs b/src/PearAdmin.AbpTemplate.Core/AppProvider/Features/AppFeatureNames.cs index 644ca457c3bef26d38938c95f905fbb38382eff3..e101472a8b5ad56a84604b6d5b827db26e69e06c 100644 --- a/src/PearAdmin.AbpTemplate.Core/AppProvider/Features/AppFeatureNames.cs +++ b/src/PearAdmin.AbpTemplate.Core/AppProvider/Features/AppFeatureNames.cs @@ -6,6 +6,5 @@ public const string ChatFeature = "App.ChatFeature"; public const string TenantToTenantChatFeature = "App.TenantToTenantChatFeature"; public const string TenantToHostChatFeature = "App.TenantToHostChatFeature"; - } } diff --git a/src/PearAdmin.AbpTemplate.Core/AppProvider/Notifications/AppNotifier.cs b/src/PearAdmin.AbpTemplate.Core/AppProvider/Notifications/AppNotifier.cs index 9fdf501c6447c927d6d0c6eca8c8e2a5517fec58..eccf3c32815a40121e840c0bb9a83090bf0e8a57 100644 --- a/src/PearAdmin.AbpTemplate.Core/AppProvider/Notifications/AppNotifier.cs +++ b/src/PearAdmin.AbpTemplate.Core/AppProvider/Notifications/AppNotifier.cs @@ -1,6 +1,6 @@ -using Abp.Domain.Services; +using System.Threading.Tasks; +using Abp.Domain.Services; using Abp.Notifications; -using System.Threading.Tasks; namespace PearAdmin.AbpTemplate.Notifications { diff --git a/src/PearAdmin.AbpTemplate.Core/AppProvider/Permissions/AppPermissionNames.cs b/src/PearAdmin.AbpTemplate.Core/AppProvider/Permissions/AppPermissionNames.cs index 785dbc0439e0675b36d81a82ec44b7d3e92b3e02..72ed872dabbb82da2942be1901c27609a3086f40 100644 --- a/src/PearAdmin.AbpTemplate.Core/AppProvider/Permissions/AppPermissionNames.cs +++ b/src/PearAdmin.AbpTemplate.Core/AppProvider/Permissions/AppPermissionNames.cs @@ -45,6 +45,8 @@ public const string Pages_SystemManagement_Maintenance_Logs = "Pages.SystemManagement.Maintenance.Logs"; public const string Pages_SystemManagement_Maintenance_Logs_DownLoad = "Pages.SystemManagement.Maintenance.Logs.DownLoad"; public const string Pages_SystemManagement_Maintenance_Logs_Refresh = "Pages.SystemManagement.Maintenance.Logs.Refresh"; + + public const string Pages_SystemManagement_HangfireDashboard = "Pages.SystemManagement.HangfireDashboard"; #endregion #region ResourceManagement diff --git a/src/PearAdmin.AbpTemplate.Core/AppProvider/Permissions/AppPermissionProvider.cs b/src/PearAdmin.AbpTemplate.Core/AppProvider/Permissions/AppPermissionProvider.cs index 3e9cc095990172eabb2e40f43b86a9548ce6d150..45fa3dea2de9a43d8ae783161fdb8f07f2b65b6b 100644 --- a/src/PearAdmin.AbpTemplate.Core/AppProvider/Permissions/AppPermissionProvider.cs +++ b/src/PearAdmin.AbpTemplate.Core/AppProvider/Permissions/AppPermissionProvider.cs @@ -51,6 +51,8 @@ namespace PearAdmin.AbpTemplate.Authorization var logs = maintenance.CreateChildPermission(AppPermissionNames.Pages_SystemManagement_Maintenance_Logs, L("Logs")); logs.CreateChildPermission(AppPermissionNames.Pages_SystemManagement_Maintenance_Logs_DownLoad, L("DownLoadLog")); logs.CreateChildPermission(AppPermissionNames.Pages_SystemManagement_Maintenance_Logs_Refresh, L("RefreshLog")); + + systemManagement.CreateChildPermission(AppPermissionNames.Pages_SystemManagement_HangfireDashboard, L("HangfireDashboard"), multiTenancySides: MultiTenancySides.Tenant); #endregion #region ResourceManagement diff --git a/src/PearAdmin.AbpTemplate.Core/Authorization/Users/UserStore.cs b/src/PearAdmin.AbpTemplate.Core/Authorization/Users/UserStore.cs index 212c1b1c3a28fac22fdd1b1fe8be55c380886794..63fd10f9916187fea396ae9146a07ffbcc23cc2d 100644 --- a/src/PearAdmin.AbpTemplate.Core/Authorization/Users/UserStore.cs +++ b/src/PearAdmin.AbpTemplate.Core/Authorization/Users/UserStore.cs @@ -1,7 +1,6 @@ using Abp.Authorization.Users; using Abp.Domain.Repositories; using Abp.Domain.Uow; -using Abp.Linq; using Abp.Organizations; using PearAdmin.AbpTemplate.Authorization.Roles; @@ -13,24 +12,22 @@ namespace PearAdmin.AbpTemplate.Authorization.Users IUnitOfWorkManager unitOfWorkManager, IRepository userRepository, IRepository roleRepository, - IAsyncQueryableExecuter asyncQueryableExecuter, IRepository userRoleRepository, IRepository userLoginRepository, IRepository userClaimRepository, IRepository userPermissionSettingRepository, IRepository userOrganizationUnitRepository, IRepository organizationUnitRoleRepository) - : base( - unitOfWorkManager, - userRepository, - roleRepository, - asyncQueryableExecuter, - userRoleRepository, - userLoginRepository, - userClaimRepository, - userPermissionSettingRepository, - userOrganizationUnitRepository, - organizationUnitRoleRepository) + : base(unitOfWorkManager, + userRepository, + roleRepository, + userRoleRepository, + userLoginRepository, + userClaimRepository, + userPermissionSettingRepository, + userOrganizationUnitRepository, + organizationUnitRoleRepository + ) { } } diff --git a/src/PearAdmin.AbpTemplate.Core/Common/Localization/SourceFiles/AbpTemplate-zh-Hans.xml b/src/PearAdmin.AbpTemplate.Core/Common/Localization/SourceFiles/AbpTemplate-zh-Hans.xml index 4261cc5570b9a79a46a15ba2fa87b36b9bd28f23..b5f8e5cb7701e612a78965da23e680868b6b8351 100644 --- a/src/PearAdmin.AbpTemplate.Core/Common/Localization/SourceFiles/AbpTemplate-zh-Hans.xml +++ b/src/PearAdmin.AbpTemplate.Core/Common/Localization/SourceFiles/AbpTemplate-zh-Hans.xml @@ -123,6 +123,8 @@ 修改密码 消息设置 新建任务 + + 后台任务 diff --git a/src/PearAdmin.AbpTemplate.Core/Common/Localization/SourceFiles/AbpTemplate.xml b/src/PearAdmin.AbpTemplate.Core/Common/Localization/SourceFiles/AbpTemplate.xml index e5e18b728a56fe5ac29d6e16536566a179d7d6ce..c2459561554f918e792a4cb8da4bb40029a003da 100644 --- a/src/PearAdmin.AbpTemplate.Core/Common/Localization/SourceFiles/AbpTemplate.xml +++ b/src/PearAdmin.AbpTemplate.Core/Common/Localization/SourceFiles/AbpTemplate.xml @@ -116,5 +116,6 @@ Clear 1. Enter your administrator password 2. Copy this random password so you can send it to the user + HangfireDashboard diff --git a/src/PearAdmin.AbpTemplate.Core/PearAdmin.AbpTemplate.Core.csproj b/src/PearAdmin.AbpTemplate.Core/PearAdmin.AbpTemplate.Core.csproj index 6934b5e8f33527df61e662fa5909d688fa98b80f..7b9d8626b5f7736332a78e66fefa3ffc0c318924 100644 --- a/src/PearAdmin.AbpTemplate.Core/PearAdmin.AbpTemplate.Core.csproj +++ b/src/PearAdmin.AbpTemplate.Core/PearAdmin.AbpTemplate.Core.csproj @@ -1,7 +1,7 @@  1.0.0.0 - netcoreapp3.1 + net5.0 $(AssetTargetFallback);portable-net45+win8+wp8+wpa81; PearAdmin.AbpTemplate.Core PearAdmin.AbpTemplate.Core @@ -16,8 +16,8 @@ - - + + diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/EntityFrameworkCore/AbpTemplateDbContext.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/EntityFrameworkCore/AbpTemplateDbContext.cs index e88f387cdeab98d12a4fadc0228e707b27683b4c..93ad6f370d46febfcdaa4aebc8b025511b17753a 100644 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/EntityFrameworkCore/AbpTemplateDbContext.cs +++ b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/EntityFrameworkCore/AbpTemplateDbContext.cs @@ -1,5 +1,5 @@ -using Microsoft.EntityFrameworkCore; -using Abp.Zero.EntityFrameworkCore; +using Abp.Zero.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore; using PearAdmin.AbpTemplate.Authorization.Roles; using PearAdmin.AbpTemplate.Authorization.Users; using PearAdmin.AbpTemplate.MultiTenancy; diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/EntityFrameworkCore/AbpTemplateDbContextConfigurer.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/EntityFrameworkCore/AbpTemplateDbContextConfigurer.cs index e6ec549510ed88e7283e72e95f8fd9be55f64728..9a3090ec69a86942f02612f4a33b3900dcb862fe 100644 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/EntityFrameworkCore/AbpTemplateDbContextConfigurer.cs +++ b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/EntityFrameworkCore/AbpTemplateDbContextConfigurer.cs @@ -7,12 +7,12 @@ namespace PearAdmin.AbpTemplate.EntityFrameworkCore { public static void Configure(DbContextOptionsBuilder builder, string connectionString) { - builder.UseMySql(connectionString); + builder.UseMySql(connectionString, MySqlServerVersion.LatestSupportedServerVersion); } public static void Configure(DbContextOptionsBuilder builder, DbConnection connection) { - builder.UseMySql(connection); + builder.UseMySql(connection, MySqlServerVersion.LatestSupportedServerVersion); } } } diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200612132018_InitDatabase.Designer.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200612132018_InitDatabase.Designer.cs deleted file mode 100644 index 6e8791ffcc5dbc84b38137567a5ac98a307ff8eb..0000000000000000000000000000000000000000 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200612132018_InitDatabase.Designer.cs +++ /dev/null @@ -1,1792 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using PearAdmin.AbpTemplate.EntityFrameworkCore; - -namespace PearAdmin.AbpTemplate.Migrations -{ - [DbContext(typeof(AbpTemplateDbContext))] - [Migration("20200612132018_InitDatabase")] - partial class InitDatabase - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.4") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CustomData") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.Property("Exception") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.Property("ExecutionDuration") - .HasColumnType("int"); - - b.Property("ExecutionTime") - .HasColumnType("datetime(6)"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("MethodName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("Parameters") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); - - b.Property("ReturnValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ServiceName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionDuration"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Abp.Authorization.PermissionSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsGranted") - .HasColumnType("tinyint(1)"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator("Discriminator").HasValue("PermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserLinkId") - .HasColumnType("bigint"); - - b.Property("UserName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("EmailAddress"); - - b.HasIndex("UserName"); - - b.HasIndex("TenantId", "EmailAddress"); - - b.HasIndex("TenantId", "UserId"); - - b.HasIndex("TenantId", "UserName"); - - b.ToTable("AbpUserAccounts"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("LoginProvider") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("ProviderKey") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "UserId"); - - b.HasIndex("TenantId", "LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLoginAttempt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("Result") - .HasColumnType("tinyint unsigned"); - - b.Property("TenancyName") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserNameOrEmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("UserId", "TenantId"); - - b.HasIndex("TenancyName", "UserNameOrEmailAddress", "Result"); - - b.ToTable("AbpUserLoginAttempts"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserOrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("OrganizationUnitId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "OrganizationUnitId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "RoleId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ExpireDate") - .HasColumnType("datetime(6)"); - - b.Property("LoginProvider") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("Name") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsAbandoned") - .HasColumnType("tinyint(1)"); - - b.Property("JobArgs") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("JobType") - .IsRequired() - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("LastTryTime") - .HasColumnType("datetime(6)"); - - b.Property("NextTryTime") - .HasColumnType("datetime(6)"); - - b.Property("Priority") - .HasColumnType("tinyint unsigned"); - - b.Property("TryCount") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name", "UserId") - .IsUnique(); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("InputType") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ParameterName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); - - b.Property("Permission") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ParameterName", "TenantId") - .IsUnique(); - - b.ToTable("AbpDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.ToTable("AbpDynamicParameterValues"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("EntityFullName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.HasIndex("EntityFullName", "DynamicParameterId", "TenantId") - .IsUnique(); - - b.ToTable("AbpEntityDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("EntityDynamicParameterId") - .HasColumnType("int"); - - b.Property("EntityId") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("EntityDynamicParameterId"); - - b.ToTable("AbpEntityDynamicParameterValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ChangeTime") - .HasColumnType("datetime(6)"); - - b.Property("ChangeType") - .HasColumnType("tinyint unsigned"); - - b.Property("EntityChangeSetId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasColumnType("varchar(48) CHARACTER SET utf8mb4") - .HasMaxLength(48); - - b.Property("EntityTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeSetId"); - - b.HasIndex("EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("ExtensionData") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("Reason") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "CreationTime"); - - b.HasIndex("TenantId", "Reason"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpEntityChangeSets"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("EntityChangeId") - .HasColumnType("bigint"); - - b.Property("NewValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("OriginalValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("PropertyName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("PropertyTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("Icon") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsDisabled") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpLanguages"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguageText", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Key") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("LanguageName") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Source") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(67108864); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Source", "LanguageName", "Key"); - - b.ToTable("AbpLanguageTexts"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("ExcludedUserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.Property("NotificationName") - .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("Severity") - .HasColumnType("tinyint unsigned"); - - b.Property("TenantIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.Property("UserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.HasKey("Id"); - - b.ToTable("AbpNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("NotificationName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("NotificationName", "EntityTypeName", "EntityId", "UserId"); - - b.HasIndex("TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId"); - - b.ToTable("AbpNotificationSubscriptions"); - }); - - modelBuilder.Entity("Abp.Notifications.TenantNotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("NotificationName") - .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("Severity") - .HasColumnType("tinyint unsigned"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId"); - - b.ToTable("AbpTenantNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("TenantNotificationId") - .HasColumnType("char(36)"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId", "State", "CreationTime"); - - b.ToTable("AbpUserNotifications"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("Code") - .IsRequired() - .HasColumnType("varchar(95) CHARACTER SET utf8mb4") - .HasMaxLength(95); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("TenantId", "Code"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnitRole", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("OrganizationUnitId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "OrganizationUnitId"); - - b.HasIndex("TenantId", "RoleId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookName") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("AbpWebhookEvents"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("Response") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ResponseStatusCode") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookEventId") - .HasColumnType("char(36)"); - - b.Property("WebhookSubscriptionId") - .HasColumnType("char(36)"); - - b.HasKey("Id"); - - b.HasIndex("WebhookEventId"); - - b.ToTable("AbpWebhookSendAttempts"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSubscriptionInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Headers") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("Secret") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookUri") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Webhooks") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("AbpWebhookSubscriptions"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("Description") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(5000); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("IsDefault") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsStatic") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("NormalizedName") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenantId", "NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EmailAddress") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("EmailConfirmationCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsEmailConfirmed") - .HasColumnType("tinyint(1)"); - - b.Property("IsLockoutEnabled") - .HasColumnType("tinyint(1)"); - - b.Property("IsPhoneNumberConfirmed") - .HasColumnType("tinyint(1)"); - - b.Property("IsTwoFactorEnabled") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime(6)"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("Password") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("PasswordResetCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); - - b.Property("PhoneNumber") - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("SecurityStamp") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("Surname") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenantId", "NormalizedEmailAddress"); - - b.HasIndex("TenantId", "NormalizedUserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConnectionString") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EditionId") - .HasColumnType("int"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenancyName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("EditionId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenancyName"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasBaseType("Abp.Application.Features.FeatureSetting"); - - b.Property("EditionId") - .HasColumnType("int"); - - b.HasIndex("EditionId", "Name"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator().HasValue("EditionFeatureSetting"); - }); - - modelBuilder.Entity("Abp.MultiTenancy.TenantFeatureSetting", b => - { - b.HasBaseType("Abp.Application.Features.FeatureSetting"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator().HasValue("TenantFeatureSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasBaseType("Abp.Authorization.PermissionSetting"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator().HasValue("RolePermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasBaseType("Abp.Authorization.PermissionSetting"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasIndex("UserId"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator().HasValue("UserPermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany("DynamicParameterValues") - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany() - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.EntityDynamicParameter", "EntityDynamicParameter") - .WithMany() - .HasForeignKey("EntityDynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet", null) - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") - .WithMany() - .HasForeignKey("WebhookEventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200712033835_AddDataDictionaryItem.Designer.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200712033835_AddDataDictionaryItem.Designer.cs deleted file mode 100644 index f3227ee9a1be21dd5d5246576718b3f38b8110cc..0000000000000000000000000000000000000000 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200712033835_AddDataDictionaryItem.Designer.cs +++ /dev/null @@ -1,1817 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using PearAdmin.AbpTemplate.EntityFrameworkCore; - -namespace PearAdmin.AbpTemplate.Migrations -{ - [DbContext(typeof(AbpTemplateDbContext))] - [Migration("20200712033835_AddDataDictionaryItem")] - partial class AddDataDictionaryItem - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.4") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CustomData") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.Property("Exception") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.Property("ExecutionDuration") - .HasColumnType("int"); - - b.Property("ExecutionTime") - .HasColumnType("datetime(6)"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("MethodName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("Parameters") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); - - b.Property("ReturnValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ServiceName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionDuration"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Abp.Authorization.PermissionSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsGranted") - .HasColumnType("tinyint(1)"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator("Discriminator").HasValue("PermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserLinkId") - .HasColumnType("bigint"); - - b.Property("UserName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("EmailAddress"); - - b.HasIndex("UserName"); - - b.HasIndex("TenantId", "EmailAddress"); - - b.HasIndex("TenantId", "UserId"); - - b.HasIndex("TenantId", "UserName"); - - b.ToTable("AbpUserAccounts"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("LoginProvider") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("ProviderKey") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "UserId"); - - b.HasIndex("TenantId", "LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLoginAttempt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("Result") - .HasColumnType("tinyint unsigned"); - - b.Property("TenancyName") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserNameOrEmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("UserId", "TenantId"); - - b.HasIndex("TenancyName", "UserNameOrEmailAddress", "Result"); - - b.ToTable("AbpUserLoginAttempts"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserOrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("OrganizationUnitId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "OrganizationUnitId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "RoleId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ExpireDate") - .HasColumnType("datetime(6)"); - - b.Property("LoginProvider") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("Name") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsAbandoned") - .HasColumnType("tinyint(1)"); - - b.Property("JobArgs") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("JobType") - .IsRequired() - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("LastTryTime") - .HasColumnType("datetime(6)"); - - b.Property("NextTryTime") - .HasColumnType("datetime(6)"); - - b.Property("Priority") - .HasColumnType("tinyint unsigned"); - - b.Property("TryCount") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name", "UserId") - .IsUnique(); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("InputType") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ParameterName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); - - b.Property("Permission") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ParameterName", "TenantId") - .IsUnique(); - - b.ToTable("AbpDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.ToTable("AbpDynamicParameterValues"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("EntityFullName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.HasIndex("EntityFullName", "DynamicParameterId", "TenantId") - .IsUnique(); - - b.ToTable("AbpEntityDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("EntityDynamicParameterId") - .HasColumnType("int"); - - b.Property("EntityId") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("EntityDynamicParameterId"); - - b.ToTable("AbpEntityDynamicParameterValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ChangeTime") - .HasColumnType("datetime(6)"); - - b.Property("ChangeType") - .HasColumnType("tinyint unsigned"); - - b.Property("EntityChangeSetId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasColumnType("varchar(48) CHARACTER SET utf8mb4") - .HasMaxLength(48); - - b.Property("EntityTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeSetId"); - - b.HasIndex("EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("ExtensionData") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("Reason") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "CreationTime"); - - b.HasIndex("TenantId", "Reason"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpEntityChangeSets"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("EntityChangeId") - .HasColumnType("bigint"); - - b.Property("NewValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("OriginalValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("PropertyName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("PropertyTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("Icon") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsDisabled") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpLanguages"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguageText", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Key") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("LanguageName") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Source") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(67108864); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Source", "LanguageName", "Key"); - - b.ToTable("AbpLanguageTexts"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("ExcludedUserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.Property("NotificationName") - .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("Severity") - .HasColumnType("tinyint unsigned"); - - b.Property("TenantIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.Property("UserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.HasKey("Id"); - - b.ToTable("AbpNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("NotificationName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("NotificationName", "EntityTypeName", "EntityId", "UserId"); - - b.HasIndex("TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId"); - - b.ToTable("AbpNotificationSubscriptions"); - }); - - modelBuilder.Entity("Abp.Notifications.TenantNotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("NotificationName") - .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("Severity") - .HasColumnType("tinyint unsigned"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId"); - - b.ToTable("AbpTenantNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("TenantNotificationId") - .HasColumnType("char(36)"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId", "State", "CreationTime"); - - b.ToTable("AbpUserNotifications"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("Code") - .IsRequired() - .HasColumnType("varchar(95) CHARACTER SET utf8mb4") - .HasMaxLength(95); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("TenantId", "Code"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnitRole", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("OrganizationUnitId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "OrganizationUnitId"); - - b.HasIndex("TenantId", "RoleId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookName") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("AbpWebhookEvents"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("Response") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ResponseStatusCode") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookEventId") - .HasColumnType("char(36)"); - - b.Property("WebhookSubscriptionId") - .HasColumnType("char(36)"); - - b.HasKey("Id"); - - b.HasIndex("WebhookEventId"); - - b.ToTable("AbpWebhookSendAttempts"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSubscriptionInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Headers") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("Secret") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookUri") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Webhooks") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("AbpWebhookSubscriptions"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("Description") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(5000); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("IsDefault") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsStatic") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("NormalizedName") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenantId", "NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EmailAddress") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("EmailConfirmationCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsEmailConfirmed") - .HasColumnType("tinyint(1)"); - - b.Property("IsLockoutEnabled") - .HasColumnType("tinyint(1)"); - - b.Property("IsPhoneNumberConfirmed") - .HasColumnType("tinyint(1)"); - - b.Property("IsTwoFactorEnabled") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime(6)"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("Password") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("PasswordResetCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); - - b.Property("PhoneNumber") - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("SecurityStamp") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("Surname") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenantId", "NormalizedEmailAddress"); - - b.HasIndex("TenantId", "NormalizedUserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.DataDictionaries.DataDictionaryItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("Code") - .HasColumnType("varchar(5) CHARACTER SET utf8mb4") - .HasMaxLength(5); - - b.Property("DataDictionaryId") - .HasColumnType("int"); - - b.Property("Name") - .HasColumnType("varchar(30) CHARACTER SET utf8mb4") - .HasMaxLength(30); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Resource_DataDictionaryItem"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConnectionString") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EditionId") - .HasColumnType("int"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenancyName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("EditionId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenancyName"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasBaseType("Abp.Application.Features.FeatureSetting"); - - b.Property("EditionId") - .HasColumnType("int"); - - b.HasIndex("EditionId", "Name"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator().HasValue("EditionFeatureSetting"); - }); - - modelBuilder.Entity("Abp.MultiTenancy.TenantFeatureSetting", b => - { - b.HasBaseType("Abp.Application.Features.FeatureSetting"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator().HasValue("TenantFeatureSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasBaseType("Abp.Authorization.PermissionSetting"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator().HasValue("RolePermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasBaseType("Abp.Authorization.PermissionSetting"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasIndex("UserId"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator().HasValue("UserPermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany("DynamicParameterValues") - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany() - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.EntityDynamicParameter", "EntityDynamicParameter") - .WithMany() - .HasForeignKey("EntityDynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet", null) - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") - .WithMany() - .HasForeignKey("WebhookEventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200712033835_AddDataDictionaryItem.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200712033835_AddDataDictionaryItem.cs deleted file mode 100644 index 616e458dd218effa992025e09100cf1bda980207..0000000000000000000000000000000000000000 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200712033835_AddDataDictionaryItem.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace PearAdmin.AbpTemplate.Migrations -{ - public partial class AddDataDictionaryItem : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Resource_DataDictionaryItem", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - TenantId = table.Column(nullable: false), - Code = table.Column(maxLength: 5, nullable: true), - Name = table.Column(maxLength: 30, nullable: true), - DataDictionaryId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Resource_DataDictionaryItem", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Resource_DataDictionaryItem"); - } - } -} diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200712062722_UpdateDataDictionaryItem.Designer.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200712062722_UpdateDataDictionaryItem.Designer.cs deleted file mode 100644 index 0b01051c6f66387edccf092c5381cc8602fc913e..0000000000000000000000000000000000000000 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200712062722_UpdateDataDictionaryItem.Designer.cs +++ /dev/null @@ -1,1817 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using PearAdmin.AbpTemplate.EntityFrameworkCore; - -namespace PearAdmin.AbpTemplate.Migrations -{ - [DbContext(typeof(AbpTemplateDbContext))] - [Migration("20200712062722_UpdateDataDictionaryItem")] - partial class UpdateDataDictionaryItem - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.4") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CustomData") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.Property("Exception") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.Property("ExecutionDuration") - .HasColumnType("int"); - - b.Property("ExecutionTime") - .HasColumnType("datetime(6)"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("MethodName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("Parameters") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); - - b.Property("ReturnValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ServiceName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionDuration"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Abp.Authorization.PermissionSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsGranted") - .HasColumnType("tinyint(1)"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator("Discriminator").HasValue("PermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserLinkId") - .HasColumnType("bigint"); - - b.Property("UserName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("EmailAddress"); - - b.HasIndex("UserName"); - - b.HasIndex("TenantId", "EmailAddress"); - - b.HasIndex("TenantId", "UserId"); - - b.HasIndex("TenantId", "UserName"); - - b.ToTable("AbpUserAccounts"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("LoginProvider") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("ProviderKey") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "UserId"); - - b.HasIndex("TenantId", "LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLoginAttempt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("Result") - .HasColumnType("tinyint unsigned"); - - b.Property("TenancyName") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserNameOrEmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("UserId", "TenantId"); - - b.HasIndex("TenancyName", "UserNameOrEmailAddress", "Result"); - - b.ToTable("AbpUserLoginAttempts"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserOrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("OrganizationUnitId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "OrganizationUnitId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "RoleId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ExpireDate") - .HasColumnType("datetime(6)"); - - b.Property("LoginProvider") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("Name") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsAbandoned") - .HasColumnType("tinyint(1)"); - - b.Property("JobArgs") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("JobType") - .IsRequired() - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("LastTryTime") - .HasColumnType("datetime(6)"); - - b.Property("NextTryTime") - .HasColumnType("datetime(6)"); - - b.Property("Priority") - .HasColumnType("tinyint unsigned"); - - b.Property("TryCount") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name", "UserId") - .IsUnique(); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("InputType") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ParameterName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); - - b.Property("Permission") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ParameterName", "TenantId") - .IsUnique(); - - b.ToTable("AbpDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.ToTable("AbpDynamicParameterValues"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("EntityFullName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.HasIndex("EntityFullName", "DynamicParameterId", "TenantId") - .IsUnique(); - - b.ToTable("AbpEntityDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("EntityDynamicParameterId") - .HasColumnType("int"); - - b.Property("EntityId") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("EntityDynamicParameterId"); - - b.ToTable("AbpEntityDynamicParameterValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ChangeTime") - .HasColumnType("datetime(6)"); - - b.Property("ChangeType") - .HasColumnType("tinyint unsigned"); - - b.Property("EntityChangeSetId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasColumnType("varchar(48) CHARACTER SET utf8mb4") - .HasMaxLength(48); - - b.Property("EntityTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeSetId"); - - b.HasIndex("EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("ExtensionData") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("Reason") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "CreationTime"); - - b.HasIndex("TenantId", "Reason"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpEntityChangeSets"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("EntityChangeId") - .HasColumnType("bigint"); - - b.Property("NewValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("OriginalValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("PropertyName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("PropertyTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("Icon") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsDisabled") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpLanguages"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguageText", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Key") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("LanguageName") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Source") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(67108864); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Source", "LanguageName", "Key"); - - b.ToTable("AbpLanguageTexts"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("ExcludedUserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.Property("NotificationName") - .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("Severity") - .HasColumnType("tinyint unsigned"); - - b.Property("TenantIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.Property("UserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.HasKey("Id"); - - b.ToTable("AbpNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("NotificationName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("NotificationName", "EntityTypeName", "EntityId", "UserId"); - - b.HasIndex("TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId"); - - b.ToTable("AbpNotificationSubscriptions"); - }); - - modelBuilder.Entity("Abp.Notifications.TenantNotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("NotificationName") - .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("Severity") - .HasColumnType("tinyint unsigned"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId"); - - b.ToTable("AbpTenantNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("TenantNotificationId") - .HasColumnType("char(36)"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId", "State", "CreationTime"); - - b.ToTable("AbpUserNotifications"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("Code") - .IsRequired() - .HasColumnType("varchar(95) CHARACTER SET utf8mb4") - .HasMaxLength(95); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("TenantId", "Code"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnitRole", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("OrganizationUnitId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "OrganizationUnitId"); - - b.HasIndex("TenantId", "RoleId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookName") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("AbpWebhookEvents"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("Response") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ResponseStatusCode") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookEventId") - .HasColumnType("char(36)"); - - b.Property("WebhookSubscriptionId") - .HasColumnType("char(36)"); - - b.HasKey("Id"); - - b.HasIndex("WebhookEventId"); - - b.ToTable("AbpWebhookSendAttempts"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSubscriptionInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Headers") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("Secret") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookUri") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Webhooks") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("AbpWebhookSubscriptions"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("Description") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(5000); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("IsDefault") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsStatic") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("NormalizedName") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenantId", "NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EmailAddress") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("EmailConfirmationCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsEmailConfirmed") - .HasColumnType("tinyint(1)"); - - b.Property("IsLockoutEnabled") - .HasColumnType("tinyint(1)"); - - b.Property("IsPhoneNumberConfirmed") - .HasColumnType("tinyint(1)"); - - b.Property("IsTwoFactorEnabled") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime(6)"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("Password") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("PasswordResetCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); - - b.Property("PhoneNumber") - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("SecurityStamp") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("Surname") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenantId", "NormalizedEmailAddress"); - - b.HasIndex("TenantId", "NormalizedUserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.DataDictionaries.DataDictionaryItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("Code") - .HasColumnType("varchar(5) CHARACTER SET utf8mb4") - .HasMaxLength(5); - - b.Property("DataDictionaryId") - .HasColumnType("int"); - - b.Property("Name") - .HasColumnType("varchar(30) CHARACTER SET utf8mb4") - .HasMaxLength(30); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Resource_DataDictionaryItem"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConnectionString") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EditionId") - .HasColumnType("int"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenancyName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("EditionId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenancyName"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasBaseType("Abp.Application.Features.FeatureSetting"); - - b.Property("EditionId") - .HasColumnType("int"); - - b.HasIndex("EditionId", "Name"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator().HasValue("EditionFeatureSetting"); - }); - - modelBuilder.Entity("Abp.MultiTenancy.TenantFeatureSetting", b => - { - b.HasBaseType("Abp.Application.Features.FeatureSetting"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator().HasValue("TenantFeatureSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasBaseType("Abp.Authorization.PermissionSetting"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator().HasValue("RolePermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasBaseType("Abp.Authorization.PermissionSetting"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasIndex("UserId"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator().HasValue("UserPermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany("DynamicParameterValues") - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany() - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.EntityDynamicParameter", "EntityDynamicParameter") - .WithMany() - .HasForeignKey("EntityDynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet", null) - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") - .WithMany() - .HasForeignKey("WebhookEventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200712062722_UpdateDataDictionaryItem.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200712062722_UpdateDataDictionaryItem.cs deleted file mode 100644 index 5abc8c8689b3969c5aad8dc3c18b99a0987797f7..0000000000000000000000000000000000000000 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200712062722_UpdateDataDictionaryItem.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace PearAdmin.AbpTemplate.Migrations -{ - public partial class UpdateDataDictionaryItem : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Id", - table: "Resource_DataDictionaryItem", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn) - .OldAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Id", - table: "Resource_DataDictionaryItem", - type: "bigint", - nullable: false, - oldClrType: typeof(int)) - .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn) - .OldAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn); - } - } -} diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200725022357_AddProfilePicture.Designer.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200725022357_AddProfilePicture.Designer.cs deleted file mode 100644 index d72a2f892ad377fac481fdd3c2aa0d3eb9faea9f..0000000000000000000000000000000000000000 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200725022357_AddProfilePicture.Designer.cs +++ /dev/null @@ -1,1820 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using PearAdmin.AbpTemplate.EntityFrameworkCore; - -namespace PearAdmin.AbpTemplate.Migrations -{ - [DbContext(typeof(AbpTemplateDbContext))] - [Migration("20200725022357_AddProfilePicture")] - partial class AddProfilePicture - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.4") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CustomData") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.Property("Exception") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.Property("ExecutionDuration") - .HasColumnType("int"); - - b.Property("ExecutionTime") - .HasColumnType("datetime(6)"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("MethodName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("Parameters") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); - - b.Property("ReturnValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ServiceName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionDuration"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Abp.Authorization.PermissionSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsGranted") - .HasColumnType("tinyint(1)"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator("Discriminator").HasValue("PermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserLinkId") - .HasColumnType("bigint"); - - b.Property("UserName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("EmailAddress"); - - b.HasIndex("UserName"); - - b.HasIndex("TenantId", "EmailAddress"); - - b.HasIndex("TenantId", "UserId"); - - b.HasIndex("TenantId", "UserName"); - - b.ToTable("AbpUserAccounts"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("LoginProvider") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("ProviderKey") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "UserId"); - - b.HasIndex("TenantId", "LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLoginAttempt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("Result") - .HasColumnType("tinyint unsigned"); - - b.Property("TenancyName") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserNameOrEmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("UserId", "TenantId"); - - b.HasIndex("TenancyName", "UserNameOrEmailAddress", "Result"); - - b.ToTable("AbpUserLoginAttempts"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserOrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("OrganizationUnitId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "OrganizationUnitId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "RoleId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ExpireDate") - .HasColumnType("datetime(6)"); - - b.Property("LoginProvider") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("Name") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsAbandoned") - .HasColumnType("tinyint(1)"); - - b.Property("JobArgs") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("JobType") - .IsRequired() - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("LastTryTime") - .HasColumnType("datetime(6)"); - - b.Property("NextTryTime") - .HasColumnType("datetime(6)"); - - b.Property("Priority") - .HasColumnType("tinyint unsigned"); - - b.Property("TryCount") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name", "UserId") - .IsUnique(); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("InputType") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ParameterName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); - - b.Property("Permission") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ParameterName", "TenantId") - .IsUnique(); - - b.ToTable("AbpDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.ToTable("AbpDynamicParameterValues"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("EntityFullName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.HasIndex("EntityFullName", "DynamicParameterId", "TenantId") - .IsUnique(); - - b.ToTable("AbpEntityDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("EntityDynamicParameterId") - .HasColumnType("int"); - - b.Property("EntityId") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("EntityDynamicParameterId"); - - b.ToTable("AbpEntityDynamicParameterValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ChangeTime") - .HasColumnType("datetime(6)"); - - b.Property("ChangeType") - .HasColumnType("tinyint unsigned"); - - b.Property("EntityChangeSetId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasColumnType("varchar(48) CHARACTER SET utf8mb4") - .HasMaxLength(48); - - b.Property("EntityTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeSetId"); - - b.HasIndex("EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("ExtensionData") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("Reason") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "CreationTime"); - - b.HasIndex("TenantId", "Reason"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpEntityChangeSets"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("EntityChangeId") - .HasColumnType("bigint"); - - b.Property("NewValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("OriginalValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("PropertyName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("PropertyTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("Icon") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsDisabled") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpLanguages"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguageText", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Key") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("LanguageName") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Source") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(67108864); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Source", "LanguageName", "Key"); - - b.ToTable("AbpLanguageTexts"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("ExcludedUserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.Property("NotificationName") - .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("Severity") - .HasColumnType("tinyint unsigned"); - - b.Property("TenantIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.Property("UserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.HasKey("Id"); - - b.ToTable("AbpNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("NotificationName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("NotificationName", "EntityTypeName", "EntityId", "UserId"); - - b.HasIndex("TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId"); - - b.ToTable("AbpNotificationSubscriptions"); - }); - - modelBuilder.Entity("Abp.Notifications.TenantNotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("NotificationName") - .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("Severity") - .HasColumnType("tinyint unsigned"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId"); - - b.ToTable("AbpTenantNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("TenantNotificationId") - .HasColumnType("char(36)"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId", "State", "CreationTime"); - - b.ToTable("AbpUserNotifications"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("Code") - .IsRequired() - .HasColumnType("varchar(95) CHARACTER SET utf8mb4") - .HasMaxLength(95); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("TenantId", "Code"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnitRole", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("OrganizationUnitId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "OrganizationUnitId"); - - b.HasIndex("TenantId", "RoleId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookName") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("AbpWebhookEvents"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("Response") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ResponseStatusCode") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookEventId") - .HasColumnType("char(36)"); - - b.Property("WebhookSubscriptionId") - .HasColumnType("char(36)"); - - b.HasKey("Id"); - - b.HasIndex("WebhookEventId"); - - b.ToTable("AbpWebhookSendAttempts"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSubscriptionInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Headers") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("Secret") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookUri") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Webhooks") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("AbpWebhookSubscriptions"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("Description") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(5000); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("IsDefault") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsStatic") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("NormalizedName") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenantId", "NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EmailAddress") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("EmailConfirmationCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsEmailConfirmed") - .HasColumnType("tinyint(1)"); - - b.Property("IsLockoutEnabled") - .HasColumnType("tinyint(1)"); - - b.Property("IsPhoneNumberConfirmed") - .HasColumnType("tinyint(1)"); - - b.Property("IsTwoFactorEnabled") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime(6)"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("Password") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("PasswordResetCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); - - b.Property("PhoneNumber") - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("ProfilePictureId") - .HasColumnType("char(36)"); - - b.Property("SecurityStamp") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("Surname") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenantId", "NormalizedEmailAddress"); - - b.HasIndex("TenantId", "NormalizedUserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.DataDictionaries.DataDictionaryItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("Code") - .HasColumnType("varchar(5) CHARACTER SET utf8mb4") - .HasMaxLength(5); - - b.Property("DataDictionaryId") - .HasColumnType("int"); - - b.Property("Name") - .HasColumnType("varchar(30) CHARACTER SET utf8mb4") - .HasMaxLength(30); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Resource_DataDictionaryItem"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConnectionString") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EditionId") - .HasColumnType("int"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenancyName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("EditionId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenancyName"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasBaseType("Abp.Application.Features.FeatureSetting"); - - b.Property("EditionId") - .HasColumnType("int"); - - b.HasIndex("EditionId", "Name"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator().HasValue("EditionFeatureSetting"); - }); - - modelBuilder.Entity("Abp.MultiTenancy.TenantFeatureSetting", b => - { - b.HasBaseType("Abp.Application.Features.FeatureSetting"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator().HasValue("TenantFeatureSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasBaseType("Abp.Authorization.PermissionSetting"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator().HasValue("RolePermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasBaseType("Abp.Authorization.PermissionSetting"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasIndex("UserId"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator().HasValue("UserPermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany("DynamicParameterValues") - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany() - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.EntityDynamicParameter", "EntityDynamicParameter") - .WithMany() - .HasForeignKey("EntityDynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet", null) - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") - .WithMany() - .HasForeignKey("WebhookEventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200725022357_AddProfilePicture.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200725022357_AddProfilePicture.cs deleted file mode 100644 index 6fb12402983626d8173f077830fd4d3fb45d6fa5..0000000000000000000000000000000000000000 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200725022357_AddProfilePicture.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace PearAdmin.AbpTemplate.Migrations -{ - public partial class AddProfilePicture : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ProfilePictureId", - table: "AbpUsers", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ProfilePictureId", - table: "AbpUsers"); - } - } -} diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200725023609_AddBinaryObject.Designer.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200725023609_AddBinaryObject.Designer.cs deleted file mode 100644 index e77a18dc030d6e11456617ef42cfefa581dd972e..0000000000000000000000000000000000000000 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200725023609_AddBinaryObject.Designer.cs +++ /dev/null @@ -1,1838 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using PearAdmin.AbpTemplate.EntityFrameworkCore; - -namespace PearAdmin.AbpTemplate.Migrations -{ - [DbContext(typeof(AbpTemplateDbContext))] - [Migration("20200725023609_AddBinaryObject")] - partial class AddBinaryObject - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.4") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CustomData") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.Property("Exception") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.Property("ExecutionDuration") - .HasColumnType("int"); - - b.Property("ExecutionTime") - .HasColumnType("datetime(6)"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("MethodName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("Parameters") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); - - b.Property("ReturnValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ServiceName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionDuration"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Abp.Authorization.PermissionSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsGranted") - .HasColumnType("tinyint(1)"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator("Discriminator").HasValue("PermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserLinkId") - .HasColumnType("bigint"); - - b.Property("UserName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("EmailAddress"); - - b.HasIndex("UserName"); - - b.HasIndex("TenantId", "EmailAddress"); - - b.HasIndex("TenantId", "UserId"); - - b.HasIndex("TenantId", "UserName"); - - b.ToTable("AbpUserAccounts"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("LoginProvider") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("ProviderKey") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "UserId"); - - b.HasIndex("TenantId", "LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLoginAttempt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("Result") - .HasColumnType("tinyint unsigned"); - - b.Property("TenancyName") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserNameOrEmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("UserId", "TenantId"); - - b.HasIndex("TenancyName", "UserNameOrEmailAddress", "Result"); - - b.ToTable("AbpUserLoginAttempts"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserOrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("OrganizationUnitId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "OrganizationUnitId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "RoleId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ExpireDate") - .HasColumnType("datetime(6)"); - - b.Property("LoginProvider") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("Name") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsAbandoned") - .HasColumnType("tinyint(1)"); - - b.Property("JobArgs") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("JobType") - .IsRequired() - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("LastTryTime") - .HasColumnType("datetime(6)"); - - b.Property("NextTryTime") - .HasColumnType("datetime(6)"); - - b.Property("Priority") - .HasColumnType("tinyint unsigned"); - - b.Property("TryCount") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name", "UserId") - .IsUnique(); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("InputType") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ParameterName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); - - b.Property("Permission") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ParameterName", "TenantId") - .IsUnique(); - - b.ToTable("AbpDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.ToTable("AbpDynamicParameterValues"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("EntityFullName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.HasIndex("EntityFullName", "DynamicParameterId", "TenantId") - .IsUnique(); - - b.ToTable("AbpEntityDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("EntityDynamicParameterId") - .HasColumnType("int"); - - b.Property("EntityId") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("EntityDynamicParameterId"); - - b.ToTable("AbpEntityDynamicParameterValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ChangeTime") - .HasColumnType("datetime(6)"); - - b.Property("ChangeType") - .HasColumnType("tinyint unsigned"); - - b.Property("EntityChangeSetId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasColumnType("varchar(48) CHARACTER SET utf8mb4") - .HasMaxLength(48); - - b.Property("EntityTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeSetId"); - - b.HasIndex("EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("ExtensionData") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("Reason") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "CreationTime"); - - b.HasIndex("TenantId", "Reason"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpEntityChangeSets"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("EntityChangeId") - .HasColumnType("bigint"); - - b.Property("NewValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("OriginalValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("PropertyName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("PropertyTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("Icon") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsDisabled") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpLanguages"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguageText", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Key") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("LanguageName") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Source") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(67108864); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Source", "LanguageName", "Key"); - - b.ToTable("AbpLanguageTexts"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("ExcludedUserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.Property("NotificationName") - .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("Severity") - .HasColumnType("tinyint unsigned"); - - b.Property("TenantIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.Property("UserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.HasKey("Id"); - - b.ToTable("AbpNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("NotificationName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("NotificationName", "EntityTypeName", "EntityId", "UserId"); - - b.HasIndex("TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId"); - - b.ToTable("AbpNotificationSubscriptions"); - }); - - modelBuilder.Entity("Abp.Notifications.TenantNotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("NotificationName") - .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("Severity") - .HasColumnType("tinyint unsigned"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId"); - - b.ToTable("AbpTenantNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("TenantNotificationId") - .HasColumnType("char(36)"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId", "State", "CreationTime"); - - b.ToTable("AbpUserNotifications"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("Code") - .IsRequired() - .HasColumnType("varchar(95) CHARACTER SET utf8mb4") - .HasMaxLength(95); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("TenantId", "Code"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnitRole", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("OrganizationUnitId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "OrganizationUnitId"); - - b.HasIndex("TenantId", "RoleId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookName") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("AbpWebhookEvents"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("Response") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ResponseStatusCode") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookEventId") - .HasColumnType("char(36)"); - - b.Property("WebhookSubscriptionId") - .HasColumnType("char(36)"); - - b.HasKey("Id"); - - b.HasIndex("WebhookEventId"); - - b.ToTable("AbpWebhookSendAttempts"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSubscriptionInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Headers") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("Secret") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookUri") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Webhooks") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("AbpWebhookSubscriptions"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("Description") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(5000); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("IsDefault") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsStatic") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("NormalizedName") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenantId", "NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EmailAddress") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("EmailConfirmationCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsEmailConfirmed") - .HasColumnType("tinyint(1)"); - - b.Property("IsLockoutEnabled") - .HasColumnType("tinyint(1)"); - - b.Property("IsPhoneNumberConfirmed") - .HasColumnType("tinyint(1)"); - - b.Property("IsTwoFactorEnabled") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime(6)"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("Password") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("PasswordResetCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); - - b.Property("PhoneNumber") - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("ProfilePictureId") - .HasColumnType("char(36)"); - - b.Property("SecurityStamp") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("Surname") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenantId", "NormalizedEmailAddress"); - - b.HasIndex("TenantId", "NormalizedUserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.DataDictionaries.DataDictionaryItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("Code") - .HasColumnType("varchar(5) CHARACTER SET utf8mb4") - .HasMaxLength(5); - - b.Property("DataDictionaryId") - .HasColumnType("int"); - - b.Property("Name") - .HasColumnType("varchar(30) CHARACTER SET utf8mb4") - .HasMaxLength(30); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Resource_DataDictionaryItem"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConnectionString") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EditionId") - .HasColumnType("int"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenancyName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("EditionId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenancyName"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Storage.BinaryObject", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("Bytes") - .IsRequired() - .HasColumnType("longblob"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AppBinaryObjects"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasBaseType("Abp.Application.Features.FeatureSetting"); - - b.Property("EditionId") - .HasColumnType("int"); - - b.HasIndex("EditionId", "Name"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator().HasValue("EditionFeatureSetting"); - }); - - modelBuilder.Entity("Abp.MultiTenancy.TenantFeatureSetting", b => - { - b.HasBaseType("Abp.Application.Features.FeatureSetting"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator().HasValue("TenantFeatureSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasBaseType("Abp.Authorization.PermissionSetting"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator().HasValue("RolePermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasBaseType("Abp.Authorization.PermissionSetting"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasIndex("UserId"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator().HasValue("UserPermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany("DynamicParameterValues") - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany() - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.EntityDynamicParameter", "EntityDynamicParameter") - .WithMany() - .HasForeignKey("EntityDynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet", null) - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") - .WithMany() - .HasForeignKey("WebhookEventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200725023609_AddBinaryObject.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200725023609_AddBinaryObject.cs deleted file mode 100644 index 90e922b3bead7207ec13cab1be32c179a9b7468e..0000000000000000000000000000000000000000 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200725023609_AddBinaryObject.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace PearAdmin.AbpTemplate.Migrations -{ - public partial class AddBinaryObject : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "AppBinaryObjects", - columns: table => new - { - Id = table.Column(nullable: false), - TenantId = table.Column(nullable: true), - Bytes = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AppBinaryObjects", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "AppBinaryObjects"); - } - } -} diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200728130341_AddChatEntity.Designer.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200728130341_AddChatEntity.Designer.cs deleted file mode 100644 index 66df4001be82b0a1135b3bdd7ba66e7c5fc45f54..0000000000000000000000000000000000000000 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200728130341_AddChatEntity.Designer.cs +++ /dev/null @@ -1,1921 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using PearAdmin.AbpTemplate.EntityFrameworkCore; - -namespace PearAdmin.AbpTemplate.Migrations -{ - [DbContext(typeof(AbpTemplateDbContext))] - [Migration("20200728130341_AddChatEntity")] - partial class AddChatEntity - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.4") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CustomData") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.Property("Exception") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); - - b.Property("ExecutionDuration") - .HasColumnType("int"); - - b.Property("ExecutionTime") - .HasColumnType("datetime(6)"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("MethodName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("Parameters") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); - - b.Property("ReturnValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ServiceName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionDuration"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Abp.Authorization.PermissionSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Discriminator") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsGranted") - .HasColumnType("tinyint(1)"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator("Discriminator").HasValue("PermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserLinkId") - .HasColumnType("bigint"); - - b.Property("UserName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("EmailAddress"); - - b.HasIndex("UserName"); - - b.HasIndex("TenantId", "EmailAddress"); - - b.HasIndex("TenantId", "UserId"); - - b.HasIndex("TenantId", "UserName"); - - b.ToTable("AbpUserAccounts"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("LoginProvider") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("ProviderKey") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "UserId"); - - b.HasIndex("TenantId", "LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLoginAttempt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("Result") - .HasColumnType("tinyint unsigned"); - - b.Property("TenancyName") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("UserNameOrEmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("UserId", "TenantId"); - - b.HasIndex("TenancyName", "UserNameOrEmailAddress", "Result"); - - b.ToTable("AbpUserLoginAttempts"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserOrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("OrganizationUnitId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "OrganizationUnitId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "RoleId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ExpireDate") - .HasColumnType("datetime(6)"); - - b.Property("LoginProvider") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("Name") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Abp.BackgroundJobs.BackgroundJobInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsAbandoned") - .HasColumnType("tinyint(1)"); - - b.Property("JobArgs") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("JobType") - .IsRequired() - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("LastTryTime") - .HasColumnType("datetime(6)"); - - b.Property("NextTryTime") - .HasColumnType("datetime(6)"); - - b.Property("Priority") - .HasColumnType("tinyint unsigned"); - - b.Property("TryCount") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.Property("Value") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name", "UserId") - .IsUnique(); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("InputType") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ParameterName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); - - b.Property("Permission") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ParameterName", "TenantId") - .IsUnique(); - - b.ToTable("AbpDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.ToTable("AbpDynamicParameterValues"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("DynamicParameterId") - .HasColumnType("int"); - - b.Property("EntityFullName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("DynamicParameterId"); - - b.HasIndex("EntityFullName", "DynamicParameterId", "TenantId") - .IsUnique(); - - b.ToTable("AbpEntityDynamicParameters"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("EntityDynamicParameterId") - .HasColumnType("int"); - - b.Property("EntityId") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.HasIndex("EntityDynamicParameterId"); - - b.ToTable("AbpEntityDynamicParameterValues"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("ChangeTime") - .HasColumnType("datetime(6)"); - - b.Property("ChangeType") - .HasColumnType("tinyint unsigned"); - - b.Property("EntityChangeSetId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasColumnType("varchar(48) CHARACTER SET utf8mb4") - .HasMaxLength(48); - - b.Property("EntityTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeSetId"); - - b.HasIndex("EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("ExtensionData") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("int"); - - b.Property("ImpersonatorUserId") - .HasColumnType("bigint"); - - b.Property("Reason") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "CreationTime"); - - b.HasIndex("TenantId", "Reason"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpEntityChangeSets"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("EntityChangeId") - .HasColumnType("bigint"); - - b.Property("NewValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("OriginalValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("PropertyName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("PropertyTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("Icon") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsDisabled") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpLanguages"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguageText", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Key") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("LanguageName") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Source") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("Value") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(67108864); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Source", "LanguageName", "Key"); - - b.ToTable("AbpLanguageTexts"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("ExcludedUserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.Property("NotificationName") - .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("Severity") - .HasColumnType("tinyint unsigned"); - - b.Property("TenantIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.Property("UserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); - - b.HasKey("Id"); - - b.ToTable("AbpNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("NotificationName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("NotificationName", "EntityTypeName", "EntityId", "UserId"); - - b.HasIndex("TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId"); - - b.ToTable("AbpNotificationSubscriptions"); - }); - - modelBuilder.Entity("Abp.Notifications.TenantNotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); - - b.Property("NotificationName") - .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); - - b.Property("Severity") - .HasColumnType("tinyint unsigned"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId"); - - b.ToTable("AbpTenantNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("TenantNotificationId") - .HasColumnType("char(36)"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("UserId", "State", "CreationTime"); - - b.ToTable("AbpUserNotifications"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("Code") - .IsRequired() - .HasColumnType("varchar(95) CHARACTER SET utf8mb4") - .HasMaxLength(95); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("TenantId", "Code"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnitRole", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("OrganizationUnitId") - .HasColumnType("bigint"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "OrganizationUnitId"); - - b.HasIndex("TenantId", "RoleId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookName") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("AbpWebhookEvents"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("Response") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ResponseStatusCode") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookEventId") - .HasColumnType("char(36)"); - - b.Property("WebhookSubscriptionId") - .HasColumnType("char(36)"); - - b.HasKey("Id"); - - b.HasIndex("WebhookEventId"); - - b.ToTable("AbpWebhookSendAttempts"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSubscriptionInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("Headers") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("Secret") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("WebhookUri") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Webhooks") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("AbpWebhookSubscriptions"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("Description") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(5000); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("IsDefault") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsStatic") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("NormalizedName") - .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenantId", "NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("AuthenticationSource") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EmailAddress") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("EmailConfirmationCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("IsEmailConfirmed") - .HasColumnType("tinyint(1)"); - - b.Property("IsLockoutEnabled") - .HasColumnType("tinyint(1)"); - - b.Property("IsPhoneNumberConfirmed") - .HasColumnType("tinyint(1)"); - - b.Property("IsTwoFactorEnabled") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("LockoutEndDateUtc") - .HasColumnType("datetime(6)"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("Password") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("PasswordResetCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); - - b.Property("PhoneNumber") - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); - - b.Property("ProfilePictureId") - .HasColumnType("char(36)"); - - b.Property("SecurityStamp") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("Surname") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenantId", "NormalizedEmailAddress"); - - b.HasIndex("TenantId", "NormalizedUserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Chat.ChatMessage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("Message") - .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(4096); - - b.Property("ReadState") - .HasColumnType("int"); - - b.Property("ReceiverReadState") - .HasColumnType("int"); - - b.Property("SharedMessageId") - .HasColumnType("char(36)"); - - b.Property("Side") - .HasColumnType("int"); - - b.Property("TargetTenantId") - .HasColumnType("int"); - - b.Property("TargetUserId") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.ToTable("AppChatMessages"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.DataDictionaries.DataDictionaryItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("Code") - .HasColumnType("varchar(5) CHARACTER SET utf8mb4") - .HasMaxLength(5); - - b.Property("DataDictionaryId") - .HasColumnType("int"); - - b.Property("Name") - .HasColumnType("varchar(30) CHARACTER SET utf8mb4") - .HasMaxLength(30); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Resource_DataDictionaryItem"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Friendships.Friendship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("FriendProfilePictureId") - .HasColumnType("char(36)"); - - b.Property("FriendTenancyName") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("FriendTenantId") - .HasColumnType("int"); - - b.Property("FriendUserId") - .HasColumnType("bigint"); - - b.Property("FriendUserName") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.ToTable("AppFriendships"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConnectionString") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); - - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("EditionId") - .HasColumnType("int"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenancyName") - .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("EditionId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenancyName"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Storage.BinaryObject", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("Bytes") - .IsRequired() - .HasColumnType("longblob"); - - b.Property("TenantId") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AppBinaryObjects"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasBaseType("Abp.Application.Features.FeatureSetting"); - - b.Property("EditionId") - .HasColumnType("int"); - - b.HasIndex("EditionId", "Name"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator().HasValue("EditionFeatureSetting"); - }); - - modelBuilder.Entity("Abp.MultiTenancy.TenantFeatureSetting", b => - { - b.HasBaseType("Abp.Application.Features.FeatureSetting"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator().HasValue("TenantFeatureSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasBaseType("Abp.Authorization.PermissionSetting"); - - b.Property("RoleId") - .HasColumnType("int"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator().HasValue("RolePermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasBaseType("Abp.Authorization.PermissionSetting"); - - b.Property("UserId") - .HasColumnType("bigint"); - - b.HasIndex("UserId"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator().HasValue("UserPermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Roles.Role", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany("DynamicParameterValues") - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => - { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany() - .HasForeignKey("DynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => - { - b.HasOne("Abp.DynamicEntityParameters.EntityDynamicParameter", "EntityDynamicParameter") - .WithMany() - .HasForeignKey("EntityDynamicParameterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet", null) - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => - { - b.HasOne("Abp.Webhooks.WebhookEvent", "WebhookEvent") - .WithMany() - .HasForeignKey("WebhookEventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => - { - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Roles.Role", null) - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", null) - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200728130341_AddChatEntity.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200728130341_AddChatEntity.cs deleted file mode 100644 index 99da021cabcf93d7e54caf502bf0b6085909d803..0000000000000000000000000000000000000000 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200728130341_AddChatEntity.cs +++ /dev/null @@ -1,64 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace PearAdmin.AbpTemplate.Migrations -{ - public partial class AddChatEntity : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "AppChatMessages", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - UserId = table.Column(nullable: false), - TenantId = table.Column(nullable: true), - TargetUserId = table.Column(nullable: false), - TargetTenantId = table.Column(nullable: true), - Message = table.Column(maxLength: 4096, nullable: false), - CreationTime = table.Column(nullable: false), - Side = table.Column(nullable: false), - ReadState = table.Column(nullable: false), - ReceiverReadState = table.Column(nullable: false), - SharedMessageId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AppChatMessages", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AppFriendships", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - UserId = table.Column(nullable: false), - TenantId = table.Column(nullable: true), - FriendUserId = table.Column(nullable: false), - FriendTenantId = table.Column(nullable: true), - FriendUserName = table.Column(maxLength: 256, nullable: false), - FriendTenancyName = table.Column(nullable: true), - FriendProfilePictureId = table.Column(nullable: true), - State = table.Column(nullable: false), - CreationTime = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AppFriendships", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "AppChatMessages"); - - migrationBuilder.DropTable( - name: "AppFriendships"); - } - } -} diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200926143604_AddDailyTask.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200926143604_AddDailyTask.cs deleted file mode 100644 index a77c1232ff20bb88646e0e46879da925850767b4..0000000000000000000000000000000000000000 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200926143604_AddDailyTask.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace PearAdmin.AbpTemplate.Migrations -{ - public partial class AddDailyTask : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Center_DailyTask", - columns: table => new - { - Id = table.Column(nullable: false), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), - DeleterUserId = table.Column(nullable: true), - DeletionTime = table.Column(nullable: true), - Name = table.Column(maxLength: 200, nullable: true), - Remark = table.Column(maxLength: 1000, nullable: true), - StartTime = table.Column(type: "datetime(6)", nullable: true), - EndTime = table.Column(type: "datetime(6)", nullable: true), - TaskStateType = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Center_DailyTask", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Center_DailyTask"); - } - } -} diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200926143604_AddDailyTask.Designer.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20210616145046_InitDatabase.Designer.cs similarity index 77% rename from src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200926143604_AddDailyTask.Designer.cs rename to src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20210616145046_InitDatabase.Designer.cs index 33f9f97771397e115d6fc2a37a1633d871040360..e0709c4c69e50448c3e3ac04681ffbfb635f1636 100644 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200926143604_AddDailyTask.Designer.cs +++ b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20210616145046_InitDatabase.Designer.cs @@ -6,18 +6,18 @@ using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using PearAdmin.AbpTemplate.EntityFrameworkCore; -namespace PearAdmin.AbpTemplate.Migrations +namespace PearAdmin.AbpTemplate.EntityFrameworkCore.Migrations { [DbContext(typeof(AbpTemplateDbContext))] - [Migration("20200926143604_AddDailyTask")] - partial class AddDailyTask + [Migration("20210616145046_InitDatabase")] + partial class InitDatabase { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("ProductVersion", "3.1.4") - .HasAnnotation("Relational:MaxIdentifierLength", 64); + .HasAnnotation("Relational:MaxIdentifierLength", 64) + .HasAnnotation("ProductVersion", "5.0.7"); modelBuilder.Entity("Abp.Application.Editions.Edition", b => { @@ -39,8 +39,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("DisplayName") .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("IsDeleted") .HasColumnType("tinyint(1)"); @@ -53,8 +53,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Name") .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); + .HasMaxLength(32) + .HasColumnType("varchar(32)"); b.HasKey("Id"); @@ -75,20 +75,20 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Discriminator") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("Name") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("TenantId") .HasColumnType("int"); b.Property("Value") .IsRequired() - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); + .HasMaxLength(2000) + .HasColumnType("varchar(2000)"); b.HasKey("Id"); @@ -104,24 +104,28 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("CustomData") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); + .HasMaxLength(2000) + .HasColumnType("varchar(2000)"); b.Property("Exception") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); + .HasMaxLength(2000) + .HasColumnType("varchar(2000)"); + + b.Property("ExceptionMessage") + .HasMaxLength(1024) + .HasColumnType("varchar(1024)"); b.Property("ExecutionDuration") .HasColumnType("int"); @@ -136,19 +140,19 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("MethodName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("Parameters") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); + .HasMaxLength(1024) + .HasColumnType("varchar(1024)"); b.Property("ReturnValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("ServiceName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("TenantId") .HasColumnType("int"); @@ -181,15 +185,15 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Discriminator") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("IsGranted") .HasColumnType("tinyint(1)"); b.Property("Name") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("TenantId") .HasColumnType("int"); @@ -210,11 +214,11 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("CreationTime") .HasColumnType("datetime(6)"); @@ -256,8 +260,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("datetime(6)"); b.Property("EmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("IsDeleted") .HasColumnType("tinyint(1)"); @@ -278,8 +282,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("UserName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.HasKey("Id"); @@ -303,11 +307,11 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("CreationTime") .HasColumnType("datetime(6)"); @@ -338,13 +342,13 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("LoginProvider") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("ProviderKey") .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("TenantId") .HasColumnType("int"); @@ -370,16 +374,16 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("CreationTime") .HasColumnType("datetime(6)"); @@ -388,8 +392,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("tinyint unsigned"); b.Property("TenancyName") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("TenantId") .HasColumnType("int"); @@ -398,8 +402,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("UserNameOrEmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.HasKey("Id"); @@ -485,12 +489,12 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("datetime(6)"); b.Property("LoginProvider") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("Name") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("TenantId") .HasColumnType("int"); @@ -499,8 +503,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("Value") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.HasKey("Id"); @@ -528,13 +532,13 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("JobArgs") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); + .HasMaxLength(1048576) + .HasColumnType("longtext"); b.Property("JobType") .IsRequired() - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("LastTryTime") .HasColumnType("datetime(6)"); @@ -575,8 +579,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Name") .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("TenantId") .HasColumnType("int"); @@ -585,7 +589,7 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("Value") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.HasKey("Id"); @@ -597,104 +601,109 @@ namespace PearAdmin.AbpTemplate.Migrations b.ToTable("AbpSettings"); }); - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameter", b => + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityProperty", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); - b.Property("InputType") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ParameterName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); + b.Property("DynamicPropertyId") + .HasColumnType("int"); - b.Property("Permission") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + b.Property("EntityFullName") + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("TenantId") .HasColumnType("int"); b.HasKey("Id"); - b.HasIndex("ParameterName", "TenantId") + b.HasIndex("DynamicPropertyId"); + + b.HasIndex("EntityFullName", "DynamicPropertyId", "TenantId") .IsUnique(); - b.ToTable("AbpDynamicParameters"); + b.ToTable("AbpDynamicEntityProperties"); }); - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); + .HasColumnType("bigint"); - b.Property("DynamicParameterId") + b.Property("DynamicEntityPropertyId") .HasColumnType("int"); + b.Property("EntityId") + .HasColumnType("longtext"); + b.Property("TenantId") .HasColumnType("int"); b.Property("Value") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.HasKey("Id"); - b.HasIndex("DynamicParameterId"); + b.HasIndex("DynamicEntityPropertyId"); - b.ToTable("AbpDynamicParameterValues"); + b.ToTable("AbpDynamicEntityPropertyValues"); }); - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); - b.Property("DynamicParameterId") - .HasColumnType("int"); + b.Property("DisplayName") + .HasColumnType("longtext"); - b.Property("EntityFullName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); + b.Property("InputType") + .HasColumnType("longtext"); + + b.Property("Permission") + .HasColumnType("longtext"); + + b.Property("PropertyName") + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("TenantId") .HasColumnType("int"); b.HasKey("Id"); - b.HasIndex("DynamicParameterId"); - - b.HasIndex("EntityFullName", "DynamicParameterId", "TenantId") + b.HasIndex("PropertyName", "TenantId") .IsUnique(); - b.ToTable("AbpEntityDynamicParameters"); + b.ToTable("AbpDynamicProperties"); }); - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); + .HasColumnType("bigint"); - b.Property("EntityDynamicParameterId") + b.Property("DynamicPropertyId") .HasColumnType("int"); - b.Property("EntityId") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("TenantId") .HasColumnType("int"); b.Property("Value") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.HasKey("Id"); - b.HasIndex("EntityDynamicParameterId"); + b.HasIndex("DynamicPropertyId"); - b.ToTable("AbpEntityDynamicParameterValues"); + b.ToTable("AbpDynamicPropertyValues"); }); modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => @@ -713,12 +722,12 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("EntityId") - .HasColumnType("varchar(48) CHARACTER SET utf8mb4") - .HasMaxLength(48); + .HasMaxLength(48) + .HasColumnType("varchar(48)"); b.Property("EntityTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); + .HasMaxLength(192) + .HasColumnType("varchar(192)"); b.Property("TenantId") .HasColumnType("int"); @@ -739,22 +748,22 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("CreationTime") .HasColumnType("datetime(6)"); b.Property("ExtensionData") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("ImpersonatorTenantId") .HasColumnType("int"); @@ -763,8 +772,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("Reason") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("TenantId") .HasColumnType("int"); @@ -793,20 +802,26 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("NewValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); + + b.Property("NewValueHash") + .HasColumnType("longtext"); b.Property("OriginalValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); + + b.Property("OriginalValueHash") + .HasColumnType("longtext"); b.Property("PropertyName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); + .HasMaxLength(96) + .HasColumnType("varchar(96)"); b.Property("PropertyTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); + .HasMaxLength(192) + .HasColumnType("varchar(192)"); b.Property("TenantId") .HasColumnType("int"); @@ -838,12 +853,12 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("DisplayName") .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("Icon") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("IsDeleted") .HasColumnType("tinyint(1)"); @@ -859,8 +874,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Name") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("TenantId") .HasColumnType("int"); @@ -886,13 +901,13 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Key") .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("LanguageName") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("LastModificationTime") .HasColumnType("datetime(6)"); @@ -902,16 +917,16 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Source") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("TenantId") .HasColumnType("int"); b.Property("Value") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(67108864); + .HasMaxLength(67108864) + .HasColumnType("longtext"); b.HasKey("Id"); @@ -933,44 +948,44 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); + .HasMaxLength(1048576) + .HasColumnType("longtext"); b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); + .HasMaxLength(96) + .HasColumnType("varchar(96)"); b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); + .HasMaxLength(250) + .HasColumnType("varchar(250)"); b.Property("ExcludedUserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); + .HasMaxLength(131072) + .HasColumnType("longtext"); b.Property("NotificationName") .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); + .HasMaxLength(96) + .HasColumnType("varchar(96)"); b.Property("Severity") .HasColumnType("tinyint unsigned"); b.Property("TenantIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); + .HasMaxLength(131072) + .HasColumnType("longtext"); b.Property("UserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); + .HasMaxLength(131072) + .HasColumnType("longtext"); b.HasKey("Id"); @@ -990,20 +1005,20 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); + .HasMaxLength(96) + .HasColumnType("varchar(96)"); b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); + .HasMaxLength(250) + .HasColumnType("varchar(250)"); b.Property("NotificationName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); + .HasMaxLength(96) + .HasColumnType("varchar(96)"); b.Property("TenantId") .HasColumnType("int"); @@ -1033,29 +1048,29 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); + .HasMaxLength(1048576) + .HasColumnType("longtext"); b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); + .HasMaxLength(96) + .HasColumnType("varchar(96)"); b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); + .HasMaxLength(250) + .HasColumnType("varchar(250)"); b.Property("NotificationName") .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); + .HasMaxLength(96) + .HasColumnType("varchar(96)"); b.Property("Severity") .HasColumnType("tinyint unsigned"); @@ -1106,8 +1121,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Code") .IsRequired() - .HasColumnType("varchar(95) CHARACTER SET utf8mb4") - .HasMaxLength(95); + .HasMaxLength(95) + .HasColumnType("varchar(95)"); b.Property("CreationTime") .HasColumnType("datetime(6)"); @@ -1123,8 +1138,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("DisplayName") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("IsDeleted") .HasColumnType("tinyint(1)"); @@ -1193,7 +1208,7 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("datetime(6)"); b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("DeletionTime") .HasColumnType("datetime(6)"); @@ -1206,7 +1221,7 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("WebhookName") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.HasKey("Id"); @@ -1226,7 +1241,7 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("datetime(6)"); b.Property("Response") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("ResponseStatusCode") .HasColumnType("int"); @@ -1260,24 +1275,24 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("Headers") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("IsActive") .HasColumnType("tinyint(1)"); b.Property("Secret") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("TenantId") .HasColumnType("int"); b.Property("WebhookUri") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("Webhooks") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.HasKey("Id"); @@ -1292,8 +1307,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("ConcurrencyStamp") .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("CreationTime") .HasColumnType("datetime(6)"); @@ -1308,13 +1323,13 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("datetime(6)"); b.Property("Description") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(5000); + .HasMaxLength(5000) + .HasColumnType("varchar(5000)"); b.Property("DisplayName") .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("IsDefault") .HasColumnType("tinyint(1)"); @@ -1333,13 +1348,13 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Name") .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); + .HasMaxLength(32) + .HasColumnType("varchar(32)"); b.Property("NormalizedName") .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); + .HasMaxLength(32) + .HasColumnType("varchar(32)"); b.Property("TenantId") .HasColumnType("int"); @@ -1367,13 +1382,13 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("int"); b.Property("AuthenticationSource") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("CreationTime") .HasColumnType("datetime(6)"); @@ -1389,12 +1404,12 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("EmailAddress") .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("EmailConfirmationCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); + .HasMaxLength(328) + .HasColumnType("varchar(328)"); b.Property("IsActive") .HasColumnType("tinyint(1)"); @@ -1425,51 +1440,51 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Name") .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("NormalizedEmailAddress") .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("NormalizedUserName") .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("Password") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("PasswordResetCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); + .HasMaxLength(328) + .HasColumnType("varchar(328)"); b.Property("PhoneNumber") - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); + .HasMaxLength(32) + .HasColumnType("varchar(32)"); b.Property("ProfilePictureId") .HasColumnType("char(36)"); b.Property("SecurityStamp") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("Surname") .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("TenantId") .HasColumnType("int"); b.Property("UserName") .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.HasKey("Id"); @@ -1486,65 +1501,102 @@ namespace PearAdmin.AbpTemplate.Migrations b.ToTable("AbpUsers"); }); - modelBuilder.Entity("PearAdmin.AbpTemplate.Chat.ChatMessage", b => + modelBuilder.Entity("PearAdmin.AbpTemplate.BinaryObjects.BinaryObject", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); + .HasColumnType("char(36)"); - b.Property("Message") + b.Property("Bytes") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(4096); + .HasColumnType("longblob"); - b.Property("ReadState") + b.Property("TenantId") .HasColumnType("int"); - b.Property("ReceiverReadState") - .HasColumnType("int"); + b.HasKey("Id"); - b.Property("SharedMessageId") - .HasColumnType("char(36)"); + b.ToTable("AppBinaryObjects"); + }); - b.Property("Side") + modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() .HasColumnType("int"); - b.Property("TargetTenantId") - .HasColumnType("int"); + b.Property("ConnectionString") + .HasMaxLength(1024) + .HasColumnType("varchar(1024)"); - b.Property("TargetUserId") + b.Property("CreationTime") + .HasColumnType("datetime(6)"); + + b.Property("CreatorUserId") .HasColumnType("bigint"); - b.Property("TenantId") + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)"); + + b.Property("EditionId") .HasColumnType("int"); - b.Property("UserId") + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsDeleted") + .HasColumnType("tinyint(1)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)"); + + b.Property("LastModifierUserId") .HasColumnType("bigint"); + b.Property("Name") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("TenancyName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + b.HasKey("Id"); - b.ToTable("AppChatMessages"); + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("EditionId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenancyName"); + + b.ToTable("AbpTenants"); }); - modelBuilder.Entity("PearAdmin.AbpTemplate.DataDictionaries.DataDictionaryItem", b => + modelBuilder.Entity("PearAdmin.AbpTemplate.Resource.DataDictionaries.DataDictionaryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("Code") - .HasColumnType("varchar(5) CHARACTER SET utf8mb4") - .HasMaxLength(5); + .HasMaxLength(5) + .HasColumnType("varchar(5)"); b.Property("DataDictionaryId") .HasColumnType("int"); b.Property("Name") - .HasColumnType("varchar(30) CHARACTER SET utf8mb4") - .HasMaxLength(30); + .HasMaxLength(30) + .HasColumnType("varchar(30)"); b.Property("TenantId") .HasColumnType("int"); @@ -1554,7 +1606,7 @@ namespace PearAdmin.AbpTemplate.Migrations b.ToTable("Resource_DataDictionaryItem"); }); - modelBuilder.Entity("PearAdmin.AbpTemplate.Friendships.Friendship", b => + modelBuilder.Entity("PearAdmin.AbpTemplate.Social.Chat.ChatMessage", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1563,26 +1615,29 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("CreationTime") .HasColumnType("datetime(6)"); - b.Property("FriendProfilePictureId") - .HasColumnType("char(36)"); + b.Property("Message") + .IsRequired() + .HasMaxLength(4096) + .HasColumnType("varchar(4096)"); - b.Property("FriendTenancyName") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + b.Property("ReadState") + .HasColumnType("int"); - b.Property("FriendTenantId") + b.Property("ReceiverReadState") .HasColumnType("int"); - b.Property("FriendUserId") - .HasColumnType("bigint"); + b.Property("SharedMessageId") + .HasColumnType("char(36)"); - b.Property("FriendUserName") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + b.Property("Side") + .HasColumnType("int"); - b.Property("State") + b.Property("TargetTenantId") .HasColumnType("int"); + b.Property("TargetUserId") + .HasColumnType("bigint"); + b.Property("TenantId") .HasColumnType("int"); @@ -1591,90 +1646,50 @@ namespace PearAdmin.AbpTemplate.Migrations b.HasKey("Id"); - b.ToTable("AppFriendships"); + b.ToTable("AppChatMessages"); }); - modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => + modelBuilder.Entity("PearAdmin.AbpTemplate.Social.Friendships.Friendship", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConnectionString") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); + .HasColumnType("bigint"); b.Property("CreationTime") .HasColumnType("datetime(6)"); - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); + b.Property("FriendProfilePictureId") + .HasColumnType("char(36)"); - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); + b.Property("FriendTenancyName") + .HasColumnType("longtext"); - b.Property("EditionId") + b.Property("FriendTenantId") .HasColumnType("int"); - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") + b.Property("FriendUserId") .HasColumnType("bigint"); - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenancyName") + b.Property("FriendUserName") .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("EditionId"); - - b.HasIndex("LastModifierUserId"); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); - b.HasIndex("TenancyName"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Storage.BinaryObject", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("Bytes") - .IsRequired() - .HasColumnType("longblob"); + b.Property("State") + .HasColumnType("int"); b.Property("TenantId") .HasColumnType("int"); + b.Property("UserId") + .HasColumnType("bigint"); + b.HasKey("Id"); - b.ToTable("AppBinaryObjects"); + b.ToTable("AppFriendships"); }); - modelBuilder.Entity("PearAdmin.AbpTemplate.TaskCenters.DailyTasks.DailyTask", b => + modelBuilder.Entity("PearAdmin.AbpTemplate.TaskCenter.DailyTasks.DailyTask", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1702,12 +1717,12 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("Name") - .HasColumnType("varchar(200) CHARACTER SET utf8mb4") - .HasMaxLength(200); + .HasMaxLength(200) + .HasColumnType("varchar(200)"); b.Property("Remark") - .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") - .HasMaxLength(1000); + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); b.HasKey("Id"); @@ -1819,31 +1834,37 @@ namespace PearAdmin.AbpTemplate.Migrations .HasForeignKey("UserId"); }); - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityProperty", b => { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany("DynamicParameterValues") - .HasForeignKey("DynamicParameterId") + b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") + .WithMany() + .HasForeignKey("DynamicPropertyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); + + b.Navigation("DynamicProperty"); }); - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") + b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty") .WithMany() - .HasForeignKey("DynamicParameterId") + .HasForeignKey("DynamicEntityPropertyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); + + b.Navigation("DynamicEntityProperty"); }); - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => { - b.HasOne("Abp.DynamicEntityParameters.EntityDynamicParameter", "EntityDynamicParameter") - .WithMany() - .HasForeignKey("EntityDynamicParameterId") + b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") + .WithMany("DynamicPropertyValues") + .HasForeignKey("DynamicPropertyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); + + b.Navigation("DynamicProperty"); }); modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => @@ -1869,6 +1890,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") .WithMany("Children") .HasForeignKey("ParentId"); + + b.Navigation("Parent"); }); modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => @@ -1878,6 +1901,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasForeignKey("WebhookEventId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); + + b.Navigation("WebhookEvent"); }); modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => @@ -1893,6 +1918,12 @@ namespace PearAdmin.AbpTemplate.Migrations b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") .WithMany() .HasForeignKey("LastModifierUserId"); + + b.Navigation("CreatorUser"); + + b.Navigation("DeleterUser"); + + b.Navigation("LastModifierUser"); }); modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => @@ -1908,6 +1939,12 @@ namespace PearAdmin.AbpTemplate.Migrations b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") .WithMany() .HasForeignKey("LastModifierUserId"); + + b.Navigation("CreatorUser"); + + b.Navigation("DeleterUser"); + + b.Navigation("LastModifierUser"); }); modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => @@ -1927,22 +1964,26 @@ namespace PearAdmin.AbpTemplate.Migrations b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") .WithMany() .HasForeignKey("LastModifierUserId"); + + b.Navigation("CreatorUser"); + + b.Navigation("DeleterUser"); + + b.Navigation("Edition"); + + b.Navigation("LastModifierUser"); }); - modelBuilder.Entity("PearAdmin.AbpTemplate.TaskCenters.DailyTasks.DailyTask", b => + modelBuilder.Entity("PearAdmin.AbpTemplate.TaskCenter.DailyTasks.DailyTask", b => { - b.OwnsOne("PearAdmin.AbpTemplate.TaskCenters.DailyTasks.ValueObjects.DateRange", "DateRange", b1 => + b.OwnsOne("PearAdmin.AbpTemplate.TaskCenter.DailyTasks.TaskStateType", "TaskState", b1 => { b1.Property("DailyTaskId") .HasColumnType("char(36)"); - b1.Property("EndTime") - .HasColumnName("EndTime") - .HasColumnType("datetime(6)"); - - b1.Property("StartTime") - .HasColumnName("StartTime") - .HasColumnType("datetime(6)"); + b1.Property("Id") + .HasColumnType("int") + .HasColumnName("TaskStateType"); b1.HasKey("DailyTaskId"); @@ -1952,14 +1993,18 @@ namespace PearAdmin.AbpTemplate.Migrations .HasForeignKey("DailyTaskId"); }); - b.OwnsOne("PearAdmin.AbpTemplate.TaskCenters.DailyTasks.ValueObjects.TaskState", "TaskState", b1 => + b.OwnsOne("PearAdmin.AbpTemplate.TaskCenter.DailyTasks.ValueObjects.DateRange", "DateRange", b1 => { b1.Property("DailyTaskId") .HasColumnType("char(36)"); - b1.Property("TaskStateType") - .HasColumnName("TaskStateType") - .HasColumnType("int"); + b1.Property("EndTime") + .HasColumnType("datetime(6)") + .HasColumnName("EndTime"); + + b1.Property("StartTime") + .HasColumnType("datetime(6)") + .HasColumnName("StartTime"); b1.HasKey("DailyTaskId"); @@ -1968,6 +2013,10 @@ namespace PearAdmin.AbpTemplate.Migrations b1.WithOwner() .HasForeignKey("DailyTaskId"); }); + + b.Navigation("DateRange"); + + b.Navigation("TaskState"); }); modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => @@ -1977,6 +2026,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasForeignKey("EditionId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); + + b.Navigation("Edition"); }); modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => @@ -1996,6 +2047,48 @@ namespace PearAdmin.AbpTemplate.Migrations .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => + { + b.Navigation("DynamicPropertyValues"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => + { + b.Navigation("PropertyChanges"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => + { + b.Navigation("EntityChanges"); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => + { + b.Navigation("Children"); + }); + + modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => + { + b.Navigation("Claims"); + + b.Navigation("Permissions"); + }); + + modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => + { + b.Navigation("Claims"); + + b.Navigation("Logins"); + + b.Navigation("Permissions"); + + b.Navigation("Roles"); + + b.Navigation("Settings"); + + b.Navigation("Tokens"); + }); #pragma warning restore 612, 618 } } diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200612132018_InitDatabase.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20210616145046_InitDatabase.cs similarity index 43% rename from src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200612132018_InitDatabase.cs rename to src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20210616145046_InitDatabase.cs index d3aaa8d64693a379b9a68e51e72c57a67353d45e..c592c549c8e7cf0eb24e17fc09ae60772de9328f 100644 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20200612132018_InitDatabase.cs +++ b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/20210616145046_InitDatabase.cs @@ -2,241 +2,301 @@ using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; -namespace PearAdmin.AbpTemplate.Migrations +namespace PearAdmin.AbpTemplate.EntityFrameworkCore.Migrations { public partial class InitDatabase : Migration { protected override void Up(MigrationBuilder migrationBuilder) { + migrationBuilder.AlterDatabase() + .Annotation("MySql:CharSet", "utf8mb4"); + migrationBuilder.CreateTable( name: "AbpAuditLogs", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: true), - ServiceName = table.Column(maxLength: 256, nullable: true), - MethodName = table.Column(maxLength: 256, nullable: true), - Parameters = table.Column(maxLength: 1024, nullable: true), - ReturnValue = table.Column(nullable: true), - ExecutionTime = table.Column(nullable: false), - ExecutionDuration = table.Column(nullable: false), - ClientIpAddress = table.Column(maxLength: 64, nullable: true), - ClientName = table.Column(maxLength: 128, nullable: true), - BrowserInfo = table.Column(maxLength: 512, nullable: true), - Exception = table.Column(maxLength: 2000, nullable: true), - ImpersonatorUserId = table.Column(nullable: true), - ImpersonatorTenantId = table.Column(nullable: true), - CustomData = table.Column(maxLength: 2000, nullable: true) + TenantId = table.Column(type: "int", nullable: true), + UserId = table.Column(type: "bigint", nullable: true), + ServiceName = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + MethodName = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Parameters = table.Column(type: "varchar(1024)", maxLength: 1024, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ReturnValue = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ExecutionTime = table.Column(type: "datetime(6)", nullable: false), + ExecutionDuration = table.Column(type: "int", nullable: false), + ClientIpAddress = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ClientName = table.Column(type: "varchar(128)", maxLength: 128, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + BrowserInfo = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ExceptionMessage = table.Column(type: "varchar(1024)", maxLength: 1024, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Exception = table.Column(type: "varchar(2000)", maxLength: 2000, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ImpersonatorUserId = table.Column(type: "bigint", nullable: true), + ImpersonatorTenantId = table.Column(type: "int", nullable: true), + CustomData = table.Column(type: "varchar(2000)", maxLength: 2000, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") }, constraints: table => { table.PrimaryKey("PK_AbpAuditLogs", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpBackgroundJobs", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - JobType = table.Column(maxLength: 512, nullable: false), - JobArgs = table.Column(maxLength: 1048576, nullable: false), - TryCount = table.Column(nullable: false), - NextTryTime = table.Column(nullable: false), - LastTryTime = table.Column(nullable: true), - IsAbandoned = table.Column(nullable: false), - Priority = table.Column(nullable: false) + JobType = table.Column(type: "varchar(512)", maxLength: 512, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + JobArgs = table.Column(type: "longtext", maxLength: 1048576, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + TryCount = table.Column(type: "smallint", nullable: false), + NextTryTime = table.Column(type: "datetime(6)", nullable: false), + LastTryTime = table.Column(type: "datetime(6)", nullable: true), + IsAbandoned = table.Column(type: "tinyint(1)", nullable: false), + Priority = table.Column(type: "tinyint unsigned", nullable: false), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AbpBackgroundJobs", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( - name: "AbpDynamicParameters", + name: "AbpDynamicProperties", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "int", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - ParameterName = table.Column(nullable: true), - InputType = table.Column(nullable: true), - Permission = table.Column(nullable: true), - TenantId = table.Column(nullable: true) + PropertyName = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + DisplayName = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + InputType = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Permission = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + TenantId = table.Column(type: "int", nullable: true) }, constraints: table => { - table.PrimaryKey("PK_AbpDynamicParameters", x => x.Id); - }); + table.PrimaryKey("PK_AbpDynamicProperties", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpEditions", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "int", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), - DeleterUserId = table.Column(nullable: true), - DeletionTime = table.Column(nullable: true), - Name = table.Column(maxLength: 32, nullable: false), - DisplayName = table.Column(maxLength: 64, nullable: false) + Name = table.Column(type: "varchar(32)", maxLength: 32, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + DisplayName = table.Column(type: "varchar(64)", maxLength: 64, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "datetime(6)", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "tinyint(1)", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "datetime(6)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AbpEditions", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpEntityChangeSets", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - BrowserInfo = table.Column(maxLength: 512, nullable: true), - ClientIpAddress = table.Column(maxLength: 64, nullable: true), - ClientName = table.Column(maxLength: 128, nullable: true), - CreationTime = table.Column(nullable: false), - ExtensionData = table.Column(nullable: true), - ImpersonatorTenantId = table.Column(nullable: true), - ImpersonatorUserId = table.Column(nullable: true), - Reason = table.Column(maxLength: 256, nullable: true), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: true) + BrowserInfo = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ClientIpAddress = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ClientName = table.Column(type: "varchar(128)", maxLength: 128, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + ExtensionData = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ImpersonatorTenantId = table.Column(type: "int", nullable: true), + ImpersonatorUserId = table.Column(type: "bigint", nullable: true), + Reason = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + TenantId = table.Column(type: "int", nullable: true), + UserId = table.Column(type: "bigint", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AbpEntityChangeSets", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpLanguages", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "int", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), - DeleterUserId = table.Column(nullable: true), - DeletionTime = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - Name = table.Column(maxLength: 128, nullable: false), - DisplayName = table.Column(maxLength: 64, nullable: false), - Icon = table.Column(maxLength: 128, nullable: true), - IsDisabled = table.Column(nullable: false) + TenantId = table.Column(type: "int", nullable: true), + Name = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + DisplayName = table.Column(type: "varchar(64)", maxLength: 64, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Icon = table.Column(type: "varchar(128)", maxLength: 128, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + IsDisabled = table.Column(type: "tinyint(1)", nullable: false), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "datetime(6)", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "tinyint(1)", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "datetime(6)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AbpLanguages", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpLanguageTexts", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - LanguageName = table.Column(maxLength: 128, nullable: false), - Source = table.Column(maxLength: 128, nullable: false), - Key = table.Column(maxLength: 256, nullable: false), - Value = table.Column(maxLength: 67108864, nullable: false) + TenantId = table.Column(type: "int", nullable: true), + LanguageName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Source = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Key = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Value = table.Column(type: "longtext", maxLength: 67108864, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "datetime(6)", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AbpLanguageTexts", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpNotifications", columns: table => new { - Id = table.Column(nullable: false), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - NotificationName = table.Column(maxLength: 96, nullable: false), - Data = table.Column(maxLength: 1048576, nullable: true), - DataTypeName = table.Column(maxLength: 512, nullable: true), - EntityTypeName = table.Column(maxLength: 250, nullable: true), - EntityTypeAssemblyQualifiedName = table.Column(maxLength: 512, nullable: true), - EntityId = table.Column(maxLength: 96, nullable: true), - Severity = table.Column(nullable: false), - UserIds = table.Column(maxLength: 131072, nullable: true), - ExcludedUserIds = table.Column(maxLength: 131072, nullable: true), - TenantIds = table.Column(maxLength: 131072, nullable: true) + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + NotificationName = table.Column(type: "varchar(96)", maxLength: 96, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Data = table.Column(type: "longtext", maxLength: 1048576, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + DataTypeName = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + EntityTypeName = table.Column(type: "varchar(250)", maxLength: 250, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + EntityTypeAssemblyQualifiedName = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + EntityId = table.Column(type: "varchar(96)", maxLength: 96, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Severity = table.Column(type: "tinyint unsigned", nullable: false), + UserIds = table.Column(type: "longtext", maxLength: 131072, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ExcludedUserIds = table.Column(type: "longtext", maxLength: 131072, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + TenantIds = table.Column(type: "longtext", maxLength: 131072, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AbpNotifications", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpNotificationSubscriptions", columns: table => new { - Id = table.Column(nullable: false), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: false), - NotificationName = table.Column(maxLength: 96, nullable: true), - EntityTypeName = table.Column(maxLength: 250, nullable: true), - EntityTypeAssemblyQualifiedName = table.Column(maxLength: 512, nullable: true), - EntityId = table.Column(maxLength: 96, nullable: true) + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "int", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + NotificationName = table.Column(type: "varchar(96)", maxLength: 96, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + EntityTypeName = table.Column(type: "varchar(250)", maxLength: 250, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + EntityTypeAssemblyQualifiedName = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + EntityId = table.Column(type: "varchar(96)", maxLength: 96, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AbpNotificationSubscriptions", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpOrganizationUnitRoles", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - RoleId = table.Column(nullable: false), - OrganizationUnitId = table.Column(nullable: false), - IsDeleted = table.Column(nullable: false) + TenantId = table.Column(type: "int", nullable: true), + RoleId = table.Column(type: "int", nullable: false), + OrganizationUnitId = table.Column(type: "bigint", nullable: false), + IsDeleted = table.Column(type: "tinyint(1)", nullable: false), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpOrganizationUnits", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), - DeleterUserId = table.Column(nullable: true), - DeletionTime = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - ParentId = table.Column(nullable: true), - Code = table.Column(maxLength: 95, nullable: false), - DisplayName = table.Column(maxLength: 128, nullable: false) + TenantId = table.Column(type: "int", nullable: true), + ParentId = table.Column(type: "bigint", nullable: true), + Code = table.Column(type: "varchar(95)", maxLength: 95, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + DisplayName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "datetime(6)", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "tinyint(1)", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "datetime(6)", nullable: true) }, constraints: table => { @@ -247,142 +307,175 @@ namespace PearAdmin.AbpTemplate.Migrations principalTable: "AbpOrganizationUnits", principalColumn: "Id", onDelete: ReferentialAction.Restrict); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpTenantNotifications", columns: table => new { - Id = table.Column(nullable: false), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - NotificationName = table.Column(maxLength: 96, nullable: false), - Data = table.Column(maxLength: 1048576, nullable: true), - DataTypeName = table.Column(maxLength: 512, nullable: true), - EntityTypeName = table.Column(maxLength: 250, nullable: true), - EntityTypeAssemblyQualifiedName = table.Column(maxLength: 512, nullable: true), - EntityId = table.Column(maxLength: 96, nullable: true), - Severity = table.Column(nullable: false) + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "int", nullable: true), + NotificationName = table.Column(type: "varchar(96)", maxLength: 96, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Data = table.Column(type: "longtext", maxLength: 1048576, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + DataTypeName = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + EntityTypeName = table.Column(type: "varchar(250)", maxLength: 250, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + EntityTypeAssemblyQualifiedName = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + EntityId = table.Column(type: "varchar(96)", maxLength: 96, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Severity = table.Column(type: "tinyint unsigned", nullable: false), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AbpTenantNotifications", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpUserAccounts", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), - DeleterUserId = table.Column(nullable: true), - DeletionTime = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: false), - UserLinkId = table.Column(nullable: true), - UserName = table.Column(maxLength: 256, nullable: true), - EmailAddress = table.Column(maxLength: 256, nullable: true) + TenantId = table.Column(type: "int", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + UserLinkId = table.Column(type: "bigint", nullable: true), + UserName = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + EmailAddress = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "datetime(6)", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "tinyint(1)", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "datetime(6)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AbpUserAccounts", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpUserLoginAttempts", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - TenantId = table.Column(nullable: true), - TenancyName = table.Column(maxLength: 64, nullable: true), - UserId = table.Column(nullable: true), - UserNameOrEmailAddress = table.Column(maxLength: 256, nullable: true), - ClientIpAddress = table.Column(maxLength: 64, nullable: true), - ClientName = table.Column(maxLength: 128, nullable: true), - BrowserInfo = table.Column(maxLength: 512, nullable: true), - Result = table.Column(nullable: false), - CreationTime = table.Column(nullable: false) + TenantId = table.Column(type: "int", nullable: true), + TenancyName = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + UserId = table.Column(type: "bigint", nullable: true), + UserNameOrEmailAddress = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ClientIpAddress = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ClientName = table.Column(type: "varchar(128)", maxLength: 128, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + BrowserInfo = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Result = table.Column(type: "tinyint unsigned", nullable: false), + CreationTime = table.Column(type: "datetime(6)", nullable: false) }, constraints: table => { table.PrimaryKey("PK_AbpUserLoginAttempts", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpUserNotifications", columns: table => new { - Id = table.Column(nullable: false), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: false), - TenantNotificationId = table.Column(nullable: false), - State = table.Column(nullable: false), - CreationTime = table.Column(nullable: false) + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "int", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + TenantNotificationId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + State = table.Column(type: "int", nullable: false), + CreationTime = table.Column(type: "datetime(6)", nullable: false) }, constraints: table => { table.PrimaryKey("PK_AbpUserNotifications", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpUserOrganizationUnits", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: false), - OrganizationUnitId = table.Column(nullable: false), - IsDeleted = table.Column(nullable: false) + TenantId = table.Column(type: "int", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + OrganizationUnitId = table.Column(type: "bigint", nullable: false), + IsDeleted = table.Column(type: "tinyint(1)", nullable: false), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AbpUserOrganizationUnits", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpUsers", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), - DeleterUserId = table.Column(nullable: true), - DeletionTime = table.Column(nullable: true), - AuthenticationSource = table.Column(maxLength: 64, nullable: true), - UserName = table.Column(maxLength: 256, nullable: false), - TenantId = table.Column(nullable: true), - EmailAddress = table.Column(maxLength: 256, nullable: false), - Name = table.Column(maxLength: 64, nullable: false), - Surname = table.Column(maxLength: 64, nullable: false), - Password = table.Column(maxLength: 128, nullable: false), - EmailConfirmationCode = table.Column(maxLength: 328, nullable: true), - PasswordResetCode = table.Column(maxLength: 328, nullable: true), - LockoutEndDateUtc = table.Column(nullable: true), - AccessFailedCount = table.Column(nullable: false), - IsLockoutEnabled = table.Column(nullable: false), - PhoneNumber = table.Column(maxLength: 32, nullable: true), - IsPhoneNumberConfirmed = table.Column(nullable: false), - SecurityStamp = table.Column(maxLength: 128, nullable: true), - IsTwoFactorEnabled = table.Column(nullable: false), - IsEmailConfirmed = table.Column(nullable: false), - IsActive = table.Column(nullable: false), - NormalizedUserName = table.Column(maxLength: 256, nullable: false), - NormalizedEmailAddress = table.Column(maxLength: 256, nullable: false), - ConcurrencyStamp = table.Column(maxLength: 128, nullable: true) + ProfilePictureId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "datetime(6)", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "tinyint(1)", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "datetime(6)", nullable: true), + AuthenticationSource = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + UserName = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + TenantId = table.Column(type: "int", nullable: true), + EmailAddress = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Name = table.Column(type: "varchar(64)", maxLength: 64, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Surname = table.Column(type: "varchar(64)", maxLength: 64, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Password = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + EmailConfirmationCode = table.Column(type: "varchar(328)", maxLength: 328, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + PasswordResetCode = table.Column(type: "varchar(328)", maxLength: 328, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + LockoutEndDateUtc = table.Column(type: "datetime(6)", nullable: true), + AccessFailedCount = table.Column(type: "int", nullable: false), + IsLockoutEnabled = table.Column(type: "tinyint(1)", nullable: false), + PhoneNumber = table.Column(type: "varchar(32)", maxLength: 32, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + IsPhoneNumberConfirmed = table.Column(type: "tinyint(1)", nullable: false), + SecurityStamp = table.Column(type: "varchar(128)", maxLength: 128, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + IsTwoFactorEnabled = table.Column(type: "tinyint(1)", nullable: false), + IsEmailConfirmed = table.Column(type: "tinyint(1)", nullable: false), + IsActive = table.Column(type: "tinyint(1)", nullable: false), + NormalizedUserName = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + NormalizedEmailAddress = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ConcurrencyStamp = table.Column(type: "varchar(128)", maxLength: 128, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") }, constraints: table => { @@ -405,99 +498,222 @@ namespace PearAdmin.AbpTemplate.Migrations principalTable: "AbpUsers", principalColumn: "Id", onDelete: ReferentialAction.Restrict); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpWebhookEvents", columns: table => new { - Id = table.Column(nullable: false), - WebhookName = table.Column(nullable: false), - Data = table.Column(nullable: true), - CreationTime = table.Column(nullable: false), - TenantId = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), - DeletionTime = table.Column(nullable: true) + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + WebhookName = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Data = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + TenantId = table.Column(type: "int", nullable: true), + IsDeleted = table.Column(type: "tinyint(1)", nullable: false), + DeletionTime = table.Column(type: "datetime(6)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AbpWebhookEvents", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpWebhookSubscriptions", columns: table => new { - Id = table.Column(nullable: false), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - WebhookUri = table.Column(nullable: false), - Secret = table.Column(nullable: false), - IsActive = table.Column(nullable: false), - Webhooks = table.Column(nullable: true), - Headers = table.Column(nullable: true) + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "int", nullable: true), + WebhookUri = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Secret = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + IsActive = table.Column(type: "tinyint(1)", nullable: false), + Webhooks = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Headers = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AbpWebhookSubscriptions", x => x.Id); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AppBinaryObjects", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "int", nullable: true), + Bytes = table.Column(type: "longblob", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AppBinaryObjects", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AppChatMessages", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), + UserId = table.Column(type: "bigint", nullable: false), + TenantId = table.Column(type: "int", nullable: true), + TargetUserId = table.Column(type: "bigint", nullable: false), + TargetTenantId = table.Column(type: "int", nullable: true), + Message = table.Column(type: "varchar(4096)", maxLength: 4096, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + Side = table.Column(type: "int", nullable: false), + ReadState = table.Column(type: "int", nullable: false), + ReceiverReadState = table.Column(type: "int", nullable: false), + SharedMessageId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci") + }, + constraints: table => + { + table.PrimaryKey("PK_AppChatMessages", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AppFriendships", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), + UserId = table.Column(type: "bigint", nullable: false), + TenantId = table.Column(type: "int", nullable: true), + FriendUserId = table.Column(type: "bigint", nullable: false), + FriendTenantId = table.Column(type: "int", nullable: true), + FriendUserName = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + FriendTenancyName = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + FriendProfilePictureId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + State = table.Column(type: "int", nullable: false), + CreationTime = table.Column(type: "datetime(6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AppFriendships", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "Center_DailyTask", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + Name = table.Column(type: "varchar(200)", maxLength: 200, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Remark = table.Column(type: "varchar(1000)", maxLength: 1000, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + StartTime = table.Column(type: "datetime(6)", nullable: true), + EndTime = table.Column(type: "datetime(6)", nullable: true), + TaskStateType = table.Column(type: "int", nullable: true), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "datetime(6)", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "tinyint(1)", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "datetime(6)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Center_DailyTask", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( - name: "AbpDynamicParameterValues", + name: "Resource_DataDictionaryItem", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "int", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - Value = table.Column(nullable: false), - TenantId = table.Column(nullable: true), - DynamicParameterId = table.Column(nullable: false) + TenantId = table.Column(type: "int", nullable: false), + Code = table.Column(type: "varchar(5)", maxLength: 5, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Name = table.Column(type: "varchar(30)", maxLength: 30, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + DataDictionaryId = table.Column(type: "int", nullable: false) }, constraints: table => { - table.PrimaryKey("PK_AbpDynamicParameterValues", x => x.Id); + table.PrimaryKey("PK_Resource_DataDictionaryItem", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpDynamicEntityProperties", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), + EntityFullName = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + DynamicPropertyId = table.Column(type: "int", nullable: false), + TenantId = table.Column(type: "int", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpDynamicEntityProperties", x => x.Id); table.ForeignKey( - name: "FK_AbpDynamicParameterValues_AbpDynamicParameters_DynamicParame~", - column: x => x.DynamicParameterId, - principalTable: "AbpDynamicParameters", + name: "FK_AbpDynamicEntityProperties_AbpDynamicProperties_DynamicPrope~", + column: x => x.DynamicPropertyId, + principalTable: "AbpDynamicProperties", principalColumn: "Id", onDelete: ReferentialAction.Cascade); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( - name: "AbpEntityDynamicParameters", + name: "AbpDynamicPropertyValues", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - EntityFullName = table.Column(nullable: true), - DynamicParameterId = table.Column(nullable: false), - TenantId = table.Column(nullable: true) + Value = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + TenantId = table.Column(type: "int", nullable: true), + DynamicPropertyId = table.Column(type: "int", nullable: false) }, constraints: table => { - table.PrimaryKey("PK_AbpEntityDynamicParameters", x => x.Id); + table.PrimaryKey("PK_AbpDynamicPropertyValues", x => x.Id); table.ForeignKey( - name: "FK_AbpEntityDynamicParameters_AbpDynamicParameters_DynamicParam~", - column: x => x.DynamicParameterId, - principalTable: "AbpDynamicParameters", + name: "FK_AbpDynamicPropertyValues_AbpDynamicProperties_DynamicPropert~", + column: x => x.DynamicPropertyId, + principalTable: "AbpDynamicProperties", principalColumn: "Id", onDelete: ReferentialAction.Cascade); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpFeatures", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - Name = table.Column(maxLength: 128, nullable: false), - Value = table.Column(maxLength: 2000, nullable: false), - Discriminator = table.Column(nullable: false), - EditionId = table.Column(nullable: true) + TenantId = table.Column(type: "int", nullable: true), + Name = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Value = table.Column(type: "varchar(2000)", maxLength: 2000, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Discriminator = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + EditionId = table.Column(type: "int", nullable: true), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) }, constraints: table => { @@ -508,20 +724,23 @@ namespace PearAdmin.AbpTemplate.Migrations principalTable: "AbpEditions", principalColumn: "Id", onDelete: ReferentialAction.Cascade); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpEntityChanges", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - ChangeTime = table.Column(nullable: false), - ChangeType = table.Column(nullable: false), - EntityChangeSetId = table.Column(nullable: false), - EntityId = table.Column(maxLength: 48, nullable: true), - EntityTypeFullName = table.Column(maxLength: 192, nullable: true), - TenantId = table.Column(nullable: true) + ChangeTime = table.Column(type: "datetime(6)", nullable: false), + ChangeType = table.Column(type: "tinyint unsigned", nullable: false), + EntityChangeSetId = table.Column(type: "bigint", nullable: false), + EntityId = table.Column(type: "varchar(48)", maxLength: 48, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + EntityTypeFullName = table.Column(type: "varchar(192)", maxLength: 192, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + TenantId = table.Column(type: "int", nullable: true) }, constraints: table => { @@ -532,29 +751,35 @@ namespace PearAdmin.AbpTemplate.Migrations principalTable: "AbpEntityChangeSets", principalColumn: "Id", onDelete: ReferentialAction.Cascade); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpRoles", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "int", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), - DeleterUserId = table.Column(nullable: true), - DeletionTime = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - Name = table.Column(maxLength: 32, nullable: false), - DisplayName = table.Column(maxLength: 64, nullable: false), - IsStatic = table.Column(nullable: false), - IsDefault = table.Column(nullable: false), - NormalizedName = table.Column(maxLength: 32, nullable: false), - ConcurrencyStamp = table.Column(maxLength: 128, nullable: true), - Description = table.Column(maxLength: 5000, nullable: true) + Description = table.Column(type: "varchar(5000)", maxLength: 5000, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "datetime(6)", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "tinyint(1)", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "datetime(6)", nullable: true), + TenantId = table.Column(type: "int", nullable: true), + Name = table.Column(type: "varchar(32)", maxLength: 32, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + DisplayName = table.Column(type: "varchar(64)", maxLength: 64, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + IsStatic = table.Column(type: "tinyint(1)", nullable: false), + IsDefault = table.Column(type: "tinyint(1)", nullable: false), + NormalizedName = table.Column(type: "varchar(32)", maxLength: 32, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ConcurrencyStamp = table.Column(type: "varchar(128)", maxLength: 128, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") }, constraints: table => { @@ -577,22 +802,25 @@ namespace PearAdmin.AbpTemplate.Migrations principalTable: "AbpUsers", principalColumn: "Id", onDelete: ReferentialAction.Restrict); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpSettings", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: true), - Name = table.Column(maxLength: 256, nullable: false), - Value = table.Column(nullable: true) + TenantId = table.Column(type: "int", nullable: true), + UserId = table.Column(type: "bigint", nullable: true), + Name = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Value = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "datetime(6)", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true) }, constraints: table => { @@ -603,30 +831,40 @@ namespace PearAdmin.AbpTemplate.Migrations principalTable: "AbpUsers", principalColumn: "Id", onDelete: ReferentialAction.Restrict); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpTenants", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "int", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - LastModificationTime = table.Column(nullable: true), - LastModifierUserId = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), - DeleterUserId = table.Column(nullable: true), - DeletionTime = table.Column(nullable: true), - TenancyName = table.Column(maxLength: 64, nullable: false), - Name = table.Column(maxLength: 128, nullable: false), - ConnectionString = table.Column(maxLength: 1024, nullable: true), - IsActive = table.Column(nullable: false), - EditionId = table.Column(nullable: true) + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "datetime(6)", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "tinyint(1)", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "datetime(6)", nullable: true), + TenancyName = table.Column(type: "varchar(64)", maxLength: 64, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Name = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ConnectionString = table.Column(type: "varchar(1024)", maxLength: 1024, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + IsActive = table.Column(type: "tinyint(1)", nullable: false), + EditionId = table.Column(type: "int", nullable: true) }, constraints: table => { table.PrimaryKey("PK_AbpTenants", x => x.Id); + table.ForeignKey( + name: "FK_AbpTenants_AbpEditions_EditionId", + column: x => x.EditionId, + principalTable: "AbpEditions", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_AbpTenants_AbpUsers_CreatorUserId", column: x => x.CreatorUserId, @@ -639,32 +877,29 @@ namespace PearAdmin.AbpTemplate.Migrations principalTable: "AbpUsers", principalColumn: "Id", onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_AbpTenants_AbpEditions_EditionId", - column: x => x.EditionId, - principalTable: "AbpEditions", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_AbpTenants_AbpUsers_LastModifierUserId", column: x => x.LastModifierUserId, principalTable: "AbpUsers", principalColumn: "Id", onDelete: ReferentialAction.Restrict); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpUserClaims", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: false), - ClaimType = table.Column(maxLength: 256, nullable: true), - ClaimValue = table.Column(nullable: true) + TenantId = table.Column(type: "int", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + ClaimType = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ClaimValue = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) }, constraints: table => { @@ -675,18 +910,21 @@ namespace PearAdmin.AbpTemplate.Migrations principalTable: "AbpUsers", principalColumn: "Id", onDelete: ReferentialAction.Cascade); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpUserLogins", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: false), - LoginProvider = table.Column(maxLength: 128, nullable: false), - ProviderKey = table.Column(maxLength: 256, nullable: false) + TenantId = table.Column(type: "int", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + LoginProvider = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ProviderKey = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4") }, constraints: table => { @@ -697,19 +935,20 @@ namespace PearAdmin.AbpTemplate.Migrations principalTable: "AbpUsers", principalColumn: "Id", onDelete: ReferentialAction.Cascade); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpUserRoles", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: false), - RoleId = table.Column(nullable: false) + TenantId = table.Column(type: "int", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + RoleId = table.Column(type: "int", nullable: false), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) }, constraints: table => { @@ -720,20 +959,24 @@ namespace PearAdmin.AbpTemplate.Migrations principalTable: "AbpUsers", principalColumn: "Id", onDelete: ReferentialAction.Cascade); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpUserTokens", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - TenantId = table.Column(nullable: true), - UserId = table.Column(nullable: false), - LoginProvider = table.Column(maxLength: 128, nullable: true), - Name = table.Column(maxLength: 128, nullable: true), - Value = table.Column(maxLength: 512, nullable: true), - ExpireDate = table.Column(nullable: true) + TenantId = table.Column(type: "int", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + LoginProvider = table.Column(type: "varchar(128)", maxLength: 128, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Name = table.Column(type: "varchar(128)", maxLength: 128, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Value = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ExpireDate = table.Column(type: "datetime(6)", nullable: true) }, constraints: table => { @@ -744,20 +987,22 @@ namespace PearAdmin.AbpTemplate.Migrations principalTable: "AbpUsers", principalColumn: "Id", onDelete: ReferentialAction.Cascade); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpWebhookSendAttempts", columns: table => new { - Id = table.Column(nullable: false), - WebhookEventId = table.Column(nullable: false), - WebhookSubscriptionId = table.Column(nullable: false), - Response = table.Column(nullable: true), - ResponseStatusCode = table.Column(nullable: true), - CreationTime = table.Column(nullable: false), - LastModificationTime = table.Column(nullable: true), - TenantId = table.Column(nullable: true) + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + WebhookEventId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + WebhookSubscriptionId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + Response = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ResponseStatusCode = table.Column(type: "int", nullable: true), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + LastModificationTime = table.Column(type: "datetime(6)", nullable: true), + TenantId = table.Column(type: "int", nullable: true) }, constraints: table => { @@ -768,42 +1013,54 @@ namespace PearAdmin.AbpTemplate.Migrations principalTable: "AbpWebhookEvents", principalColumn: "Id", onDelete: ReferentialAction.Cascade); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( - name: "AbpEntityDynamicParameterValues", + name: "AbpDynamicEntityPropertyValues", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - Value = table.Column(nullable: false), - EntityId = table.Column(nullable: true), - EntityDynamicParameterId = table.Column(nullable: false), - TenantId = table.Column(nullable: true) + Value = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + EntityId = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + DynamicEntityPropertyId = table.Column(type: "int", nullable: false), + TenantId = table.Column(type: "int", nullable: true) }, constraints: table => { - table.PrimaryKey("PK_AbpEntityDynamicParameterValues", x => x.Id); + table.PrimaryKey("PK_AbpDynamicEntityPropertyValues", x => x.Id); table.ForeignKey( - name: "FK_AbpEntityDynamicParameterValues_AbpEntityDynamicParameters_E~", - column: x => x.EntityDynamicParameterId, - principalTable: "AbpEntityDynamicParameters", + name: "FK_AbpDynamicEntityPropertyValues_AbpDynamicEntityProperties_Dy~", + column: x => x.DynamicEntityPropertyId, + principalTable: "AbpDynamicEntityProperties", principalColumn: "Id", onDelete: ReferentialAction.Cascade); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpEntityPropertyChanges", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - EntityChangeId = table.Column(nullable: false), - NewValue = table.Column(maxLength: 512, nullable: true), - OriginalValue = table.Column(maxLength: 512, nullable: true), - PropertyName = table.Column(maxLength: 96, nullable: true), - PropertyTypeFullName = table.Column(maxLength: 192, nullable: true), - TenantId = table.Column(nullable: true) + EntityChangeId = table.Column(type: "bigint", nullable: false), + NewValue = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + OriginalValue = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + PropertyName = table.Column(type: "varchar(96)", maxLength: 96, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + PropertyTypeFullName = table.Column(type: "varchar(192)", maxLength: 192, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + TenantId = table.Column(type: "int", nullable: true), + NewValueHash = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + OriginalValueHash = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") }, constraints: table => { @@ -814,22 +1071,25 @@ namespace PearAdmin.AbpTemplate.Migrations principalTable: "AbpEntityChanges", principalColumn: "Id", onDelete: ReferentialAction.Cascade); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpPermissions", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - Name = table.Column(maxLength: 128, nullable: false), - IsGranted = table.Column(nullable: false), - Discriminator = table.Column(nullable: false), - RoleId = table.Column(nullable: true), - UserId = table.Column(nullable: true) + TenantId = table.Column(type: "int", nullable: true), + Name = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + IsGranted = table.Column(type: "tinyint(1)", nullable: false), + Discriminator = table.Column(type: "longtext", nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + RoleId = table.Column(type: "int", nullable: true), + UserId = table.Column(type: "bigint", nullable: true), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) }, constraints: table => { @@ -846,20 +1106,23 @@ namespace PearAdmin.AbpTemplate.Migrations principalTable: "AbpUsers", principalColumn: "Id", onDelete: ReferentialAction.Cascade); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "AbpRoleClaims", columns: table => new { - Id = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - CreationTime = table.Column(nullable: false), - CreatorUserId = table.Column(nullable: true), - TenantId = table.Column(nullable: true), - RoleId = table.Column(nullable: false), - ClaimType = table.Column(maxLength: 256, nullable: true), - ClaimValue = table.Column(nullable: true) + TenantId = table.Column(type: "int", nullable: true), + RoleId = table.Column(type: "int", nullable: false), + ClaimType = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ClaimValue = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true) }, constraints: table => { @@ -870,7 +1133,8 @@ namespace PearAdmin.AbpTemplate.Migrations principalTable: "AbpRoles", principalColumn: "Id", onDelete: ReferentialAction.Cascade); - }); + }) + .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateIndex( name: "IX_AbpAuditLogs_TenantId_ExecutionDuration", @@ -893,15 +1157,31 @@ namespace PearAdmin.AbpTemplate.Migrations columns: new[] { "IsAbandoned", "NextTryTime" }); migrationBuilder.CreateIndex( - name: "IX_AbpDynamicParameters_ParameterName_TenantId", - table: "AbpDynamicParameters", - columns: new[] { "ParameterName", "TenantId" }, + name: "IX_AbpDynamicEntityProperties_DynamicPropertyId", + table: "AbpDynamicEntityProperties", + column: "DynamicPropertyId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpDynamicEntityProperties_EntityFullName_DynamicPropertyId_~", + table: "AbpDynamicEntityProperties", + columns: new[] { "EntityFullName", "DynamicPropertyId", "TenantId" }, unique: true); migrationBuilder.CreateIndex( - name: "IX_AbpDynamicParameterValues_DynamicParameterId", - table: "AbpDynamicParameterValues", - column: "DynamicParameterId"); + name: "IX_AbpDynamicEntityPropertyValues_DynamicEntityPropertyId", + table: "AbpDynamicEntityPropertyValues", + column: "DynamicEntityPropertyId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpDynamicProperties_PropertyName_TenantId", + table: "AbpDynamicProperties", + columns: new[] { "PropertyName", "TenantId" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_AbpDynamicPropertyValues_DynamicPropertyId", + table: "AbpDynamicPropertyValues", + column: "DynamicPropertyId"); migrationBuilder.CreateIndex( name: "IX_AbpEntityChanges_EntityChangeSetId", @@ -928,22 +1208,6 @@ namespace PearAdmin.AbpTemplate.Migrations table: "AbpEntityChangeSets", columns: new[] { "TenantId", "UserId" }); - migrationBuilder.CreateIndex( - name: "IX_AbpEntityDynamicParameters_DynamicParameterId", - table: "AbpEntityDynamicParameters", - column: "DynamicParameterId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityDynamicParameters_EntityFullName_DynamicParameterId~", - table: "AbpEntityDynamicParameters", - columns: new[] { "EntityFullName", "DynamicParameterId", "TenantId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityDynamicParameterValues_EntityDynamicParameterId", - table: "AbpEntityDynamicParameterValues", - column: "EntityDynamicParameterId"); - migrationBuilder.CreateIndex( name: "IX_AbpEntityPropertyChanges_EntityChangeId", table: "AbpEntityPropertyChanges", @@ -1000,14 +1264,14 @@ namespace PearAdmin.AbpTemplate.Migrations columns: new[] { "TenantId", "Code" }); migrationBuilder.CreateIndex( - name: "IX_AbpPermissions_TenantId_Name", + name: "IX_AbpPermissions_RoleId", table: "AbpPermissions", - columns: new[] { "TenantId", "Name" }); + column: "RoleId"); migrationBuilder.CreateIndex( - name: "IX_AbpPermissions_RoleId", + name: "IX_AbpPermissions_TenantId_Name", table: "AbpPermissions", - column: "RoleId"); + columns: new[] { "TenantId", "Name" }); migrationBuilder.CreateIndex( name: "IX_AbpPermissions_UserId", @@ -1044,17 +1308,17 @@ namespace PearAdmin.AbpTemplate.Migrations table: "AbpRoles", columns: new[] { "TenantId", "NormalizedName" }); - migrationBuilder.CreateIndex( - name: "IX_AbpSettings_UserId", - table: "AbpSettings", - column: "UserId"); - migrationBuilder.CreateIndex( name: "IX_AbpSettings_TenantId_Name_UserId", table: "AbpSettings", columns: new[] { "TenantId", "Name", "UserId" }, unique: true); + migrationBuilder.CreateIndex( + name: "IX_AbpSettings_UserId", + table: "AbpSettings", + column: "UserId"); + migrationBuilder.CreateIndex( name: "IX_AbpTenantNotifications_TenantId", table: "AbpTenantNotifications", @@ -1090,11 +1354,6 @@ namespace PearAdmin.AbpTemplate.Migrations table: "AbpUserAccounts", column: "EmailAddress"); - migrationBuilder.CreateIndex( - name: "IX_AbpUserAccounts_UserName", - table: "AbpUserAccounts", - column: "UserName"); - migrationBuilder.CreateIndex( name: "IX_AbpUserAccounts_TenantId_EmailAddress", table: "AbpUserAccounts", @@ -1111,9 +1370,9 @@ namespace PearAdmin.AbpTemplate.Migrations columns: new[] { "TenantId", "UserName" }); migrationBuilder.CreateIndex( - name: "IX_AbpUserClaims_UserId", - table: "AbpUserClaims", - column: "UserId"); + name: "IX_AbpUserAccounts_UserName", + table: "AbpUserAccounts", + column: "UserName"); migrationBuilder.CreateIndex( name: "IX_AbpUserClaims_TenantId_ClaimType", @@ -1121,9 +1380,9 @@ namespace PearAdmin.AbpTemplate.Migrations columns: new[] { "TenantId", "ClaimType" }); migrationBuilder.CreateIndex( - name: "IX_AbpUserLoginAttempts_UserId_TenantId", - table: "AbpUserLoginAttempts", - columns: new[] { "UserId", "TenantId" }); + name: "IX_AbpUserClaims_UserId", + table: "AbpUserClaims", + column: "UserId"); migrationBuilder.CreateIndex( name: "IX_AbpUserLoginAttempts_TenancyName_UserNameOrEmailAddress_Resu~", @@ -1131,9 +1390,14 @@ namespace PearAdmin.AbpTemplate.Migrations columns: new[] { "TenancyName", "UserNameOrEmailAddress", "Result" }); migrationBuilder.CreateIndex( - name: "IX_AbpUserLogins_UserId", + name: "IX_AbpUserLoginAttempts_UserId_TenantId", + table: "AbpUserLoginAttempts", + columns: new[] { "UserId", "TenantId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserLogins_TenantId_LoginProvider_ProviderKey", table: "AbpUserLogins", - column: "UserId"); + columns: new[] { "TenantId", "LoginProvider", "ProviderKey" }); migrationBuilder.CreateIndex( name: "IX_AbpUserLogins_TenantId_UserId", @@ -1141,9 +1405,9 @@ namespace PearAdmin.AbpTemplate.Migrations columns: new[] { "TenantId", "UserId" }); migrationBuilder.CreateIndex( - name: "IX_AbpUserLogins_TenantId_LoginProvider_ProviderKey", + name: "IX_AbpUserLogins_UserId", table: "AbpUserLogins", - columns: new[] { "TenantId", "LoginProvider", "ProviderKey" }); + column: "UserId"); migrationBuilder.CreateIndex( name: "IX_AbpUserNotifications_UserId_State_CreationTime", @@ -1160,11 +1424,6 @@ namespace PearAdmin.AbpTemplate.Migrations table: "AbpUserOrganizationUnits", columns: new[] { "TenantId", "UserId" }); - migrationBuilder.CreateIndex( - name: "IX_AbpUserRoles_UserId", - table: "AbpUserRoles", - column: "UserId"); - migrationBuilder.CreateIndex( name: "IX_AbpUserRoles_TenantId_RoleId", table: "AbpUserRoles", @@ -1175,6 +1434,11 @@ namespace PearAdmin.AbpTemplate.Migrations table: "AbpUserRoles", columns: new[] { "TenantId", "UserId" }); + migrationBuilder.CreateIndex( + name: "IX_AbpUserRoles_UserId", + table: "AbpUserRoles", + column: "UserId"); + migrationBuilder.CreateIndex( name: "IX_AbpUsers_CreatorUserId", table: "AbpUsers", @@ -1201,14 +1465,14 @@ namespace PearAdmin.AbpTemplate.Migrations columns: new[] { "TenantId", "NormalizedUserName" }); migrationBuilder.CreateIndex( - name: "IX_AbpUserTokens_UserId", + name: "IX_AbpUserTokens_TenantId_UserId", table: "AbpUserTokens", - column: "UserId"); + columns: new[] { "TenantId", "UserId" }); migrationBuilder.CreateIndex( - name: "IX_AbpUserTokens_TenantId_UserId", + name: "IX_AbpUserTokens_UserId", table: "AbpUserTokens", - columns: new[] { "TenantId", "UserId" }); + column: "UserId"); migrationBuilder.CreateIndex( name: "IX_AbpWebhookSendAttempts_WebhookEventId", @@ -1225,10 +1489,10 @@ namespace PearAdmin.AbpTemplate.Migrations name: "AbpBackgroundJobs"); migrationBuilder.DropTable( - name: "AbpDynamicParameterValues"); + name: "AbpDynamicEntityPropertyValues"); migrationBuilder.DropTable( - name: "AbpEntityDynamicParameterValues"); + name: "AbpDynamicPropertyValues"); migrationBuilder.DropTable( name: "AbpEntityPropertyChanges"); @@ -1300,7 +1564,22 @@ namespace PearAdmin.AbpTemplate.Migrations name: "AbpWebhookSubscriptions"); migrationBuilder.DropTable( - name: "AbpEntityDynamicParameters"); + name: "AppBinaryObjects"); + + migrationBuilder.DropTable( + name: "AppChatMessages"); + + migrationBuilder.DropTable( + name: "AppFriendships"); + + migrationBuilder.DropTable( + name: "Center_DailyTask"); + + migrationBuilder.DropTable( + name: "Resource_DataDictionaryItem"); + + migrationBuilder.DropTable( + name: "AbpDynamicEntityProperties"); migrationBuilder.DropTable( name: "AbpEntityChanges"); @@ -1315,7 +1594,7 @@ namespace PearAdmin.AbpTemplate.Migrations name: "AbpWebhookEvents"); migrationBuilder.DropTable( - name: "AbpDynamicParameters"); + name: "AbpDynamicProperties"); migrationBuilder.DropTable( name: "AbpEntityChangeSets"); diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/AbpTemplateDbContextModelSnapshot.cs b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/AbpTemplateDbContextModelSnapshot.cs index 79681cfb5a297e72438deb1e995bccc951e535c6..4076e83219ad10d2c13ba4eed0e85dda46115c88 100644 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/AbpTemplateDbContextModelSnapshot.cs +++ b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/Migrations/AbpTemplateDbContextModelSnapshot.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using PearAdmin.AbpTemplate.EntityFrameworkCore; -namespace PearAdmin.AbpTemplate.Migrations +namespace PearAdmin.AbpTemplate.EntityFrameworkCore.Migrations { [DbContext(typeof(AbpTemplateDbContext))] partial class AbpTemplateDbContextModelSnapshot : ModelSnapshot @@ -14,8 +14,8 @@ namespace PearAdmin.AbpTemplate.Migrations { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("ProductVersion", "3.1.4") - .HasAnnotation("Relational:MaxIdentifierLength", 64); + .HasAnnotation("Relational:MaxIdentifierLength", 64) + .HasAnnotation("ProductVersion", "5.0.7"); modelBuilder.Entity("Abp.Application.Editions.Edition", b => { @@ -37,8 +37,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("DisplayName") .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("IsDeleted") .HasColumnType("tinyint(1)"); @@ -51,8 +51,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Name") .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); + .HasMaxLength(32) + .HasColumnType("varchar(32)"); b.HasKey("Id"); @@ -73,20 +73,20 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Discriminator") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("Name") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("TenantId") .HasColumnType("int"); b.Property("Value") .IsRequired() - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); + .HasMaxLength(2000) + .HasColumnType("varchar(2000)"); b.HasKey("Id"); @@ -102,24 +102,28 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("CustomData") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); + .HasMaxLength(2000) + .HasColumnType("varchar(2000)"); b.Property("Exception") - .HasColumnType("varchar(2000) CHARACTER SET utf8mb4") - .HasMaxLength(2000); + .HasMaxLength(2000) + .HasColumnType("varchar(2000)"); + + b.Property("ExceptionMessage") + .HasMaxLength(1024) + .HasColumnType("varchar(1024)"); b.Property("ExecutionDuration") .HasColumnType("int"); @@ -134,19 +138,19 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("MethodName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("Parameters") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); + .HasMaxLength(1024) + .HasColumnType("varchar(1024)"); b.Property("ReturnValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("ServiceName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("TenantId") .HasColumnType("int"); @@ -179,15 +183,15 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Discriminator") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("IsGranted") .HasColumnType("tinyint(1)"); b.Property("Name") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("TenantId") .HasColumnType("int"); @@ -208,11 +212,11 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("CreationTime") .HasColumnType("datetime(6)"); @@ -254,8 +258,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("datetime(6)"); b.Property("EmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("IsDeleted") .HasColumnType("tinyint(1)"); @@ -276,8 +280,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("UserName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.HasKey("Id"); @@ -301,11 +305,11 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("ClaimType") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("ClaimValue") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("CreationTime") .HasColumnType("datetime(6)"); @@ -336,13 +340,13 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("LoginProvider") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("ProviderKey") .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("TenantId") .HasColumnType("int"); @@ -368,16 +372,16 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("CreationTime") .HasColumnType("datetime(6)"); @@ -386,8 +390,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("tinyint unsigned"); b.Property("TenancyName") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("TenantId") .HasColumnType("int"); @@ -396,8 +400,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("UserNameOrEmailAddress") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.HasKey("Id"); @@ -483,12 +487,12 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("datetime(6)"); b.Property("LoginProvider") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("Name") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("TenantId") .HasColumnType("int"); @@ -497,8 +501,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("Value") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.HasKey("Id"); @@ -526,13 +530,13 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("JobArgs") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); + .HasMaxLength(1048576) + .HasColumnType("longtext"); b.Property("JobType") .IsRequired() - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("LastTryTime") .HasColumnType("datetime(6)"); @@ -573,8 +577,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Name") .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("TenantId") .HasColumnType("int"); @@ -583,7 +587,7 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("Value") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.HasKey("Id"); @@ -595,104 +599,109 @@ namespace PearAdmin.AbpTemplate.Migrations b.ToTable("AbpSettings"); }); - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameter", b => + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityProperty", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); - b.Property("InputType") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("ParameterName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); + b.Property("DynamicPropertyId") + .HasColumnType("int"); - b.Property("Permission") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + b.Property("EntityFullName") + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("TenantId") .HasColumnType("int"); b.HasKey("Id"); - b.HasIndex("ParameterName", "TenantId") + b.HasIndex("DynamicPropertyId"); + + b.HasIndex("EntityFullName", "DynamicPropertyId", "TenantId") .IsUnique(); - b.ToTable("AbpDynamicParameters"); + b.ToTable("AbpDynamicEntityProperties"); }); - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); + .HasColumnType("bigint"); - b.Property("DynamicParameterId") + b.Property("DynamicEntityPropertyId") .HasColumnType("int"); + b.Property("EntityId") + .HasColumnType("longtext"); + b.Property("TenantId") .HasColumnType("int"); b.Property("Value") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.HasKey("Id"); - b.HasIndex("DynamicParameterId"); + b.HasIndex("DynamicEntityPropertyId"); - b.ToTable("AbpDynamicParameterValues"); + b.ToTable("AbpDynamicEntityPropertyValues"); }); - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); - b.Property("DynamicParameterId") - .HasColumnType("int"); + b.Property("DisplayName") + .HasColumnType("longtext"); - b.Property("EntityFullName") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); + b.Property("InputType") + .HasColumnType("longtext"); + + b.Property("Permission") + .HasColumnType("longtext"); + + b.Property("PropertyName") + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("TenantId") .HasColumnType("int"); b.HasKey("Id"); - b.HasIndex("DynamicParameterId"); - - b.HasIndex("EntityFullName", "DynamicParameterId", "TenantId") + b.HasIndex("PropertyName", "TenantId") .IsUnique(); - b.ToTable("AbpEntityDynamicParameters"); + b.ToTable("AbpDynamicProperties"); }); - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); + .HasColumnType("bigint"); - b.Property("EntityDynamicParameterId") + b.Property("DynamicPropertyId") .HasColumnType("int"); - b.Property("EntityId") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("TenantId") .HasColumnType("int"); b.Property("Value") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.HasKey("Id"); - b.HasIndex("EntityDynamicParameterId"); + b.HasIndex("DynamicPropertyId"); - b.ToTable("AbpEntityDynamicParameterValues"); + b.ToTable("AbpDynamicPropertyValues"); }); modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => @@ -711,12 +720,12 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("EntityId") - .HasColumnType("varchar(48) CHARACTER SET utf8mb4") - .HasMaxLength(48); + .HasMaxLength(48) + .HasColumnType("varchar(48)"); b.Property("EntityTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); + .HasMaxLength(192) + .HasColumnType("varchar(192)"); b.Property("TenantId") .HasColumnType("int"); @@ -737,22 +746,22 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("BrowserInfo") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("ClientIpAddress") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("ClientName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("CreationTime") .HasColumnType("datetime(6)"); b.Property("ExtensionData") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("ImpersonatorTenantId") .HasColumnType("int"); @@ -761,8 +770,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("Reason") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("TenantId") .HasColumnType("int"); @@ -791,20 +800,26 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("NewValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); + + b.Property("NewValueHash") + .HasColumnType("longtext"); b.Property("OriginalValue") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); + + b.Property("OriginalValueHash") + .HasColumnType("longtext"); b.Property("PropertyName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); + .HasMaxLength(96) + .HasColumnType("varchar(96)"); b.Property("PropertyTypeFullName") - .HasColumnType("varchar(192) CHARACTER SET utf8mb4") - .HasMaxLength(192); + .HasMaxLength(192) + .HasColumnType("varchar(192)"); b.Property("TenantId") .HasColumnType("int"); @@ -836,12 +851,12 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("DisplayName") .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("Icon") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("IsDeleted") .HasColumnType("tinyint(1)"); @@ -857,8 +872,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Name") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("TenantId") .HasColumnType("int"); @@ -884,13 +899,13 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Key") .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("LanguageName") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("LastModificationTime") .HasColumnType("datetime(6)"); @@ -900,16 +915,16 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Source") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("TenantId") .HasColumnType("int"); b.Property("Value") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(67108864); + .HasMaxLength(67108864) + .HasColumnType("longtext"); b.HasKey("Id"); @@ -931,44 +946,44 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); + .HasMaxLength(1048576) + .HasColumnType("longtext"); b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); + .HasMaxLength(96) + .HasColumnType("varchar(96)"); b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); + .HasMaxLength(250) + .HasColumnType("varchar(250)"); b.Property("ExcludedUserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); + .HasMaxLength(131072) + .HasColumnType("longtext"); b.Property("NotificationName") .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); + .HasMaxLength(96) + .HasColumnType("varchar(96)"); b.Property("Severity") .HasColumnType("tinyint unsigned"); b.Property("TenantIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); + .HasMaxLength(131072) + .HasColumnType("longtext"); b.Property("UserIds") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(131072); + .HasMaxLength(131072) + .HasColumnType("longtext"); b.HasKey("Id"); @@ -988,20 +1003,20 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); + .HasMaxLength(96) + .HasColumnType("varchar(96)"); b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); + .HasMaxLength(250) + .HasColumnType("varchar(250)"); b.Property("NotificationName") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); + .HasMaxLength(96) + .HasColumnType("varchar(96)"); b.Property("TenantId") .HasColumnType("int"); @@ -1031,29 +1046,29 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(1048576); + .HasMaxLength(1048576) + .HasColumnType("longtext"); b.Property("DataTypeName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("EntityId") - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); + .HasMaxLength(96) + .HasColumnType("varchar(96)"); b.Property("EntityTypeAssemblyQualifiedName") - .HasColumnType("varchar(512) CHARACTER SET utf8mb4") - .HasMaxLength(512); + .HasMaxLength(512) + .HasColumnType("varchar(512)"); b.Property("EntityTypeName") - .HasColumnType("varchar(250) CHARACTER SET utf8mb4") - .HasMaxLength(250); + .HasMaxLength(250) + .HasColumnType("varchar(250)"); b.Property("NotificationName") .IsRequired() - .HasColumnType("varchar(96) CHARACTER SET utf8mb4") - .HasMaxLength(96); + .HasMaxLength(96) + .HasColumnType("varchar(96)"); b.Property("Severity") .HasColumnType("tinyint unsigned"); @@ -1104,8 +1119,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Code") .IsRequired() - .HasColumnType("varchar(95) CHARACTER SET utf8mb4") - .HasMaxLength(95); + .HasMaxLength(95) + .HasColumnType("varchar(95)"); b.Property("CreationTime") .HasColumnType("datetime(6)"); @@ -1121,8 +1136,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("DisplayName") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("IsDeleted") .HasColumnType("tinyint(1)"); @@ -1191,7 +1206,7 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("datetime(6)"); b.Property("Data") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("DeletionTime") .HasColumnType("datetime(6)"); @@ -1204,7 +1219,7 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("WebhookName") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.HasKey("Id"); @@ -1224,7 +1239,7 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("datetime(6)"); b.Property("Response") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("ResponseStatusCode") .HasColumnType("int"); @@ -1258,24 +1273,24 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("Headers") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("IsActive") .HasColumnType("tinyint(1)"); b.Property("Secret") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("TenantId") .HasColumnType("int"); b.Property("WebhookUri") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.Property("Webhooks") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + .HasColumnType("longtext"); b.HasKey("Id"); @@ -1290,8 +1305,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("ConcurrencyStamp") .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("CreationTime") .HasColumnType("datetime(6)"); @@ -1306,13 +1321,13 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("datetime(6)"); b.Property("Description") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(5000); + .HasMaxLength(5000) + .HasColumnType("varchar(5000)"); b.Property("DisplayName") .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("IsDefault") .HasColumnType("tinyint(1)"); @@ -1331,13 +1346,13 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Name") .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); + .HasMaxLength(32) + .HasColumnType("varchar(32)"); b.Property("NormalizedName") .IsRequired() - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); + .HasMaxLength(32) + .HasColumnType("varchar(32)"); b.Property("TenantId") .HasColumnType("int"); @@ -1365,13 +1380,13 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("int"); b.Property("AuthenticationSource") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("CreationTime") .HasColumnType("datetime(6)"); @@ -1387,12 +1402,12 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("EmailAddress") .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("EmailConfirmationCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); + .HasMaxLength(328) + .HasColumnType("varchar(328)"); b.Property("IsActive") .HasColumnType("tinyint(1)"); @@ -1423,51 +1438,51 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("Name") .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("NormalizedEmailAddress") .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("NormalizedUserName") .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.Property("Password") .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("PasswordResetCode") - .HasColumnType("varchar(328) CHARACTER SET utf8mb4") - .HasMaxLength(328); + .HasMaxLength(328) + .HasColumnType("varchar(328)"); b.Property("PhoneNumber") - .HasColumnType("varchar(32) CHARACTER SET utf8mb4") - .HasMaxLength(32); + .HasMaxLength(32) + .HasColumnType("varchar(32)"); b.Property("ProfilePictureId") .HasColumnType("char(36)"); b.Property("SecurityStamp") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); + .HasMaxLength(128) + .HasColumnType("varchar(128)"); b.Property("Surname") .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); + .HasMaxLength(64) + .HasColumnType("varchar(64)"); b.Property("TenantId") .HasColumnType("int"); b.Property("UserName") .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); b.HasKey("Id"); @@ -1484,65 +1499,102 @@ namespace PearAdmin.AbpTemplate.Migrations b.ToTable("AbpUsers"); }); - modelBuilder.Entity("PearAdmin.AbpTemplate.Chat.ChatMessage", b => + modelBuilder.Entity("PearAdmin.AbpTemplate.BinaryObjects.BinaryObject", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - b.Property("CreationTime") - .HasColumnType("datetime(6)"); + .HasColumnType("char(36)"); - b.Property("Message") + b.Property("Bytes") .IsRequired() - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(4096); + .HasColumnType("longblob"); - b.Property("ReadState") + b.Property("TenantId") .HasColumnType("int"); - b.Property("ReceiverReadState") - .HasColumnType("int"); + b.HasKey("Id"); - b.Property("SharedMessageId") - .HasColumnType("char(36)"); + b.ToTable("AppBinaryObjects"); + }); - b.Property("Side") + modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() .HasColumnType("int"); - b.Property("TargetTenantId") - .HasColumnType("int"); + b.Property("ConnectionString") + .HasMaxLength(1024) + .HasColumnType("varchar(1024)"); - b.Property("TargetUserId") + b.Property("CreationTime") + .HasColumnType("datetime(6)"); + + b.Property("CreatorUserId") .HasColumnType("bigint"); - b.Property("TenantId") + b.Property("DeleterUserId") + .HasColumnType("bigint"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)"); + + b.Property("EditionId") .HasColumnType("int"); - b.Property("UserId") + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsDeleted") + .HasColumnType("tinyint(1)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)"); + + b.Property("LastModifierUserId") .HasColumnType("bigint"); + b.Property("Name") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("TenancyName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + b.HasKey("Id"); - b.ToTable("AppChatMessages"); + b.HasIndex("CreatorUserId"); + + b.HasIndex("DeleterUserId"); + + b.HasIndex("EditionId"); + + b.HasIndex("LastModifierUserId"); + + b.HasIndex("TenancyName"); + + b.ToTable("AbpTenants"); }); - modelBuilder.Entity("PearAdmin.AbpTemplate.DataDictionaries.DataDictionaryItem", b => + modelBuilder.Entity("PearAdmin.AbpTemplate.Resource.DataDictionaries.DataDictionaryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("Code") - .HasColumnType("varchar(5) CHARACTER SET utf8mb4") - .HasMaxLength(5); + .HasMaxLength(5) + .HasColumnType("varchar(5)"); b.Property("DataDictionaryId") .HasColumnType("int"); b.Property("Name") - .HasColumnType("varchar(30) CHARACTER SET utf8mb4") - .HasMaxLength(30); + .HasMaxLength(30) + .HasColumnType("varchar(30)"); b.Property("TenantId") .HasColumnType("int"); @@ -1552,7 +1604,7 @@ namespace PearAdmin.AbpTemplate.Migrations b.ToTable("Resource_DataDictionaryItem"); }); - modelBuilder.Entity("PearAdmin.AbpTemplate.Friendships.Friendship", b => + modelBuilder.Entity("PearAdmin.AbpTemplate.Social.Chat.ChatMessage", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1561,26 +1613,29 @@ namespace PearAdmin.AbpTemplate.Migrations b.Property("CreationTime") .HasColumnType("datetime(6)"); - b.Property("FriendProfilePictureId") - .HasColumnType("char(36)"); + b.Property("Message") + .IsRequired() + .HasMaxLength(4096) + .HasColumnType("varchar(4096)"); - b.Property("FriendTenancyName") - .HasColumnType("longtext CHARACTER SET utf8mb4"); + b.Property("ReadState") + .HasColumnType("int"); - b.Property("FriendTenantId") + b.Property("ReceiverReadState") .HasColumnType("int"); - b.Property("FriendUserId") - .HasColumnType("bigint"); + b.Property("SharedMessageId") + .HasColumnType("char(36)"); - b.Property("FriendUserName") - .IsRequired() - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); + b.Property("Side") + .HasColumnType("int"); - b.Property("State") + b.Property("TargetTenantId") .HasColumnType("int"); + b.Property("TargetUserId") + .HasColumnType("bigint"); + b.Property("TenantId") .HasColumnType("int"); @@ -1589,90 +1644,50 @@ namespace PearAdmin.AbpTemplate.Migrations b.HasKey("Id"); - b.ToTable("AppFriendships"); + b.ToTable("AppChatMessages"); }); - modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => + modelBuilder.Entity("PearAdmin.AbpTemplate.Social.Friendships.Friendship", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("ConnectionString") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); + .HasColumnType("bigint"); b.Property("CreationTime") .HasColumnType("datetime(6)"); - b.Property("CreatorUserId") - .HasColumnType("bigint"); - - b.Property("DeleterUserId") - .HasColumnType("bigint"); + b.Property("FriendProfilePictureId") + .HasColumnType("char(36)"); - b.Property("DeletionTime") - .HasColumnType("datetime(6)"); + b.Property("FriendTenancyName") + .HasColumnType("longtext"); - b.Property("EditionId") + b.Property("FriendTenantId") .HasColumnType("int"); - b.Property("IsActive") - .HasColumnType("tinyint(1)"); - - b.Property("IsDeleted") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierUserId") + b.Property("FriendUserId") .HasColumnType("bigint"); - b.Property("Name") - .IsRequired() - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("TenancyName") + b.Property("FriendUserName") .IsRequired() - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("EditionId"); - - b.HasIndex("LastModifierUserId"); + .HasMaxLength(256) + .HasColumnType("varchar(256)"); - b.HasIndex("TenancyName"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("PearAdmin.AbpTemplate.Storage.BinaryObject", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("Bytes") - .IsRequired() - .HasColumnType("longblob"); + b.Property("State") + .HasColumnType("int"); b.Property("TenantId") .HasColumnType("int"); + b.Property("UserId") + .HasColumnType("bigint"); + b.HasKey("Id"); - b.ToTable("AppBinaryObjects"); + b.ToTable("AppFriendships"); }); - modelBuilder.Entity("PearAdmin.AbpTemplate.TaskCenters.DailyTasks.DailyTask", b => + modelBuilder.Entity("PearAdmin.AbpTemplate.TaskCenter.DailyTasks.DailyTask", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1700,12 +1715,12 @@ namespace PearAdmin.AbpTemplate.Migrations .HasColumnType("bigint"); b.Property("Name") - .HasColumnType("varchar(200) CHARACTER SET utf8mb4") - .HasMaxLength(200); + .HasMaxLength(200) + .HasColumnType("varchar(200)"); b.Property("Remark") - .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") - .HasMaxLength(1000); + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); b.HasKey("Id"); @@ -1817,31 +1832,37 @@ namespace PearAdmin.AbpTemplate.Migrations .HasForeignKey("UserId"); }); - modelBuilder.Entity("Abp.DynamicEntityParameters.DynamicParameterValue", b => + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityProperty", b => { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") - .WithMany("DynamicParameterValues") - .HasForeignKey("DynamicParameterId") + b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") + .WithMany() + .HasForeignKey("DynamicPropertyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); + + b.Navigation("DynamicProperty"); }); - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameter", b => + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicEntityPropertyValue", b => { - b.HasOne("Abp.DynamicEntityParameters.DynamicParameter", "DynamicParameter") + b.HasOne("Abp.DynamicEntityProperties.DynamicEntityProperty", "DynamicEntityProperty") .WithMany() - .HasForeignKey("DynamicParameterId") + .HasForeignKey("DynamicEntityPropertyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); + + b.Navigation("DynamicEntityProperty"); }); - modelBuilder.Entity("Abp.DynamicEntityParameters.EntityDynamicParameterValue", b => + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicPropertyValue", b => { - b.HasOne("Abp.DynamicEntityParameters.EntityDynamicParameter", "EntityDynamicParameter") - .WithMany() - .HasForeignKey("EntityDynamicParameterId") + b.HasOne("Abp.DynamicEntityProperties.DynamicProperty", "DynamicProperty") + .WithMany("DynamicPropertyValues") + .HasForeignKey("DynamicPropertyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); + + b.Navigation("DynamicProperty"); }); modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => @@ -1867,6 +1888,8 @@ namespace PearAdmin.AbpTemplate.Migrations b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") .WithMany("Children") .HasForeignKey("ParentId"); + + b.Navigation("Parent"); }); modelBuilder.Entity("Abp.Webhooks.WebhookSendAttempt", b => @@ -1876,6 +1899,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasForeignKey("WebhookEventId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); + + b.Navigation("WebhookEvent"); }); modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => @@ -1891,6 +1916,12 @@ namespace PearAdmin.AbpTemplate.Migrations b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") .WithMany() .HasForeignKey("LastModifierUserId"); + + b.Navigation("CreatorUser"); + + b.Navigation("DeleterUser"); + + b.Navigation("LastModifierUser"); }); modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => @@ -1906,6 +1937,12 @@ namespace PearAdmin.AbpTemplate.Migrations b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") .WithMany() .HasForeignKey("LastModifierUserId"); + + b.Navigation("CreatorUser"); + + b.Navigation("DeleterUser"); + + b.Navigation("LastModifierUser"); }); modelBuilder.Entity("PearAdmin.AbpTemplate.MultiTenancy.Tenant", b => @@ -1925,22 +1962,26 @@ namespace PearAdmin.AbpTemplate.Migrations b.HasOne("PearAdmin.AbpTemplate.Authorization.Users.User", "LastModifierUser") .WithMany() .HasForeignKey("LastModifierUserId"); + + b.Navigation("CreatorUser"); + + b.Navigation("DeleterUser"); + + b.Navigation("Edition"); + + b.Navigation("LastModifierUser"); }); - modelBuilder.Entity("PearAdmin.AbpTemplate.TaskCenters.DailyTasks.DailyTask", b => + modelBuilder.Entity("PearAdmin.AbpTemplate.TaskCenter.DailyTasks.DailyTask", b => { - b.OwnsOne("PearAdmin.AbpTemplate.TaskCenters.DailyTasks.ValueObjects.DateRange", "DateRange", b1 => + b.OwnsOne("PearAdmin.AbpTemplate.TaskCenter.DailyTasks.TaskStateType", "TaskState", b1 => { b1.Property("DailyTaskId") .HasColumnType("char(36)"); - b1.Property("EndTime") - .HasColumnName("EndTime") - .HasColumnType("datetime(6)"); - - b1.Property("StartTime") - .HasColumnName("StartTime") - .HasColumnType("datetime(6)"); + b1.Property("Id") + .HasColumnType("int") + .HasColumnName("TaskStateType"); b1.HasKey("DailyTaskId"); @@ -1950,14 +1991,18 @@ namespace PearAdmin.AbpTemplate.Migrations .HasForeignKey("DailyTaskId"); }); - b.OwnsOne("PearAdmin.AbpTemplate.TaskCenters.DailyTasks.ValueObjects.TaskState", "TaskState", b1 => + b.OwnsOne("PearAdmin.AbpTemplate.TaskCenter.DailyTasks.ValueObjects.DateRange", "DateRange", b1 => { b1.Property("DailyTaskId") .HasColumnType("char(36)"); - b1.Property("TaskStateType") - .HasColumnName("TaskStateType") - .HasColumnType("int"); + b1.Property("EndTime") + .HasColumnType("datetime(6)") + .HasColumnName("EndTime"); + + b1.Property("StartTime") + .HasColumnType("datetime(6)") + .HasColumnName("StartTime"); b1.HasKey("DailyTaskId"); @@ -1966,6 +2011,10 @@ namespace PearAdmin.AbpTemplate.Migrations b1.WithOwner() .HasForeignKey("DailyTaskId"); }); + + b.Navigation("DateRange"); + + b.Navigation("TaskState"); }); modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b => @@ -1975,6 +2024,8 @@ namespace PearAdmin.AbpTemplate.Migrations .HasForeignKey("EditionId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); + + b.Navigation("Edition"); }); modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => @@ -1994,6 +2045,48 @@ namespace PearAdmin.AbpTemplate.Migrations .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); + + modelBuilder.Entity("Abp.DynamicEntityProperties.DynamicProperty", b => + { + b.Navigation("DynamicPropertyValues"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => + { + b.Navigation("PropertyChanges"); + }); + + modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => + { + b.Navigation("EntityChanges"); + }); + + modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => + { + b.Navigation("Children"); + }); + + modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Roles.Role", b => + { + b.Navigation("Claims"); + + b.Navigation("Permissions"); + }); + + modelBuilder.Entity("PearAdmin.AbpTemplate.Authorization.Users.User", b => + { + b.Navigation("Claims"); + + b.Navigation("Logins"); + + b.Navigation("Permissions"); + + b.Navigation("Roles"); + + b.Navigation("Settings"); + + b.Navigation("Tokens"); + }); #pragma warning restore 612, 618 } } diff --git a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/PearAdmin.AbpTemplate.EntityFrameworkCore.csproj b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/PearAdmin.AbpTemplate.EntityFrameworkCore.csproj index 1e2b350c4f841175d49721b1de7e2751a3ca0ed1..ecd8e949dd4fd86a318f9afdd570da8287439a01 100644 --- a/src/PearAdmin.AbpTemplate.EntityFrameworkCore/PearAdmin.AbpTemplate.EntityFrameworkCore.csproj +++ b/src/PearAdmin.AbpTemplate.EntityFrameworkCore/PearAdmin.AbpTemplate.EntityFrameworkCore.csproj @@ -1,6 +1,6 @@  - netcoreapp3.1 + net5.0 $(AssetTargetFallback);portable-net45+win8+wp8+wpa81; PearAdmin.AbpTemplate.EntityFrameworkCore true @@ -9,22 +9,15 @@ PearAdmin.AbpTemplate.EntityFrameworkCore - - - - - - - - + all runtime; build; native; contentfiles; analyzers - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/src/PearAdmin.AbpTemplate.Gateway/PearAdmin.AbpTemplate.Gateway.csproj b/src/PearAdmin.AbpTemplate.Gateway/PearAdmin.AbpTemplate.Gateway.csproj index ea5ef6b11f6d0e4bb4ae85d2eddf9b52fbd3c815..cac150f7ed3e31e532d135d7a728b15cd9ad2200 100644 --- a/src/PearAdmin.AbpTemplate.Gateway/PearAdmin.AbpTemplate.Gateway.csproj +++ b/src/PearAdmin.AbpTemplate.Gateway/PearAdmin.AbpTemplate.Gateway.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1 + net5.0 diff --git a/src/PearAdmin.AbpTemplate.Gateway/TaskCenter/AntiCorruption/OrganizationService.cs b/src/PearAdmin.AbpTemplate.Gateway/TaskCenter/AntiCorruption/OrganizationService.cs index b39c8a642833bb6181c4b3636eaba87217ad27a9..162dd8ce4e01d22fe332918843e7c7960347e266 100644 --- a/src/PearAdmin.AbpTemplate.Gateway/TaskCenter/AntiCorruption/OrganizationService.cs +++ b/src/PearAdmin.AbpTemplate.Gateway/TaskCenter/AntiCorruption/OrganizationService.cs @@ -1,5 +1,5 @@ -using PearAdmin.AbpTemplate.Organizations; -using System.Threading.Tasks; +using System.Threading.Tasks; +using PearAdmin.AbpTemplate.Organizations; namespace PearAdmin.AbpTemplate.TaskCenter.AntiCorruption { diff --git a/test/PearAdmin.AbpTemplate.Admin.Tests/PearAdmin.AbpTemplate.Admin.Tests.csproj b/test/PearAdmin.AbpTemplate.Admin.Tests/PearAdmin.AbpTemplate.Admin.Tests.csproj index 2b510a9809c892afe01509462200d8e59d420d87..88d2425ac12df2079ff8d85ac58ebd79ba663ae4 100644 --- a/test/PearAdmin.AbpTemplate.Admin.Tests/PearAdmin.AbpTemplate.Admin.Tests.csproj +++ b/test/PearAdmin.AbpTemplate.Admin.Tests/PearAdmin.AbpTemplate.Admin.Tests.csproj @@ -1,7 +1,7 @@  1.0.0.0 - netcoreapp3.1 + net5.0 $(AssetTargetFallback);portable-net45+win8+wp8+wpa81; PearAdmin.AbpTemplate.Admin.Tests PearAdmin.AbpTemplate.Admin.Tests @@ -25,6 +25,6 @@ runtime; build; native; contentfiles; analyzers - + \ No newline at end of file diff --git a/test/PearAdmin.AbpTemplate.Application.Tests/PearAdmin.AbpTemplate.Application.Tests.csproj b/test/PearAdmin.AbpTemplate.Application.Tests/PearAdmin.AbpTemplate.Application.Tests.csproj index 5981f2738a9f8d104e49da66bc981327a8cfeefc..7f7ff540ab85e738c106ea9b3a10f5e504bac345 100644 --- a/test/PearAdmin.AbpTemplate.Application.Tests/PearAdmin.AbpTemplate.Application.Tests.csproj +++ b/test/PearAdmin.AbpTemplate.Application.Tests/PearAdmin.AbpTemplate.Application.Tests.csproj @@ -1,7 +1,7 @@  1.0.0.0 - netcoreapp3.1 + net5.0 $(AssetTargetFallback);portable-net45+win8+wp8+wpa81; PearAdmin.AbpTemplate.Application.Tests PearAdmin.AbpTemplate.Tests @@ -24,8 +24,8 @@ all runtime; build; native; contentfiles; analyzers - - + + diff --git a/test/PearAdmin.AbpTemplate.Core.Tests/PearAdmin.AbpTemplate.Core.Tests.csproj b/test/PearAdmin.AbpTemplate.Core.Tests/PearAdmin.AbpTemplate.Core.Tests.csproj index b13a06a98cc63df22c366510fef77d6824500b9a..cd154235029bc9d2e566476a4ca2e8b017b6e975 100644 --- a/test/PearAdmin.AbpTemplate.Core.Tests/PearAdmin.AbpTemplate.Core.Tests.csproj +++ b/test/PearAdmin.AbpTemplate.Core.Tests/PearAdmin.AbpTemplate.Core.Tests.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1 + net5.0 false @@ -12,7 +12,7 @@ - + diff --git a/tool/PearAdmin.AbpTemplate.Migrator/PearAdmin.AbpTemplate.Migrator.csproj b/tool/PearAdmin.AbpTemplate.Migrator/PearAdmin.AbpTemplate.Migrator.csproj index fb917a537e1deb43b253e01e43bd0dbf8f8b1898..b76e40e70bed666b330709cb7099feb9eb9da720 100644 --- a/tool/PearAdmin.AbpTemplate.Migrator/PearAdmin.AbpTemplate.Migrator.csproj +++ b/tool/PearAdmin.AbpTemplate.Migrator/PearAdmin.AbpTemplate.Migrator.csproj @@ -1,6 +1,6 @@  - netcoreapp3.1 + net5.0 $(AssetTargetFallback);portable-net45+win8+wp8+wpa81; PearAdmin.AbpTemplate.Migrator Exe @@ -15,7 +15,7 @@ - + diff --git a/tool/PearAdmin.AbpTemplate.Shared/PearAdmin.AbpTemplate.Shared.csproj b/tool/PearAdmin.AbpTemplate.Shared/PearAdmin.AbpTemplate.Shared.csproj index 7c4ae4ca62de0ce5035e56acec67f8c58dfb0aee..2f002aa338c556c5b1b7d2eb597b1d7f5394a1aa 100644 --- a/tool/PearAdmin.AbpTemplate.Shared/PearAdmin.AbpTemplate.Shared.csproj +++ b/tool/PearAdmin.AbpTemplate.Shared/PearAdmin.AbpTemplate.Shared.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1 + net5.0