diff --git a/SystemKonkursow/4.2.1/.gitignore b/SystemKonkursow/4.2.1/.gitignore index 5267229..7fe7cbe 100644 --- a/SystemKonkursow/4.2.1/.gitignore +++ b/SystemKonkursow/4.2.1/.gitignore @@ -7,3 +7,4 @@ bin/ aspnet-core/src/SystemKonkursow.Web.Host/App_Data/Logs/ aspnet-core/src/SystemKonkursow.Web.Mvc/App_Data/Logs/ aspnet-core/src/SystemKonkursow.Migrator/Logs/Logs.txt +aspnet-core/src/SystemKonkursow.EntityFrameworkCore/Migrations/ diff --git a/SystemKonkursow/4.2.1/angular/package-lock.json b/SystemKonkursow/4.2.1/angular/package-lock.json index 855a4da..748f017 100644 --- a/SystemKonkursow/4.2.1/angular/package-lock.json +++ b/SystemKonkursow/4.2.1/angular/package-lock.json @@ -3763,8 +3763,8 @@ "dev": true, "optional": true, "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" + "delegates": "1.0.0", + "readable-stream": "2.3.6" } }, "balanced-match": { @@ -3777,7 +3777,7 @@ "bundled": true, "dev": true, "requires": { - "balanced-match": "^1.0.0", + "balanced-match": "1.0.0", "concat-map": "0.0.1" } }, @@ -3841,7 +3841,7 @@ "dev": true, "optional": true, "requires": { - "minipass": "^2.2.1" + "minipass": "2.2.4" } }, "fs.realpath": { @@ -3856,14 +3856,14 @@ "dev": true, "optional": true, "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" + "aproba": "1.2.0", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.2" } }, "glob": { @@ -3872,12 +3872,12 @@ "dev": true, "optional": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" } }, "has-unicode": { @@ -3892,7 +3892,7 @@ "dev": true, "optional": true, "requires": { - "safer-buffer": "^2.1.0" + "safer-buffer": "2.1.2" } }, "ignore-walk": { @@ -3901,7 +3901,7 @@ "dev": true, "optional": true, "requires": { - "minimatch": "^3.0.4" + "minimatch": "3.0.4" } }, "inflight": { @@ -3910,8 +3910,8 @@ "dev": true, "optional": true, "requires": { - "once": "^1.3.0", - "wrappy": "1" + "once": "1.4.0", + "wrappy": "1.0.2" } }, "inherits": { @@ -3930,7 +3930,7 @@ "bundled": true, "dev": true, "requires": { - "number-is-nan": "^1.0.0" + "number-is-nan": "1.0.1" } }, "isarray": { @@ -3944,7 +3944,7 @@ "bundled": true, "dev": true, "requires": { - "brace-expansion": "^1.1.7" + "brace-expansion": "1.1.11" } }, "minimist": { @@ -3957,8 +3957,8 @@ "bundled": true, "dev": true, "requires": { - "safe-buffer": "^5.1.1", - "yallist": "^3.0.0" + "safe-buffer": "5.1.1", + "yallist": "3.0.2" } }, "minizlib": { @@ -3967,7 +3967,7 @@ "dev": true, "optional": true, "requires": { - "minipass": "^2.2.1" + "minipass": "2.2.4" } }, "mkdirp": { @@ -3990,9 +3990,9 @@ "dev": true, "optional": true, "requires": { - "debug": "^2.1.2", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" + "debug": "2.6.9", + "iconv-lite": "0.4.21", + "sax": "1.2.4" } }, "node-pre-gyp": { @@ -4001,16 +4001,16 @@ "dev": true, "optional": true, "requires": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.0", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.1.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4" + "detect-libc": "1.0.3", + "mkdirp": "0.5.1", + "needle": "2.2.0", + "nopt": "4.0.1", + "npm-packlist": "1.1.10", + "npmlog": "4.1.2", + "rc": "1.2.7", + "rimraf": "2.6.2", + "semver": "5.5.0", + "tar": "4.4.1" } }, "nopt": { @@ -4019,8 +4019,8 @@ "dev": true, "optional": true, "requires": { - "abbrev": "1", - "osenv": "^0.1.4" + "abbrev": "1.1.1", + "osenv": "0.1.5" } }, "npm-bundled": { @@ -4035,8 +4035,8 @@ "dev": true, "optional": true, "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" + "ignore-walk": "3.0.1", + "npm-bundled": "1.0.3" } }, "npmlog": { @@ -4045,10 +4045,10 @@ "dev": true, "optional": true, "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" + "are-we-there-yet": "1.1.4", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" } }, "number-is-nan": { @@ -4067,7 +4067,7 @@ "bundled": true, "dev": true, "requires": { - "wrappy": "1" + "wrappy": "1.0.2" } }, "os-homedir": { @@ -4088,8 +4088,8 @@ "dev": true, "optional": true, "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" } }, "path-is-absolute": { @@ -4110,10 +4110,10 @@ "dev": true, "optional": true, "requires": { - "deep-extend": "^0.5.1", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" + "deep-extend": "0.5.1", + "ini": "1.3.5", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" }, "dependencies": { "minimist": { @@ -4130,13 +4130,13 @@ "dev": true, "optional": true, "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.1.1", + "util-deprecate": "1.0.2" } }, "rimraf": { @@ -4145,7 +4145,7 @@ "dev": true, "optional": true, "requires": { - "glob": "^7.0.5" + "glob": "7.1.2" } }, "safe-buffer": { @@ -4188,9 +4188,9 @@ "bundled": true, "dev": true, "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" } }, "string_decoder": { @@ -4199,7 +4199,7 @@ "dev": true, "optional": true, "requires": { - "safe-buffer": "~5.1.0" + "safe-buffer": "5.1.1" } }, "strip-ansi": { @@ -4207,7 +4207,7 @@ "bundled": true, "dev": true, "requires": { - "ansi-regex": "^2.0.0" + "ansi-regex": "2.1.1" } }, "strip-json-comments": { @@ -4222,13 +4222,13 @@ "dev": true, "optional": true, "requires": { - "chownr": "^1.0.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.2.4", - "minizlib": "^1.1.0", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.1", - "yallist": "^3.0.2" + "chownr": "1.0.1", + "fs-minipass": "1.2.5", + "minipass": "2.2.4", + "minizlib": "1.1.0", + "mkdirp": "0.5.1", + "safe-buffer": "5.1.1", + "yallist": "3.0.2" } }, "util-deprecate": { @@ -4243,7 +4243,7 @@ "dev": true, "optional": true, "requires": { - "string-width": "^1.0.2" + "string-width": "1.0.2" } }, "wrappy": { @@ -9417,9 +9417,9 @@ } }, "sweetalert": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/sweetalert/-/sweetalert-2.1.0.tgz", - "integrity": "sha512-9YKj0SvjKyBfRWco50UOsIbXVeifYbxzT9Qda7EsqC01eafHGCSG0IR7g942ufjzt7lnwO8ZZBwr6emXv2fQrg==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/sweetalert/-/sweetalert-2.1.2.tgz", + "integrity": "sha512-iWx7X4anRBNDa/a+AdTmvAzQtkN1+s4j/JJRWlHpYE8Qimkohs8/XnFcWeYHH2lMA8LRCa5tj2d244If3S/hzA==", "requires": { "es6-object-assign": "1.1.0", "promise-polyfill": "6.1.0" diff --git a/SystemKonkursow/4.2.1/angular/package.json b/SystemKonkursow/4.2.1/angular/package.json index 43b5f80..8b33e5f 100644 --- a/SystemKonkursow/4.2.1/angular/package.json +++ b/SystemKonkursow/4.2.1/angular/package.json @@ -60,7 +60,7 @@ "rxjs": "^6.2.0", "simple-line-icons": "^2.4.1", "spin.js": "^2.3.2", - "sweetalert": "^2.0.8", + "sweetalert": "^2.1.2", "toastr": "^2.1.2", "ts-helpers": "^1.1.2", "web-animations-js": "^2.3.1", diff --git a/SystemKonkursow/4.2.1/angular/src/app/about/about.component.html b/SystemKonkursow/4.2.1/angular/src/app/about/about.component.html index 5e962bf..ff6f222 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/about/about.component.html +++ b/SystemKonkursow/4.2.1/angular/src/app/about/about.component.html @@ -3,81 +3,27 @@

- About This Template + O projekcie

-

- This is a simple startup template based on ASP.NET Boilerplate framework and Module Zero. - If you need an enterprise startup project, check ASP.NET ZERO. -

- -

What is ASP.NET Boilerplate?

- -

- ASP.NET Boilerplate is an application framework built on latest ASP.NET Core framework. - It makes easy to use authorization, dependency injection, validation, exception handling, localization, logging, caching, background jobs and so on. - It's built on already familiar tools like Entity Framework, AutoMapper, Castle Windsor... -

- -

- ASP.NET Boilerplate implements NLayer architecture (Domain, Application, Infrastructure and Presentation Layers) - and Domain Driven Design (Entities, Repositories, Domain/Application Services, DTO's...). - Also implements and provides a good infrastructure to implement common software development best practices. -

- -

What is Module Zero?

- -

- ASP.NET Boilerplate framework is designed to be independent of any database - schema and to be as generic as possible. Therefore, It leaves some concepts - abstract and optional (like audit logging, permission and setting stores) - which requires some data store. -

-

- Module Zero implements all fundamental concepts of ASP.NET - Boilerplate framework such as tenant management (multi-tenancy), - - role management - , user management, - authorization ( - permission management - ), - setting management, - language management - , audit logging - and so on. -

-

- Module-Zero defines entities and implements domain logic - (domain layer) and leaves application and presentation layers to you. -

- -

Based on Microsoft ASP.NET Core Identity

- -

- Module Zero is based on Microsoft's - ASP.NET Core Identity library. - It extends user and role managers and implements user and role stores using generic repositories. -

- -

Documentation

+

NASZ ZESPÓŁ

-

Source code

- -

- This template is developed open source on Github. You can contribute to the template. - https://github.com/aspnetboilerplate/module-zero-core-template -

diff --git a/SystemKonkursow/4.2.1/angular/src/app/home/home.component.html b/SystemKonkursow/4.2.1/angular/src/app/home/home.component.html index 32e2cf4..f6c0425 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/home/home.component.html +++ b/SystemKonkursow/4.2.1/angular/src/app/home/home.component.html @@ -1,7 +1,7 @@ 
-

SAMPLE DASHBOARD

+

KALENDARZ

diff --git a/SystemKonkursow/4.2.1/angular/src/app/layout/right-sidebar.component.html b/SystemKonkursow/4.2.1/angular/src/app/layout/right-sidebar.component.html index 9e7b74b..6210a14 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/layout/right-sidebar.component.html +++ b/SystemKonkursow/4.2.1/angular/src/app/layout/right-sidebar.component.html @@ -1,7 +1,7 @@  \ No newline at end of file diff --git a/SystemKonkursow/4.2.1/angular/src/app/layout/right-sidebar.component.ts b/SystemKonkursow/4.2.1/angular/src/app/layout/right-sidebar.component.ts index c5287d9..7bffb05 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/layout/right-sidebar.component.ts +++ b/SystemKonkursow/4.2.1/angular/src/app/layout/right-sidebar.component.ts @@ -10,29 +10,29 @@ import { ConfigurationServiceProxy, ChangeUiThemeInput } from '@shared/service-p export class RightSideBarComponent extends AppComponentBase implements OnInit { themes: UiThemeInfo[] = [ - new UiThemeInfo("Red", "red"), - new UiThemeInfo("Pink", "pink"), - new UiThemeInfo("Purple", "purple"), - new UiThemeInfo("Deep Purple", "deep-purple"), - new UiThemeInfo("Indigo", "indigo"), - new UiThemeInfo("Blue", "blue"), - new UiThemeInfo("Light Blue", "light-blue"), - new UiThemeInfo("Cyan", "cyan"), - new UiThemeInfo("Teal", "teal"), - new UiThemeInfo("Green", "green"), - new UiThemeInfo("Light Green", "light-green"), - new UiThemeInfo("Lime", "lime"), - new UiThemeInfo("Yellow", "yellow"), - new UiThemeInfo("Amber", "amber"), - new UiThemeInfo("Orange", "orange"), - new UiThemeInfo("Deep Orange", "deep-orange"), - new UiThemeInfo("Brown", "brown"), - new UiThemeInfo("Grey", "grey"), - new UiThemeInfo("Blue Grey", "blue-grey"), - new UiThemeInfo("Black", "black") + new UiThemeInfo("Czerwony", "red"), + new UiThemeInfo("Różowy", "pink"), + new UiThemeInfo("Fioletowy", "purple"), + new UiThemeInfo("Ciemnofioletowy", "deep-purple"), + new UiThemeInfo("Indygo", "indigo"), + new UiThemeInfo("Niebieski", "blue"), + new UiThemeInfo("Jasnoniebieski", "light-blue"), + new UiThemeInfo("Cyjan", "cyan"), + new UiThemeInfo("Turkusowy", "teal"), + new UiThemeInfo("Zielony", "green"), + new UiThemeInfo("Jasnozielony", "light-green"), + new UiThemeInfo("Limonkowy", "lime"), + new UiThemeInfo("Żółty", "yellow"), + new UiThemeInfo("Bursztynowy", "amber"), + new UiThemeInfo("Pomarańczowy", "orange"), + new UiThemeInfo("Ciemnopomarańczowy", "deep-orange"), + new UiThemeInfo("Brązowy", "brown"), + new UiThemeInfo("Szary", "grey"), + new UiThemeInfo("Ciemnoszary", "blue-grey"), + new UiThemeInfo("Czarny", "black") ]; - selectedThemeCssClass: string = "red"; + selectedThemeCssClass: string = "blue"; constructor( injector: Injector, diff --git a/SystemKonkursow/4.2.1/angular/src/app/layout/sidebar-footer.component.html b/SystemKonkursow/4.2.1/angular/src/app/layout/sidebar-footer.component.html index a32b1dc..f1aaf8c 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/layout/sidebar-footer.component.html +++ b/SystemKonkursow/4.2.1/angular/src/app/layout/sidebar-footer.component.html @@ -3,6 +3,6 @@ © {{currentYear}} SystemKonkursow.
- Version {{versionText}} + Wersja {{versionText}}
\ No newline at end of file diff --git a/SystemKonkursow/4.2.1/angular/src/app/layout/sidebar-nav.component.ts b/SystemKonkursow/4.2.1/angular/src/app/layout/sidebar-nav.component.ts index e88a758..c10fb87 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/layout/sidebar-nav.component.ts +++ b/SystemKonkursow/4.2.1/angular/src/app/layout/sidebar-nav.component.ts @@ -10,29 +10,29 @@ import { MenuItem } from '@shared/layout/menu-item'; export class SideBarNavComponent extends AppComponentBase { menuItems: MenuItem[] = [ - new MenuItem(this.l("HomePage"), "", "home", "/app/home"), + new MenuItem(this.l("Strona domowa"), "", "home", "/app/home"), new MenuItem(this.l("Tenants"), "Pages.Tenants", "business", "/app/tenants"), - new MenuItem(this.l("Users"), "Pages.Users", "people", "/app/users"), - new MenuItem(this.l("Roles"), "Pages.Roles", "local_offer", "/app/roles"), - new MenuItem(this.l("About"), "", "info", "/app/about"), + new MenuItem(this.l("Użytkownicy"), "Pages.Users", "people", "/app/users"), + new MenuItem(this.l("Role"), "Pages.Roles", "local_offer", "/app/roles"), + new MenuItem(this.l("O projekcie"), "", "info", "/app/about"), - new MenuItem(this.l("MultiLevelMenu"), "", "menu", "", [ - new MenuItem("ASP.NET Boilerplate", "", "", "", [ - new MenuItem("Home", "", "", "https://aspnetboilerplate.com/?ref=abptmpl"), - new MenuItem("Templates", "", "", "https://aspnetboilerplate.com/Templates?ref=abptmpl"), - new MenuItem("Samples", "", "", "https://aspnetboilerplate.com/Samples?ref=abptmpl"), - new MenuItem("Documents", "", "", "https://aspnetboilerplate.com/Pages/Documents?ref=abptmpl") - ]), - new MenuItem("ASP.NET Zero", "", "", "", [ - new MenuItem("Home", "", "", "https://aspnetzero.com?ref=abptmpl"), - new MenuItem("Description", "", "", "https://aspnetzero.com/?ref=abptmpl#description"), - new MenuItem("Features", "", "", "https://aspnetzero.com/?ref=abptmpl#features"), - new MenuItem("Pricing", "", "", "https://aspnetzero.com/?ref=abptmpl#pricing"), - new MenuItem("Faq", "", "", "https://aspnetzero.com/Faq?ref=abptmpl"), - new MenuItem("Documents", "", "", "https://aspnetzero.com/Documents?ref=abptmpl") - ]) - ]) + // new MenuItem(this.l("MultiLevelMenu"), "", "menu", "", [ + // new MenuItem("ASP.NET Boilerplate", "", "", "", [ + // new MenuItem("Home", "", "", "https://aspnetboilerplate.com/?ref=abptmpl"), + // new MenuItem("Templates", "", "", "https://aspnetboilerplate.com/Templates?ref=abptmpl"), + // new MenuItem("Samples", "", "", "https://aspnetboilerplate.com/Samples?ref=abptmpl"), + // new MenuItem("Documents", "", "", "https://aspnetboilerplate.com/Pages/Documents?ref=abptmpl") + // ]), + // new MenuItem("ASP.NET Zero", "", "", "", [ + // new MenuItem("Home", "", "", "https://aspnetzero.com?ref=abptmpl"), + // new MenuItem("Description", "", "", "https://aspnetzero.com/?ref=abptmpl#description"), + // new MenuItem("Features", "", "", "https://aspnetzero.com/?ref=abptmpl#features"), + // new MenuItem("Pricing", "", "", "https://aspnetzero.com/?ref=abptmpl#pricing"), + // new MenuItem("Faq", "", "", "https://aspnetzero.com/Faq?ref=abptmpl"), + // new MenuItem("Documents", "", "", "https://aspnetzero.com/Documents?ref=abptmpl") + // ]) + // ]) ]; constructor( diff --git a/SystemKonkursow/4.2.1/angular/src/app/layout/topbar.component.html b/SystemKonkursow/4.2.1/angular/src/app/layout/topbar.component.html index 53d035b..5a20e25 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/layout/topbar.component.html +++ b/SystemKonkursow/4.2.1/angular/src/app/layout/topbar.component.html @@ -3,7 +3,7 @@
search
- + diff --git a/SystemKonkursow/4.2.1/angular/src/app/roles/create-role/create-role.component.html b/SystemKonkursow/4.2.1/angular/src/app/roles/create-role/create-role.component.html index bc304aa..275109e 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/roles/create-role/create-role.component.html +++ b/SystemKonkursow/4.2.1/angular/src/app/roles/create-role/create-role.component.html @@ -10,7 +10,7 @@ @@ -30,7 +30,7 @@
- +
@@ -41,7 +41,7 @@
- +
@@ -49,7 +49,7 @@
-

Permissions

+

Uprawnienia

@@ -62,10 +62,10 @@ diff --git a/SystemKonkursow/4.2.1/angular/src/app/roles/create-role/create-role.component.ts b/SystemKonkursow/4.2.1/angular/src/app/roles/create-role/create-role.component.ts index d9d828b..d598ae5 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/roles/create-role/create-role.component.ts +++ b/SystemKonkursow/4.2.1/angular/src/app/roles/create-role/create-role.component.ts @@ -61,7 +61,7 @@ export class CreateRoleComponent extends AppComponentBase implements OnInit { this._roleService.create(this.role) .pipe(finalize(() => { this.saving = false; })) .subscribe(() => { - this.notify.info(this.l('SavedSuccessfully')); + this.notify.info(this.l('Zapisano pomyślnie')); this.close(); this.modalSave.emit(null); }); diff --git a/SystemKonkursow/4.2.1/angular/src/app/roles/edit-role/edit-role.component.html b/SystemKonkursow/4.2.1/angular/src/app/roles/edit-role/edit-role.component.html index f38a9b6..eb95c97 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/roles/edit-role/edit-role.component.html +++ b/SystemKonkursow/4.2.1/angular/src/app/roles/edit-role/edit-role.component.html @@ -10,7 +10,7 @@
@@ -31,7 +31,7 @@
- +
@@ -42,7 +42,7 @@
- +
@@ -50,7 +50,7 @@
-

Permissions

+

Uprawnienia

@@ -64,10 +64,10 @@
diff --git a/SystemKonkursow/4.2.1/angular/src/app/roles/edit-role/edit-role.component.ts b/SystemKonkursow/4.2.1/angular/src/app/roles/edit-role/edit-role.component.ts index 5b61ce2..7cf08bb 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/roles/edit-role/edit-role.component.ts +++ b/SystemKonkursow/4.2.1/angular/src/app/roles/edit-role/edit-role.component.ts @@ -75,7 +75,7 @@ export class EditRoleComponent extends AppComponentBase { this._roleService.update(input) .pipe(finalize(() => { this.saving = false; })) .subscribe(() => { - this.notify.info(this.l('SavedSuccessfully')); + this.notify.info(this.l('Zapisano pomyślnie')); this.close(); this.modalSave.emit(null); }); diff --git a/SystemKonkursow/4.2.1/angular/src/app/roles/roles.component.html b/SystemKonkursow/4.2.1/angular/src/app/roles/roles.component.html index 2f7de96..bf4bcec 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/roles/roles.component.html +++ b/SystemKonkursow/4.2.1/angular/src/app/roles/roles.component.html @@ -3,7 +3,7 @@

- {{l('Roles')}} + {{l('Role')}}

@@ -22,9 +22,9 @@ - - - + + + @@ -36,8 +36,8 @@ menu diff --git a/SystemKonkursow/4.2.1/angular/src/app/roles/roles.component.ts b/SystemKonkursow/4.2.1/angular/src/app/roles/roles.component.ts index 82311ac..9de6747 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/roles/roles.component.ts +++ b/SystemKonkursow/4.2.1/angular/src/app/roles/roles.component.ts @@ -5,6 +5,7 @@ import { appModuleAnimation } from '@shared/animations/routerTransition'; import { CreateRoleComponent } from 'app/roles/create-role/create-role.component'; import { EditRoleComponent } from 'app/roles/edit-role/edit-role.component'; import { finalize } from 'rxjs/operators'; +import swal from 'sweetalert'; @Component({ templateUrl: './roles.component.html', @@ -34,21 +35,22 @@ export class RolesComponent extends PagedListingComponentBase { } delete(role: RoleDto): void { - abp.message.confirm( - "Remove Users from Role and delete Role '"+ role.displayName +"'?", - "Permanently delete this Role", - (result:boolean) =>{ - if(result) - { - this.rolesService.delete(role.id) - .pipe(finalize(() => { - abp.notify.info("Deleted Role: " + role.displayName); - this.refresh(); - })) - .subscribe(() => { }); - } - } - ); + swal({ + title: "Usuwanie roli", + text: "Czy usunąć role '"+ role.displayName +"'?", + icon: "warning", + buttons: ['Anuluj', 'Tak'] + }).then(result => { + if (result) { + this.rolesService.delete(role.id) + .subscribe(() => { + this.refresh(); + swal("Usunięto role: " + role.displayName, { + icon: "success", + }); + }); + } + }); } // Show Modals diff --git a/SystemKonkursow/4.2.1/angular/src/app/users/create-user/create-user.component.html b/SystemKonkursow/4.2.1/angular/src/app/users/create-user/create-user.component.html index 73cd56d..ec06efe 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/users/create-user/create-user.component.html +++ b/SystemKonkursow/4.2.1/angular/src/app/users/create-user/create-user.component.html @@ -9,14 +9,14 @@ @@ -56,7 +56,7 @@
- +
@@ -67,7 +67,7 @@
- +
@@ -77,8 +77,8 @@
- - + +
@@ -89,7 +89,7 @@
- +
@@ -113,10 +113,10 @@ diff --git a/SystemKonkursow/4.2.1/angular/src/app/users/create-user/create-user.component.ts b/SystemKonkursow/4.2.1/angular/src/app/users/create-user/create-user.component.ts index 6f165c6..0a71f41 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/users/create-user/create-user.component.ts +++ b/SystemKonkursow/4.2.1/angular/src/app/users/create-user/create-user.component.ts @@ -3,6 +3,7 @@ import { ModalDirective } from 'ngx-bootstrap'; import { UserServiceProxy, CreateUserDto, RoleDto } from '@shared/service-proxies/service-proxies'; import { AppComponentBase } from '@shared/app-component-base'; import { finalize } from 'rxjs/operators'; +import swal from 'sweetalert'; @Component({ selector: 'create-user-modal', @@ -19,6 +20,7 @@ export class CreateUserComponent extends AppComponentBase implements OnInit { saving: boolean = false; user: CreateUserDto = null; roles: RoleDto[] = null; + confirmationPassword: string = ''; constructor( injector: Injector, @@ -47,22 +49,31 @@ export class CreateUserComponent extends AppComponentBase implements OnInit { save(): void { //TODO: Refactor this, don't use jQuery style code - var roles = []; - $(this.modalContent.nativeElement).find("[name=role]").each((ind:number, elem:Element) => { - if($(elem).is(":checked") == true){ - roles.push(elem.getAttribute("value").valueOf()); - } - }); - this.user.roleNames = roles; - this.saving = true; - this._userService.create(this.user) - .pipe(finalize(() => { this.saving = false; })) - .subscribe(() => { - this.notify.info(this.l('SavedSuccessfully')); - this.close(); - this.modalSave.emit(null); + if (this.user.password === this.confirmationPassword) { + var roles = []; + $(this.modalContent.nativeElement).find("[name=role]").each((ind:number, elem:Element) => { + if($(elem).is(":checked") == true){ + roles.push(elem.getAttribute("value").valueOf()); + } }); + + this.user.roleNames = roles; + this.saving = true; + this._userService.create(this.user) + .pipe(finalize(() => { this.saving = false; })) + .subscribe(() => { + this.notify.info(this.l('Zapisano pomyślnie')); + this.close(); + this.modalSave.emit(null); + }); + } else { + swal({ + title: "Błąd - Hasło!", + text: "Proszę podaj takie same hasła", + icon: "error" + }) + } } close(): void { diff --git a/SystemKonkursow/4.2.1/angular/src/app/users/edit-user/edit-user.component.html b/SystemKonkursow/4.2.1/angular/src/app/users/edit-user/edit-user.component.html index 0c21acf..c5fed5a 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/users/edit-user/edit-user.component.html +++ b/SystemKonkursow/4.2.1/angular/src/app/users/edit-user/edit-user.component.html @@ -8,13 +8,13 @@ @@ -54,7 +54,7 @@
- +
@@ -65,7 +65,7 @@
- +
@@ -89,10 +89,10 @@ diff --git a/SystemKonkursow/4.2.1/angular/src/app/users/edit-user/edit-user.component.ts b/SystemKonkursow/4.2.1/angular/src/app/users/edit-user/edit-user.component.ts index c1526c8..9d24752 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/users/edit-user/edit-user.component.ts +++ b/SystemKonkursow/4.2.1/angular/src/app/users/edit-user/edit-user.component.ts @@ -71,7 +71,7 @@ export class EditUserComponent extends AppComponentBase { this._userService.update(this.user) .pipe(finalize(() => { this.saving = false; })) .subscribe(() => { - this.notify.info(this.l('SavedSuccessfully')); + this.notify.info(this.l('Zapisano pomyślnie')); this.close(); this.modalSave.emit(null); }); diff --git a/SystemKonkursow/4.2.1/angular/src/app/users/users.component.html b/SystemKonkursow/4.2.1/angular/src/app/users/users.component.html index d222b7c..bcf32d4 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/users/users.component.html +++ b/SystemKonkursow/4.2.1/angular/src/app/users/users.component.html @@ -3,7 +3,7 @@

- {{l('Users')}} + {{l('Użytkownicy')}}

@@ -23,13 +23,13 @@
{{l('RoleName')}}{{l('DisplayName')}}{{l('Actions')}}{{l('Nazwa roli')}}{{l('Wyświetlana nazwa roli')}}{{l('Akcje')}}
- - - + + + - + @@ -46,8 +46,8 @@ menu diff --git a/SystemKonkursow/4.2.1/angular/src/app/users/users.component.ts b/SystemKonkursow/4.2.1/angular/src/app/users/users.component.ts index 4cbc440..f9cee9a 100644 --- a/SystemKonkursow/4.2.1/angular/src/app/users/users.component.ts +++ b/SystemKonkursow/4.2.1/angular/src/app/users/users.component.ts @@ -5,6 +5,7 @@ import { PagedListingComponentBase, PagedRequestDto } from 'shared/paged-listing import { CreateUserComponent } from 'app/users/create-user/create-user.component'; import { EditUserComponent } from 'app/users/edit-user/edit-user.component'; import { finalize } from 'rxjs/operators'; +import swal from 'sweetalert'; @Component({ templateUrl: './users.component.html', @@ -37,18 +38,22 @@ export class UsersComponent extends PagedListingComponentBase { } protected delete(user: UserDto): void { - abp.message.confirm( - "Delete user '" + user.fullName + "'?", - (result: boolean) => { - if (result) { - this._userService.delete(user.id) - .subscribe(() => { - abp.notify.info("Deleted User: " + user.fullName); - this.refresh(); + swal({ + title: "Usuwanie użytkownika", + text: "Czy usunąć użytkownika '" + user.fullName + "'?", + icon: "warning", + buttons: ['Anuluj', 'Tak'] + }).then(result => { + if (result) { + this._userService.delete(user.id) + .subscribe(() => { + this.refresh(); + swal("Usunięto użytkownika: " + user.fullName, { + icon: "success", }); - } + }); } - ); + }); } // Show Modals diff --git a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Authorization/PermissionNames.cs b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Authorization/PermissionNames.cs index d5d695c..a76f619 100644 --- a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Authorization/PermissionNames.cs +++ b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Authorization/PermissionNames.cs @@ -7,5 +7,9 @@ public const string Pages_Users = "Pages.Users"; public const string Pages_Roles = "Pages.Roles"; + + public const string Pages_Create_Competition = "Pages.Create.Competition"; + + public const string Pages_Solve_Competition = "Pages.Solve.Competition"; } } diff --git a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Authorization/Roles/StaticRoleNames.cs b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Authorization/Roles/StaticRoleNames.cs index d31ce01..c4cfd63 100644 --- a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Authorization/Roles/StaticRoleNames.cs +++ b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Authorization/Roles/StaticRoleNames.cs @@ -5,6 +5,8 @@ namespace SystemKonkursow.Authorization.Roles public static class Host { public const string Admin = "Admin"; + public const string Organizer = "Organizator"; + public const string Participant = "Uczestnik"; } public static class Tenants diff --git a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Authorization/SystemKonkursowAuthorizationProvider.cs b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Authorization/SystemKonkursowAuthorizationProvider.cs index 8a4d439..263d02b 100644 --- a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Authorization/SystemKonkursowAuthorizationProvider.cs +++ b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Authorization/SystemKonkursowAuthorizationProvider.cs @@ -10,6 +10,8 @@ namespace SystemKonkursow.Authorization { context.CreatePermission(PermissionNames.Pages_Users, L("Users")); context.CreatePermission(PermissionNames.Pages_Roles, L("Roles")); + context.CreatePermission(PermissionNames.Pages_Create_Competition, L("CreateCompetition")); + context.CreatePermission(PermissionNames.Pages_Solve_Competition, L("SolveCompetition")); context.CreatePermission(PermissionNames.Pages_Tenants, L("Tenants"), multiTenancySides: MultiTenancySides.Host); } diff --git a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Configuration/AppSettingProvider.cs b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Configuration/AppSettingProvider.cs index 6abce2d..f6ee127 100644 --- a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Configuration/AppSettingProvider.cs +++ b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Configuration/AppSettingProvider.cs @@ -9,7 +9,7 @@ namespace SystemKonkursow.Configuration { return new[] { - new SettingDefinition(AppSettingNames.UiTheme, "red", scopes: SettingScopes.Application | SettingScopes.Tenant | SettingScopes.User, isVisibleToClients: true) + new SettingDefinition(AppSettingNames.UiTheme, "blue", scopes: SettingScopes.Application | SettingScopes.Tenant | SettingScopes.User, isVisibleToClients: true) }; } } diff --git a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Localization/SourceFiles/SystemKonkursow.xml b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Localization/SourceFiles/SystemKonkursow.xml index 04eb2c8..3907e00 100644 --- a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Localization/SourceFiles/SystemKonkursow.xml +++ b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.Core/Localization/SourceFiles/SystemKonkursow.xml @@ -6,19 +6,19 @@ - + - - Your email address is not confirmed. You can not login. - The user account has been locked out. Please try again later. + + Twój adres e-mail jest niepotwierdzony. Nie możesz się zalogować. + To konto jest zablokowane. Spróbuj później. - + @@ -41,7 +41,7 @@ Please don't enter an email address for username. - + @@ -57,7 +57,7 @@ Back Successfully registered Your email address should be activated - Roles + Role Display Name Edit Delete @@ -91,5 +91,7 @@ Start Typing Skins Settings + Tworzenie konkursu + Rozwiązywanie konkursu diff --git a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.EntityFrameworkCore/EntityFrameworkCore/Seed/SeedHelper.cs b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.EntityFrameworkCore/EntityFrameworkCore/Seed/SeedHelper.cs index 134e0ff..d2b4638 100644 --- a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.EntityFrameworkCore/EntityFrameworkCore/Seed/SeedHelper.cs +++ b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.EntityFrameworkCore/EntityFrameworkCore/Seed/SeedHelper.cs @@ -27,6 +27,7 @@ namespace SystemKonkursow.EntityFrameworkCore.Seed // Default tenant seed (in host database). new DefaultTenantBuilder(context).Create(); new TenantRoleAndUserBuilder(context, 1).Create(); + new UserBuilder(context).Create(); } private static void WithDbContext(IIocResolver iocResolver, Action contextAction) diff --git a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.EntityFrameworkCore/EntityFrameworkCore/Seed/UserBuilder.cs b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.EntityFrameworkCore/EntityFrameworkCore/Seed/UserBuilder.cs new file mode 100644 index 0000000..7a97c47 --- /dev/null +++ b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.EntityFrameworkCore/EntityFrameworkCore/Seed/UserBuilder.cs @@ -0,0 +1,101 @@ +using Abp.Authorization.Roles; +using Abp.Authorization.Users; +using Microsoft.AspNetCore.Identity; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.Options; +using System.Collections.Generic; +using System.Linq; +using SystemKonkursow.Authorization; +using SystemKonkursow.Authorization.Roles; +using SystemKonkursow.Authorization.Users; + +namespace SystemKonkursow.EntityFrameworkCore.Seed +{ + public class UserBuilder + { + private readonly SystemKonkursowDbContext _context; + + public UserBuilder(SystemKonkursowDbContext context) + { + _context = context; + } + + public void Create() + { + if (_context.Roles.Count() > 2) + return; + + Role organizerRole = CreateRole(StaticRoleNames.Host.Organizer, new List { + PermissionNames.Pages_Create_Competition + //list permissions + }); + + CreateUser(new List { organizerRole }, "Jan", "Kowalski", "organizator", "organizator@example.com"); + + Role participantRole = CreateRole(StaticRoleNames.Host.Participant, new List { + PermissionNames.Pages_Solve_Competition + //list permissions + }); + + CreateUser(new List { participantRole }, "Jerzy", "Nowak", "uczestnik", "uczestnik@example.com"); + } + + private Role CreateRole(string roleName, IList permissionList) + { + var role = _context.Roles.IgnoreQueryFilters().FirstOrDefault(r => r.TenantId == null && r.Name == roleName); + if (role == null) + { + role = _context.Roles.Add(new Role(1, roleName, roleName) { IsStatic = true }).Entity; + _context.SaveChanges(); + } + + _context.Permissions.AddRange( + permissionList.Select(permission => new RolePermissionSetting + { + TenantId = 1, + Name = permission, + IsGranted = true, + RoleId = role.Id + }) + ); + _context.SaveChanges(); + + return role; + } + + private void CreateUser(IEnumerable roles, string name, string surname, string userName, string emailAddress) + { + var user = _context.Users.IgnoreQueryFilters() + .FirstOrDefault(u => u.TenantId == 1 && u.UserName == userName); + if (null == user) + { + user = new User() + { + Name = name, + Surname = surname, + UserName = userName, + EmailAddress = emailAddress, + IsEmailConfirmed = true, + IsActive = true, + TenantId = 1, + }; + + user.SetNormalizedNames(); + user.Password = new PasswordHasher(new OptionsWrapper(new PasswordHasherOptions())).HashPassword(user, "123qwe"); + + _context.Users.Add(user); + _context.SaveChanges(); + + // Assign role to user + foreach (var role in roles) + { + if (role != null) + { + _context.UserRoles.Add(new UserRole(1, user.Id, role.Id)); + _context.SaveChanges(); + } + } + } + } + } +} diff --git a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.EntityFrameworkCore/Migrations/20181126093929_a.Designer.cs b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.EntityFrameworkCore/Migrations/20181126093929_a.Designer.cs deleted file mode 100644 index 101d98e..0000000 --- a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.EntityFrameworkCore/Migrations/20181126093929_a.Designer.cs +++ /dev/null @@ -1,1259 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using SystemKonkursow.EntityFrameworkCore; - -namespace SystemKonkursow.Migrations -{ - [DbContext(typeof(SystemKonkursowDbContext))] - [Migration("20181126093929_a")] - partial class a - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.1.4-rtm-31024") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Abp.Application.Editions.Edition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("DeleterUserId"); - - b.Property("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64); - - b.Property("IsDeleted"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(32); - - b.HasKey("Id"); - - b.ToTable("AbpEditions"); - }); - - modelBuilder.Entity("Abp.Application.Features.FeatureSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("TenantId"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.ToTable("AbpFeatures"); - - b.HasDiscriminator("Discriminator").HasValue("FeatureSetting"); - }); - - modelBuilder.Entity("Abp.Auditing.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BrowserInfo") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasMaxLength(64); - - b.Property("ClientName") - .HasMaxLength(128); - - b.Property("CustomData") - .HasMaxLength(2000); - - b.Property("Exception") - .HasMaxLength(2000); - - b.Property("ExecutionDuration"); - - b.Property("ExecutionTime"); - - b.Property("ImpersonatorTenantId"); - - b.Property("ImpersonatorUserId"); - - b.Property("MethodName") - .HasMaxLength(256); - - b.Property("Parameters") - .HasMaxLength(1024); - - b.Property("ServiceName") - .HasMaxLength(256); - - b.Property("TenantId"); - - b.Property("UserId"); - - 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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("IsGranted"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("TenantId"); - - 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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType") - .HasMaxLength(256); - - b.Property("ClaimValue"); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("RoleId"); - - b.Property("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("DeleterUserId"); - - b.Property("DeletionTime"); - - b.Property("EmailAddress") - .HasMaxLength(256); - - b.Property("IsDeleted"); - - b.Property("LastLoginTime"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("TenantId"); - - b.Property("UserId"); - - b.Property("UserLinkId"); - - b.Property("UserName") - .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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType") - .HasMaxLength(256); - - b.Property("ClaimValue"); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("TenantId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "ClaimType"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LoginProvider") - .IsRequired() - .HasMaxLength(128); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(256); - - b.Property("TenantId"); - - b.Property("UserId"); - - 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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BrowserInfo") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasMaxLength(64); - - b.Property("ClientName") - .HasMaxLength(128); - - b.Property("CreationTime"); - - b.Property("Result"); - - b.Property("TenancyName") - .HasMaxLength(64); - - b.Property("TenantId"); - - b.Property("UserId"); - - b.Property("UserNameOrEmailAddress") - .HasMaxLength(255); - - b.HasKey("Id"); - - b.HasIndex("UserId", "TenantId"); - - b.HasIndex("TenancyName", "UserNameOrEmailAddress", "Result"); - - b.ToTable("AbpUserLoginAttempts"); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserOrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("IsDeleted"); - - b.Property("OrganizationUnitId"); - - b.Property("TenantId"); - - b.Property("UserId"); - - 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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("RoleId"); - - b.Property("TenantId"); - - b.Property("UserId"); - - 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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ExpireDate"); - - b.Property("LoginProvider") - .HasMaxLength(128); - - b.Property("Name") - .HasMaxLength(128); - - b.Property("TenantId"); - - b.Property("UserId"); - - b.Property("Value") - .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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("IsAbandoned"); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(512); - - b.Property("LastTryTime"); - - b.Property("NextTryTime"); - - b.Property("Priority"); - - b.Property("TryCount"); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256); - - b.Property("TenantId"); - - b.Property("UserId"); - - b.Property("Value") - .HasMaxLength(2000); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ChangeTime"); - - b.Property("ChangeType"); - - b.Property("EntityChangeSetId"); - - b.Property("EntityId") - .HasMaxLength(48); - - b.Property("EntityTypeFullName") - .HasMaxLength(192); - - b.Property("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeSetId"); - - b.HasIndex("EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChangeSet", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BrowserInfo") - .HasMaxLength(512); - - b.Property("ClientIpAddress") - .HasMaxLength(64); - - b.Property("ClientName") - .HasMaxLength(128); - - b.Property("CreationTime"); - - b.Property("ExtensionData"); - - b.Property("ImpersonatorTenantId"); - - b.Property("ImpersonatorUserId"); - - b.Property("Reason") - .HasMaxLength(256); - - b.Property("TenantId"); - - b.Property("UserId"); - - 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() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("EntityChangeId"); - - b.Property("NewValue") - .HasMaxLength(512); - - b.Property("OriginalValue") - .HasMaxLength(512); - - b.Property("PropertyName") - .HasMaxLength(96); - - b.Property("PropertyTypeFullName") - .HasMaxLength(192); - - b.Property("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("DeleterUserId"); - - b.Property("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64); - - b.Property("Icon") - .HasMaxLength(128); - - b.Property("IsDeleted"); - - b.Property("IsDisabled"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(10); - - b.Property("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name"); - - b.ToTable("AbpLanguages"); - }); - - modelBuilder.Entity("Abp.Localization.ApplicationLanguageText", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("Key") - .IsRequired() - .HasMaxLength(256); - - b.Property("LanguageName") - .IsRequired() - .HasMaxLength(10); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("Source") - .IsRequired() - .HasMaxLength(128); - - b.Property("TenantId"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(67108864); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Source", "LanguageName", "Key"); - - b.ToTable("AbpLanguageTexts"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("Data") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasMaxLength(512); - - b.Property("EntityId") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasMaxLength(250); - - b.Property("ExcludedUserIds") - .HasMaxLength(131072); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96); - - b.Property("Severity"); - - b.Property("TenantIds") - .HasMaxLength(131072); - - b.Property("UserIds") - .HasMaxLength(131072); - - b.HasKey("Id"); - - b.ToTable("AbpNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.NotificationSubscriptionInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("EntityId") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasMaxLength(250); - - b.Property("NotificationName") - .HasMaxLength(96); - - b.Property("TenantId"); - - b.Property("UserId"); - - 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(); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("Data") - .HasMaxLength(1048576); - - b.Property("DataTypeName") - .HasMaxLength(512); - - b.Property("EntityId") - .HasMaxLength(96); - - b.Property("EntityTypeAssemblyQualifiedName") - .HasMaxLength(512); - - b.Property("EntityTypeName") - .HasMaxLength(250); - - b.Property("NotificationName") - .IsRequired() - .HasMaxLength(96); - - b.Property("Severity"); - - b.Property("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("TenantId"); - - b.ToTable("AbpTenantNotifications"); - }); - - modelBuilder.Entity("Abp.Notifications.UserNotificationInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CreationTime"); - - b.Property("State"); - - b.Property("TenantId"); - - b.Property("TenantNotificationId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId", "State", "CreationTime"); - - b.ToTable("AbpUserNotifications"); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("DeleterUserId"); - - b.Property("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128); - - b.Property("IsDeleted"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("ParentId"); - - b.Property("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("TenantId", "Code"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("SystemKonkursow.Authorization.Roles.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("DeleterUserId"); - - b.Property("DeletionTime"); - - b.Property("Description") - .HasMaxLength(5000); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(64); - - b.Property("IsDefault"); - - b.Property("IsDeleted"); - - b.Property("IsStatic"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(32); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(32); - - b.Property("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CreatorUserId"); - - b.HasIndex("DeleterUserId"); - - b.HasIndex("LastModifierUserId"); - - b.HasIndex("TenantId", "NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("SystemKonkursow.Authorization.Users.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AccessFailedCount"); - - b.Property("AuthenticationSource") - .HasMaxLength(64); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(128); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("DeleterUserId"); - - b.Property("DeletionTime"); - - b.Property("EmailAddress") - .IsRequired() - .HasMaxLength(256); - - b.Property("EmailConfirmationCode") - .HasMaxLength(328); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("IsEmailConfirmed"); - - b.Property("IsLockoutEnabled"); - - b.Property("IsPhoneNumberConfirmed"); - - b.Property("IsTwoFactorEnabled"); - - b.Property("LastLoginTime"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("LockoutEndDateUtc"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64); - - b.Property("NormalizedEmailAddress") - .IsRequired() - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256); - - b.Property("Password") - .IsRequired() - .HasMaxLength(128); - - b.Property("PasswordResetCode") - .HasMaxLength(328); - - b.Property("PhoneNumber") - .HasMaxLength(32); - - b.Property("SecurityStamp") - .HasMaxLength(128); - - b.Property("Surname") - .IsRequired() - .HasMaxLength(64); - - b.Property("TenantId"); - - b.Property("UserName") - .IsRequired() - .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("SystemKonkursow.MultiTenancy.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ConnectionString") - .HasMaxLength(1024); - - b.Property("CreationTime"); - - b.Property("CreatorUserId"); - - b.Property("DeleterUserId"); - - b.Property("DeletionTime"); - - b.Property("EditionId"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LastModificationTime"); - - b.Property("LastModifierUserId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128); - - b.Property("TenancyName") - .IsRequired() - .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"); - - 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"); - - 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"); - - b.HasIndex("UserId"); - - b.ToTable("AbpPermissions"); - - b.HasDiscriminator().HasValue("UserPermissionSetting"); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RoleClaim", b => - { - b.HasOne("SystemKonkursow.Authorization.Roles.Role") - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserClaim", b => - { - b.HasOne("SystemKonkursow.Authorization.Users.User") - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserLogin", b => - { - b.HasOne("SystemKonkursow.Authorization.Users.User") - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserRole", b => - { - b.HasOne("SystemKonkursow.Authorization.Users.User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserToken", b => - { - b.HasOne("SystemKonkursow.Authorization.Users.User") - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Configuration.Setting", b => - { - b.HasOne("SystemKonkursow.Authorization.Users.User") - .WithMany("Settings") - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChangeSet") - .WithMany("EntityChanges") - .HasForeignKey("EntityChangeSetId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.EntityHistory.EntityPropertyChange", b => - { - b.HasOne("Abp.EntityHistory.EntityChange") - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Organizations.OrganizationUnit", b => - { - b.HasOne("Abp.Organizations.OrganizationUnit", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("SystemKonkursow.Authorization.Roles.Role", b => - { - b.HasOne("SystemKonkursow.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("SystemKonkursow.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("SystemKonkursow.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("SystemKonkursow.Authorization.Users.User", b => - { - b.HasOne("SystemKonkursow.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("SystemKonkursow.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("SystemKonkursow.Authorization.Users.User", "LastModifierUser") - .WithMany() - .HasForeignKey("LastModifierUserId"); - }); - - modelBuilder.Entity("SystemKonkursow.MultiTenancy.Tenant", b => - { - b.HasOne("SystemKonkursow.Authorization.Users.User", "CreatorUser") - .WithMany() - .HasForeignKey("CreatorUserId"); - - b.HasOne("SystemKonkursow.Authorization.Users.User", "DeleterUser") - .WithMany() - .HasForeignKey("DeleterUserId"); - - b.HasOne("Abp.Application.Editions.Edition", "Edition") - .WithMany() - .HasForeignKey("EditionId"); - - b.HasOne("SystemKonkursow.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); - }); - - modelBuilder.Entity("Abp.Authorization.Roles.RolePermissionSetting", b => - { - b.HasOne("SystemKonkursow.Authorization.Roles.Role") - .WithMany("Permissions") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Abp.Authorization.Users.UserPermissionSetting", b => - { - b.HasOne("SystemKonkursow.Authorization.Users.User") - .WithMany("Permissions") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.EntityFrameworkCore/Migrations/20181126093929_a.cs b/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.EntityFrameworkCore/Migrations/20181126093929_a.cs deleted file mode 100644 index 31687a1..0000000 --- a/SystemKonkursow/4.2.1/aspnet-core/src/SystemKonkursow.EntityFrameworkCore/Migrations/20181126093929_a.cs +++ /dev/null @@ -1,1103 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace SystemKonkursow.Migrations -{ - public partial class a : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "AbpAuditLogs", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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), - 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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpAuditLogs", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpBackgroundJobs", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpBackgroundJobs", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpEditions", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEditions", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpEntityChangeSets", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEntityChangeSets", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpLanguages", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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: 10, nullable: false), - DisplayName = table.Column(maxLength: 64, nullable: false), - Icon = table.Column(maxLength: 128, nullable: true), - IsDisabled = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpLanguages", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpLanguageTexts", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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: 10, nullable: false), - Source = table.Column(maxLength: 128, nullable: false), - Key = table.Column(maxLength: 256, nullable: false), - Value = table.Column(maxLength: 67108864, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpLanguageTexts", x => x.Id); - }); - - 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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpNotifications", x => x.Id); - }); - - 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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpNotificationSubscriptions", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpOrganizationUnits", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id); - table.ForeignKey( - name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId", - column: x => x.ParentId, - principalTable: "AbpOrganizationUnits", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - 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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpTenantNotifications", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpUserAccounts", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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), - LastLoginTime = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserAccounts", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpUserLoginAttempts", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - TenantId = table.Column(nullable: true), - TenancyName = table.Column(maxLength: 64, nullable: true), - UserId = table.Column(nullable: true), - UserNameOrEmailAddress = table.Column(maxLength: 255, 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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserLoginAttempts", x => x.Id); - }); - - 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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserNotifications", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpUserOrganizationUnits", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserOrganizationUnits", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpUsers", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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), - LastLoginTime = table.Column(nullable: true), - NormalizedUserName = table.Column(maxLength: 256, nullable: false), - NormalizedEmailAddress = table.Column(maxLength: 256, nullable: false), - ConcurrencyStamp = table.Column(maxLength: 128, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUsers", x => x.Id); - table.ForeignKey( - name: "FK_AbpUsers_AbpUsers_CreatorUserId", - column: x => x.CreatorUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_AbpUsers_AbpUsers_DeleterUserId", - column: x => x.DeleterUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_AbpUsers_AbpUsers_LastModifierUserId", - column: x => x.LastModifierUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "AbpFeatures", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpFeatures", x => x.Id); - table.ForeignKey( - name: "FK_AbpFeatures_AbpEditions_EditionId", - column: x => x.EditionId, - principalTable: "AbpEditions", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpEntityChanges", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEntityChanges", x => x.Id); - table.ForeignKey( - name: "FK_AbpEntityChanges_AbpEntityChangeSets_EntityChangeSetId", - column: x => x.EntityChangeSetId, - principalTable: "AbpEntityChangeSets", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpRoles", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpRoles", x => x.Id); - table.ForeignKey( - name: "FK_AbpRoles_AbpUsers_CreatorUserId", - column: x => x.CreatorUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_AbpRoles_AbpUsers_DeleterUserId", - column: x => x.DeleterUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_AbpRoles_AbpUsers_LastModifierUserId", - column: x => x.LastModifierUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "AbpSettings", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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(maxLength: 2000, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpSettings", x => x.Id); - table.ForeignKey( - name: "FK_AbpSettings_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "AbpTenants", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpTenants", x => x.Id); - table.ForeignKey( - name: "FK_AbpTenants_AbpUsers_CreatorUserId", - column: x => x.CreatorUserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_AbpTenants_AbpUsers_DeleterUserId", - column: x => x.DeleterUserId, - 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); - }); - - migrationBuilder.CreateTable( - name: "AbpUserClaims", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserClaims", x => x.Id); - table.ForeignKey( - name: "FK_AbpUserClaims_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserLogins", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserLogins", x => x.Id); - table.ForeignKey( - name: "FK_AbpUserLogins_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserRoles", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserRoles", x => x.Id); - table.ForeignKey( - name: "FK_AbpUserRoles_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserTokens", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserTokens", x => x.Id); - table.ForeignKey( - name: "FK_AbpUserTokens_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpEntityPropertyChanges", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEntityPropertyChanges", x => x.Id); - table.ForeignKey( - name: "FK_AbpEntityPropertyChanges_AbpEntityChanges_EntityChangeId", - column: x => x.EntityChangeId, - principalTable: "AbpEntityChanges", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpPermissions", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpPermissions", x => x.Id); - table.ForeignKey( - name: "FK_AbpPermissions_AbpRoles_RoleId", - column: x => x.RoleId, - principalTable: "AbpRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_AbpPermissions_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpRoleClaims", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.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) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpRoleClaims", x => x.Id); - table.ForeignKey( - name: "FK_AbpRoleClaims_AbpRoles_RoleId", - column: x => x.RoleId, - principalTable: "AbpRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_AbpAuditLogs_TenantId_ExecutionDuration", - table: "AbpAuditLogs", - columns: new[] { "TenantId", "ExecutionDuration" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpAuditLogs_TenantId_ExecutionTime", - table: "AbpAuditLogs", - columns: new[] { "TenantId", "ExecutionTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpAuditLogs_TenantId_UserId", - table: "AbpAuditLogs", - columns: new[] { "TenantId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpBackgroundJobs_IsAbandoned_NextTryTime", - table: "AbpBackgroundJobs", - columns: new[] { "IsAbandoned", "NextTryTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityChanges_EntityChangeSetId", - table: "AbpEntityChanges", - column: "EntityChangeSetId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityChanges_EntityTypeFullName_EntityId", - table: "AbpEntityChanges", - columns: new[] { "EntityTypeFullName", "EntityId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityChangeSets_TenantId_CreationTime", - table: "AbpEntityChangeSets", - columns: new[] { "TenantId", "CreationTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityChangeSets_TenantId_Reason", - table: "AbpEntityChangeSets", - columns: new[] { "TenantId", "Reason" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityChangeSets_TenantId_UserId", - table: "AbpEntityChangeSets", - columns: new[] { "TenantId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityPropertyChanges_EntityChangeId", - table: "AbpEntityPropertyChanges", - column: "EntityChangeId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpFeatures_EditionId_Name", - table: "AbpFeatures", - columns: new[] { "EditionId", "Name" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpFeatures_TenantId_Name", - table: "AbpFeatures", - columns: new[] { "TenantId", "Name" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpLanguages_TenantId_Name", - table: "AbpLanguages", - columns: new[] { "TenantId", "Name" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpLanguageTexts_TenantId_Source_LanguageName_Key", - table: "AbpLanguageTexts", - columns: new[] { "TenantId", "Source", "LanguageName", "Key" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpNotificationSubscriptions_NotificationName_EntityTypeName_EntityId_UserId", - table: "AbpNotificationSubscriptions", - columns: new[] { "NotificationName", "EntityTypeName", "EntityId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpNotificationSubscriptions_TenantId_NotificationName_EntityTypeName_EntityId_UserId", - table: "AbpNotificationSubscriptions", - columns: new[] { "TenantId", "NotificationName", "EntityTypeName", "EntityId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnits_ParentId", - table: "AbpOrganizationUnits", - column: "ParentId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnits_TenantId_Code", - table: "AbpOrganizationUnits", - columns: new[] { "TenantId", "Code" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpPermissions_TenantId_Name", - table: "AbpPermissions", - columns: new[] { "TenantId", "Name" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpPermissions_RoleId", - table: "AbpPermissions", - column: "RoleId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpPermissions_UserId", - table: "AbpPermissions", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoleClaims_RoleId", - table: "AbpRoleClaims", - column: "RoleId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoleClaims_TenantId_ClaimType", - table: "AbpRoleClaims", - columns: new[] { "TenantId", "ClaimType" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoles_CreatorUserId", - table: "AbpRoles", - column: "CreatorUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoles_DeleterUserId", - table: "AbpRoles", - column: "DeleterUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoles_LastModifierUserId", - table: "AbpRoles", - column: "LastModifierUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoles_TenantId_NormalizedName", - table: "AbpRoles", - columns: new[] { "TenantId", "NormalizedName" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpSettings_UserId", - table: "AbpSettings", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpSettings_TenantId_Name", - table: "AbpSettings", - columns: new[] { "TenantId", "Name" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpTenantNotifications_TenantId", - table: "AbpTenantNotifications", - column: "TenantId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpTenants_CreatorUserId", - table: "AbpTenants", - column: "CreatorUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpTenants_DeleterUserId", - table: "AbpTenants", - column: "DeleterUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpTenants_EditionId", - table: "AbpTenants", - column: "EditionId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpTenants_LastModifierUserId", - table: "AbpTenants", - column: "LastModifierUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpTenants_TenancyName", - table: "AbpTenants", - column: "TenancyName"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserAccounts_EmailAddress", - table: "AbpUserAccounts", - column: "EmailAddress"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserAccounts_UserName", - table: "AbpUserAccounts", - column: "UserName"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserAccounts_TenantId_EmailAddress", - table: "AbpUserAccounts", - columns: new[] { "TenantId", "EmailAddress" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserAccounts_TenantId_UserId", - table: "AbpUserAccounts", - columns: new[] { "TenantId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserAccounts_TenantId_UserName", - table: "AbpUserAccounts", - columns: new[] { "TenantId", "UserName" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserClaims_UserId", - table: "AbpUserClaims", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserClaims_TenantId_ClaimType", - table: "AbpUserClaims", - columns: new[] { "TenantId", "ClaimType" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserLoginAttempts_UserId_TenantId", - table: "AbpUserLoginAttempts", - columns: new[] { "UserId", "TenantId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserLoginAttempts_TenancyName_UserNameOrEmailAddress_Result", - table: "AbpUserLoginAttempts", - columns: new[] { "TenancyName", "UserNameOrEmailAddress", "Result" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserLogins_UserId", - table: "AbpUserLogins", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserLogins_TenantId_UserId", - table: "AbpUserLogins", - columns: new[] { "TenantId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserLogins_TenantId_LoginProvider_ProviderKey", - table: "AbpUserLogins", - columns: new[] { "TenantId", "LoginProvider", "ProviderKey" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserNotifications_UserId_State_CreationTime", - table: "AbpUserNotifications", - columns: new[] { "UserId", "State", "CreationTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserOrganizationUnits_TenantId_OrganizationUnitId", - table: "AbpUserOrganizationUnits", - columns: new[] { "TenantId", "OrganizationUnitId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserOrganizationUnits_TenantId_UserId", - 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", - columns: new[] { "TenantId", "RoleId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserRoles_TenantId_UserId", - table: "AbpUserRoles", - columns: new[] { "TenantId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_CreatorUserId", - table: "AbpUsers", - column: "CreatorUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_DeleterUserId", - table: "AbpUsers", - column: "DeleterUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_LastModifierUserId", - table: "AbpUsers", - column: "LastModifierUserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_TenantId_NormalizedEmailAddress", - table: "AbpUsers", - columns: new[] { "TenantId", "NormalizedEmailAddress" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_TenantId_NormalizedUserName", - table: "AbpUsers", - columns: new[] { "TenantId", "NormalizedUserName" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserTokens_UserId", - table: "AbpUserTokens", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserTokens_TenantId_UserId", - table: "AbpUserTokens", - columns: new[] { "TenantId", "UserId" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "AbpAuditLogs"); - - migrationBuilder.DropTable( - name: "AbpBackgroundJobs"); - - migrationBuilder.DropTable( - name: "AbpEntityPropertyChanges"); - - migrationBuilder.DropTable( - name: "AbpFeatures"); - - migrationBuilder.DropTable( - name: "AbpLanguages"); - - migrationBuilder.DropTable( - name: "AbpLanguageTexts"); - - migrationBuilder.DropTable( - name: "AbpNotifications"); - - migrationBuilder.DropTable( - name: "AbpNotificationSubscriptions"); - - migrationBuilder.DropTable( - name: "AbpOrganizationUnits"); - - migrationBuilder.DropTable( - name: "AbpPermissions"); - - migrationBuilder.DropTable( - name: "AbpRoleClaims"); - - migrationBuilder.DropTable( - name: "AbpSettings"); - - migrationBuilder.DropTable( - name: "AbpTenantNotifications"); - - migrationBuilder.DropTable( - name: "AbpTenants"); - - migrationBuilder.DropTable( - name: "AbpUserAccounts"); - - migrationBuilder.DropTable( - name: "AbpUserClaims"); - - migrationBuilder.DropTable( - name: "AbpUserLoginAttempts"); - - migrationBuilder.DropTable( - name: "AbpUserLogins"); - - migrationBuilder.DropTable( - name: "AbpUserNotifications"); - - migrationBuilder.DropTable( - name: "AbpUserOrganizationUnits"); - - migrationBuilder.DropTable( - name: "AbpUserRoles"); - - migrationBuilder.DropTable( - name: "AbpUserTokens"); - - migrationBuilder.DropTable( - name: "AbpEntityChanges"); - - migrationBuilder.DropTable( - name: "AbpRoles"); - - migrationBuilder.DropTable( - name: "AbpEditions"); - - migrationBuilder.DropTable( - name: "AbpEntityChangeSets"); - - migrationBuilder.DropTable( - name: "AbpUsers"); - } - } -}
{{l('UserName')}}{{l('FullName')}}{{l('EmailAddress')}}{{l('Nazwa użytkownika')}}{{l('Imię i nazwisko')}}{{l('Adres e-mail')}} -
{{l('IsActive')}}
+
{{l('Aktywny')}}
{{l('Actions')}}{{l('Akcje')}}