< Summary

Class:SVETA.Api.Migrations.addRights
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200430095952_addRights.cs
/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200430095952_addRights.Designer.cs
Covered lines:0
Uncovered lines:11280
Coverable lines:11280
Total lines:11531
Line coverage:0% (0 of 11280)
Covered branches:0
Total branches:248
Branch coverage:0% (0 of 248)

Metrics

MethodLine coverage Branch coverage
Up(...)0%100%
Down(...)0%100%
BuildTargetModel(...)0%0%

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200430095952_addRights.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3
 4namespace SVETA.Api.Migrations
 5{
 6    public partial class addRights : Migration
 7    {
 8        protected override void Up(MigrationBuilder migrationBuilder)
 09        {
 010            migrationBuilder.UpdateData(
 011                table: "ContragentsKind",
 012                keyColumn: "Id",
 013                keyValue: 2L,
 014                column: "ExternalKey",
 015                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 16
 017            migrationBuilder.UpdateData(
 018                table: "ContragentsKind",
 019                keyColumn: "Id",
 020                keyValue: 3L,
 021                column: "ExternalKey",
 022                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 23
 024            migrationBuilder.UpdateData(
 025                table: "ContragentsKind",
 026                keyColumn: "Id",
 027                keyValue: 4L,
 028                column: "ExternalKey",
 029                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 30
 031            migrationBuilder.UpdateData(
 032                table: "ContragentsKind",
 033                keyColumn: "Id",
 034                keyValue: 6L,
 035                column: "ExternalKey",
 036                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 37
 038            migrationBuilder.InsertData(
 039                table: "ControlsAccess",
 040                columns: new[] { "Id", "Action", "Available", "CreatedByUserId", "CreationDateTime", "GUID", "IsDeleted"
 041                values: new object[,]
 042                {
 043                    { 115L, "viewOrderDraft", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
 044                    { 116L, "viewOrderDraft", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
 045                    { 117L, "viewOrderDraft", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
 046                });
 047        }
 48
 49        protected override void Down(MigrationBuilder migrationBuilder)
 050        {
 051            migrationBuilder.DeleteData(
 052                table: "ControlsAccess",
 053                keyColumn: "Id",
 054                keyValue: 115L);
 55
 056            migrationBuilder.DeleteData(
 057                table: "ControlsAccess",
 058                keyColumn: "Id",
 059                keyValue: 116L);
 60
 061            migrationBuilder.DeleteData(
 062                table: "ControlsAccess",
 063                keyColumn: "Id",
 064                keyValue: 117L);
 65
 066            migrationBuilder.UpdateData(
 067                table: "ContragentsKind",
 068                keyColumn: "Id",
 069                keyValue: 2L,
 070                column: "ExternalKey",
 071                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 72
 073            migrationBuilder.UpdateData(
 074                table: "ContragentsKind",
 075                keyColumn: "Id",
 076                keyValue: 3L,
 077                column: "ExternalKey",
 078                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 79
 080            migrationBuilder.UpdateData(
 081                table: "ContragentsKind",
 082                keyColumn: "Id",
 083                keyValue: 4L,
 084                column: "ExternalKey",
 085                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 86
 087            migrationBuilder.UpdateData(
 088                table: "ContragentsKind",
 089                keyColumn: "Id",
 090                keyValue: 6L,
 091                column: "ExternalKey",
 092                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 93
 094            migrationBuilder.UpdateData(
 095                table: "ControlsAccess",
 096                keyColumn: "Id",
 097                keyValue: 26L,
 098                column: "GUID",
 099                value: new Guid("c79c5c6e-b838-4675-9100-0e9ad329b364"));
 100
 0101            migrationBuilder.UpdateData(
 0102                table: "ControlsAccess",
 0103                keyColumn: "Id",
 0104                keyValue: 27L,
 0105                column: "GUID",
 0106                value: new Guid("ba50157e-10ae-4b18-af22-c95aeb5b5562"));
 107
 0108            migrationBuilder.UpdateData(
 0109                table: "ControlsAccess",
 0110                keyColumn: "Id",
 0111                keyValue: 28L,
 0112                column: "GUID",
 0113                value: new Guid("6cda7849-6f5a-4e31-952e-10fde3fe7746"));
 114
 0115            migrationBuilder.UpdateData(
 0116                table: "ControlsAccess",
 0117                keyColumn: "Id",
 0118                keyValue: 29L,
 0119                column: "GUID",
 0120                value: new Guid("aeb275af-1d94-4de6-b70b-be397e11ec6a"));
 121
 0122            migrationBuilder.UpdateData(
 0123                table: "ControlsAccess",
 0124                keyColumn: "Id",
 0125                keyValue: 30L,
 0126                column: "GUID",
 0127                value: new Guid("4754bade-5f6e-4ef3-963f-c5bab40263fa"));
 128
 0129            migrationBuilder.UpdateData(
 0130                table: "ControlsAccess",
 0131                keyColumn: "Id",
 0132                keyValue: 31L,
 0133                column: "GUID",
 0134                value: new Guid("20212c41-f229-4006-8ba5-d2426272c39c"));
 135
 0136            migrationBuilder.UpdateData(
 0137                table: "ControlsAccess",
 0138                keyColumn: "Id",
 0139                keyValue: 32L,
 0140                column: "GUID",
 0141                value: new Guid("952d02cb-6f58-417b-8b88-fc919d9df601"));
 142
 0143            migrationBuilder.UpdateData(
 0144                table: "ControlsAccess",
 0145                keyColumn: "Id",
 0146                keyValue: 33L,
 0147                column: "GUID",
 0148                value: new Guid("52145756-5cd7-4ee3-be68-dbe946ee1edf"));
 149
 0150            migrationBuilder.UpdateData(
 0151                table: "ControlsAccess",
 0152                keyColumn: "Id",
 0153                keyValue: 34L,
 0154                column: "GUID",
 0155                value: new Guid("c304d096-c8d7-4430-90fd-4737708428a3"));
 156
 0157            migrationBuilder.UpdateData(
 0158                table: "ControlsAccess",
 0159                keyColumn: "Id",
 0160                keyValue: 35L,
 0161                column: "GUID",
 0162                value: new Guid("79e45657-65cb-41d2-a9c1-c3733c7f4d52"));
 163
 0164            migrationBuilder.UpdateData(
 0165                table: "ControlsAccess",
 0166                keyColumn: "Id",
 0167                keyValue: 36L,
 0168                column: "GUID",
 0169                value: new Guid("9f9602f3-f674-4c4f-865f-09d07f2a447b"));
 170
 0171            migrationBuilder.UpdateData(
 0172                table: "ControlsAccess",
 0173                keyColumn: "Id",
 0174                keyValue: 37L,
 0175                column: "GUID",
 0176                value: new Guid("01c86924-6c86-4bd3-9d96-33b5631b57d3"));
 177
 0178            migrationBuilder.UpdateData(
 0179                table: "ControlsAccess",
 0180                keyColumn: "Id",
 0181                keyValue: 38L,
 0182                column: "GUID",
 0183                value: new Guid("cdefb178-8d5c-40db-91c2-631c1c7baca7"));
 184
 0185            migrationBuilder.UpdateData(
 0186                table: "ControlsAccess",
 0187                keyColumn: "Id",
 0188                keyValue: 39L,
 0189                column: "GUID",
 0190                value: new Guid("944b47a5-7c10-42e6-a593-28004414f611"));
 191
 0192            migrationBuilder.UpdateData(
 0193                table: "ControlsAccess",
 0194                keyColumn: "Id",
 0195                keyValue: 40L,
 0196                column: "GUID",
 0197                value: new Guid("077b4b1f-538d-4f01-b42c-bb630c24add3"));
 198
 0199            migrationBuilder.UpdateData(
 0200                table: "ControlsAccess",
 0201                keyColumn: "Id",
 0202                keyValue: 41L,
 0203                column: "GUID",
 0204                value: new Guid("bfb6b3f9-b32e-40bf-a7fc-8962e2bdc5e4"));
 205
 0206            migrationBuilder.UpdateData(
 0207                table: "ControlsAccess",
 0208                keyColumn: "Id",
 0209                keyValue: 42L,
 0210                column: "GUID",
 0211                value: new Guid("7b8de8b3-6af9-464d-8832-7db3475a5d1c"));
 212
 0213            migrationBuilder.UpdateData(
 0214                table: "ControlsAccess",
 0215                keyColumn: "Id",
 0216                keyValue: 43L,
 0217                column: "GUID",
 0218                value: new Guid("f3979b08-12d0-4c01-b52b-bd65434db139"));
 219
 0220            migrationBuilder.UpdateData(
 0221                table: "ControlsAccess",
 0222                keyColumn: "Id",
 0223                keyValue: 44L,
 0224                column: "GUID",
 0225                value: new Guid("e7d7f9e4-c3c2-4532-bfde-87fa1ca4c852"));
 226
 0227            migrationBuilder.UpdateData(
 0228                table: "ControlsAccess",
 0229                keyColumn: "Id",
 0230                keyValue: 45L,
 0231                column: "GUID",
 0232                value: new Guid("13325bc6-4534-4d17-9f16-5b5d8007627a"));
 233
 0234            migrationBuilder.UpdateData(
 0235                table: "ControlsAccess",
 0236                keyColumn: "Id",
 0237                keyValue: 46L,
 0238                column: "GUID",
 0239                value: new Guid("131ddf6d-991e-4c8a-8978-2b60b74c3eaf"));
 240
 0241            migrationBuilder.UpdateData(
 0242                table: "ControlsAccess",
 0243                keyColumn: "Id",
 0244                keyValue: 47L,
 0245                column: "GUID",
 0246                value: new Guid("b0614364-8b29-48bc-aff2-e289d8de7cd0"));
 247
 0248            migrationBuilder.UpdateData(
 0249                table: "ControlsAccess",
 0250                keyColumn: "Id",
 0251                keyValue: 48L,
 0252                column: "GUID",
 0253                value: new Guid("19887227-d15a-441d-a339-a255c14d0d7a"));
 254
 0255            migrationBuilder.UpdateData(
 0256                table: "ControlsAccess",
 0257                keyColumn: "Id",
 0258                keyValue: 49L,
 0259                column: "GUID",
 0260                value: new Guid("0b273f6d-cd2f-4535-af47-a4cd51dca377"));
 261
 0262            migrationBuilder.UpdateData(
 0263                table: "ControlsAccess",
 0264                keyColumn: "Id",
 0265                keyValue: 50L,
 0266                column: "GUID",
 0267                value: new Guid("46c0f11d-43f8-4c7f-8f4e-4dae9a0f0bb5"));
 268
 0269            migrationBuilder.UpdateData(
 0270                table: "ControlsAccess",
 0271                keyColumn: "Id",
 0272                keyValue: 51L,
 0273                column: "GUID",
 0274                value: new Guid("15a01b70-7324-43f2-ab98-01551388ea55"));
 275
 0276            migrationBuilder.UpdateData(
 0277                table: "ControlsAccess",
 0278                keyColumn: "Id",
 0279                keyValue: 52L,
 0280                column: "GUID",
 0281                value: new Guid("4db61255-4a68-4a10-b53f-4dcaf22e145a"));
 282
 0283            migrationBuilder.UpdateData(
 0284                table: "ControlsAccess",
 0285                keyColumn: "Id",
 0286                keyValue: 53L,
 0287                column: "GUID",
 0288                value: new Guid("a01aa91b-02d8-47eb-a82d-452b638a5841"));
 289
 0290            migrationBuilder.UpdateData(
 0291                table: "ControlsAccess",
 0292                keyColumn: "Id",
 0293                keyValue: 54L,
 0294                column: "GUID",
 0295                value: new Guid("2362a402-b977-4f5e-b214-431f1a0888af"));
 296
 0297            migrationBuilder.UpdateData(
 0298                table: "ControlsAccess",
 0299                keyColumn: "Id",
 0300                keyValue: 55L,
 0301                column: "GUID",
 0302                value: new Guid("045f1c99-4e95-480b-a374-1dae449d208d"));
 303
 0304            migrationBuilder.UpdateData(
 0305                table: "ControlsAccess",
 0306                keyColumn: "Id",
 0307                keyValue: 56L,
 0308                column: "GUID",
 0309                value: new Guid("221a443d-c268-4cb2-bc12-d21e9ca15e80"));
 310
 0311            migrationBuilder.UpdateData(
 0312                table: "ControlsAccess",
 0313                keyColumn: "Id",
 0314                keyValue: 57L,
 0315                column: "GUID",
 0316                value: new Guid("233692ee-6b36-4019-ad19-aa5eab61f4df"));
 317
 0318            migrationBuilder.UpdateData(
 0319                table: "ControlsAccess",
 0320                keyColumn: "Id",
 0321                keyValue: 58L,
 0322                column: "GUID",
 0323                value: new Guid("5fe1e057-5bce-41d1-a20b-47e6a5a51c7b"));
 324
 0325            migrationBuilder.UpdateData(
 0326                table: "ControlsAccess",
 0327                keyColumn: "Id",
 0328                keyValue: 59L,
 0329                column: "GUID",
 0330                value: new Guid("3028db28-4a8a-4ca7-bee2-16dbcabc84e4"));
 331
 0332            migrationBuilder.UpdateData(
 0333                table: "ControlsAccess",
 0334                keyColumn: "Id",
 0335                keyValue: 60L,
 0336                column: "GUID",
 0337                value: new Guid("aed98dd5-6eb6-409e-bf27-779e3e104308"));
 338
 0339            migrationBuilder.UpdateData(
 0340                table: "ControlsAccess",
 0341                keyColumn: "Id",
 0342                keyValue: 61L,
 0343                column: "GUID",
 0344                value: new Guid("3399da2b-9493-42d6-8def-7e49e38a5f40"));
 345
 0346            migrationBuilder.UpdateData(
 0347                table: "ControlsAccess",
 0348                keyColumn: "Id",
 0349                keyValue: 62L,
 0350                column: "GUID",
 0351                value: new Guid("484f7ce3-8778-4c32-8128-d247d08baf8c"));
 352
 0353            migrationBuilder.UpdateData(
 0354                table: "ControlsAccess",
 0355                keyColumn: "Id",
 0356                keyValue: 63L,
 0357                column: "GUID",
 0358                value: new Guid("fd9b0bbb-a2e4-431e-b52d-fea75975326f"));
 359
 0360            migrationBuilder.UpdateData(
 0361                table: "ControlsAccess",
 0362                keyColumn: "Id",
 0363                keyValue: 64L,
 0364                column: "GUID",
 0365                value: new Guid("f8a3c93f-3a57-4bf3-83f2-1dda6c5faa4a"));
 366
 0367            migrationBuilder.UpdateData(
 0368                table: "ControlsAccess",
 0369                keyColumn: "Id",
 0370                keyValue: 65L,
 0371                column: "GUID",
 0372                value: new Guid("4c1e7d20-dfb6-42c0-93af-88be85ff65a2"));
 373
 0374            migrationBuilder.UpdateData(
 0375                table: "ControlsAccess",
 0376                keyColumn: "Id",
 0377                keyValue: 66L,
 0378                column: "GUID",
 0379                value: new Guid("3c7b8f01-ef57-4112-84c6-14d56b601698"));
 380
 0381            migrationBuilder.UpdateData(
 0382                table: "ControlsAccess",
 0383                keyColumn: "Id",
 0384                keyValue: 67L,
 0385                column: "GUID",
 0386                value: new Guid("fb5aab5d-3d30-4c45-a564-2259b5d8fded"));
 387
 0388            migrationBuilder.UpdateData(
 0389                table: "ControlsAccess",
 0390                keyColumn: "Id",
 0391                keyValue: 69L,
 0392                column: "GUID",
 0393                value: new Guid("a6cea55a-c2f4-4a42-9b7b-59ac66e452e8"));
 394
 0395            migrationBuilder.UpdateData(
 0396                table: "ControlsAccess",
 0397                keyColumn: "Id",
 0398                keyValue: 70L,
 0399                column: "GUID",
 0400                value: new Guid("c0428943-2f64-4431-89c1-e80761f98d81"));
 401
 0402            migrationBuilder.UpdateData(
 0403                table: "ControlsAccess",
 0404                keyColumn: "Id",
 0405                keyValue: 71L,
 0406                column: "GUID",
 0407                value: new Guid("141f51cc-2e73-4722-ba31-fa4e6d017909"));
 408
 0409            migrationBuilder.UpdateData(
 0410                table: "ControlsAccess",
 0411                keyColumn: "Id",
 0412                keyValue: 72L,
 0413                column: "GUID",
 0414                value: new Guid("6b667a2d-c5b8-43d0-8d2e-75d2f451b27f"));
 415
 0416            migrationBuilder.UpdateData(
 0417                table: "ControlsAccess",
 0418                keyColumn: "Id",
 0419                keyValue: 73L,
 0420                column: "GUID",
 0421                value: new Guid("9534edb6-bf7c-450d-9d9d-cfae1c196dc7"));
 422
 0423            migrationBuilder.UpdateData(
 0424                table: "ControlsAccess",
 0425                keyColumn: "Id",
 0426                keyValue: 75L,
 0427                column: "GUID",
 0428                value: new Guid("ccd2116b-653d-4147-92eb-f7b984224315"));
 429
 0430            migrationBuilder.UpdateData(
 0431                table: "ControlsAccess",
 0432                keyColumn: "Id",
 0433                keyValue: 76L,
 0434                column: "GUID",
 0435                value: new Guid("a1a3d810-8040-4575-925b-a7fd932de294"));
 436
 0437            migrationBuilder.UpdateData(
 0438                table: "ControlsAccess",
 0439                keyColumn: "Id",
 0440                keyValue: 77L,
 0441                column: "GUID",
 0442                value: new Guid("d7ad7fce-2190-46f2-be07-26f5f2d710eb"));
 443
 0444            migrationBuilder.UpdateData(
 0445                table: "ControlsAccess",
 0446                keyColumn: "Id",
 0447                keyValue: 78L,
 0448                column: "GUID",
 0449                value: new Guid("e453be22-0f36-4c7e-8a8c-817589cd60bd"));
 450
 0451            migrationBuilder.UpdateData(
 0452                table: "ControlsAccess",
 0453                keyColumn: "Id",
 0454                keyValue: 79L,
 0455                column: "GUID",
 0456                value: new Guid("ed1ed658-d808-40b3-a8fb-5174e617719e"));
 457
 0458            migrationBuilder.UpdateData(
 0459                table: "ControlsAccess",
 0460                keyColumn: "Id",
 0461                keyValue: 82L,
 0462                column: "GUID",
 0463                value: new Guid("33b6a016-55bf-47a1-9c96-84a043141bb3"));
 464
 0465            migrationBuilder.UpdateData(
 0466                table: "ControlsAccess",
 0467                keyColumn: "Id",
 0468                keyValue: 83L,
 0469                column: "GUID",
 0470                value: new Guid("f78b4e0a-0e49-49d8-a8ce-e111c6d7217b"));
 471
 0472            migrationBuilder.UpdateData(
 0473                table: "ControlsAccess",
 0474                keyColumn: "Id",
 0475                keyValue: 84L,
 0476                column: "GUID",
 0477                value: new Guid("f013025f-2519-4fdb-9e8e-c10518c6a4e1"));
 478
 0479            migrationBuilder.UpdateData(
 0480                table: "ControlsAccess",
 0481                keyColumn: "Id",
 0482                keyValue: 85L,
 0483                column: "GUID",
 0484                value: new Guid("ff74c010-adf8-449b-974f-1a63ef4535f1"));
 485
 0486            migrationBuilder.UpdateData(
 0487                table: "ControlsAccess",
 0488                keyColumn: "Id",
 0489                keyValue: 86L,
 0490                column: "GUID",
 0491                value: new Guid("e9cd689a-b24a-4b60-b72a-66524e0df771"));
 492
 0493            migrationBuilder.UpdateData(
 0494                table: "ControlsAccess",
 0495                keyColumn: "Id",
 0496                keyValue: 87L,
 0497                column: "GUID",
 0498                value: new Guid("8e043b8c-9c6b-4576-b642-ac724ed0e876"));
 499
 0500            migrationBuilder.UpdateData(
 0501                table: "ControlsAccess",
 0502                keyColumn: "Id",
 0503                keyValue: 88L,
 0504                column: "GUID",
 0505                value: new Guid("3893cd33-e5be-4059-ac38-d727c228dfd3"));
 506
 0507            migrationBuilder.UpdateData(
 0508                table: "ControlsAccess",
 0509                keyColumn: "Id",
 0510                keyValue: 89L,
 0511                column: "GUID",
 0512                value: new Guid("0c89878f-8bce-4734-8040-6eeb80314c6d"));
 513
 0514            migrationBuilder.UpdateData(
 0515                table: "ControlsAccess",
 0516                keyColumn: "Id",
 0517                keyValue: 90L,
 0518                column: "GUID",
 0519                value: new Guid("45c86cb0-2c8a-4943-9c4e-2bc63aa7951e"));
 520
 0521            migrationBuilder.UpdateData(
 0522                table: "ControlsAccess",
 0523                keyColumn: "Id",
 0524                keyValue: 91L,
 0525                column: "GUID",
 0526                value: new Guid("35b544a4-fdf6-48ed-9a2f-a0e84d4dd190"));
 527
 0528            migrationBuilder.UpdateData(
 0529                table: "ControlsAccess",
 0530                keyColumn: "Id",
 0531                keyValue: 92L,
 0532                column: "GUID",
 0533                value: new Guid("8a19a211-2d79-4ed8-a82d-38eb8d07e781"));
 534
 0535            migrationBuilder.UpdateData(
 0536                table: "ControlsAccess",
 0537                keyColumn: "Id",
 0538                keyValue: 93L,
 0539                column: "GUID",
 0540                value: new Guid("63c8c02c-115c-47f0-929a-1ade891df338"));
 541
 0542            migrationBuilder.UpdateData(
 0543                table: "ControlsAccess",
 0544                keyColumn: "Id",
 0545                keyValue: 94L,
 0546                column: "GUID",
 0547                value: new Guid("14209bb3-dcb1-46e0-820f-82a38be792ff"));
 548
 0549            migrationBuilder.UpdateData(
 0550                table: "ControlsAccess",
 0551                keyColumn: "Id",
 0552                keyValue: 95L,
 0553                column: "GUID",
 0554                value: new Guid("49bc9dc5-c0f0-4043-a3c2-7e2910e2c0ab"));
 555
 0556            migrationBuilder.UpdateData(
 0557                table: "ControlsAccess",
 0558                keyColumn: "Id",
 0559                keyValue: 96L,
 0560                column: "GUID",
 0561                value: new Guid("6736fda8-28c0-4e6f-a11e-c8a88f827b58"));
 562
 0563            migrationBuilder.UpdateData(
 0564                table: "ControlsAccess",
 0565                keyColumn: "Id",
 0566                keyValue: 97L,
 0567                column: "GUID",
 0568                value: new Guid("aaab4799-66b4-4a90-bbce-0c53365f28d1"));
 569
 0570            migrationBuilder.UpdateData(
 0571                table: "ControlsAccess",
 0572                keyColumn: "Id",
 0573                keyValue: 98L,
 0574                column: "GUID",
 0575                value: new Guid("97f1cab9-77dc-4744-868c-fe110168d0ba"));
 576
 0577            migrationBuilder.UpdateData(
 0578                table: "ControlsAccess",
 0579                keyColumn: "Id",
 0580                keyValue: 99L,
 0581                column: "GUID",
 0582                value: new Guid("e10d0ff9-2ea1-47b2-9c75-87c0ad145108"));
 583
 0584            migrationBuilder.UpdateData(
 0585                table: "ControlsAccess",
 0586                keyColumn: "Id",
 0587                keyValue: 100L,
 0588                column: "GUID",
 0589                value: new Guid("bc0d8847-ffdd-41ad-8513-429a70c8da6f"));
 590
 0591            migrationBuilder.UpdateData(
 0592                table: "ControlsAccess",
 0593                keyColumn: "Id",
 0594                keyValue: 101L,
 0595                column: "GUID",
 0596                value: new Guid("2c9b737a-8f96-441e-b7cd-1854a918982d"));
 597
 0598            migrationBuilder.UpdateData(
 0599                table: "ControlsAccess",
 0600                keyColumn: "Id",
 0601                keyValue: 102L,
 0602                column: "GUID",
 0603                value: new Guid("a5f5b493-3ddf-4b33-b14f-4e2a5e1f207e"));
 604
 0605            migrationBuilder.UpdateData(
 0606                table: "ControlsAccess",
 0607                keyColumn: "Id",
 0608                keyValue: 103L,
 0609                column: "GUID",
 0610                value: new Guid("ea7251b7-09d5-4b3f-b492-1ec65d88be5c"));
 611
 0612            migrationBuilder.UpdateData(
 0613                table: "ControlsAccess",
 0614                keyColumn: "Id",
 0615                keyValue: 104L,
 0616                column: "GUID",
 0617                value: new Guid("52944d1d-c745-41a6-8fac-c486aa05afc0"));
 618
 0619            migrationBuilder.UpdateData(
 0620                table: "ControlsAccess",
 0621                keyColumn: "Id",
 0622                keyValue: 105L,
 0623                column: "GUID",
 0624                value: new Guid("bb5f3e21-fbf8-4329-975a-0eb17b8cd399"));
 625
 0626            migrationBuilder.UpdateData(
 0627                table: "ControlsAccess",
 0628                keyColumn: "Id",
 0629                keyValue: 106L,
 0630                column: "GUID",
 0631                value: new Guid("4b9250fb-d95a-4d65-bfa6-df203ad2ac3c"));
 632
 0633            migrationBuilder.UpdateData(
 0634                table: "ControlsAccess",
 0635                keyColumn: "Id",
 0636                keyValue: 107L,
 0637                column: "GUID",
 0638                value: new Guid("37c06b62-2604-47ad-a08c-ee8ff5ce7ad5"));
 639
 0640            migrationBuilder.UpdateData(
 0641                table: "ControlsAccess",
 0642                keyColumn: "Id",
 0643                keyValue: 108L,
 0644                column: "GUID",
 0645                value: new Guid("26d46f10-149a-40e4-8409-ba4f7fb647e3"));
 646
 0647            migrationBuilder.UpdateData(
 0648                table: "ControlsAccess",
 0649                keyColumn: "Id",
 0650                keyValue: 109L,
 0651                column: "GUID",
 0652                value: new Guid("371f6c52-ffd5-487a-b291-96d9addcee4e"));
 653
 0654            migrationBuilder.UpdateData(
 0655                table: "ControlsAccess",
 0656                keyColumn: "Id",
 0657                keyValue: 110L,
 0658                column: "GUID",
 0659                value: new Guid("9af17a4b-f351-48ad-8648-5b4b006e9b06"));
 660
 0661            migrationBuilder.UpdateData(
 0662                table: "ControlsAccess",
 0663                keyColumn: "Id",
 0664                keyValue: 111L,
 0665                column: "GUID",
 0666                value: new Guid("f2c6e8c8-8da5-43f1-9883-6bf3c4f4017f"));
 667
 0668            migrationBuilder.UpdateData(
 0669                table: "ControlsAccess",
 0670                keyColumn: "Id",
 0671                keyValue: 112L,
 0672                column: "GUID",
 0673                value: new Guid("4dc3c57e-a6ad-4e62-9e25-71290318bced"));
 674
 0675            migrationBuilder.UpdateData(
 0676                table: "ControlsAccess",
 0677                keyColumn: "Id",
 0678                keyValue: 113L,
 0679                column: "GUID",
 0680                value: new Guid("ae611992-8e06-49a0-b3a5-8d6f19b3108c"));
 681
 0682            migrationBuilder.UpdateData(
 0683                table: "ControlsAccess",
 0684                keyColumn: "Id",
 0685                keyValue: 114L,
 0686                column: "GUID",
 0687                value: new Guid("26217b6d-7071-4d83-8f43-d8854af4cd18"));
 0688        }
 689    }
 690}

/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200430095952_addRights.Designer.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Microsoft.EntityFrameworkCore;
 4using Microsoft.EntityFrameworkCore.Infrastructure;
 5using Microsoft.EntityFrameworkCore.Migrations;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 8using WinSolutions.Sveta.Server.Data.DataModel.Contexts;
 9
 10namespace SVETA.Api.Migrations
 11{
 12    [DbContext(typeof(SvetaDbContext))]
 13    [Migration("20200430095952_addRights")]
 14    partial class addRights
 15    {
 16        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 017        {
 18#pragma warning disable 612, 618
 019            modelBuilder
 020                .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
 021                .HasAnnotation("ProductVersion", "3.1.1")
 022                .HasAnnotation("Relational:MaxIdentifierLength", 63);
 23
 024            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", b =>
 025                {
 026                    b.Property<long>("Id")
 027                        .ValueGeneratedOnAdd()
 028                        .HasColumnType("bigint")
 029                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 030
 031                    b.Property<string>("Building")
 032                        .HasColumnType("text");
 033
 034                    b.Property<string>("City")
 035                        .HasColumnType("text");
 036
 037                    b.Property<long?>("CreatedByUserId")
 038                        .HasColumnType("bigint");
 039
 040                    b.Property<DateTime>("CreationDateTime")
 041                        .HasColumnType("timestamp without time zone");
 042
 043                    b.Property<string>("District")
 044                        .HasColumnType("text");
 045
 046                    b.Property<Guid>("ExternalKey")
 047                        .ValueGeneratedOnAdd()
 048                        .HasColumnType("uuid");
 049
 050                    b.Property<string>("FullAddress")
 051                        .HasColumnType("text");
 052
 053                    b.Property<Guid>("GUID")
 054                        .ValueGeneratedOnAdd()
 055                        .HasColumnType("uuid");
 056
 057                    b.Property<string>("House")
 058                        .HasColumnType("text");
 059
 060                    b.Property<string>("Housing")
 061                        .HasColumnType("text");
 062
 063                    b.Property<string>("Index")
 064                        .HasColumnType("text");
 065
 066                    b.Property<bool>("IsDeleted")
 067                        .HasColumnType("boolean");
 068
 069                    b.Property<string>("Locality")
 070                        .HasColumnType("text");
 071
 072                    b.Property<DateTime?>("ModificationDateTime")
 073                        .HasColumnType("timestamp without time zone");
 074
 075                    b.Property<long?>("ModifiedByUserId")
 076                        .HasColumnType("bigint");
 077
 078                    b.Property<string>("Office")
 079                        .HasColumnType("text");
 080
 081                    b.Property<long?>("RecStateId")
 082                        .HasColumnType("bigint");
 083
 084                    b.Property<string>("Region")
 085                        .HasColumnType("text");
 086
 087                    b.Property<string>("Street")
 088                        .HasColumnType("text");
 089
 090                    b.HasKey("Id");
 091
 092                    b.HasIndex("CreatedByUserId");
 093
 094                    b.HasIndex("ModifiedByUserId");
 095
 096                    b.HasIndex("RecStateId");
 097
 098                    b.ToTable("Address");
 099
 0100                    b.HasData(
 0101                        new
 0102                        {
 0103                            Id = -1L,
 0104                            Building = "1",
 0105                            City = "Краснодар",
 0106                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0107                            District = "Район 9",
 0108                            ExternalKey = new Guid("00000000-0000-0000-0000-000000000000"),
 0109                            FullAddress = "Краснодар 1",
 0110                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0111                            House = "1",
 0112                            Housing = "1",
 0113                            Index = "1",
 0114                            IsDeleted = false,
 0115                            Locality = "1",
 0116                            Office = "1",
 0117                            Region = "1",
 0118                            Street = "1"
 0119                        });
 0120                });
 121
 0122            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.BankAccount", b =>
 0123                {
 0124                    b.Property<long>("Id")
 0125                        .ValueGeneratedOnAdd()
 0126                        .HasColumnType("bigint")
 0127                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0128
 0129                    b.Property<string>("BankName")
 0130                        .IsRequired()
 0131                        .HasColumnType("text");
 0132
 0133                    b.Property<string>("Bik")
 0134                        .IsRequired()
 0135                        .HasColumnType("text");
 0136
 0137                    b.Property<long?>("ContragentId")
 0138                        .HasColumnType("bigint");
 0139
 0140                    b.Property<string>("CorrespondentAccount")
 0141                        .IsRequired()
 0142                        .HasColumnType("text");
 0143
 0144                    b.Property<long?>("CreatedByUserId")
 0145                        .HasColumnType("bigint");
 0146
 0147                    b.Property<DateTime>("CreationDateTime")
 0148                        .HasColumnType("timestamp without time zone");
 0149
 0150                    b.Property<Guid>("GUID")
 0151                        .ValueGeneratedOnAdd()
 0152                        .HasColumnType("uuid");
 0153
 0154                    b.Property<bool>("IsDeleted")
 0155                        .HasColumnType("boolean");
 0156
 0157                    b.Property<DateTime?>("ModificationDateTime")
 0158                        .HasColumnType("timestamp without time zone");
 0159
 0160                    b.Property<long?>("ModifiedByUserId")
 0161                        .HasColumnType("bigint");
 0162
 0163                    b.Property<long?>("RecStateId")
 0164                        .HasColumnType("bigint");
 0165
 0166                    b.Property<string>("SettlementAccount")
 0167                        .IsRequired()
 0168                        .HasColumnType("text");
 0169
 0170                    b.HasKey("Id");
 0171
 0172                    b.HasIndex("ContragentId");
 0173
 0174                    b.HasIndex("CreatedByUserId");
 0175
 0176                    b.HasIndex("ModifiedByUserId");
 0177
 0178                    b.HasIndex("RecStateId");
 0179
 0180                    b.HasIndex("Bik", "SettlementAccount")
 0181                        .IsUnique();
 0182
 0183                    b.ToTable("BankAccounts");
 0184                });
 185
 0186            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.BarCode", b =>
 0187                {
 0188                    b.Property<long>("Id")
 0189                        .ValueGeneratedOnAdd()
 0190                        .HasColumnType("bigint")
 0191                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0192
 0193                    b.Property<string>("Code")
 0194                        .HasColumnType("text");
 0195
 0196                    b.Property<long?>("CreatedByUserId")
 0197                        .HasColumnType("bigint");
 0198
 0199                    b.Property<DateTime>("CreationDateTime")
 0200                        .HasColumnType("timestamp without time zone");
 0201
 0202                    b.Property<Guid>("GUID")
 0203                        .ValueGeneratedOnAdd()
 0204                        .HasColumnType("uuid");
 0205
 0206                    b.Property<long?>("GoodId")
 0207                        .HasColumnType("bigint");
 0208
 0209                    b.Property<bool>("IsDeleted")
 0210                        .HasColumnType("boolean");
 0211
 0212                    b.Property<DateTime?>("ModificationDateTime")
 0213                        .HasColumnType("timestamp without time zone");
 0214
 0215                    b.Property<long?>("ModifiedByUserId")
 0216                        .HasColumnType("bigint");
 0217
 0218                    b.Property<long?>("RecStateId")
 0219                        .HasColumnType("bigint");
 0220
 0221                    b.HasKey("Id");
 0222
 0223                    b.HasIndex("Code")
 0224                        .IsUnique();
 0225
 0226                    b.HasIndex("CreatedByUserId");
 0227
 0228                    b.HasIndex("GoodId");
 0229
 0230                    b.HasIndex("ModifiedByUserId");
 0231
 0232                    b.HasIndex("RecStateId");
 0233
 0234                    b.ToTable("BarCodes");
 0235                });
 236
 0237            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", b =>
 0238                {
 0239                    b.Property<long>("Id")
 0240                        .ValueGeneratedOnAdd()
 0241                        .HasColumnType("bigint")
 0242                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0243
 0244                    b.Property<long?>("CreatedByUserId")
 0245                        .HasColumnType("bigint");
 0246
 0247                    b.Property<DateTime>("CreationDateTime")
 0248                        .HasColumnType("timestamp without time zone");
 0249
 0250                    b.Property<Guid>("GUID")
 0251                        .ValueGeneratedOnAdd()
 0252                        .HasColumnType("uuid");
 0253
 0254                    b.Property<bool>("IsDeleted")
 0255                        .HasColumnType("boolean");
 0256
 0257                    b.Property<DateTime?>("ModificationDateTime")
 0258                        .HasColumnType("timestamp without time zone");
 0259
 0260                    b.Property<long?>("ModifiedByUserId")
 0261                        .HasColumnType("bigint");
 0262
 0263                    b.Property<string>("Name")
 0264                        .HasColumnType("text");
 0265
 0266                    b.Property<long?>("ParentId")
 0267                        .HasColumnType("bigint");
 0268
 0269                    b.Property<long?>("RecStateId")
 0270                        .HasColumnType("bigint");
 0271
 0272                    b.HasKey("Id");
 0273
 0274                    b.HasIndex("CreatedByUserId");
 0275
 0276                    b.HasIndex("ModifiedByUserId");
 0277
 0278                    b.HasIndex("Name")
 0279                        .IsUnique();
 0280
 0281                    b.HasIndex("ParentId");
 0282
 0283                    b.HasIndex("RecStateId");
 0284
 0285                    b.ToTable("Brands");
 0286                });
 287
 0288            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", b =>
 0289                {
 0290                    b.Property<long>("Id")
 0291                        .ValueGeneratedOnAdd()
 0292                        .HasColumnType("bigint")
 0293                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0294
 0295                    b.Property<string>("Code")
 0296                        .HasColumnType("text");
 0297
 0298                    b.Property<long?>("CreatedByUserId")
 0299                        .HasColumnType("bigint");
 0300
 0301                    b.Property<DateTime>("CreationDateTime")
 0302                        .HasColumnType("timestamp without time zone");
 0303
 0304                    b.Property<Guid>("GUID")
 0305                        .ValueGeneratedOnAdd()
 0306                        .HasColumnType("uuid");
 0307
 0308                    b.Property<bool>("IsDeleted")
 0309                        .HasColumnType("boolean");
 0310
 0311                    b.Property<DateTime?>("ModificationDateTime")
 0312                        .HasColumnType("timestamp without time zone");
 0313
 0314                    b.Property<long?>("ModifiedByUserId")
 0315                        .HasColumnType("bigint");
 0316
 0317                    b.Property<string>("Name")
 0318                        .HasColumnType("text");
 0319
 0320                    b.Property<long?>("ParentId")
 0321                        .HasColumnType("bigint");
 0322
 0323                    b.Property<long?>("RecStateId")
 0324                        .HasColumnType("bigint");
 0325
 0326                    b.HasKey("Id");
 0327
 0328                    b.HasIndex("Code")
 0329                        .IsUnique();
 0330
 0331                    b.HasIndex("CreatedByUserId");
 0332
 0333                    b.HasIndex("ModifiedByUserId");
 0334
 0335                    b.HasIndex("Name")
 0336                        .IsUnique();
 0337
 0338                    b.HasIndex("ParentId");
 0339
 0340                    b.HasIndex("RecStateId");
 0341
 0342                    b.ToTable("Categories");
 0343                });
 344
 0345            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Cluster", b =>
 0346                {
 0347                    b.Property<long>("Id")
 0348                        .ValueGeneratedOnAdd()
 0349                        .HasColumnType("bigint")
 0350                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0351
 0352                    b.Property<long?>("CreatedByUserId")
 0353                        .HasColumnType("bigint");
 0354
 0355                    b.Property<DateTime>("CreationDateTime")
 0356                        .HasColumnType("timestamp without time zone");
 0357
 0358                    b.Property<Guid>("GUID")
 0359                        .ValueGeneratedOnAdd()
 0360                        .HasColumnType("uuid");
 0361
 0362                    b.Property<bool>("IsDeleted")
 0363                        .HasColumnType("boolean");
 0364
 0365                    b.Property<decimal>("MinOrderSum")
 0366                        .HasColumnType("numeric");
 0367
 0368                    b.Property<DateTime?>("ModificationDateTime")
 0369                        .HasColumnType("timestamp without time zone");
 0370
 0371                    b.Property<long?>("ModifiedByUserId")
 0372                        .HasColumnType("bigint");
 0373
 0374                    b.Property<string>("Name")
 0375                        .IsRequired()
 0376                        .HasColumnType("text");
 0377
 0378                    b.Property<long?>("RecStateId")
 0379                        .HasColumnType("bigint");
 0380
 0381                    b.Property<decimal>("TradeRatio")
 0382                        .HasColumnType("numeric");
 0383
 0384                    b.Property<long>("WarehouseId")
 0385                        .HasColumnType("bigint");
 0386
 0387                    b.HasKey("Id");
 0388
 0389                    b.HasIndex("CreatedByUserId");
 0390
 0391                    b.HasIndex("ModifiedByUserId");
 0392
 0393                    b.HasIndex("Name");
 0394
 0395                    b.HasIndex("RecStateId");
 0396
 0397                    b.HasIndex("WarehouseId");
 0398
 0399                    b.ToTable("Clusters");
 0400                });
 401
 0402            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", b =>
 0403                {
 0404                    b.Property<long>("Id")
 0405                        .ValueGeneratedOnAdd()
 0406                        .HasColumnType("bigint")
 0407                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0408
 0409                    b.Property<string>("BankName")
 0410                        .HasColumnType("text");
 0411
 0412                    b.Property<string>("Bik")
 0413                        .HasColumnType("text");
 0414
 0415                    b.Property<string>("ChiefAccountant")
 0416                        .HasColumnType("text");
 0417
 0418                    b.Property<long>("ContragentsKindId")
 0419                        .HasColumnType("bigint");
 0420
 0421                    b.Property<long?>("CreatedByUserId")
 0422                        .HasColumnType("bigint");
 0423
 0424                    b.Property<DateTime>("CreationDateTime")
 0425                        .HasColumnType("timestamp without time zone");
 0426
 0427                    b.Property<string>("Email")
 0428                        .IsRequired()
 0429                        .HasColumnType("text");
 0430
 0431                    b.Property<Guid>("ExternalKey")
 0432                        .ValueGeneratedOnAdd()
 0433                        .HasColumnType("uuid");
 0434
 0435                    b.Property<string>("FullName")
 0436                        .IsRequired()
 0437                        .HasColumnType("text");
 0438
 0439                    b.Property<Guid>("GUID")
 0440                        .ValueGeneratedOnAdd()
 0441                        .HasColumnType("uuid");
 0442
 0443                    b.Property<string>("Inn")
 0444                        .IsRequired()
 0445                        .HasColumnType("text");
 0446
 0447                    b.Property<bool>("IsDeleted")
 0448                        .HasColumnType("boolean");
 0449
 0450                    b.Property<long>("JuridicAddressId")
 0451                        .HasColumnType("bigint");
 0452
 0453                    b.Property<string>("Kpp")
 0454                        .IsRequired()
 0455                        .HasColumnType("text");
 0456
 0457                    b.Property<DateTime?>("ModificationDateTime")
 0458                        .HasColumnType("timestamp without time zone");
 0459
 0460                    b.Property<long?>("ModifiedByUserId")
 0461                        .HasColumnType("bigint");
 0462
 0463                    b.Property<string>("Ogrn")
 0464                        .IsRequired()
 0465                        .HasColumnType("text");
 0466
 0467                    b.Property<string>("Okato")
 0468                        .IsRequired()
 0469                        .HasColumnType("text");
 0470
 0471                    b.Property<string>("Okpo")
 0472                        .IsRequired()
 0473                        .HasColumnType("text");
 0474
 0475                    b.Property<string>("Okved")
 0476                        .IsRequired()
 0477                        .HasColumnType("text");
 0478
 0479                    b.Property<long>("OwnerId")
 0480                        .HasColumnType("bigint");
 0481
 0482                    b.Property<string>("PhoneNumber")
 0483                        .IsRequired()
 0484                        .HasColumnType("text");
 0485
 0486                    b.Property<long>("PhysicAddressId")
 0487                        .HasColumnType("bigint");
 0488
 0489                    b.Property<long?>("RecStateId")
 0490                        .HasColumnType("bigint");
 0491
 0492                    b.Property<string>("SettlementAccount")
 0493                        .HasColumnType("text");
 0494
 0495                    b.Property<string>("ShortName")
 0496                        .IsRequired()
 0497                        .HasColumnType("text");
 0498
 0499                    b.Property<string>("TaxSystemCRM")
 0500                        .HasColumnType("text");
 0501
 0502                    b.Property<long?>("TaxSystemId")
 0503                        .HasColumnType("bigint");
 0504
 0505                    b.Property<string>("WalletId")
 0506                        .HasColumnType("text");
 0507
 0508                    b.Property<string>("WebSite")
 0509                        .HasColumnType("text");
 0510
 0511                    b.Property<string>("СorrespondentAccount")
 0512                        .HasColumnType("text");
 0513
 0514                    b.HasKey("Id");
 0515
 0516                    b.HasIndex("ContragentsKindId");
 0517
 0518                    b.HasIndex("CreatedByUserId");
 0519
 0520                    b.HasIndex("FullName")
 0521                        .IsUnique();
 0522
 0523                    b.HasIndex("Inn")
 0524                        .IsUnique();
 0525
 0526                    b.HasIndex("JuridicAddressId");
 0527
 0528                    b.HasIndex("ModifiedByUserId");
 0529
 0530                    b.HasIndex("OwnerId");
 0531
 0532                    b.HasIndex("PhysicAddressId");
 0533
 0534                    b.HasIndex("RecStateId");
 0535
 0536                    b.HasIndex("ShortName")
 0537                        .IsUnique();
 0538
 0539                    b.HasIndex("TaxSystemId");
 0540
 0541                    b.ToTable("Contragents");
 0542
 0543                    b.HasData(
 0544                        new
 0545                        {
 0546                            Id = -1L,
 0547                            ChiefAccountant = "1",
 0548                            ContragentsKindId = 2L,
 0549                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0550                            Email = "example@email.ru",
 0551                            ExternalKey = new Guid("00000000-0000-0000-0000-000000000000"),
 0552                            FullName = "Общество с ограниченной ответственностью Анонимный контрагент",
 0553                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0554                            Inn = "2",
 0555                            IsDeleted = false,
 0556                            JuridicAddressId = -1L,
 0557                            Kpp = "2",
 0558                            Ogrn = "2",
 0559                            Okato = "1",
 0560                            Okpo = "1",
 0561                            Okved = "1",
 0562                            OwnerId = -2L,
 0563                            PhoneNumber = "88008008000",
 0564                            PhysicAddressId = -1L,
 0565                            RecStateId = 2L,
 0566                            ShortName = "ООО Анонимный контрагент",
 0567                            TaxSystemId = 1L,
 0568                            WebSite = "www.example.com"
 0569                        });
 0570                });
 571
 0572            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ContragentsKind", b =>
 0573                {
 0574                    b.Property<long>("Id")
 0575                        .ValueGeneratedOnAdd()
 0576                        .HasColumnType("bigint")
 0577                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0578
 0579                    b.Property<string>("Code")
 0580                        .IsRequired()
 0581                        .HasColumnType("text");
 0582
 0583                    b.Property<long?>("CreatedByUserId")
 0584                        .HasColumnType("bigint");
 0585
 0586                    b.Property<DateTime>("CreationDateTime")
 0587                        .HasColumnType("timestamp without time zone");
 0588
 0589                    b.Property<string>("Description")
 0590                        .HasColumnType("text");
 0591
 0592                    b.Property<Guid>("ExternalKey")
 0593                        .ValueGeneratedOnAdd()
 0594                        .HasColumnType("uuid");
 0595
 0596                    b.Property<Guid>("GUID")
 0597                        .ValueGeneratedOnAdd()
 0598                        .HasColumnType("uuid");
 0599
 0600                    b.Property<bool>("IsDeleted")
 0601                        .HasColumnType("boolean");
 0602
 0603                    b.Property<DateTime?>("ModificationDateTime")
 0604                        .HasColumnType("timestamp without time zone");
 0605
 0606                    b.Property<long?>("ModifiedByUserId")
 0607                        .HasColumnType("bigint");
 0608
 0609                    b.Property<string>("Name")
 0610                        .IsRequired()
 0611                        .HasColumnType("text");
 0612
 0613                    b.Property<long?>("RecStateId")
 0614                        .HasColumnType("bigint");
 0615
 0616                    b.HasKey("Id");
 0617
 0618                    b.HasIndex("CreatedByUserId");
 0619
 0620                    b.HasIndex("ModifiedByUserId");
 0621
 0622                    b.HasIndex("RecStateId");
 0623
 0624                    b.ToTable("ContragentsKind");
 0625
 0626                    b.HasData(
 0627                        new
 0628                        {
 0629                            Id = 1L,
 0630                            Code = "Unknown",
 0631                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0632                            Description = "",
 0633                            ExternalKey = new Guid("00000000-0000-0000-0000-000000000000"),
 0634                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0635                            IsDeleted = false,
 0636                            Name = "Неизвестный"
 0637                        },
 0638                        new
 0639                        {
 0640                            Id = 2L,
 0641                            Code = "Retailer",
 0642                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0643                            Description = "",
 0644                            ExternalKey = new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"),
 0645                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0646                            IsDeleted = false,
 0647                            Name = "Магазин"
 0648                        },
 0649                        new
 0650                        {
 0651                            Id = 3L,
 0652                            Code = "Wholesaler",
 0653                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0654                            Description = "",
 0655                            ExternalKey = new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"),
 0656                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0657                            IsDeleted = false,
 0658                            Name = "Дистрибьютор"
 0659                        },
 0660                        new
 0661                        {
 0662                            Id = 4L,
 0663                            Code = "Manufacturer",
 0664                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0665                            Description = "",
 0666                            ExternalKey = new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"),
 0667                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0668                            IsDeleted = false,
 0669                            Name = "Производитель"
 0670                        },
 0671                        new
 0672                        {
 0673                            Id = 5L,
 0674                            Code = "Supplier",
 0675                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0676                            Description = "В будущем надо удалить",
 0677                            ExternalKey = new Guid("00000000-0000-0000-0000-000000000000"),
 0678                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0679                            IsDeleted = false,
 0680                            Name = "---"
 0681                        },
 0682                        new
 0683                        {
 0684                            Id = 6L,
 0685                            Code = "Platform",
 0686                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0687                            Description = "",
 0688                            ExternalKey = new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"),
 0689                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0690                            IsDeleted = false,
 0691                            Name = "Платформа"
 0692                        });
 0693                });
 694
 0695            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ControlAccess", b =>
 0696                {
 0697                    b.Property<long>("Id")
 0698                        .ValueGeneratedOnAdd()
 0699                        .HasColumnType("bigint")
 0700                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0701
 0702                    b.Property<string>("Action")
 0703                        .IsRequired()
 0704                        .HasColumnType("text");
 0705
 0706                    b.Property<bool?>("Available")
 0707                        .HasColumnType("boolean");
 0708
 0709                    b.Property<long?>("CreatedByUserId")
 0710                        .HasColumnType("bigint");
 0711
 0712                    b.Property<DateTime>("CreationDateTime")
 0713                        .HasColumnType("timestamp without time zone");
 0714
 0715                    b.Property<Guid>("GUID")
 0716                        .ValueGeneratedOnAdd()
 0717                        .HasColumnType("uuid");
 0718
 0719                    b.Property<bool>("IsDeleted")
 0720                        .HasColumnType("boolean");
 0721
 0722                    b.Property<DateTime?>("ModificationDateTime")
 0723                        .HasColumnType("timestamp without time zone");
 0724
 0725                    b.Property<long?>("ModifiedByUserId")
 0726                        .HasColumnType("bigint");
 0727
 0728                    b.Property<long?>("RecStateId")
 0729                        .HasColumnType("bigint");
 0730
 0731                    b.Property<long>("RoleId")
 0732                        .HasColumnType("bigint");
 0733
 0734                    b.HasKey("Id");
 0735
 0736                    b.HasIndex("CreatedByUserId");
 0737
 0738                    b.HasIndex("ModifiedByUserId");
 0739
 0740                    b.HasIndex("RecStateId");
 0741
 0742                    b.HasIndex("RoleId");
 0743
 0744                    b.HasIndex("Action", "Available", "RoleId")
 0745                        .IsUnique();
 0746
 0747                    b.ToTable("ControlsAccess");
 0748
 0749                    b.HasData(
 0750                        new
 0751                        {
 0752                            Id = 26L,
 0753                            Action = "viewOrders",
 0754                            Available = true,
 0755                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0756                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0757                            IsDeleted = false,
 0758                            RoleId = 1L
 0759                        },
 0760                        new
 0761                        {
 0762                            Id = 27L,
 0763                            Action = "viewShipments",
 0764                            Available = true,
 0765                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0766                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0767                            IsDeleted = false,
 0768                            RoleId = 1L
 0769                        },
 0770                        new
 0771                        {
 0772                            Id = 28L,
 0773                            Action = "viewUser",
 0774                            Available = true,
 0775                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0776                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0777                            IsDeleted = false,
 0778                            RoleId = 1L
 0779                        },
 0780                        new
 0781                        {
 0782                            Id = 29L,
 0783                            Action = "viewShowcase",
 0784                            Available = true,
 0785                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0786                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0787                            IsDeleted = false,
 0788                            RoleId = 1L
 0789                        },
 0790                        new
 0791                        {
 0792                            Id = 30L,
 0793                            Action = "viewAnalytics",
 0794                            Available = true,
 0795                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0796                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0797                            IsDeleted = false,
 0798                            RoleId = 1L
 0799                        },
 0800                        new
 0801                        {
 0802                            Id = 31L,
 0803                            Action = "viewSettings",
 0804                            Available = true,
 0805                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0806                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0807                            IsDeleted = false,
 0808                            RoleId = 1L
 0809                        },
 0810                        new
 0811                        {
 0812                            Id = 32L,
 0813                            Action = "viewSystemManagement",
 0814                            Available = true,
 0815                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0816                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0817                            IsDeleted = false,
 0818                            RoleId = 1L
 0819                        },
 0820                        new
 0821                        {
 0822                            Id = 33L,
 0823                            Action = "viewSupport",
 0824                            Available = true,
 0825                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0826                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0827                            IsDeleted = false,
 0828                            RoleId = 1L
 0829                        },
 0830                        new
 0831                        {
 0832                            Id = 34L,
 0833                            Action = "viewOrders",
 0834                            Available = true,
 0835                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0836                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0837                            IsDeleted = false,
 0838                            RoleId = 2L
 0839                        },
 0840                        new
 0841                        {
 0842                            Id = 35L,
 0843                            Action = "viewShipments",
 0844                            Available = true,
 0845                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0846                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0847                            IsDeleted = false,
 0848                            RoleId = 2L
 0849                        },
 0850                        new
 0851                        {
 0852                            Id = 36L,
 0853                            Action = "viewUser",
 0854                            Available = true,
 0855                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0856                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0857                            IsDeleted = false,
 0858                            RoleId = 2L
 0859                        },
 0860                        new
 0861                        {
 0862                            Id = 37L,
 0863                            Action = "viewShowcase",
 0864                            Available = true,
 0865                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0866                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0867                            IsDeleted = false,
 0868                            RoleId = 2L
 0869                        },
 0870                        new
 0871                        {
 0872                            Id = 38L,
 0873                            Action = "viewAnalytics",
 0874                            Available = true,
 0875                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0876                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0877                            IsDeleted = false,
 0878                            RoleId = 2L
 0879                        },
 0880                        new
 0881                        {
 0882                            Id = 39L,
 0883                            Action = "viewSettings",
 0884                            Available = true,
 0885                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0886                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0887                            IsDeleted = false,
 0888                            RoleId = 2L
 0889                        },
 0890                        new
 0891                        {
 0892                            Id = 40L,
 0893                            Action = "viewSystemManagement",
 0894                            Available = true,
 0895                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0896                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0897                            IsDeleted = false,
 0898                            RoleId = 2L
 0899                        },
 0900                        new
 0901                        {
 0902                            Id = 41L,
 0903                            Action = "viewSupport",
 0904                            Available = true,
 0905                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0906                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0907                            IsDeleted = false,
 0908                            RoleId = 2L
 0909                        },
 0910                        new
 0911                        {
 0912                            Id = 42L,
 0913                            Action = "viewUser",
 0914                            Available = true,
 0915                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0916                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0917                            IsDeleted = false,
 0918                            RoleId = 6L
 0919                        },
 0920                        new
 0921                        {
 0922                            Id = 43L,
 0923                            Action = "viewShowcase",
 0924                            Available = true,
 0925                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0926                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0927                            IsDeleted = false,
 0928                            RoleId = 6L
 0929                        },
 0930                        new
 0931                        {
 0932                            Id = 44L,
 0933                            Action = "viewOrders",
 0934                            Available = false,
 0935                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0936                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0937                            IsDeleted = false,
 0938                            RoleId = 6L
 0939                        },
 0940                        new
 0941                        {
 0942                            Id = 45L,
 0943                            Action = "viewShipments",
 0944                            Available = true,
 0945                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0946                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0947                            IsDeleted = false,
 0948                            RoleId = 6L
 0949                        },
 0950                        new
 0951                        {
 0952                            Id = 46L,
 0953                            Action = "viewAnalytics",
 0954                            Available = true,
 0955                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0956                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0957                            IsDeleted = false,
 0958                            RoleId = 6L
 0959                        },
 0960                        new
 0961                        {
 0962                            Id = 47L,
 0963                            Action = "viewSettings",
 0964                            Available = true,
 0965                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0966                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0967                            IsDeleted = false,
 0968                            RoleId = 6L
 0969                        },
 0970                        new
 0971                        {
 0972                            Id = 48L,
 0973                            Action = "viewSupport",
 0974                            Available = true,
 0975                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0976                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0977                            IsDeleted = false,
 0978                            RoleId = 6L
 0979                        },
 0980                        new
 0981                        {
 0982                            Id = 49L,
 0983                            Action = "viewUser",
 0984                            Available = true,
 0985                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0986                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0987                            IsDeleted = false,
 0988                            RoleId = 7L
 0989                        },
 0990                        new
 0991                        {
 0992                            Id = 50L,
 0993                            Action = "viewShowcase",
 0994                            Available = true,
 0995                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0996                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0997                            IsDeleted = false,
 0998                            RoleId = 7L
 0999                        },
 01000                        new
 01001                        {
 01002                            Id = 51L,
 01003                            Action = "viewOrders",
 01004                            Available = false,
 01005                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01006                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01007                            IsDeleted = false,
 01008                            RoleId = 7L
 01009                        },
 01010                        new
 01011                        {
 01012                            Id = 52L,
 01013                            Action = "viewShipments",
 01014                            Available = true,
 01015                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01016                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01017                            IsDeleted = false,
 01018                            RoleId = 7L
 01019                        },
 01020                        new
 01021                        {
 01022                            Id = 53L,
 01023                            Action = "viewAnalytics",
 01024                            Available = true,
 01025                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01026                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01027                            IsDeleted = false,
 01028                            RoleId = 7L
 01029                        },
 01030                        new
 01031                        {
 01032                            Id = 54L,
 01033                            Action = "viewSettings",
 01034                            Available = true,
 01035                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01036                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01037                            IsDeleted = false,
 01038                            RoleId = 7L
 01039                        },
 01040                        new
 01041                        {
 01042                            Id = 55L,
 01043                            Action = "viewSupport",
 01044                            Available = true,
 01045                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01046                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01047                            IsDeleted = false,
 01048                            RoleId = 7L
 01049                        },
 01050                        new
 01051                        {
 01052                            Id = 56L,
 01053                            Action = "viewUser",
 01054                            Available = true,
 01055                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01056                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01057                            IsDeleted = false,
 01058                            RoleId = 8L
 01059                        },
 01060                        new
 01061                        {
 01062                            Id = 57L,
 01063                            Action = "viewShowcase",
 01064                            Available = true,
 01065                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01066                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01067                            IsDeleted = false,
 01068                            RoleId = 8L
 01069                        },
 01070                        new
 01071                        {
 01072                            Id = 58L,
 01073                            Action = "viewOrders",
 01074                            Available = false,
 01075                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01076                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01077                            IsDeleted = false,
 01078                            RoleId = 8L
 01079                        },
 01080                        new
 01081                        {
 01082                            Id = 59L,
 01083                            Action = "viewShipments",
 01084                            Available = true,
 01085                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01086                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01087                            IsDeleted = false,
 01088                            RoleId = 8L
 01089                        },
 01090                        new
 01091                        {
 01092                            Id = 60L,
 01093                            Action = "viewAnalytics",
 01094                            Available = true,
 01095                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01096                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01097                            IsDeleted = false,
 01098                            RoleId = 8L
 01099                        },
 01100                        new
 01101                        {
 01102                            Id = 61L,
 01103                            Action = "viewSettings",
 01104                            Available = true,
 01105                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01106                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01107                            IsDeleted = false,
 01108                            RoleId = 8L
 01109                        },
 01110                        new
 01111                        {
 01112                            Id = 62L,
 01113                            Action = "viewSupport",
 01114                            Available = true,
 01115                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01116                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01117                            IsDeleted = false,
 01118                            RoleId = 8L
 01119                        },
 01120                        new
 01121                        {
 01122                            Id = 63L,
 01123                            Action = "viewUser",
 01124                            Available = true,
 01125                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01126                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01127                            IsDeleted = false,
 01128                            RoleId = 3L
 01129                        },
 01130                        new
 01131                        {
 01132                            Id = 64L,
 01133                            Action = "viewShowcase",
 01134                            Available = true,
 01135                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01136                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01137                            IsDeleted = false,
 01138                            RoleId = 3L
 01139                        },
 01140                        new
 01141                        {
 01142                            Id = 65L,
 01143                            Action = "viewOrders",
 01144                            Available = true,
 01145                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01146                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01147                            IsDeleted = false,
 01148                            RoleId = 3L
 01149                        },
 01150                        new
 01151                        {
 01152                            Id = 66L,
 01153                            Action = "viewShipments",
 01154                            Available = true,
 01155                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01156                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01157                            IsDeleted = false,
 01158                            RoleId = 3L
 01159                        },
 01160                        new
 01161                        {
 01162                            Id = 67L,
 01163                            Action = "viewSupport",
 01164                            Available = true,
 01165                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01166                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01167                            IsDeleted = false,
 01168                            RoleId = 3L
 01169                        },
 01170                        new
 01171                        {
 01172                            Id = 69L,
 01173                            Action = "viewUser",
 01174                            Available = true,
 01175                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01176                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01177                            IsDeleted = false,
 01178                            RoleId = 4L
 01179                        },
 01180                        new
 01181                        {
 01182                            Id = 70L,
 01183                            Action = "viewShowcase",
 01184                            Available = true,
 01185                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01186                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01187                            IsDeleted = false,
 01188                            RoleId = 4L
 01189                        },
 01190                        new
 01191                        {
 01192                            Id = 71L,
 01193                            Action = "viewOrders",
 01194                            Available = true,
 01195                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01196                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01197                            IsDeleted = false,
 01198                            RoleId = 4L
 01199                        },
 01200                        new
 01201                        {
 01202                            Id = 72L,
 01203                            Action = "viewShipments",
 01204                            Available = true,
 01205                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01206                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01207                            IsDeleted = false,
 01208                            RoleId = 4L
 01209                        },
 01210                        new
 01211                        {
 01212                            Id = 73L,
 01213                            Action = "viewSupport",
 01214                            Available = true,
 01215                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01216                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01217                            IsDeleted = false,
 01218                            RoleId = 4L
 01219                        },
 01220                        new
 01221                        {
 01222                            Id = 75L,
 01223                            Action = "viewUser",
 01224                            Available = true,
 01225                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01226                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01227                            IsDeleted = false,
 01228                            RoleId = 5L
 01229                        },
 01230                        new
 01231                        {
 01232                            Id = 76L,
 01233                            Action = "viewShowcase",
 01234                            Available = true,
 01235                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01236                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01237                            IsDeleted = false,
 01238                            RoleId = 5L
 01239                        },
 01240                        new
 01241                        {
 01242                            Id = 77L,
 01243                            Action = "viewOrders",
 01244                            Available = true,
 01245                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01246                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01247                            IsDeleted = false,
 01248                            RoleId = 5L
 01249                        },
 01250                        new
 01251                        {
 01252                            Id = 78L,
 01253                            Action = "viewShipments",
 01254                            Available = true,
 01255                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01256                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01257                            IsDeleted = false,
 01258                            RoleId = 5L
 01259                        },
 01260                        new
 01261                        {
 01262                            Id = 79L,
 01263                            Action = "viewSupport",
 01264                            Available = true,
 01265                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01266                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01267                            IsDeleted = false,
 01268                            RoleId = 5L
 01269                        },
 01270                        new
 01271                        {
 01272                            Id = 82L,
 01273                            Action = "viewShowcase",
 01274                            Available = true,
 01275                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01276                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01277                            IsDeleted = false,
 01278                            RoleId = 9L
 01279                        },
 01280                        new
 01281                        {
 01282                            Id = 83L,
 01283                            Action = "viewNotifications",
 01284                            Available = true,
 01285                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01286                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01287                            IsDeleted = false,
 01288                            RoleId = 1L
 01289                        },
 01290                        new
 01291                        {
 01292                            Id = 84L,
 01293                            Action = "viewNotifications",
 01294                            Available = true,
 01295                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01296                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01297                            IsDeleted = false,
 01298                            RoleId = 2L
 01299                        },
 01300                        new
 01301                        {
 01302                            Id = 85L,
 01303                            Action = "viewNotifications",
 01304                            Available = true,
 01305                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01306                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01307                            IsDeleted = false,
 01308                            RoleId = 3L
 01309                        },
 01310                        new
 01311                        {
 01312                            Id = 86L,
 01313                            Action = "viewNotifications",
 01314                            Available = true,
 01315                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01316                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01317                            IsDeleted = false,
 01318                            RoleId = 4L
 01319                        },
 01320                        new
 01321                        {
 01322                            Id = 87L,
 01323                            Action = "viewNotifications",
 01324                            Available = true,
 01325                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01326                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01327                            IsDeleted = false,
 01328                            RoleId = 5L
 01329                        },
 01330                        new
 01331                        {
 01332                            Id = 88L,
 01333                            Action = "viewNotifications",
 01334                            Available = true,
 01335                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01336                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01337                            IsDeleted = false,
 01338                            RoleId = 6L
 01339                        },
 01340                        new
 01341                        {
 01342                            Id = 89L,
 01343                            Action = "viewNotifications",
 01344                            Available = true,
 01345                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01346                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01347                            IsDeleted = false,
 01348                            RoleId = 7L
 01349                        },
 01350                        new
 01351                        {
 01352                            Id = 90L,
 01353                            Action = "viewNotifications",
 01354                            Available = true,
 01355                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01356                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01357                            IsDeleted = false,
 01358                            RoleId = 8L
 01359                        },
 01360                        new
 01361                        {
 01362                            Id = 91L,
 01363                            Action = "viewDistributor",
 01364                            Available = true,
 01365                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01366                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01367                            IsDeleted = false,
 01368                            RoleId = 1L
 01369                        },
 01370                        new
 01371                        {
 01372                            Id = 92L,
 01373                            Action = "viewDistributor",
 01374                            Available = true,
 01375                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01376                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01377                            IsDeleted = false,
 01378                            RoleId = 6L
 01379                        },
 01380                        new
 01381                        {
 01382                            Id = 93L,
 01383                            Action = "viewDistributor",
 01384                            Available = true,
 01385                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01386                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01387                            IsDeleted = false,
 01388                            RoleId = 7L
 01389                        },
 01390                        new
 01391                        {
 01392                            Id = 94L,
 01393                            Action = "viewDistributor",
 01394                            Available = true,
 01395                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01396                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01397                            IsDeleted = false,
 01398                            RoleId = 8L
 01399                        },
 01400                        new
 01401                        {
 01402                            Id = 95L,
 01403                            Action = "viewRests",
 01404                            Available = true,
 01405                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01406                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01407                            IsDeleted = false,
 01408                            RoleId = 7L
 01409                        },
 01410                        new
 01411                        {
 01412                            Id = 96L,
 01413                            Action = "viewPricing",
 01414                            Available = true,
 01415                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01416                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01417                            IsDeleted = false,
 01418                            RoleId = 7L
 01419                        },
 01420                        new
 01421                        {
 01422                            Id = 97L,
 01423                            Action = "viewSelectionParameters",
 01424                            Available = true,
 01425                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01426                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01427                            IsDeleted = false,
 01428                            RoleId = 7L
 01429                        },
 01430                        new
 01431                        {
 01432                            Id = 98L,
 01433                            Action = "viewRests",
 01434                            Available = true,
 01435                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01436                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01437                            IsDeleted = false,
 01438                            RoleId = 1L
 01439                        },
 01440                        new
 01441                        {
 01442                            Id = 99L,
 01443                            Action = "viewPricing",
 01444                            Available = true,
 01445                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01446                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01447                            IsDeleted = false,
 01448                            RoleId = 1L
 01449                        },
 01450                        new
 01451                        {
 01452                            Id = 100L,
 01453                            Action = "viewSelectionParameters",
 01454                            Available = true,
 01455                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01456                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01457                            IsDeleted = false,
 01458                            RoleId = 1L
 01459                        },
 01460                        new
 01461                        {
 01462                            Id = 101L,
 01463                            Action = "viewRests",
 01464                            Available = true,
 01465                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01466                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01467                            IsDeleted = false,
 01468                            RoleId = 2L
 01469                        },
 01470                        new
 01471                        {
 01472                            Id = 102L,
 01473                            Action = "viewPricing",
 01474                            Available = true,
 01475                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01476                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01477                            IsDeleted = false,
 01478                            RoleId = 2L
 01479                        },
 01480                        new
 01481                        {
 01482                            Id = 103L,
 01483                            Action = "viewSelectionParameters",
 01484                            Available = true,
 01485                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01486                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01487                            IsDeleted = false,
 01488                            RoleId = 2L
 01489                        },
 01490                        new
 01491                        {
 01492                            Id = 104L,
 01493                            Action = "viewRests",
 01494                            Available = true,
 01495                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01496                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01497                            IsDeleted = false,
 01498                            RoleId = 3L
 01499                        },
 01500                        new
 01501                        {
 01502                            Id = 105L,
 01503                            Action = "viewPricing",
 01504                            Available = true,
 01505                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01506                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01507                            IsDeleted = false,
 01508                            RoleId = 3L
 01509                        },
 01510                        new
 01511                        {
 01512                            Id = 106L,
 01513                            Action = "viewSelectionParameters",
 01514                            Available = true,
 01515                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01516                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01517                            IsDeleted = false,
 01518                            RoleId = 3L
 01519                        },
 01520                        new
 01521                        {
 01522                            Id = 107L,
 01523                            Action = "viewDepartments",
 01524                            Available = true,
 01525                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01526                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01527                            IsDeleted = false,
 01528                            RoleId = 1L
 01529                        },
 01530                        new
 01531                        {
 01532                            Id = 108L,
 01533                            Action = "viewDepartments",
 01534                            Available = true,
 01535                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01536                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01537                            IsDeleted = false,
 01538                            RoleId = 2L
 01539                        },
 01540                        new
 01541                        {
 01542                            Id = 109L,
 01543                            Action = "viewDepartments",
 01544                            Available = true,
 01545                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01546                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01547                            IsDeleted = false,
 01548                            RoleId = 3L
 01549                        },
 01550                        new
 01551                        {
 01552                            Id = 110L,
 01553                            Action = "viewDepartments",
 01554                            Available = true,
 01555                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01556                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01557                            IsDeleted = false,
 01558                            RoleId = 7L
 01559                        },
 01560                        new
 01561                        {
 01562                            Id = 111L,
 01563                            Action = "viewDepartments",
 01564                            Available = true,
 01565                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01566                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01567                            IsDeleted = false,
 01568                            RoleId = 6L
 01569                        },
 01570                        new
 01571                        {
 01572                            Id = 112L,
 01573                            Action = "viewPricing",
 01574                            Available = true,
 01575                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01576                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01577                            IsDeleted = false,
 01578                            RoleId = 6L
 01579                        },
 01580                        new
 01581                        {
 01582                            Id = 113L,
 01583                            Action = "viewRests",
 01584                            Available = true,
 01585                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01586                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01587                            IsDeleted = false,
 01588                            RoleId = 6L
 01589                        },
 01590                        new
 01591                        {
 01592                            Id = 114L,
 01593                            Action = "viewSelectionParameters",
 01594                            Available = true,
 01595                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01596                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01597                            IsDeleted = false,
 01598                            RoleId = 6L
 01599                        },
 01600                        new
 01601                        {
 01602                            Id = 115L,
 01603                            Action = "viewOrderDraft",
 01604                            Available = true,
 01605                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01606                            GUID = new Guid("43f5ff2b-db50-4707-a9a6-7d5dcc7e0f60"),
 01607                            IsDeleted = false,
 01608                            RoleId = 3L
 01609                        },
 01610                        new
 01611                        {
 01612                            Id = 116L,
 01613                            Action = "viewOrderDraft",
 01614                            Available = true,
 01615                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01616                            GUID = new Guid("b9d29cde-17d0-4b2f-94cb-dc6ff7c9f2a9"),
 01617                            IsDeleted = false,
 01618                            RoleId = 4L
 01619                        },
 01620                        new
 01621                        {
 01622                            Id = 117L,
 01623                            Action = "viewOrderDraft",
 01624                            Available = true,
 01625                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01626                            GUID = new Guid("2e112267-e6d0-4290-b430-882c460cbcea"),
 01627                            IsDeleted = false,
 01628                            RoleId = 5L
 01629                        });
 01630                });
 1631
 01632            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Country", b =>
 01633                {
 01634                    b.Property<long>("Id")
 01635                        .ValueGeneratedOnAdd()
 01636                        .HasColumnType("bigint")
 01637                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 01638
 01639                    b.Property<int>("Code")
 01640                        .HasColumnType("integer");
 01641
 01642                    b.Property<long?>("CreatedByUserId")
 01643                        .HasColumnType("bigint");
 01644
 01645                    b.Property<DateTime>("CreationDateTime")
 01646                        .HasColumnType("timestamp without time zone");
 01647
 01648                    b.Property<Guid>("GUID")
 01649                        .ValueGeneratedOnAdd()
 01650                        .HasColumnType("uuid");
 01651
 01652                    b.Property<bool>("IsDeleted")
 01653                        .HasColumnType("boolean");
 01654
 01655                    b.Property<DateTime?>("ModificationDateTime")
 01656                        .HasColumnType("timestamp without time zone");
 01657
 01658                    b.Property<long?>("ModifiedByUserId")
 01659                        .HasColumnType("bigint");
 01660
 01661                    b.Property<string>("Name")
 01662                        .IsRequired()
 01663                        .HasColumnType("text");
 01664
 01665                    b.Property<long?>("RecStateId")
 01666                        .HasColumnType("bigint");
 01667
 01668                    b.HasKey("Id");
 01669
 01670                    b.HasIndex("CreatedByUserId");
 01671
 01672                    b.HasIndex("ModifiedByUserId");
 01673
 01674                    b.HasIndex("Name")
 01675                        .IsUnique();
 01676
 01677                    b.HasIndex("RecStateId");
 01678
 01679                    b.ToTable("Countries");
 01680
 01681                    b.HasData(
 01682                        new
 01683                        {
 01684                            Id = 2L,
 01685                            Code = 895,
 01686                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01687                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01688                            IsDeleted = false,
 01689                            Name = "Абхазия"
 01690                        },
 01691                        new
 01692                        {
 01693                            Id = 3L,
 01694                            Code = 36,
 01695                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01696                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01697                            IsDeleted = false,
 01698                            Name = "Австралия"
 01699                        },
 01700                        new
 01701                        {
 01702                            Id = 4L,
 01703                            Code = 40,
 01704                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01705                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01706                            IsDeleted = false,
 01707                            Name = "Австрия"
 01708                        },
 01709                        new
 01710                        {
 01711                            Id = 5L,
 01712                            Code = 31,
 01713                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01714                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01715                            IsDeleted = false,
 01716                            Name = "Азербайджан"
 01717                        },
 01718                        new
 01719                        {
 01720                            Id = 6L,
 01721                            Code = 8,
 01722                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01723                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01724                            IsDeleted = false,
 01725                            Name = "Албания"
 01726                        },
 01727                        new
 01728                        {
 01729                            Id = 7L,
 01730                            Code = 12,
 01731                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01732                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01733                            IsDeleted = false,
 01734                            Name = "Алжир"
 01735                        },
 01736                        new
 01737                        {
 01738                            Id = 8L,
 01739                            Code = 16,
 01740                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01741                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01742                            IsDeleted = false,
 01743                            Name = "Американское Самоа"
 01744                        },
 01745                        new
 01746                        {
 01747                            Id = 9L,
 01748                            Code = 660,
 01749                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01750                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01751                            IsDeleted = false,
 01752                            Name = "Ангилья"
 01753                        },
 01754                        new
 01755                        {
 01756                            Id = 10L,
 01757                            Code = 24,
 01758                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01759                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01760                            IsDeleted = false,
 01761                            Name = "Ангола"
 01762                        },
 01763                        new
 01764                        {
 01765                            Id = 11L,
 01766                            Code = 20,
 01767                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01768                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01769                            IsDeleted = false,
 01770                            Name = "Андорра"
 01771                        },
 01772                        new
 01773                        {
 01774                            Id = 12L,
 01775                            Code = 10,
 01776                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01777                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01778                            IsDeleted = false,
 01779                            Name = "Антарктида"
 01780                        },
 01781                        new
 01782                        {
 01783                            Id = 13L,
 01784                            Code = 28,
 01785                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01786                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01787                            IsDeleted = false,
 01788                            Name = "Антигуа и Барбуда"
 01789                        },
 01790                        new
 01791                        {
 01792                            Id = 14L,
 01793                            Code = 32,
 01794                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01795                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01796                            IsDeleted = false,
 01797                            Name = "Аргентина"
 01798                        },
 01799                        new
 01800                        {
 01801                            Id = 15L,
 01802                            Code = 51,
 01803                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01804                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01805                            IsDeleted = false,
 01806                            Name = "Армения"
 01807                        },
 01808                        new
 01809                        {
 01810                            Id = 16L,
 01811                            Code = 533,
 01812                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01813                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01814                            IsDeleted = false,
 01815                            Name = "Аруба"
 01816                        },
 01817                        new
 01818                        {
 01819                            Id = 17L,
 01820                            Code = 4,
 01821                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01822                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01823                            IsDeleted = false,
 01824                            Name = "Афганистан"
 01825                        },
 01826                        new
 01827                        {
 01828                            Id = 18L,
 01829                            Code = 44,
 01830                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01831                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01832                            IsDeleted = false,
 01833                            Name = "Багамы"
 01834                        },
 01835                        new
 01836                        {
 01837                            Id = 19L,
 01838                            Code = 50,
 01839                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01840                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01841                            IsDeleted = false,
 01842                            Name = "Бангладеш"
 01843                        },
 01844                        new
 01845                        {
 01846                            Id = 20L,
 01847                            Code = 52,
 01848                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01849                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01850                            IsDeleted = false,
 01851                            Name = "Барбадос"
 01852                        },
 01853                        new
 01854                        {
 01855                            Id = 21L,
 01856                            Code = 48,
 01857                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01858                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01859                            IsDeleted = false,
 01860                            Name = "Бахрейн"
 01861                        },
 01862                        new
 01863                        {
 01864                            Id = 22L,
 01865                            Code = 112,
 01866                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01867                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01868                            IsDeleted = false,
 01869                            Name = "Беларусь"
 01870                        },
 01871                        new
 01872                        {
 01873                            Id = 23L,
 01874                            Code = 84,
 01875                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01876                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01877                            IsDeleted = false,
 01878                            Name = "Белиз"
 01879                        },
 01880                        new
 01881                        {
 01882                            Id = 24L,
 01883                            Code = 56,
 01884                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01885                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01886                            IsDeleted = false,
 01887                            Name = "Бельгия"
 01888                        },
 01889                        new
 01890                        {
 01891                            Id = 25L,
 01892                            Code = 204,
 01893                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01894                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01895                            IsDeleted = false,
 01896                            Name = "Бенин"
 01897                        },
 01898                        new
 01899                        {
 01900                            Id = 26L,
 01901                            Code = 60,
 01902                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01903                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01904                            IsDeleted = false,
 01905                            Name = "Бермуды"
 01906                        },
 01907                        new
 01908                        {
 01909                            Id = 27L,
 01910                            Code = 100,
 01911                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01912                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01913                            IsDeleted = false,
 01914                            Name = "Болгария"
 01915                        },
 01916                        new
 01917                        {
 01918                            Id = 28L,
 01919                            Code = 68,
 01920                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01921                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01922                            IsDeleted = false,
 01923                            Name = "Боливия, Многонациональное Государство"
 01924                        },
 01925                        new
 01926                        {
 01927                            Id = 29L,
 01928                            Code = 535,
 01929                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01930                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01931                            IsDeleted = false,
 01932                            Name = "Бонайре, Саба и Синт-Эстатиус"
 01933                        },
 01934                        new
 01935                        {
 01936                            Id = 30L,
 01937                            Code = 70,
 01938                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01939                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01940                            IsDeleted = false,
 01941                            Name = "Босния и Герцеговина"
 01942                        },
 01943                        new
 01944                        {
 01945                            Id = 31L,
 01946                            Code = 72,
 01947                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01948                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01949                            IsDeleted = false,
 01950                            Name = "Ботсвана"
 01951                        },
 01952                        new
 01953                        {
 01954                            Id = 32L,
 01955                            Code = 76,
 01956                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01957                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01958                            IsDeleted = false,
 01959                            Name = "Бразилия"
 01960                        },
 01961                        new
 01962                        {
 01963                            Id = 33L,
 01964                            Code = 86,
 01965                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01966                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01967                            IsDeleted = false,
 01968                            Name = "Британская территория в Индийском океане"
 01969                        },
 01970                        new
 01971                        {
 01972                            Id = 34L,
 01973                            Code = 96,
 01974                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01975                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01976                            IsDeleted = false,
 01977                            Name = "Бруней-Даруссалам"
 01978                        },
 01979                        new
 01980                        {
 01981                            Id = 35L,
 01982                            Code = 854,
 01983                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01984                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01985                            IsDeleted = false,
 01986                            Name = "Буркина-Фасо"
 01987                        },
 01988                        new
 01989                        {
 01990                            Id = 36L,
 01991                            Code = 108,
 01992                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01993                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01994                            IsDeleted = false,
 01995                            Name = "Бурунди"
 01996                        },
 01997                        new
 01998                        {
 01999                            Id = 37L,
 02000                            Code = 64,
 02001                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02002                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02003                            IsDeleted = false,
 02004                            Name = "Бутан"
 02005                        },
 02006                        new
 02007                        {
 02008                            Id = 38L,
 02009                            Code = 548,
 02010                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02011                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02012                            IsDeleted = false,
 02013                            Name = "Вануату"
 02014                        },
 02015                        new
 02016                        {
 02017                            Id = 39L,
 02018                            Code = 348,
 02019                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02020                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02021                            IsDeleted = false,
 02022                            Name = "Венгрия"
 02023                        },
 02024                        new
 02025                        {
 02026                            Id = 40L,
 02027                            Code = 862,
 02028                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02029                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02030                            IsDeleted = false,
 02031                            Name = "Венесуэла Боливарианская Республика"
 02032                        },
 02033                        new
 02034                        {
 02035                            Id = 41L,
 02036                            Code = 92,
 02037                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02038                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02039                            IsDeleted = false,
 02040                            Name = "Виргинские острова, Британские"
 02041                        },
 02042                        new
 02043                        {
 02044                            Id = 42L,
 02045                            Code = 850,
 02046                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02047                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02048                            IsDeleted = false,
 02049                            Name = "Виргинские острова, США"
 02050                        },
 02051                        new
 02052                        {
 02053                            Id = 43L,
 02054                            Code = 704,
 02055                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02056                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02057                            IsDeleted = false,
 02058                            Name = "Вьетнам"
 02059                        },
 02060                        new
 02061                        {
 02062                            Id = 44L,
 02063                            Code = 266,
 02064                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02065                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02066                            IsDeleted = false,
 02067                            Name = "Габон"
 02068                        },
 02069                        new
 02070                        {
 02071                            Id = 45L,
 02072                            Code = 332,
 02073                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02074                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02075                            IsDeleted = false,
 02076                            Name = "Гаити"
 02077                        },
 02078                        new
 02079                        {
 02080                            Id = 46L,
 02081                            Code = 328,
 02082                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02083                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02084                            IsDeleted = false,
 02085                            Name = "Гайана"
 02086                        },
 02087                        new
 02088                        {
 02089                            Id = 47L,
 02090                            Code = 270,
 02091                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02092                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02093                            IsDeleted = false,
 02094                            Name = "Гамбия"
 02095                        },
 02096                        new
 02097                        {
 02098                            Id = 48L,
 02099                            Code = 288,
 02100                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02101                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02102                            IsDeleted = false,
 02103                            Name = "Гана"
 02104                        },
 02105                        new
 02106                        {
 02107                            Id = 49L,
 02108                            Code = 312,
 02109                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02110                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02111                            IsDeleted = false,
 02112                            Name = "Гваделупа"
 02113                        },
 02114                        new
 02115                        {
 02116                            Id = 50L,
 02117                            Code = 320,
 02118                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02119                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02120                            IsDeleted = false,
 02121                            Name = "Гватемала"
 02122                        },
 02123                        new
 02124                        {
 02125                            Id = 51L,
 02126                            Code = 324,
 02127                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02128                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02129                            IsDeleted = false,
 02130                            Name = "Гвинея"
 02131                        },
 02132                        new
 02133                        {
 02134                            Id = 52L,
 02135                            Code = 624,
 02136                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02137                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02138                            IsDeleted = false,
 02139                            Name = "Гвинея-Бисау"
 02140                        },
 02141                        new
 02142                        {
 02143                            Id = 53L,
 02144                            Code = 276,
 02145                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02146                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02147                            IsDeleted = false,
 02148                            Name = "Германия"
 02149                        },
 02150                        new
 02151                        {
 02152                            Id = 54L,
 02153                            Code = 831,
 02154                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02155                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02156                            IsDeleted = false,
 02157                            Name = "Гернси"
 02158                        },
 02159                        new
 02160                        {
 02161                            Id = 55L,
 02162                            Code = 292,
 02163                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02164                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02165                            IsDeleted = false,
 02166                            Name = "Гибралтар"
 02167                        },
 02168                        new
 02169                        {
 02170                            Id = 56L,
 02171                            Code = 340,
 02172                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02173                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02174                            IsDeleted = false,
 02175                            Name = "Гондурас"
 02176                        },
 02177                        new
 02178                        {
 02179                            Id = 57L,
 02180                            Code = 344,
 02181                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02182                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02183                            IsDeleted = false,
 02184                            Name = "Гонконг"
 02185                        },
 02186                        new
 02187                        {
 02188                            Id = 58L,
 02189                            Code = 308,
 02190                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02191                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02192                            IsDeleted = false,
 02193                            Name = "Гренада"
 02194                        },
 02195                        new
 02196                        {
 02197                            Id = 59L,
 02198                            Code = 304,
 02199                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02200                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02201                            IsDeleted = false,
 02202                            Name = "Гренландия"
 02203                        },
 02204                        new
 02205                        {
 02206                            Id = 60L,
 02207                            Code = 300,
 02208                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02209                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02210                            IsDeleted = false,
 02211                            Name = "Греция"
 02212                        },
 02213                        new
 02214                        {
 02215                            Id = 61L,
 02216                            Code = 268,
 02217                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02218                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02219                            IsDeleted = false,
 02220                            Name = "Грузия"
 02221                        },
 02222                        new
 02223                        {
 02224                            Id = 62L,
 02225                            Code = 316,
 02226                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02227                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02228                            IsDeleted = false,
 02229                            Name = "Гуам"
 02230                        },
 02231                        new
 02232                        {
 02233                            Id = 63L,
 02234                            Code = 208,
 02235                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02236                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02237                            IsDeleted = false,
 02238                            Name = "Дания"
 02239                        },
 02240                        new
 02241                        {
 02242                            Id = 64L,
 02243                            Code = 832,
 02244                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02245                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02246                            IsDeleted = false,
 02247                            Name = "Джерси"
 02248                        },
 02249                        new
 02250                        {
 02251                            Id = 65L,
 02252                            Code = 262,
 02253                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02254                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02255                            IsDeleted = false,
 02256                            Name = "Джибути"
 02257                        },
 02258                        new
 02259                        {
 02260                            Id = 66L,
 02261                            Code = 212,
 02262                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02263                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02264                            IsDeleted = false,
 02265                            Name = "Доминика"
 02266                        },
 02267                        new
 02268                        {
 02269                            Id = 67L,
 02270                            Code = 214,
 02271                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02272                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02273                            IsDeleted = false,
 02274                            Name = "Доминиканская Республика"
 02275                        },
 02276                        new
 02277                        {
 02278                            Id = 68L,
 02279                            Code = 818,
 02280                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02281                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02282                            IsDeleted = false,
 02283                            Name = "Египет"
 02284                        },
 02285                        new
 02286                        {
 02287                            Id = 69L,
 02288                            Code = 894,
 02289                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02290                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02291                            IsDeleted = false,
 02292                            Name = "Замбия"
 02293                        },
 02294                        new
 02295                        {
 02296                            Id = 70L,
 02297                            Code = 732,
 02298                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02299                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02300                            IsDeleted = false,
 02301                            Name = "Западная Сахара"
 02302                        },
 02303                        new
 02304                        {
 02305                            Id = 71L,
 02306                            Code = 716,
 02307                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02308                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02309                            IsDeleted = false,
 02310                            Name = "Зимбабве"
 02311                        },
 02312                        new
 02313                        {
 02314                            Id = 72L,
 02315                            Code = 376,
 02316                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02317                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02318                            IsDeleted = false,
 02319                            Name = "Израиль"
 02320                        },
 02321                        new
 02322                        {
 02323                            Id = 73L,
 02324                            Code = 356,
 02325                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02326                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02327                            IsDeleted = false,
 02328                            Name = "Индия"
 02329                        },
 02330                        new
 02331                        {
 02332                            Id = 74L,
 02333                            Code = 360,
 02334                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02335                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02336                            IsDeleted = false,
 02337                            Name = "Индонезия"
 02338                        },
 02339                        new
 02340                        {
 02341                            Id = 75L,
 02342                            Code = 400,
 02343                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02344                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02345                            IsDeleted = false,
 02346                            Name = "Иордания"
 02347                        },
 02348                        new
 02349                        {
 02350                            Id = 76L,
 02351                            Code = 368,
 02352                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02353                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02354                            IsDeleted = false,
 02355                            Name = "Ирак"
 02356                        },
 02357                        new
 02358                        {
 02359                            Id = 77L,
 02360                            Code = 364,
 02361                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02362                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02363                            IsDeleted = false,
 02364                            Name = "Иран, Исламская Республика"
 02365                        },
 02366                        new
 02367                        {
 02368                            Id = 78L,
 02369                            Code = 372,
 02370                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02371                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02372                            IsDeleted = false,
 02373                            Name = "Ирландия"
 02374                        },
 02375                        new
 02376                        {
 02377                            Id = 79L,
 02378                            Code = 352,
 02379                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02380                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02381                            IsDeleted = false,
 02382                            Name = "Исландия"
 02383                        },
 02384                        new
 02385                        {
 02386                            Id = 80L,
 02387                            Code = 724,
 02388                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02389                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02390                            IsDeleted = false,
 02391                            Name = "Испания"
 02392                        },
 02393                        new
 02394                        {
 02395                            Id = 81L,
 02396                            Code = 380,
 02397                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02398                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02399                            IsDeleted = false,
 02400                            Name = "Италия"
 02401                        },
 02402                        new
 02403                        {
 02404                            Id = 82L,
 02405                            Code = 887,
 02406                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02407                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02408                            IsDeleted = false,
 02409                            Name = "Йемен"
 02410                        },
 02411                        new
 02412                        {
 02413                            Id = 83L,
 02414                            Code = 132,
 02415                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02416                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02417                            IsDeleted = false,
 02418                            Name = "Кабо-Верде"
 02419                        },
 02420                        new
 02421                        {
 02422                            Id = 84L,
 02423                            Code = 398,
 02424                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02425                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02426                            IsDeleted = false,
 02427                            Name = "Казахстан"
 02428                        },
 02429                        new
 02430                        {
 02431                            Id = 85L,
 02432                            Code = 116,
 02433                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02434                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02435                            IsDeleted = false,
 02436                            Name = "Камбоджа"
 02437                        },
 02438                        new
 02439                        {
 02440                            Id = 86L,
 02441                            Code = 120,
 02442                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02443                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02444                            IsDeleted = false,
 02445                            Name = "Камерун"
 02446                        },
 02447                        new
 02448                        {
 02449                            Id = 87L,
 02450                            Code = 124,
 02451                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02452                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02453                            IsDeleted = false,
 02454                            Name = "Канада"
 02455                        },
 02456                        new
 02457                        {
 02458                            Id = 88L,
 02459                            Code = 634,
 02460                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02461                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02462                            IsDeleted = false,
 02463                            Name = "Катар"
 02464                        },
 02465                        new
 02466                        {
 02467                            Id = 89L,
 02468                            Code = 404,
 02469                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02470                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02471                            IsDeleted = false,
 02472                            Name = "Кения"
 02473                        },
 02474                        new
 02475                        {
 02476                            Id = 90L,
 02477                            Code = 196,
 02478                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02479                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02480                            IsDeleted = false,
 02481                            Name = "Кипр"
 02482                        },
 02483                        new
 02484                        {
 02485                            Id = 91L,
 02486                            Code = 417,
 02487                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02488                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02489                            IsDeleted = false,
 02490                            Name = "Киргизия"
 02491                        },
 02492                        new
 02493                        {
 02494                            Id = 92L,
 02495                            Code = 296,
 02496                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02497                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02498                            IsDeleted = false,
 02499                            Name = "Кирибати"
 02500                        },
 02501                        new
 02502                        {
 02503                            Id = 93L,
 02504                            Code = 156,
 02505                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02506                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02507                            IsDeleted = false,
 02508                            Name = "Китай"
 02509                        },
 02510                        new
 02511                        {
 02512                            Id = 94L,
 02513                            Code = 166,
 02514                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02515                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02516                            IsDeleted = false,
 02517                            Name = "Кокосовые (Килинг) острова"
 02518                        },
 02519                        new
 02520                        {
 02521                            Id = 95L,
 02522                            Code = 170,
 02523                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02524                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02525                            IsDeleted = false,
 02526                            Name = "Колумбия"
 02527                        },
 02528                        new
 02529                        {
 02530                            Id = 96L,
 02531                            Code = 174,
 02532                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02533                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02534                            IsDeleted = false,
 02535                            Name = "Коморы"
 02536                        },
 02537                        new
 02538                        {
 02539                            Id = 97L,
 02540                            Code = 178,
 02541                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02542                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02543                            IsDeleted = false,
 02544                            Name = "Конго"
 02545                        },
 02546                        new
 02547                        {
 02548                            Id = 98L,
 02549                            Code = 180,
 02550                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02551                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02552                            IsDeleted = false,
 02553                            Name = "Конго, Демократическая Республика"
 02554                        },
 02555                        new
 02556                        {
 02557                            Id = 99L,
 02558                            Code = 408,
 02559                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02560                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02561                            IsDeleted = false,
 02562                            Name = "Корея, Народно-Демократическая Республика"
 02563                        },
 02564                        new
 02565                        {
 02566                            Id = 100L,
 02567                            Code = 410,
 02568                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02569                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02570                            IsDeleted = false,
 02571                            Name = "Корея, Республика"
 02572                        },
 02573                        new
 02574                        {
 02575                            Id = 101L,
 02576                            Code = 188,
 02577                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02578                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02579                            IsDeleted = false,
 02580                            Name = "Коста-Рика"
 02581                        },
 02582                        new
 02583                        {
 02584                            Id = 102L,
 02585                            Code = 384,
 02586                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02587                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02588                            IsDeleted = false,
 02589                            Name = "Кот д'Ивуар"
 02590                        },
 02591                        new
 02592                        {
 02593                            Id = 103L,
 02594                            Code = 192,
 02595                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02596                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02597                            IsDeleted = false,
 02598                            Name = "Куба"
 02599                        },
 02600                        new
 02601                        {
 02602                            Id = 104L,
 02603                            Code = 414,
 02604                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02605                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02606                            IsDeleted = false,
 02607                            Name = "Кувейт"
 02608                        },
 02609                        new
 02610                        {
 02611                            Id = 105L,
 02612                            Code = 531,
 02613                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02614                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02615                            IsDeleted = false,
 02616                            Name = "Кюрасао"
 02617                        },
 02618                        new
 02619                        {
 02620                            Id = 106L,
 02621                            Code = 418,
 02622                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02623                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02624                            IsDeleted = false,
 02625                            Name = "Лаос"
 02626                        },
 02627                        new
 02628                        {
 02629                            Id = 107L,
 02630                            Code = 428,
 02631                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02632                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02633                            IsDeleted = false,
 02634                            Name = "Латвия"
 02635                        },
 02636                        new
 02637                        {
 02638                            Id = 108L,
 02639                            Code = 426,
 02640                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02641                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02642                            IsDeleted = false,
 02643                            Name = "Лесото"
 02644                        },
 02645                        new
 02646                        {
 02647                            Id = 109L,
 02648                            Code = 422,
 02649                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02650                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02651                            IsDeleted = false,
 02652                            Name = "Ливан"
 02653                        },
 02654                        new
 02655                        {
 02656                            Id = 110L,
 02657                            Code = 434,
 02658                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02659                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02660                            IsDeleted = false,
 02661                            Name = "Ливийская Арабская Джамахирия"
 02662                        },
 02663                        new
 02664                        {
 02665                            Id = 111L,
 02666                            Code = 430,
 02667                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02668                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02669                            IsDeleted = false,
 02670                            Name = "Либерия"
 02671                        },
 02672                        new
 02673                        {
 02674                            Id = 112L,
 02675                            Code = 438,
 02676                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02677                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02678                            IsDeleted = false,
 02679                            Name = "Лихтенштейн"
 02680                        },
 02681                        new
 02682                        {
 02683                            Id = 113L,
 02684                            Code = 440,
 02685                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02686                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02687                            IsDeleted = false,
 02688                            Name = "Литва"
 02689                        },
 02690                        new
 02691                        {
 02692                            Id = 114L,
 02693                            Code = 442,
 02694                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02695                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02696                            IsDeleted = false,
 02697                            Name = "Люксембург"
 02698                        },
 02699                        new
 02700                        {
 02701                            Id = 115L,
 02702                            Code = 480,
 02703                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02704                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02705                            IsDeleted = false,
 02706                            Name = "Маврикий"
 02707                        },
 02708                        new
 02709                        {
 02710                            Id = 116L,
 02711                            Code = 478,
 02712                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02713                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02714                            IsDeleted = false,
 02715                            Name = "Мавритания"
 02716                        },
 02717                        new
 02718                        {
 02719                            Id = 117L,
 02720                            Code = 450,
 02721                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02722                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02723                            IsDeleted = false,
 02724                            Name = "Мадагаскар"
 02725                        },
 02726                        new
 02727                        {
 02728                            Id = 118L,
 02729                            Code = 175,
 02730                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02731                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02732                            IsDeleted = false,
 02733                            Name = "Майотта"
 02734                        },
 02735                        new
 02736                        {
 02737                            Id = 119L,
 02738                            Code = 446,
 02739                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02740                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02741                            IsDeleted = false,
 02742                            Name = "Макао"
 02743                        },
 02744                        new
 02745                        {
 02746                            Id = 120L,
 02747                            Code = 454,
 02748                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02749                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02750                            IsDeleted = false,
 02751                            Name = "Малави"
 02752                        },
 02753                        new
 02754                        {
 02755                            Id = 121L,
 02756                            Code = 458,
 02757                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02758                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02759                            IsDeleted = false,
 02760                            Name = "Малайзия"
 02761                        },
 02762                        new
 02763                        {
 02764                            Id = 122L,
 02765                            Code = 466,
 02766                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02767                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02768                            IsDeleted = false,
 02769                            Name = "Мали"
 02770                        },
 02771                        new
 02772                        {
 02773                            Id = 123L,
 02774                            Code = 581,
 02775                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02776                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02777                            IsDeleted = false,
 02778                            Name = "Малые Тихоокеанские отдаленные острова Соединенных Штатов"
 02779                        },
 02780                        new
 02781                        {
 02782                            Id = 124L,
 02783                            Code = 462,
 02784                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02785                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02786                            IsDeleted = false,
 02787                            Name = "Мальдивы"
 02788                        },
 02789                        new
 02790                        {
 02791                            Id = 125L,
 02792                            Code = 470,
 02793                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02794                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02795                            IsDeleted = false,
 02796                            Name = "Мальта"
 02797                        },
 02798                        new
 02799                        {
 02800                            Id = 126L,
 02801                            Code = 504,
 02802                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02803                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02804                            IsDeleted = false,
 02805                            Name = "Марокко"
 02806                        },
 02807                        new
 02808                        {
 02809                            Id = 127L,
 02810                            Code = 474,
 02811                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02812                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02813                            IsDeleted = false,
 02814                            Name = "Мартиника"
 02815                        },
 02816                        new
 02817                        {
 02818                            Id = 128L,
 02819                            Code = 584,
 02820                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02821                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02822                            IsDeleted = false,
 02823                            Name = "Маршалловы острова"
 02824                        },
 02825                        new
 02826                        {
 02827                            Id = 129L,
 02828                            Code = 484,
 02829                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02830                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02831                            IsDeleted = false,
 02832                            Name = "Мексика"
 02833                        },
 02834                        new
 02835                        {
 02836                            Id = 130L,
 02837                            Code = 583,
 02838                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02839                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02840                            IsDeleted = false,
 02841                            Name = "Микронезия, Федеративные Штаты"
 02842                        },
 02843                        new
 02844                        {
 02845                            Id = 131L,
 02846                            Code = 508,
 02847                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02848                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02849                            IsDeleted = false,
 02850                            Name = "Мозамбик"
 02851                        },
 02852                        new
 02853                        {
 02854                            Id = 132L,
 02855                            Code = 498,
 02856                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02857                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02858                            IsDeleted = false,
 02859                            Name = "Молдова, Республика"
 02860                        },
 02861                        new
 02862                        {
 02863                            Id = 133L,
 02864                            Code = 492,
 02865                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02866                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02867                            IsDeleted = false,
 02868                            Name = "Монако"
 02869                        },
 02870                        new
 02871                        {
 02872                            Id = 134L,
 02873                            Code = 496,
 02874                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02875                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02876                            IsDeleted = false,
 02877                            Name = "Монголия"
 02878                        },
 02879                        new
 02880                        {
 02881                            Id = 135L,
 02882                            Code = 500,
 02883                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02884                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02885                            IsDeleted = false,
 02886                            Name = "Монтсеррат"
 02887                        },
 02888                        new
 02889                        {
 02890                            Id = 136L,
 02891                            Code = 104,
 02892                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02893                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02894                            IsDeleted = false,
 02895                            Name = "Мьянма"
 02896                        },
 02897                        new
 02898                        {
 02899                            Id = 137L,
 02900                            Code = 516,
 02901                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02902                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02903                            IsDeleted = false,
 02904                            Name = "Намибия"
 02905                        },
 02906                        new
 02907                        {
 02908                            Id = 138L,
 02909                            Code = 520,
 02910                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02911                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02912                            IsDeleted = false,
 02913                            Name = "Науру"
 02914                        },
 02915                        new
 02916                        {
 02917                            Id = 139L,
 02918                            Code = 524,
 02919                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02920                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02921                            IsDeleted = false,
 02922                            Name = "Непал"
 02923                        },
 02924                        new
 02925                        {
 02926                            Id = 140L,
 02927                            Code = 562,
 02928                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02929                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02930                            IsDeleted = false,
 02931                            Name = "Нигер"
 02932                        },
 02933                        new
 02934                        {
 02935                            Id = 141L,
 02936                            Code = 566,
 02937                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02938                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02939                            IsDeleted = false,
 02940                            Name = "Нигерия"
 02941                        },
 02942                        new
 02943                        {
 02944                            Id = 142L,
 02945                            Code = 528,
 02946                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02947                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02948                            IsDeleted = false,
 02949                            Name = "Нидерланды"
 02950                        },
 02951                        new
 02952                        {
 02953                            Id = 143L,
 02954                            Code = 558,
 02955                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02956                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02957                            IsDeleted = false,
 02958                            Name = "Никарагуа"
 02959                        },
 02960                        new
 02961                        {
 02962                            Id = 144L,
 02963                            Code = 570,
 02964                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02965                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02966                            IsDeleted = false,
 02967                            Name = "Ниуэ"
 02968                        },
 02969                        new
 02970                        {
 02971                            Id = 145L,
 02972                            Code = 554,
 02973                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02974                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02975                            IsDeleted = false,
 02976                            Name = "Новая Зеландия"
 02977                        },
 02978                        new
 02979                        {
 02980                            Id = 146L,
 02981                            Code = 540,
 02982                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02983                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02984                            IsDeleted = false,
 02985                            Name = "Новая Каледония"
 02986                        },
 02987                        new
 02988                        {
 02989                            Id = 147L,
 02990                            Code = 578,
 02991                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 02992                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 02993                            IsDeleted = false,
 02994                            Name = "Норвегия"
 02995                        },
 02996                        new
 02997                        {
 02998                            Id = 148L,
 02999                            Code = 784,
 03000                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03001                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03002                            IsDeleted = false,
 03003                            Name = "Объединенные Арабские Эмираты"
 03004                        },
 03005                        new
 03006                        {
 03007                            Id = 149L,
 03008                            Code = 512,
 03009                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03010                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03011                            IsDeleted = false,
 03012                            Name = "Оман"
 03013                        },
 03014                        new
 03015                        {
 03016                            Id = 150L,
 03017                            Code = 74,
 03018                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03019                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03020                            IsDeleted = false,
 03021                            Name = "Остров Буве"
 03022                        },
 03023                        new
 03024                        {
 03025                            Id = 151L,
 03026                            Code = 833,
 03027                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03028                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03029                            IsDeleted = false,
 03030                            Name = "Остров Мэн"
 03031                        },
 03032                        new
 03033                        {
 03034                            Id = 152L,
 03035                            Code = 574,
 03036                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03037                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03038                            IsDeleted = false,
 03039                            Name = "Остров Норфолк"
 03040                        },
 03041                        new
 03042                        {
 03043                            Id = 153L,
 03044                            Code = 162,
 03045                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03046                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03047                            IsDeleted = false,
 03048                            Name = "Остров Рождества"
 03049                        },
 03050                        new
 03051                        {
 03052                            Id = 154L,
 03053                            Code = 334,
 03054                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03055                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03056                            IsDeleted = false,
 03057                            Name = "Остров Херд и острова Макдональд"
 03058                        },
 03059                        new
 03060                        {
 03061                            Id = 155L,
 03062                            Code = 136,
 03063                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03064                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03065                            IsDeleted = false,
 03066                            Name = "Острова Кайман"
 03067                        },
 03068                        new
 03069                        {
 03070                            Id = 156L,
 03071                            Code = 184,
 03072                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03073                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03074                            IsDeleted = false,
 03075                            Name = "Острова Кука"
 03076                        },
 03077                        new
 03078                        {
 03079                            Id = 157L,
 03080                            Code = 796,
 03081                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03082                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03083                            IsDeleted = false,
 03084                            Name = "Острова Теркс и Кайкос"
 03085                        },
 03086                        new
 03087                        {
 03088                            Id = 158L,
 03089                            Code = 586,
 03090                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03091                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03092                            IsDeleted = false,
 03093                            Name = "Пакистан"
 03094                        },
 03095                        new
 03096                        {
 03097                            Id = 159L,
 03098                            Code = 585,
 03099                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03100                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03101                            IsDeleted = false,
 03102                            Name = "Палау"
 03103                        },
 03104                        new
 03105                        {
 03106                            Id = 160L,
 03107                            Code = 275,
 03108                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03109                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03110                            IsDeleted = false,
 03111                            Name = "Палестинская территория, оккупированная"
 03112                        },
 03113                        new
 03114                        {
 03115                            Id = 161L,
 03116                            Code = 591,
 03117                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03118                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03119                            IsDeleted = false,
 03120                            Name = "Панама"
 03121                        },
 03122                        new
 03123                        {
 03124                            Id = 162L,
 03125                            Code = 336,
 03126                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03127                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03128                            IsDeleted = false,
 03129                            Name = "Папский Престол (Государство &mdash; город Ватикан)"
 03130                        },
 03131                        new
 03132                        {
 03133                            Id = 163L,
 03134                            Code = 598,
 03135                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03136                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03137                            IsDeleted = false,
 03138                            Name = "Папуа-Новая Гвинея"
 03139                        },
 03140                        new
 03141                        {
 03142                            Id = 164L,
 03143                            Code = 600,
 03144                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03145                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03146                            IsDeleted = false,
 03147                            Name = "Парагвай"
 03148                        },
 03149                        new
 03150                        {
 03151                            Id = 165L,
 03152                            Code = 604,
 03153                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03154                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03155                            IsDeleted = false,
 03156                            Name = "Перу"
 03157                        },
 03158                        new
 03159                        {
 03160                            Id = 166L,
 03161                            Code = 612,
 03162                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03163                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03164                            IsDeleted = false,
 03165                            Name = "Питкерн"
 03166                        },
 03167                        new
 03168                        {
 03169                            Id = 167L,
 03170                            Code = 616,
 03171                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03172                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03173                            IsDeleted = false,
 03174                            Name = "Польша"
 03175                        },
 03176                        new
 03177                        {
 03178                            Id = 168L,
 03179                            Code = 620,
 03180                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03181                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03182                            IsDeleted = false,
 03183                            Name = "Португалия"
 03184                        },
 03185                        new
 03186                        {
 03187                            Id = 169L,
 03188                            Code = 630,
 03189                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03190                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03191                            IsDeleted = false,
 03192                            Name = "Пуэрто-Рико"
 03193                        },
 03194                        new
 03195                        {
 03196                            Id = 170L,
 03197                            Code = 807,
 03198                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03199                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03200                            IsDeleted = false,
 03201                            Name = "Республика Македония"
 03202                        },
 03203                        new
 03204                        {
 03205                            Id = 171L,
 03206                            Code = 638,
 03207                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03208                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03209                            IsDeleted = false,
 03210                            Name = "Реюньон"
 03211                        },
 03212                        new
 03213                        {
 03214                            Id = 172L,
 03215                            Code = 643,
 03216                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03217                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03218                            IsDeleted = false,
 03219                            Name = "Россия"
 03220                        },
 03221                        new
 03222                        {
 03223                            Id = 173L,
 03224                            Code = 646,
 03225                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03226                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03227                            IsDeleted = false,
 03228                            Name = "Руанда"
 03229                        },
 03230                        new
 03231                        {
 03232                            Id = 174L,
 03233                            Code = 642,
 03234                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03235                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03236                            IsDeleted = false,
 03237                            Name = "Румыния"
 03238                        },
 03239                        new
 03240                        {
 03241                            Id = 175L,
 03242                            Code = 882,
 03243                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03244                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03245                            IsDeleted = false,
 03246                            Name = "Самоа"
 03247                        },
 03248                        new
 03249                        {
 03250                            Id = 176L,
 03251                            Code = 674,
 03252                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03253                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03254                            IsDeleted = false,
 03255                            Name = "Сан-Марино"
 03256                        },
 03257                        new
 03258                        {
 03259                            Id = 177L,
 03260                            Code = 678,
 03261                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03262                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03263                            IsDeleted = false,
 03264                            Name = "Сан-Томе и Принсипи"
 03265                        },
 03266                        new
 03267                        {
 03268                            Id = 178L,
 03269                            Code = 682,
 03270                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03271                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03272                            IsDeleted = false,
 03273                            Name = "Саудовская Аравия"
 03274                        },
 03275                        new
 03276                        {
 03277                            Id = 179L,
 03278                            Code = 748,
 03279                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03280                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03281                            IsDeleted = false,
 03282                            Name = "Свазиленд"
 03283                        },
 03284                        new
 03285                        {
 03286                            Id = 180L,
 03287                            Code = 654,
 03288                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03289                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03290                            IsDeleted = false,
 03291                            Name = "Святая Елена, Остров вознесения, Тристан-да-Кунья"
 03292                        },
 03293                        new
 03294                        {
 03295                            Id = 181L,
 03296                            Code = 580,
 03297                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03298                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03299                            IsDeleted = false,
 03300                            Name = "Северные Марианские острова"
 03301                        },
 03302                        new
 03303                        {
 03304                            Id = 182L,
 03305                            Code = 652,
 03306                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03307                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03308                            IsDeleted = false,
 03309                            Name = "Сен-Бартельми"
 03310                        },
 03311                        new
 03312                        {
 03313                            Id = 183L,
 03314                            Code = 663,
 03315                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03316                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03317                            IsDeleted = false,
 03318                            Name = "Сен-Мартен"
 03319                        },
 03320                        new
 03321                        {
 03322                            Id = 184L,
 03323                            Code = 686,
 03324                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03325                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03326                            IsDeleted = false,
 03327                            Name = "Сенегал"
 03328                        },
 03329                        new
 03330                        {
 03331                            Id = 185L,
 03332                            Code = 670,
 03333                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03334                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03335                            IsDeleted = false,
 03336                            Name = "Сент-Винсент и Гренадины"
 03337                        },
 03338                        new
 03339                        {
 03340                            Id = 186L,
 03341                            Code = 659,
 03342                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03343                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03344                            IsDeleted = false,
 03345                            Name = "Сент-Китс и Невис"
 03346                        },
 03347                        new
 03348                        {
 03349                            Id = 187L,
 03350                            Code = 662,
 03351                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03352                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03353                            IsDeleted = false,
 03354                            Name = "Сент-Люсия"
 03355                        },
 03356                        new
 03357                        {
 03358                            Id = 188L,
 03359                            Code = 666,
 03360                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03361                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03362                            IsDeleted = false,
 03363                            Name = "Сент-Пьер и Микелон"
 03364                        },
 03365                        new
 03366                        {
 03367                            Id = 189L,
 03368                            Code = 688,
 03369                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03370                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03371                            IsDeleted = false,
 03372                            Name = "Сербия"
 03373                        },
 03374                        new
 03375                        {
 03376                            Id = 190L,
 03377                            Code = 690,
 03378                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03379                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03380                            IsDeleted = false,
 03381                            Name = "Сейшелы"
 03382                        },
 03383                        new
 03384                        {
 03385                            Id = 191L,
 03386                            Code = 702,
 03387                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03388                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03389                            IsDeleted = false,
 03390                            Name = "Сингапур"
 03391                        },
 03392                        new
 03393                        {
 03394                            Id = 192L,
 03395                            Code = 534,
 03396                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03397                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03398                            IsDeleted = false,
 03399                            Name = "Синт-Мартен"
 03400                        },
 03401                        new
 03402                        {
 03403                            Id = 193L,
 03404                            Code = 760,
 03405                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03406                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03407                            IsDeleted = false,
 03408                            Name = "Сирийская Арабская Республика"
 03409                        },
 03410                        new
 03411                        {
 03412                            Id = 194L,
 03413                            Code = 703,
 03414                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03415                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03416                            IsDeleted = false,
 03417                            Name = "Словакия"
 03418                        },
 03419                        new
 03420                        {
 03421                            Id = 195L,
 03422                            Code = 705,
 03423                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03424                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03425                            IsDeleted = false,
 03426                            Name = "Словения"
 03427                        },
 03428                        new
 03429                        {
 03430                            Id = 196L,
 03431                            Code = 826,
 03432                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03433                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03434                            IsDeleted = false,
 03435                            Name = "Соединенное Королевство"
 03436                        },
 03437                        new
 03438                        {
 03439                            Id = 197L,
 03440                            Code = 840,
 03441                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03442                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03443                            IsDeleted = false,
 03444                            Name = "Соединенные Штаты"
 03445                        },
 03446                        new
 03447                        {
 03448                            Id = 198L,
 03449                            Code = 90,
 03450                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03451                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03452                            IsDeleted = false,
 03453                            Name = "Соломоновы острова"
 03454                        },
 03455                        new
 03456                        {
 03457                            Id = 199L,
 03458                            Code = 706,
 03459                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03460                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03461                            IsDeleted = false,
 03462                            Name = "Сомали"
 03463                        },
 03464                        new
 03465                        {
 03466                            Id = 200L,
 03467                            Code = 729,
 03468                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03469                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03470                            IsDeleted = false,
 03471                            Name = "Судан"
 03472                        },
 03473                        new
 03474                        {
 03475                            Id = 201L,
 03476                            Code = 740,
 03477                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03478                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03479                            IsDeleted = false,
 03480                            Name = "Суринам"
 03481                        },
 03482                        new
 03483                        {
 03484                            Id = 202L,
 03485                            Code = 694,
 03486                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03487                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03488                            IsDeleted = false,
 03489                            Name = "Сьерра-Леоне"
 03490                        },
 03491                        new
 03492                        {
 03493                            Id = 203L,
 03494                            Code = 762,
 03495                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03496                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03497                            IsDeleted = false,
 03498                            Name = "Таджикистан"
 03499                        },
 03500                        new
 03501                        {
 03502                            Id = 204L,
 03503                            Code = 764,
 03504                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03505                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03506                            IsDeleted = false,
 03507                            Name = "Таиланд"
 03508                        },
 03509                        new
 03510                        {
 03511                            Id = 205L,
 03512                            Code = 158,
 03513                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03514                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03515                            IsDeleted = false,
 03516                            Name = "Тайвань (Китай)"
 03517                        },
 03518                        new
 03519                        {
 03520                            Id = 206L,
 03521                            Code = 834,
 03522                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03523                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03524                            IsDeleted = false,
 03525                            Name = "Танзания, Объединенная Республика"
 03526                        },
 03527                        new
 03528                        {
 03529                            Id = 207L,
 03530                            Code = 626,
 03531                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03532                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03533                            IsDeleted = false,
 03534                            Name = "Тимор-Лесте"
 03535                        },
 03536                        new
 03537                        {
 03538                            Id = 208L,
 03539                            Code = 768,
 03540                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03541                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03542                            IsDeleted = false,
 03543                            Name = "Того"
 03544                        },
 03545                        new
 03546                        {
 03547                            Id = 209L,
 03548                            Code = 772,
 03549                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03550                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03551                            IsDeleted = false,
 03552                            Name = "Токелау"
 03553                        },
 03554                        new
 03555                        {
 03556                            Id = 210L,
 03557                            Code = 776,
 03558                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03559                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03560                            IsDeleted = false,
 03561                            Name = "Тонга"
 03562                        },
 03563                        new
 03564                        {
 03565                            Id = 211L,
 03566                            Code = 780,
 03567                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03568                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03569                            IsDeleted = false,
 03570                            Name = "Тринидад и Тобаго"
 03571                        },
 03572                        new
 03573                        {
 03574                            Id = 212L,
 03575                            Code = 798,
 03576                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03577                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03578                            IsDeleted = false,
 03579                            Name = "Тувалу"
 03580                        },
 03581                        new
 03582                        {
 03583                            Id = 213L,
 03584                            Code = 788,
 03585                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03586                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03587                            IsDeleted = false,
 03588                            Name = "Тунис"
 03589                        },
 03590                        new
 03591                        {
 03592                            Id = 214L,
 03593                            Code = 795,
 03594                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03595                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03596                            IsDeleted = false,
 03597                            Name = "Туркмения"
 03598                        },
 03599                        new
 03600                        {
 03601                            Id = 215L,
 03602                            Code = 792,
 03603                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03604                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03605                            IsDeleted = false,
 03606                            Name = "Турция"
 03607                        },
 03608                        new
 03609                        {
 03610                            Id = 216L,
 03611                            Code = 800,
 03612                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03613                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03614                            IsDeleted = false,
 03615                            Name = "Уганда"
 03616                        },
 03617                        new
 03618                        {
 03619                            Id = 217L,
 03620                            Code = 860,
 03621                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03622                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03623                            IsDeleted = false,
 03624                            Name = "Узбекистан"
 03625                        },
 03626                        new
 03627                        {
 03628                            Id = 218L,
 03629                            Code = 804,
 03630                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03631                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03632                            IsDeleted = false,
 03633                            Name = "Украина"
 03634                        },
 03635                        new
 03636                        {
 03637                            Id = 219L,
 03638                            Code = 876,
 03639                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03640                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03641                            IsDeleted = false,
 03642                            Name = "Уоллис и Футуна"
 03643                        },
 03644                        new
 03645                        {
 03646                            Id = 220L,
 03647                            Code = 858,
 03648                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03649                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03650                            IsDeleted = false,
 03651                            Name = "Уругвай"
 03652                        },
 03653                        new
 03654                        {
 03655                            Id = 221L,
 03656                            Code = 234,
 03657                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03658                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03659                            IsDeleted = false,
 03660                            Name = "Фарерские острова"
 03661                        },
 03662                        new
 03663                        {
 03664                            Id = 222L,
 03665                            Code = 242,
 03666                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03667                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03668                            IsDeleted = false,
 03669                            Name = "Фиджи"
 03670                        },
 03671                        new
 03672                        {
 03673                            Id = 223L,
 03674                            Code = 608,
 03675                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03676                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03677                            IsDeleted = false,
 03678                            Name = "Филиппины"
 03679                        },
 03680                        new
 03681                        {
 03682                            Id = 224L,
 03683                            Code = 246,
 03684                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03685                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03686                            IsDeleted = false,
 03687                            Name = "Финляндия"
 03688                        },
 03689                        new
 03690                        {
 03691                            Id = 225L,
 03692                            Code = 238,
 03693                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03694                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03695                            IsDeleted = false,
 03696                            Name = "Фолклендские острова (Мальвинские)"
 03697                        },
 03698                        new
 03699                        {
 03700                            Id = 226L,
 03701                            Code = 250,
 03702                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03703                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03704                            IsDeleted = false,
 03705                            Name = "Франция"
 03706                        },
 03707                        new
 03708                        {
 03709                            Id = 227L,
 03710                            Code = 254,
 03711                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03712                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03713                            IsDeleted = false,
 03714                            Name = "Французская Гвиана"
 03715                        },
 03716                        new
 03717                        {
 03718                            Id = 228L,
 03719                            Code = 258,
 03720                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03721                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03722                            IsDeleted = false,
 03723                            Name = "Французская Полинезия"
 03724                        },
 03725                        new
 03726                        {
 03727                            Id = 229L,
 03728                            Code = 260,
 03729                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03730                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03731                            IsDeleted = false,
 03732                            Name = "Французские Южные территории"
 03733                        },
 03734                        new
 03735                        {
 03736                            Id = 230L,
 03737                            Code = 191,
 03738                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03739                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03740                            IsDeleted = false,
 03741                            Name = "Хорватия"
 03742                        },
 03743                        new
 03744                        {
 03745                            Id = 231L,
 03746                            Code = 140,
 03747                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03748                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03749                            IsDeleted = false,
 03750                            Name = "Центрально-Африканская Республика"
 03751                        },
 03752                        new
 03753                        {
 03754                            Id = 232L,
 03755                            Code = 148,
 03756                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03757                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03758                            IsDeleted = false,
 03759                            Name = "Чад"
 03760                        },
 03761                        new
 03762                        {
 03763                            Id = 233L,
 03764                            Code = 499,
 03765                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03766                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03767                            IsDeleted = false,
 03768                            Name = "Черногория"
 03769                        },
 03770                        new
 03771                        {
 03772                            Id = 234L,
 03773                            Code = 203,
 03774                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03775                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03776                            IsDeleted = false,
 03777                            Name = "Чешская Республика"
 03778                        },
 03779                        new
 03780                        {
 03781                            Id = 235L,
 03782                            Code = 152,
 03783                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03784                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03785                            IsDeleted = false,
 03786                            Name = "Чили"
 03787                        },
 03788                        new
 03789                        {
 03790                            Id = 236L,
 03791                            Code = 756,
 03792                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03793                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03794                            IsDeleted = false,
 03795                            Name = "Швейцария"
 03796                        },
 03797                        new
 03798                        {
 03799                            Id = 237L,
 03800                            Code = 752,
 03801                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03802                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03803                            IsDeleted = false,
 03804                            Name = "Швеция"
 03805                        },
 03806                        new
 03807                        {
 03808                            Id = 238L,
 03809                            Code = 744,
 03810                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03811                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03812                            IsDeleted = false,
 03813                            Name = "Шпицберген и Ян Майен"
 03814                        },
 03815                        new
 03816                        {
 03817                            Id = 239L,
 03818                            Code = 144,
 03819                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03820                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03821                            IsDeleted = false,
 03822                            Name = "Шри-Ланка"
 03823                        },
 03824                        new
 03825                        {
 03826                            Id = 240L,
 03827                            Code = 218,
 03828                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03829                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03830                            IsDeleted = false,
 03831                            Name = "Эквадор"
 03832                        },
 03833                        new
 03834                        {
 03835                            Id = 241L,
 03836                            Code = 226,
 03837                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03838                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03839                            IsDeleted = false,
 03840                            Name = "Экваториальная Гвинея"
 03841                        },
 03842                        new
 03843                        {
 03844                            Id = 242L,
 03845                            Code = 248,
 03846                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03847                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03848                            IsDeleted = false,
 03849                            Name = "Эландские острова"
 03850                        },
 03851                        new
 03852                        {
 03853                            Id = 243L,
 03854                            Code = 222,
 03855                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03856                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03857                            IsDeleted = false,
 03858                            Name = "Эль-Сальвадор"
 03859                        },
 03860                        new
 03861                        {
 03862                            Id = 244L,
 03863                            Code = 232,
 03864                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03865                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03866                            IsDeleted = false,
 03867                            Name = "Эритрея"
 03868                        },
 03869                        new
 03870                        {
 03871                            Id = 245L,
 03872                            Code = 233,
 03873                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03874                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03875                            IsDeleted = false,
 03876                            Name = "Эстония"
 03877                        },
 03878                        new
 03879                        {
 03880                            Id = 246L,
 03881                            Code = 231,
 03882                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03883                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03884                            IsDeleted = false,
 03885                            Name = "Эфиопия"
 03886                        },
 03887                        new
 03888                        {
 03889                            Id = 247L,
 03890                            Code = 710,
 03891                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03892                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03893                            IsDeleted = false,
 03894                            Name = "Южная Африка"
 03895                        },
 03896                        new
 03897                        {
 03898                            Id = 248L,
 03899                            Code = 239,
 03900                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03901                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03902                            IsDeleted = false,
 03903                            Name = "Южная Джорджия и Южные Сандвичевы острова"
 03904                        },
 03905                        new
 03906                        {
 03907                            Id = 249L,
 03908                            Code = 896,
 03909                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03910                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03911                            IsDeleted = false,
 03912                            Name = "Южная Осетия"
 03913                        },
 03914                        new
 03915                        {
 03916                            Id = 250L,
 03917                            Code = 728,
 03918                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03919                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03920                            IsDeleted = false,
 03921                            Name = "Южный Судан"
 03922                        },
 03923                        new
 03924                        {
 03925                            Id = 251L,
 03926                            Code = 388,
 03927                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03928                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03929                            IsDeleted = false,
 03930                            Name = "Ямайка"
 03931                        },
 03932                        new
 03933                        {
 03934                            Id = 252L,
 03935                            Code = 392,
 03936                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03937                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03938                            IsDeleted = false,
 03939                            Name = "Япония"
 03940                        });
 03941                });
 3942
 03943            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Currency", b =>
 03944                {
 03945                    b.Property<long>("Id")
 03946                        .ValueGeneratedOnAdd()
 03947                        .HasColumnType("bigint")
 03948                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 03949
 03950                    b.Property<string>("CODE")
 03951                        .IsRequired()
 03952                        .HasColumnType("text");
 03953
 03954                    b.Property<string>("COUNTRY")
 03955                        .IsRequired()
 03956                        .HasColumnType("text");
 03957
 03958                    b.Property<long?>("CreatedByUserId")
 03959                        .HasColumnType("bigint");
 03960
 03961                    b.Property<DateTime>("CreationDateTime")
 03962                        .HasColumnType("timestamp without time zone");
 03963
 03964                    b.Property<Guid>("GUID")
 03965                        .ValueGeneratedOnAdd()
 03966                        .HasColumnType("uuid");
 03967
 03968                    b.Property<bool>("IsDeleted")
 03969                        .HasColumnType("boolean");
 03970
 03971                    b.Property<DateTime?>("ModificationDateTime")
 03972                        .HasColumnType("timestamp without time zone");
 03973
 03974                    b.Property<long?>("ModifiedByUserId")
 03975                        .HasColumnType("bigint");
 03976
 03977                    b.Property<string>("NAME")
 03978                        .IsRequired()
 03979                        .HasColumnType("text");
 03980
 03981                    b.Property<decimal>("Rate")
 03982                        .HasColumnType("numeric");
 03983
 03984                    b.Property<long?>("RecStateId")
 03985                        .HasColumnType("bigint");
 03986
 03987                    b.Property<string>("STRCODE")
 03988                        .IsRequired()
 03989                        .HasColumnType("text");
 03990
 03991                    b.Property<string>("global_id")
 03992                        .HasColumnType("text");
 03993
 03994                    b.Property<string>("system_object_id")
 03995                        .HasColumnType("text");
 03996
 03997                    b.HasKey("Id");
 03998
 03999                    b.HasIndex("CODE")
 04000                        .IsUnique();
 04001
 04002                    b.HasIndex("CreatedByUserId");
 04003
 04004                    b.HasIndex("ModifiedByUserId");
 04005
 04006                    b.HasIndex("NAME")
 04007                        .IsUnique();
 04008
 04009                    b.HasIndex("RecStateId");
 04010
 04011                    b.HasIndex("STRCODE")
 04012                        .IsUnique();
 04013
 04014                    b.ToTable("Currency");
 04015
 04016                    b.HasData(
 04017                        new
 04018                        {
 04019                            Id = 1L,
 04020                            CODE = "643",
 04021                            COUNTRY = "Россия",
 04022                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04023                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04024                            IsDeleted = false,
 04025                            NAME = "Российский рубль",
 04026                            Rate = 1m,
 04027                            STRCODE = "RUB",
 04028                            global_id = "62838439",
 04029                            system_object_id = "643"
 04030                        });
 04031                });
 4032
 04033            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", b =>
 04034                {
 04035                    b.Property<long>("Id")
 04036                        .ValueGeneratedOnAdd()
 04037                        .HasColumnType("bigint")
 04038                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04039
 04040                    b.Property<long?>("ActualAddressId")
 04041                        .HasColumnType("bigint");
 04042
 04043                    b.Property<decimal>("Area")
 04044                        .HasColumnType("numeric");
 04045
 04046                    b.Property<long?>("ClusterId")
 04047                        .HasColumnType("bigint");
 04048
 04049                    b.Property<long>("ContragentId")
 04050                        .HasColumnType("bigint");
 04051
 04052                    b.Property<long?>("CreatedByUserId")
 04053                        .HasColumnType("bigint");
 04054
 04055                    b.Property<DateTime>("CreationDateTime")
 04056                        .HasColumnType("timestamp without time zone");
 04057
 04058                    b.Property<Guid>("GUID")
 04059                        .ValueGeneratedOnAdd()
 04060                        .HasColumnType("uuid");
 04061
 04062                    b.Property<bool>("IsDeleted")
 04063                        .HasColumnType("boolean");
 04064
 04065                    b.Property<long?>("KindId")
 04066                        .HasColumnType("bigint");
 04067
 04068                    b.Property<string>("Kpp")
 04069                        .HasColumnType("text");
 04070
 04071                    b.Property<DateTime?>("ModificationDateTime")
 04072                        .HasColumnType("timestamp without time zone");
 04073
 04074                    b.Property<long?>("ModifiedByUserId")
 04075                        .HasColumnType("bigint");
 04076
 04077                    b.Property<string>("Name")
 04078                        .IsRequired()
 04079                        .HasColumnType("text");
 04080
 04081                    b.Property<string>("PhoneNumber")
 04082                        .IsRequired()
 04083                        .HasColumnType("text");
 04084
 04085                    b.Property<long?>("PostalAddressId")
 04086                        .HasColumnType("bigint");
 04087
 04088                    b.Property<long?>("RecStateId")
 04089                        .HasColumnType("bigint");
 04090
 04091                    b.Property<long?>("StatusId")
 04092                        .HasColumnType("bigint");
 04093
 04094                    b.HasKey("Id");
 04095
 04096                    b.HasIndex("ActualAddressId");
 04097
 04098                    b.HasIndex("ClusterId");
 04099
 04100                    b.HasIndex("ContragentId");
 04101
 04102                    b.HasIndex("CreatedByUserId");
 04103
 04104                    b.HasIndex("KindId");
 04105
 04106                    b.HasIndex("ModifiedByUserId");
 04107
 04108                    b.HasIndex("Name")
 04109                        .IsUnique();
 04110
 04111                    b.HasIndex("PhoneNumber");
 04112
 04113                    b.HasIndex("PostalAddressId");
 04114
 04115                    b.HasIndex("RecStateId");
 04116
 04117                    b.HasIndex("StatusId");
 04118
 04119                    b.ToTable("Departments");
 04120
 04121                    b.HasData(
 04122                        new
 04123                        {
 04124                            Id = -1L,
 04125                            ActualAddressId = -1L,
 04126                            Area = 100.0m,
 04127                            ContragentId = -1L,
 04128                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04129                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04130                            IsDeleted = false,
 04131                            KindId = 2L,
 04132                            Kpp = "3",
 04133                            Name = "Анонимный магазин №1",
 04134                            PhoneNumber = "88008008000",
 04135                            PostalAddressId = -1L,
 04136                            StatusId = 2L
 04137                        });
 04138                });
 4139
 04140            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentCategoryRatio", b =>
 04141                {
 04142                    b.Property<long>("Id")
 04143                        .ValueGeneratedOnAdd()
 04144                        .HasColumnType("bigint")
 04145                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04146
 04147                    b.Property<long>("CategoryId")
 04148                        .HasColumnType("bigint");
 04149
 04150                    b.Property<long?>("CreatedByUserId")
 04151                        .HasColumnType("bigint");
 04152
 04153                    b.Property<DateTime>("CreationDateTime")
 04154                        .HasColumnType("timestamp without time zone");
 04155
 04156                    b.Property<long>("DepartmentId")
 04157                        .HasColumnType("bigint");
 04158
 04159                    b.Property<Guid>("GUID")
 04160                        .ValueGeneratedOnAdd()
 04161                        .HasColumnType("uuid");
 04162
 04163                    b.Property<bool>("IsDeleted")
 04164                        .HasColumnType("boolean");
 04165
 04166                    b.Property<DateTime?>("ModificationDateTime")
 04167                        .HasColumnType("timestamp without time zone");
 04168
 04169                    b.Property<long?>("ModifiedByUserId")
 04170                        .HasColumnType("bigint");
 04171
 04172                    b.Property<long?>("RecStateId")
 04173                        .HasColumnType("bigint");
 04174
 04175                    b.Property<decimal>("TradeRatio")
 04176                        .HasColumnType("numeric");
 04177
 04178                    b.HasKey("Id");
 04179
 04180                    b.HasIndex("CategoryId");
 04181
 04182                    b.HasIndex("CreatedByUserId");
 04183
 04184                    b.HasIndex("ModifiedByUserId");
 04185
 04186                    b.HasIndex("RecStateId");
 04187
 04188                    b.HasIndex("DepartmentId", "CategoryId")
 04189                        .IsUnique();
 04190
 04191                    b.ToTable("DepartmentCategoryRatio");
 04192                });
 4193
 04194            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentGoodSetting", b =>
 04195                {
 04196                    b.Property<long>("Id")
 04197                        .ValueGeneratedOnAdd()
 04198                        .HasColumnType("bigint")
 04199                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04200
 04201                    b.Property<long?>("CreatedByUserId")
 04202                        .HasColumnType("bigint");
 04203
 04204                    b.Property<DateTime>("CreationDateTime")
 04205                        .HasColumnType("timestamp without time zone");
 04206
 04207                    b.Property<long>("DepartmentId")
 04208                        .HasColumnType("bigint");
 04209
 04210                    b.Property<Guid>("GUID")
 04211                        .ValueGeneratedOnAdd()
 04212                        .HasColumnType("uuid");
 04213
 04214                    b.Property<long>("GoodId")
 04215                        .HasColumnType("bigint");
 04216
 04217                    b.Property<bool>("IsDeleted")
 04218                        .HasColumnType("boolean");
 04219
 04220                    b.Property<decimal>("MinQuantity")
 04221                        .HasColumnType("numeric");
 04222
 04223                    b.Property<DateTime?>("ModificationDateTime")
 04224                        .HasColumnType("timestamp without time zone");
 04225
 04226                    b.Property<long?>("ModifiedByUserId")
 04227                        .HasColumnType("bigint");
 04228
 04229                    b.Property<decimal>("PickingQuantum")
 04230                        .HasColumnType("numeric");
 04231
 04232                    b.Property<long?>("RecStateId")
 04233                        .HasColumnType("bigint");
 04234
 04235                    b.HasKey("Id");
 04236
 04237                    b.HasIndex("CreatedByUserId");
 04238
 04239                    b.HasIndex("DepartmentId");
 04240
 04241                    b.HasIndex("ModifiedByUserId");
 04242
 04243                    b.HasIndex("RecStateId");
 04244
 04245                    b.HasIndex("GoodId", "DepartmentId")
 04246                        .IsUnique();
 04247
 04248                    b.ToTable("DepartmentGoodSetting");
 04249                });
 4250
 04251            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsKind", b =>
 04252                {
 04253                    b.Property<long>("Id")
 04254                        .ValueGeneratedOnAdd()
 04255                        .HasColumnType("bigint")
 04256                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04257
 04258                    b.Property<string>("Code")
 04259                        .IsRequired()
 04260                        .HasColumnType("text");
 04261
 04262                    b.Property<long?>("CreatedByUserId")
 04263                        .HasColumnType("bigint");
 04264
 04265                    b.Property<DateTime>("CreationDateTime")
 04266                        .HasColumnType("timestamp without time zone");
 04267
 04268                    b.Property<string>("Description")
 04269                        .HasColumnType("text");
 04270
 04271                    b.Property<Guid>("GUID")
 04272                        .ValueGeneratedOnAdd()
 04273                        .HasColumnType("uuid");
 04274
 04275                    b.Property<bool>("IsDeleted")
 04276                        .HasColumnType("boolean");
 04277
 04278                    b.Property<DateTime?>("ModificationDateTime")
 04279                        .HasColumnType("timestamp without time zone");
 04280
 04281                    b.Property<long?>("ModifiedByUserId")
 04282                        .HasColumnType("bigint");
 04283
 04284                    b.Property<string>("Name")
 04285                        .IsRequired()
 04286                        .HasColumnType("text");
 04287
 04288                    b.Property<long?>("RecStateId")
 04289                        .HasColumnType("bigint");
 04290
 04291                    b.HasKey("Id");
 04292
 04293                    b.HasIndex("CreatedByUserId");
 04294
 04295                    b.HasIndex("ModifiedByUserId");
 04296
 04297                    b.HasIndex("RecStateId");
 04298
 04299                    b.ToTable("DepartmentsKind");
 04300
 04301                    b.HasData(
 04302                        new
 04303                        {
 04304                            Id = 1L,
 04305                            Code = "Warehouse",
 04306                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04307                            Description = "",
 04308                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04309                            IsDeleted = false,
 04310                            Name = "Склад"
 04311                        },
 04312                        new
 04313                        {
 04314                            Id = 2L,
 04315                            Code = "Shop",
 04316                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04317                            Description = "",
 04318                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04319                            IsDeleted = false,
 04320                            Name = "Магазин"
 04321                        },
 04322                        new
 04323                        {
 04324                            Id = 3L,
 04325                            Code = "Plant",
 04326                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04327                            Description = "",
 04328                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04329                            IsDeleted = false,
 04330                            Name = "Завод"
 04331                        });
 04332                });
 4333
 04334            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsStatus", b =>
 04335                {
 04336                    b.Property<long>("Id")
 04337                        .ValueGeneratedOnAdd()
 04338                        .HasColumnType("bigint")
 04339                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04340
 04341                    b.Property<string>("Code")
 04342                        .IsRequired()
 04343                        .HasColumnType("text");
 04344
 04345                    b.Property<long?>("CreatedByUserId")
 04346                        .HasColumnType("bigint");
 04347
 04348                    b.Property<DateTime>("CreationDateTime")
 04349                        .HasColumnType("timestamp without time zone");
 04350
 04351                    b.Property<string>("Description")
 04352                        .HasColumnType("text");
 04353
 04354                    b.Property<Guid>("GUID")
 04355                        .ValueGeneratedOnAdd()
 04356                        .HasColumnType("uuid");
 04357
 04358                    b.Property<bool>("IsDeleted")
 04359                        .HasColumnType("boolean");
 04360
 04361                    b.Property<DateTime?>("ModificationDateTime")
 04362                        .HasColumnType("timestamp without time zone");
 04363
 04364                    b.Property<long?>("ModifiedByUserId")
 04365                        .HasColumnType("bigint");
 04366
 04367                    b.Property<string>("Name")
 04368                        .IsRequired()
 04369                        .HasColumnType("text");
 04370
 04371                    b.Property<long?>("RecStateId")
 04372                        .HasColumnType("bigint");
 04373
 04374                    b.HasKey("Id");
 04375
 04376                    b.HasIndex("CreatedByUserId");
 04377
 04378                    b.HasIndex("ModifiedByUserId");
 04379
 04380                    b.HasIndex("RecStateId");
 04381
 04382                    b.ToTable("DepartmentsStatus");
 04383
 04384                    b.HasData(
 04385                        new
 04386                        {
 04387                            Id = 1L,
 04388                            Code = "New",
 04389                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04390                            Description = "",
 04391                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04392                            IsDeleted = false,
 04393                            Name = "Новый"
 04394                        },
 04395                        new
 04396                        {
 04397                            Id = 2L,
 04398                            Code = "Active",
 04399                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04400                            Description = "",
 04401                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04402                            IsDeleted = false,
 04403                            Name = "Активный"
 04404                        },
 04405                        new
 04406                        {
 04407                            Id = 3L,
 04408                            Code = "Inactive",
 04409                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04410                            Description = "",
 04411                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04412                            IsDeleted = false,
 04413                            Name = "Неактивный"
 04414                        },
 04415                        new
 04416                        {
 04417                            Id = 4L,
 04418                            Code = "Paused",
 04419                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04420                            Description = "",
 04421                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04422                            IsDeleted = false,
 04423                            Name = "На паузе"
 04424                        });
 04425                });
 4426
 04427            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DiscountColor", b =>
 04428                {
 04429                    b.Property<long>("Id")
 04430                        .ValueGeneratedOnAdd()
 04431                        .HasColumnType("bigint")
 04432                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04433
 04434                    b.Property<long?>("CreatedByUserId")
 04435                        .HasColumnType("bigint");
 04436
 04437                    b.Property<DateTime>("CreationDateTime")
 04438                        .HasColumnType("timestamp without time zone");
 04439
 04440                    b.Property<int>("DiscountLevel")
 04441                        .HasColumnType("integer");
 04442
 04443                    b.Property<Guid>("GUID")
 04444                        .ValueGeneratedOnAdd()
 04445                        .HasColumnType("uuid");
 04446
 04447                    b.Property<bool>("IsDeleted")
 04448                        .HasColumnType("boolean");
 04449
 04450                    b.Property<string>("LabelColor")
 04451                        .IsRequired()
 04452                        .HasColumnType("text");
 04453
 04454                    b.Property<DateTime?>("ModificationDateTime")
 04455                        .HasColumnType("timestamp without time zone");
 04456
 04457                    b.Property<long?>("ModifiedByUserId")
 04458                        .HasColumnType("bigint");
 04459
 04460                    b.Property<long?>("RecStateId")
 04461                        .HasColumnType("bigint");
 04462
 04463                    b.HasKey("Id");
 04464
 04465                    b.HasIndex("CreatedByUserId");
 04466
 04467                    b.HasIndex("ModifiedByUserId");
 04468
 04469                    b.HasIndex("RecStateId");
 04470
 04471                    b.HasIndex("DiscountLevel", "LabelColor")
 04472                        .IsUnique();
 04473
 04474                    b.ToTable("DiscountColors");
 04475                });
 4476
 04477            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Email", b =>
 04478                {
 04479                    b.Property<long>("Id")
 04480                        .ValueGeneratedOnAdd()
 04481                        .HasColumnType("bigint")
 04482                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04483
 04484                    b.Property<string>("Attachment")
 04485                        .HasColumnType("text");
 04486
 04487                    b.Property<string>("Body")
 04488                        .IsRequired()
 04489                        .HasColumnType("text");
 04490
 04491                    b.Property<long?>("CreatedByUserId")
 04492                        .HasColumnType("bigint");
 04493
 04494                    b.Property<DateTime>("CreationDateTime")
 04495                        .HasColumnType("timestamp without time zone");
 04496
 04497                    b.Property<string>("Error")
 04498                        .HasColumnType("text");
 04499
 04500                    b.Property<Guid>("GUID")
 04501                        .ValueGeneratedOnAdd()
 04502                        .HasColumnType("uuid");
 04503
 04504                    b.Property<bool>("IsDeleted")
 04505                        .HasColumnType("boolean");
 04506
 04507                    b.Property<DateTime?>("ModificationDateTime")
 04508                        .HasColumnType("timestamp without time zone");
 04509
 04510                    b.Property<long?>("ModifiedByUserId")
 04511                        .HasColumnType("bigint");
 04512
 04513                    b.Property<long?>("RecStateId")
 04514                        .HasColumnType("bigint");
 04515
 04516                    b.Property<string>("Receiver")
 04517                        .IsRequired()
 04518                        .HasColumnType("text");
 04519
 04520                    b.Property<bool>("Sent")
 04521                        .HasColumnType("boolean");
 04522
 04523                    b.Property<string>("Subject")
 04524                        .IsRequired()
 04525                        .HasColumnType("text");
 04526
 04527                    b.HasKey("Id");
 04528
 04529                    b.HasIndex("CreatedByUserId");
 04530
 04531                    b.HasIndex("ModifiedByUserId");
 04532
 04533                    b.HasIndex("RecStateId");
 04534
 04535                    b.ToTable("Emails");
 04536                });
 4537
 04538            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Event", b =>
 04539                {
 04540                    b.Property<long>("Id")
 04541                        .ValueGeneratedOnAdd()
 04542                        .HasColumnType("bigint")
 04543                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04544
 04545                    b.Property<long?>("CreatedByUserId")
 04546                        .HasColumnType("bigint");
 04547
 04548                    b.Property<DateTime>("CreationDateTime")
 04549                        .HasColumnType("timestamp without time zone");
 04550
 04551                    b.Property<DateTime>("DtCreated")
 04552                        .HasColumnType("timestamp without time zone");
 04553
 04554                    b.Property<string>("Entity")
 04555                        .IsRequired()
 04556                        .HasColumnType("text");
 04557
 04558                    b.Property<long>("EventsKindId")
 04559                        .HasColumnType("bigint");
 04560
 04561                    b.Property<Guid>("GUID")
 04562                        .ValueGeneratedOnAdd()
 04563                        .HasColumnType("uuid");
 04564
 04565                    b.Property<bool>("IsDeleted")
 04566                        .HasColumnType("boolean");
 04567
 04568                    b.Property<DateTime?>("ModificationDateTime")
 04569                        .HasColumnType("timestamp without time zone");
 04570
 04571                    b.Property<long?>("ModifiedByUserId")
 04572                        .HasColumnType("bigint");
 04573
 04574                    b.Property<string>("ReasonJson")
 04575                        .HasColumnType("jsonb");
 04576
 04577                    b.Property<long?>("RecStateId")
 04578                        .HasColumnType("bigint");
 04579
 04580                    b.Property<Guid>("RecordGuid")
 04581                        .HasColumnType("uuid");
 04582
 04583                    b.Property<long>("UserId")
 04584                        .HasColumnType("bigint");
 04585
 04586                    b.HasKey("Id");
 04587
 04588                    b.HasIndex("CreatedByUserId");
 04589
 04590                    b.HasIndex("Entity");
 04591
 04592                    b.HasIndex("EventsKindId");
 04593
 04594                    b.HasIndex("ModifiedByUserId");
 04595
 04596                    b.HasIndex("ReasonJson");
 04597
 04598                    b.HasIndex("RecStateId");
 04599
 04600                    b.HasIndex("UserId");
 04601
 04602                    b.ToTable("Events");
 04603                });
 4604
 04605            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.EventsKind", b =>
 04606                {
 04607                    b.Property<long>("Id")
 04608                        .ValueGeneratedOnAdd()
 04609                        .HasColumnType("bigint")
 04610                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04611
 04612                    b.Property<string>("Code")
 04613                        .IsRequired()
 04614                        .HasColumnType("text");
 04615
 04616                    b.Property<long?>("CreatedByUserId")
 04617                        .HasColumnType("bigint");
 04618
 04619                    b.Property<DateTime>("CreationDateTime")
 04620                        .HasColumnType("timestamp without time zone");
 04621
 04622                    b.Property<string>("Description")
 04623                        .HasColumnType("text");
 04624
 04625                    b.Property<Guid>("GUID")
 04626                        .ValueGeneratedOnAdd()
 04627                        .HasColumnType("uuid");
 04628
 04629                    b.Property<bool>("IsDeleted")
 04630                        .HasColumnType("boolean");
 04631
 04632                    b.Property<DateTime?>("ModificationDateTime")
 04633                        .HasColumnType("timestamp without time zone");
 04634
 04635                    b.Property<long?>("ModifiedByUserId")
 04636                        .HasColumnType("bigint");
 04637
 04638                    b.Property<string>("Name")
 04639                        .IsRequired()
 04640                        .HasColumnType("text");
 04641
 04642                    b.Property<long?>("RecStateId")
 04643                        .HasColumnType("bigint");
 04644
 04645                    b.HasKey("Id");
 04646
 04647                    b.HasIndex("CreatedByUserId");
 04648
 04649                    b.HasIndex("ModifiedByUserId");
 04650
 04651                    b.HasIndex("RecStateId");
 04652
 04653                    b.ToTable("EventsKind");
 04654
 04655                    b.HasData(
 04656                        new
 04657                        {
 04658                            Id = 1L,
 04659                            Code = "Unknown",
 04660                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04661                            Description = "",
 04662                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04663                            IsDeleted = false,
 04664                            Name = "Неизвестно"
 04665                        },
 04666                        new
 04667                        {
 04668                            Id = 2L,
 04669                            Code = "Create",
 04670                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04671                            Description = "",
 04672                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04673                            IsDeleted = false,
 04674                            Name = "Создание"
 04675                        },
 04676                        new
 04677                        {
 04678                            Id = 3L,
 04679                            Code = "Update",
 04680                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04681                            Description = "",
 04682                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04683                            IsDeleted = false,
 04684                            Name = "Обновление"
 04685                        },
 04686                        new
 04687                        {
 04688                            Id = 4L,
 04689                            Code = "Delete",
 04690                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04691                            Description = "",
 04692                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04693                            IsDeleted = false,
 04694                            Name = "Удаление"
 04695                        });
 04696                });
 4697
 04698            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ExchangeToken", b =>
 04699                {
 04700                    b.Property<long>("Id")
 04701                        .ValueGeneratedOnAdd()
 04702                        .HasColumnType("bigint")
 04703                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04704
 04705                    b.Property<long>("ContragentId")
 04706                        .HasColumnType("bigint");
 04707
 04708                    b.Property<long?>("CreatedByUserId")
 04709                        .HasColumnType("bigint");
 04710
 04711                    b.Property<DateTime>("CreationDateTime")
 04712                        .HasColumnType("timestamp without time zone");
 04713
 04714                    b.Property<Guid>("GUID")
 04715                        .ValueGeneratedOnAdd()
 04716                        .HasColumnType("uuid");
 04717
 04718                    b.Property<bool>("IsDeleted")
 04719                        .HasColumnType("boolean");
 04720
 04721                    b.Property<DateTime?>("ModificationDateTime")
 04722                        .HasColumnType("timestamp without time zone");
 04723
 04724                    b.Property<long?>("ModifiedByUserId")
 04725                        .HasColumnType("bigint");
 04726
 04727                    b.Property<long?>("RecStateId")
 04728                        .HasColumnType("bigint");
 04729
 04730                    b.HasKey("Id");
 04731
 04732                    b.HasIndex("ContragentId");
 04733
 04734                    b.HasIndex("CreatedByUserId");
 04735
 04736                    b.HasIndex("ModifiedByUserId");
 04737
 04738                    b.HasIndex("RecStateId");
 04739
 04740                    b.ToTable("ExchangeTokens");
 04741                });
 4742
 04743            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", b =>
 04744                {
 04745                    b.Property<long>("Id")
 04746                        .ValueGeneratedOnAdd()
 04747                        .HasColumnType("bigint")
 04748                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04749
 04750                    b.Property<long?>("BrandId")
 04751                        .HasColumnType("bigint");
 04752
 04753                    b.Property<long>("CategoryId")
 04754                        .HasColumnType("bigint");
 04755
 04756                    b.Property<string>("ConformityCertNumber")
 04757                        .IsRequired()
 04758                        .HasColumnType("text");
 04759
 04760                    b.Property<long?>("CountryId")
 04761                        .HasColumnType("bigint");
 04762
 04763                    b.Property<long?>("CreatedByUserId")
 04764                        .HasColumnType("bigint");
 04765
 04766                    b.Property<DateTime>("CreationDateTime")
 04767                        .HasColumnType("timestamp without time zone");
 04768
 04769                    b.Property<string>("CustomDeclarationNumber")
 04770                        .IsRequired()
 04771                        .HasColumnType("text");
 04772
 04773                    b.Property<int>("ExpirationDays")
 04774                        .HasColumnType("integer");
 04775
 04776                    b.Property<Guid>("GUID")
 04777                        .ValueGeneratedOnAdd()
 04778                        .HasColumnType("uuid");
 04779
 04780                    b.Property<decimal>("GroupPackHeight")
 04781                        .HasColumnType("numeric");
 04782
 04783                    b.Property<int>("GroupPackNesting")
 04784                        .HasColumnType("integer");
 04785
 04786                    b.Property<decimal>("GroupPackThickness")
 04787                        .HasColumnType("numeric");
 04788
 04789                    b.Property<decimal>("GroupPackWidth")
 04790                        .HasColumnType("numeric");
 04791
 04792                    b.Property<decimal>("Height")
 04793                        .HasColumnType("numeric");
 04794
 04795                    b.Property<bool>("IsDeleted")
 04796                        .HasColumnType("boolean");
 04797
 04798                    b.Property<long>("MainBarcodeId")
 04799                        .HasColumnType("bigint");
 04800
 04801                    b.Property<long?>("ManufacturerId")
 04802                        .HasColumnType("bigint");
 04803
 04804                    b.Property<decimal>("MinDeliveryLot")
 04805                        .HasColumnType("numeric");
 04806
 04807                    b.Property<DateTime?>("ModificationDateTime")
 04808                        .HasColumnType("timestamp without time zone");
 04809
 04810                    b.Property<long?>("ModifiedByUserId")
 04811                        .HasColumnType("bigint");
 04812
 04813                    b.Property<string>("Name")
 04814                        .IsRequired()
 04815                        .HasColumnType("text");
 04816
 04817                    b.Property<int>("PalletNesting")
 04818                        .HasColumnType("integer");
 04819
 04820                    b.Property<long?>("RecStateId")
 04821                        .HasColumnType("bigint");
 04822
 04823                    b.Property<long?>("SubBrandId")
 04824                        .HasColumnType("bigint");
 04825
 04826                    b.Property<long?>("SupplierId")
 04827                        .HasColumnType("bigint");
 04828
 04829                    b.Property<decimal>("Thickness")
 04830                        .HasColumnType("numeric");
 04831
 04832                    b.Property<long>("UnitsKindId")
 04833                        .HasColumnType("bigint");
 04834
 04835                    b.Property<long>("VatsKindId")
 04836                        .HasColumnType("bigint");
 04837
 04838                    b.Property<string>("VendorCode")
 04839                        .IsRequired()
 04840                        .HasColumnType("text");
 04841
 04842                    b.Property<decimal>("Weight")
 04843                        .HasColumnType("numeric");
 04844
 04845                    b.Property<decimal>("Width")
 04846                        .HasColumnType("numeric");
 04847
 04848                    b.HasKey("Id");
 04849
 04850                    b.HasIndex("BrandId");
 04851
 04852                    b.HasIndex("CategoryId");
 04853
 04854                    b.HasIndex("CountryId");
 04855
 04856                    b.HasIndex("CreatedByUserId");
 04857
 04858                    b.HasIndex("MainBarcodeId");
 04859
 04860                    b.HasIndex("ManufacturerId");
 04861
 04862                    b.HasIndex("ModifiedByUserId");
 04863
 04864                    b.HasIndex("Name");
 04865
 04866                    b.HasIndex("RecStateId");
 04867
 04868                    b.HasIndex("SubBrandId");
 04869
 04870                    b.HasIndex("SupplierId");
 04871
 04872                    b.HasIndex("UnitsKindId");
 04873
 04874                    b.HasIndex("VatsKindId");
 04875
 04876                    b.ToTable("Goods");
 04877                });
 4878
 04879            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Incident", b =>
 04880                {
 04881                    b.Property<long>("Id")
 04882                        .ValueGeneratedOnAdd()
 04883                        .HasColumnType("bigint")
 04884                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04885
 04886                    b.Property<string>("Body")
 04887                        .HasColumnType("text");
 04888
 04889                    b.Property<long?>("CreatedByUserId")
 04890                        .HasColumnType("bigint");
 04891
 04892                    b.Property<DateTime>("CreationDateTime")
 04893                        .HasColumnType("timestamp without time zone");
 04894
 04895                    b.Property<DateTime>("DtCreated")
 04896                        .HasColumnType("timestamp without time zone");
 04897
 04898                    b.Property<Guid>("GUID")
 04899                        .ValueGeneratedOnAdd()
 04900                        .HasColumnType("uuid");
 04901
 04902                    b.Property<bool>("IsDeleted")
 04903                        .HasColumnType("boolean");
 04904
 04905                    b.Property<long?>("KindId")
 04906                        .HasColumnType("bigint");
 04907
 04908                    b.Property<DateTime?>("ModificationDateTime")
 04909                        .HasColumnType("timestamp without time zone");
 04910
 04911                    b.Property<long?>("ModifiedByUserId")
 04912                        .HasColumnType("bigint");
 04913
 04914                    b.Property<long?>("RecStateId")
 04915                        .HasColumnType("bigint");
 04916
 04917                    b.Property<long?>("StatusId")
 04918                        .HasColumnType("bigint");
 04919
 04920                    b.Property<string>("Subject")
 04921                        .HasColumnType("text");
 04922
 04923                    b.Property<string>("Ticket")
 04924                        .HasColumnType("text");
 04925
 04926                    b.Property<long>("UserId")
 04927                        .HasColumnType("bigint");
 04928
 04929                    b.HasKey("Id");
 04930
 04931                    b.HasIndex("CreatedByUserId");
 04932
 04933                    b.HasIndex("KindId");
 04934
 04935                    b.HasIndex("ModifiedByUserId");
 04936
 04937                    b.HasIndex("RecStateId");
 04938
 04939                    b.HasIndex("StatusId");
 04940
 04941                    b.HasIndex("UserId");
 04942
 04943                    b.ToTable("Incidents");
 04944                });
 4945
 04946            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsKind", b =>
 04947                {
 04948                    b.Property<long>("Id")
 04949                        .ValueGeneratedOnAdd()
 04950                        .HasColumnType("bigint")
 04951                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04952
 04953                    b.Property<string>("Code")
 04954                        .IsRequired()
 04955                        .HasColumnType("text");
 04956
 04957                    b.Property<long?>("CreatedByUserId")
 04958                        .HasColumnType("bigint");
 04959
 04960                    b.Property<DateTime>("CreationDateTime")
 04961                        .HasColumnType("timestamp without time zone");
 04962
 04963                    b.Property<string>("Description")
 04964                        .HasColumnType("text");
 04965
 04966                    b.Property<Guid>("GUID")
 04967                        .ValueGeneratedOnAdd()
 04968                        .HasColumnType("uuid");
 04969
 04970                    b.Property<bool>("IsDeleted")
 04971                        .HasColumnType("boolean");
 04972
 04973                    b.Property<DateTime?>("ModificationDateTime")
 04974                        .HasColumnType("timestamp without time zone");
 04975
 04976                    b.Property<long?>("ModifiedByUserId")
 04977                        .HasColumnType("bigint");
 04978
 04979                    b.Property<string>("Name")
 04980                        .IsRequired()
 04981                        .HasColumnType("text");
 04982
 04983                    b.Property<long?>("RecStateId")
 04984                        .HasColumnType("bigint");
 04985
 04986                    b.HasKey("Id");
 04987
 04988                    b.HasIndex("CreatedByUserId");
 04989
 04990                    b.HasIndex("ModifiedByUserId");
 04991
 04992                    b.HasIndex("RecStateId");
 04993
 04994                    b.ToTable("IncidentsKind");
 04995
 04996                    b.HasData(
 04997                        new
 04998                        {
 04999                            Id = 1L,
 05000                            Code = "Unknown",
 05001                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05002                            Description = "",
 05003                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05004                            IsDeleted = false,
 05005                            Name = "Неизвестно"
 05006                        },
 05007                        new
 05008                        {
 05009                            Id = 2L,
 05010                            Code = "Error",
 05011                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05012                            Description = "",
 05013                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05014                            IsDeleted = false,
 05015                            Name = "Ошибка"
 05016                        },
 05017                        new
 05018                        {
 05019                            Id = 3L,
 05020                            Code = "Question",
 05021                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05022                            Description = "",
 05023                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05024                            IsDeleted = false,
 05025                            Name = "Вопрос"
 05026                        },
 05027                        new
 05028                        {
 05029                            Id = 4L,
 05030                            Code = "Suggestion",
 05031                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05032                            Description = "",
 05033                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05034                            IsDeleted = false,
 05035                            Name = "Предложение"
 05036                        });
 05037                });
 5038
 05039            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsStatus", b =>
 05040                {
 05041                    b.Property<long>("Id")
 05042                        .ValueGeneratedOnAdd()
 05043                        .HasColumnType("bigint")
 05044                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05045
 05046                    b.Property<string>("Code")
 05047                        .IsRequired()
 05048                        .HasColumnType("text");
 05049
 05050                    b.Property<long?>("CreatedByUserId")
 05051                        .HasColumnType("bigint");
 05052
 05053                    b.Property<DateTime>("CreationDateTime")
 05054                        .HasColumnType("timestamp without time zone");
 05055
 05056                    b.Property<string>("Description")
 05057                        .HasColumnType("text");
 05058
 05059                    b.Property<Guid>("GUID")
 05060                        .ValueGeneratedOnAdd()
 05061                        .HasColumnType("uuid");
 05062
 05063                    b.Property<bool>("IsDeleted")
 05064                        .HasColumnType("boolean");
 05065
 05066                    b.Property<DateTime?>("ModificationDateTime")
 05067                        .HasColumnType("timestamp without time zone");
 05068
 05069                    b.Property<long?>("ModifiedByUserId")
 05070                        .HasColumnType("bigint");
 05071
 05072                    b.Property<string>("Name")
 05073                        .IsRequired()
 05074                        .HasColumnType("text");
 05075
 05076                    b.Property<long?>("RecStateId")
 05077                        .HasColumnType("bigint");
 05078
 05079                    b.HasKey("Id");
 05080
 05081                    b.HasIndex("CreatedByUserId");
 05082
 05083                    b.HasIndex("ModifiedByUserId");
 05084
 05085                    b.HasIndex("RecStateId");
 05086
 05087                    b.ToTable("IncidentsStatus");
 05088
 05089                    b.HasData(
 05090                        new
 05091                        {
 05092                            Id = 1L,
 05093                            Code = "Open",
 05094                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05095                            Description = "",
 05096                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05097                            IsDeleted = false,
 05098                            Name = "Открыт"
 05099                        },
 05100                        new
 05101                        {
 05102                            Id = 2L,
 05103                            Code = "InWork",
 05104                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05105                            Description = "",
 05106                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05107                            IsDeleted = false,
 05108                            Name = "В работе"
 05109                        },
 05110                        new
 05111                        {
 05112                            Id = 3L,
 05113                            Code = "Resolved",
 05114                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05115                            Description = "",
 05116                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05117                            IsDeleted = false,
 05118                            Name = "Решен"
 05119                        },
 05120                        new
 05121                        {
 05122                            Id = 4L,
 05123                            Code = "Canceled",
 05124                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05125                            Description = "",
 05126                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05127                            IsDeleted = false,
 05128                            Name = "Отменен"
 05129                        },
 05130                        new
 05131                        {
 05132                            Id = 5L,
 05133                            Code = "Closed",
 05134                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05135                            Description = "",
 05136                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05137                            IsDeleted = false,
 05138                            Name = "Закрыт"
 05139                        });
 05140                });
 5141
 05142            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.JobLogger", b =>
 05143                {
 05144                    b.Property<long>("Id")
 05145                        .ValueGeneratedOnAdd()
 05146                        .HasColumnType("bigint")
 05147                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05148
 05149                    b.Property<long?>("CreatedByUserId")
 05150                        .HasColumnType("bigint");
 05151
 05152                    b.Property<DateTime>("CreationDateTime")
 05153                        .HasColumnType("timestamp without time zone");
 05154
 05155                    b.Property<Guid>("GUID")
 05156                        .ValueGeneratedOnAdd()
 05157                        .HasColumnType("uuid");
 05158
 05159                    b.Property<bool>("IsDeleted")
 05160                        .HasColumnType("boolean");
 05161
 05162                    b.Property<string>("JobName")
 05163                        .HasColumnType("text");
 05164
 05165                    b.Property<string>("Log")
 05166                        .HasColumnType("text");
 05167
 05168                    b.Property<string>("LogLevel")
 05169                        .HasColumnType("text");
 05170
 05171                    b.Property<DateTime?>("ModificationDateTime")
 05172                        .HasColumnType("timestamp without time zone");
 05173
 05174                    b.Property<long?>("ModifiedByUserId")
 05175                        .HasColumnType("bigint");
 05176
 05177                    b.Property<long?>("RecStateId")
 05178                        .HasColumnType("bigint");
 05179
 05180                    b.HasKey("Id");
 05181
 05182                    b.HasIndex("CreatedByUserId");
 05183
 05184                    b.HasIndex("ModifiedByUserId");
 05185
 05186                    b.HasIndex("RecStateId");
 05187
 05188                    b.ToTable("JobLoggers");
 05189                });
 5190
 05191            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MethodRole", b =>
 05192                {
 05193                    b.Property<long>("RoleId")
 05194                        .HasColumnType("bigint");
 05195
 05196                    b.Property<long>("MethodId")
 05197                        .HasColumnType("bigint");
 05198
 05199                    b.Property<long?>("CreatedByUserId")
 05200                        .HasColumnType("bigint");
 05201
 05202                    b.Property<DateTime>("CreationDateTime")
 05203                        .HasColumnType("timestamp without time zone");
 05204
 05205                    b.Property<Guid>("GUID")
 05206                        .ValueGeneratedOnAdd()
 05207                        .HasColumnType("uuid");
 05208
 05209                    b.HasKey("RoleId", "MethodId");
 05210
 05211                    b.HasIndex("MethodId");
 05212
 05213                    b.ToTable("MethodRole");
 05214                });
 5215
 05216            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Methods", b =>
 05217                {
 05218                    b.Property<long>("Id")
 05219                        .ValueGeneratedOnAdd()
 05220                        .HasColumnType("bigint")
 05221                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05222
 05223                    b.Property<long?>("CreatedByUserId")
 05224                        .HasColumnType("bigint");
 05225
 05226                    b.Property<DateTime>("CreationDateTime")
 05227                        .HasColumnType("timestamp without time zone");
 05228
 05229                    b.Property<string>("Description")
 05230                        .HasColumnType("text");
 05231
 05232                    b.Property<Guid>("GUID")
 05233                        .ValueGeneratedOnAdd()
 05234                        .HasColumnType("uuid");
 05235
 05236                    b.Property<bool>("IsDeleted")
 05237                        .HasColumnType("boolean");
 05238
 05239                    b.Property<string>("MethodName")
 05240                        .IsRequired()
 05241                        .HasColumnType("text");
 05242
 05243                    b.Property<DateTime?>("ModificationDateTime")
 05244                        .HasColumnType("timestamp without time zone");
 05245
 05246                    b.Property<long?>("ModifiedByUserId")
 05247                        .HasColumnType("bigint");
 05248
 05249                    b.Property<long?>("RecStateId")
 05250                        .HasColumnType("bigint");
 05251
 05252                    b.HasKey("Id");
 05253
 05254                    b.HasIndex("CreatedByUserId");
 05255
 05256                    b.HasIndex("ModifiedByUserId");
 05257
 05258                    b.HasIndex("RecStateId");
 05259
 05260                    b.ToTable("Methods");
 05261                });
 5262
 05263            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", b =>
 05264                {
 05265                    b.Property<long>("Id")
 05266                        .ValueGeneratedOnAdd()
 05267                        .HasColumnType("bigint")
 05268                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05269
 05270                    b.Property<long?>("CreatedByUserId")
 05271                        .HasColumnType("bigint");
 05272
 05273                    b.Property<DateTime>("CreationDateTime")
 05274                        .HasColumnType("timestamp without time zone");
 05275
 05276                    b.Property<long>("CustomerId")
 05277                        .HasColumnType("bigint");
 05278
 05279                    b.Property<string>("DocumentNumber")
 05280                        .IsRequired()
 05281                        .HasColumnType("text");
 05282
 05283                    b.Property<DateTime>("DtCreated")
 05284                        .HasColumnType("timestamp without time zone");
 05285
 05286                    b.Property<Guid>("GUID")
 05287                        .ValueGeneratedOnAdd()
 05288                        .HasColumnType("uuid");
 05289
 05290                    b.Property<bool>("IsDeleted")
 05291                        .HasColumnType("boolean");
 05292
 05293                    b.Property<DateTime?>("ModificationDateTime")
 05294                        .HasColumnType("timestamp without time zone");
 05295
 05296                    b.Property<long?>("ModifiedByUserId")
 05297                        .HasColumnType("bigint");
 05298
 05299                    b.Property<long>("MovementStatusId")
 05300                        .HasColumnType("bigint");
 05301
 05302                    b.Property<long>("MovementTypeId")
 05303                        .HasColumnType("bigint");
 05304
 05305                    b.Property<long?>("ParentId")
 05306                        .HasColumnType("bigint");
 05307
 05308                    b.Property<decimal>("PrepaimentPercent")
 05309                        .HasColumnType("numeric");
 05310
 05311                    b.Property<decimal>("PrepaimentSum")
 05312                        .HasColumnType("numeric");
 05313
 05314                    b.Property<long?>("RecStateId")
 05315                        .HasColumnType("bigint");
 05316
 05317                    b.Property<long>("ReceiverId")
 05318                        .HasColumnType("bigint");
 05319
 05320                    b.Property<long?>("SenderId")
 05321                        .HasColumnType("bigint");
 05322
 05323                    b.Property<long>("SupplierId")
 05324                        .HasColumnType("bigint");
 05325
 05326                    b.Property<DateTime?>("SupplierTransferDate")
 05327                        .HasColumnType("timestamp without time zone");
 05328
 05329                    b.HasKey("Id");
 05330
 05331                    b.HasIndex("CreatedByUserId");
 05332
 05333                    b.HasIndex("CustomerId");
 05334
 05335                    b.HasIndex("ModifiedByUserId");
 05336
 05337                    b.HasIndex("MovementStatusId");
 05338
 05339                    b.HasIndex("MovementTypeId");
 05340
 05341                    b.HasIndex("ParentId");
 05342
 05343                    b.HasIndex("RecStateId");
 05344
 05345                    b.HasIndex("ReceiverId");
 05346
 05347                    b.HasIndex("SenderId");
 05348
 05349                    b.HasIndex("SupplierId");
 05350
 05351                    b.ToTable("Movements");
 05352                });
 5353
 05354            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementItem", b =>
 05355                {
 05356                    b.Property<long>("Id")
 05357                        .ValueGeneratedOnAdd()
 05358                        .HasColumnType("bigint")
 05359                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05360
 05361                    b.Property<string>("Comment")
 05362                        .HasColumnType("text");
 05363
 05364                    b.Property<long?>("CreatedByUserId")
 05365                        .HasColumnType("bigint");
 05366
 05367                    b.Property<DateTime>("CreationDateTime")
 05368                        .HasColumnType("timestamp without time zone");
 05369
 05370                    b.Property<Guid>("GUID")
 05371                        .ValueGeneratedOnAdd()
 05372                        .HasColumnType("uuid");
 05373
 05374                    b.Property<long>("GoodId")
 05375                        .HasColumnType("bigint");
 05376
 05377                    b.Property<bool>("IsDeleted")
 05378                        .HasColumnType("boolean");
 05379
 05380                    b.Property<DateTime?>("ModificationDateTime")
 05381                        .HasColumnType("timestamp without time zone");
 05382
 05383                    b.Property<long?>("ModifiedByUserId")
 05384                        .HasColumnType("bigint");
 05385
 05386                    b.Property<long?>("MovementId")
 05387                        .HasColumnType("bigint");
 05388
 05389                    b.Property<decimal>("Price")
 05390                        .HasColumnType("numeric");
 05391
 05392                    b.Property<decimal>("Quantity")
 05393                        .HasColumnType("numeric");
 05394
 05395                    b.Property<long?>("RecStateId")
 05396                        .HasColumnType("bigint");
 05397
 05398                    b.HasKey("Id");
 05399
 05400                    b.HasIndex("CreatedByUserId");
 05401
 05402                    b.HasIndex("GoodId");
 05403
 05404                    b.HasIndex("ModifiedByUserId");
 05405
 05406                    b.HasIndex("MovementId");
 05407
 05408                    b.HasIndex("RecStateId");
 05409
 05410                    b.ToTable("MovementItems");
 05411                });
 5412
 05413            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementNote", b =>
 05414                {
 05415                    b.Property<long>("Id")
 05416                        .ValueGeneratedOnAdd()
 05417                        .HasColumnType("bigint")
 05418                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05419
 05420                    b.Property<string>("Body")
 05421                        .IsRequired()
 05422                        .HasColumnType("text");
 05423
 05424                    b.Property<long?>("CreatedByUserId")
 05425                        .HasColumnType("bigint");
 05426
 05427                    b.Property<DateTime>("CreationDateTime")
 05428                        .HasColumnType("timestamp without time zone");
 05429
 05430                    b.Property<Guid>("GUID")
 05431                        .ValueGeneratedOnAdd()
 05432                        .HasColumnType("uuid");
 05433
 05434                    b.Property<bool>("IsDeleted")
 05435                        .HasColumnType("boolean");
 05436
 05437                    b.Property<DateTime?>("ModificationDateTime")
 05438                        .HasColumnType("timestamp without time zone");
 05439
 05440                    b.Property<long?>("ModifiedByUserId")
 05441                        .HasColumnType("bigint");
 05442
 05443                    b.Property<long?>("MovementId")
 05444                        .HasColumnType("bigint");
 05445
 05446                    b.Property<long?>("RecStateId")
 05447                        .HasColumnType("bigint");
 05448
 05449                    b.HasKey("Id");
 05450
 05451                    b.HasIndex("CreatedByUserId");
 05452
 05453                    b.HasIndex("ModifiedByUserId");
 05454
 05455                    b.HasIndex("MovementId");
 05456
 05457                    b.HasIndex("RecStateId");
 05458
 05459                    b.ToTable("MovementNotes");
 05460                });
 5461
 05462            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementRouteAction", b =>
 05463                {
 05464                    b.Property<long>("Id")
 05465                        .ValueGeneratedOnAdd()
 05466                        .HasColumnType("bigint")
 05467                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05468
 05469                    b.Property<string>("Action")
 05470                        .HasColumnType("text");
 05471
 05472                    b.Property<string>("Caption")
 05473                        .HasColumnType("text");
 05474
 05475                    b.Property<string>("Code")
 05476                        .HasColumnType("text");
 05477
 05478                    b.Property<long?>("CreatedByUserId")
 05479                        .HasColumnType("bigint");
 05480
 05481                    b.Property<DateTime>("CreationDateTime")
 05482                        .HasColumnType("timestamp without time zone");
 05483
 05484                    b.Property<Guid>("GUID")
 05485                        .ValueGeneratedOnAdd()
 05486                        .HasColumnType("uuid");
 05487
 05488                    b.Property<bool>("IsDeleted")
 05489                        .HasColumnType("boolean");
 05490
 05491                    b.Property<DateTime?>("ModificationDateTime")
 05492                        .HasColumnType("timestamp without time zone");
 05493
 05494                    b.Property<long?>("ModifiedByUserId")
 05495                        .HasColumnType("bigint");
 05496
 05497                    b.Property<long>("OwnerActionId")
 05498                        .HasColumnType("bigint");
 05499
 05500                    b.Property<long?>("RecStateId")
 05501                        .HasColumnType("bigint");
 05502
 05503                    b.Property<long>("StatusId")
 05504                        .HasColumnType("bigint");
 05505
 05506                    b.Property<string>("Type")
 05507                        .HasColumnType("text");
 05508
 05509                    b.HasKey("Id");
 05510
 05511                    b.HasIndex("CreatedByUserId");
 05512
 05513                    b.HasIndex("ModifiedByUserId");
 05514
 05515                    b.HasIndex("OwnerActionId");
 05516
 05517                    b.HasIndex("RecStateId");
 05518
 05519                    b.HasIndex("StatusId");
 05520
 05521                    b.ToTable("MovementRouteActions");
 05522
 05523                    b.HasData(
 05524                        new
 05525                        {
 05526                            Id = 1L,
 05527                            Action = "Orders/{id}/DownloadOrderToFile",
 05528                            Caption = "Скачать CSV",
 05529                            Code = "Csv",
 05530                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05531                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05532                            IsDeleted = false,
 05533                            OwnerActionId = 1L,
 05534                            StatusId = 1L,
 05535                            Type = "GET"
 05536                        },
 05537                        new
 05538                        {
 05539                            Id = 2L,
 05540                            Action = "Orders/{id}",
 05541                            Caption = "Изменить",
 05542                            Code = "Edit",
 05543                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05544                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05545                            IsDeleted = false,
 05546                            OwnerActionId = 1L,
 05547                            StatusId = 1L,
 05548                            Type = "GET"
 05549                        },
 05550                        new
 05551                        {
 05552                            Id = 3L,
 05553                            Action = "Orders/{id}",
 05554                            Caption = "Удалить",
 05555                            Code = "Delete",
 05556                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05557                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05558                            IsDeleted = false,
 05559                            OwnerActionId = 1L,
 05560                            StatusId = 1L,
 05561                            Type = "DELETE"
 05562                        },
 05563                        new
 05564                        {
 05565                            Id = 4L,
 05566                            Action = "Orders/{id}/Send",
 05567                            Caption = "Отправить заявку",
 05568                            Code = "Send",
 05569                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05570                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05571                            IsDeleted = false,
 05572                            OwnerActionId = 1L,
 05573                            StatusId = 1L,
 05574                            Type = "POST"
 05575                        },
 05576                        new
 05577                        {
 05578                            Id = 5L,
 05579                            Action = "Orders/{id}/DownloadOrderToFile",
 05580                            Caption = "Скачать CSV",
 05581                            Code = "Csv",
 05582                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05583                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05584                            IsDeleted = false,
 05585                            OwnerActionId = 1L,
 05586                            StatusId = 2L,
 05587                            Type = "GET"
 05588                        },
 05589                        new
 05590                        {
 05591                            Id = 6L,
 05592                            Action = "Orders/{id}/Clone",
 05593                            Caption = "Создать копию",
 05594                            Code = "Clone",
 05595                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05596                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05597                            IsDeleted = false,
 05598                            OwnerActionId = 1L,
 05599                            StatusId = 2L,
 05600                            Type = "POST"
 05601                        },
 05602                        new
 05603                        {
 05604                            Id = 7L,
 05605                            Action = "Orders/{id}/Reject",
 05606                            Caption = "Отказаться",
 05607                            Code = "Reject",
 05608                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05609                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05610                            IsDeleted = false,
 05611                            OwnerActionId = 1L,
 05612                            StatusId = 2L,
 05613                            Type = "POST"
 05614                        },
 05615                        new
 05616                        {
 05617                            Id = 8L,
 05618                            Action = "Shipments/{id}",
 05619                            Caption = "Принять",
 05620                            Code = "Confirm",
 05621                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05622                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05623                            IsDeleted = false,
 05624                            OwnerActionId = 3L,
 05625                            StatusId = 2L,
 05626                            Type = "POST"
 05627                        },
 05628                        new
 05629                        {
 05630                            Id = 85L,
 05631                            Action = "Orders/{id}/PlatformReject",
 05632                            Caption = "Отказать",
 05633                            Code = "RejectByPlatform",
 05634                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05635                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05636                            IsDeleted = false,
 05637                            OwnerActionId = 3L,
 05638                            StatusId = 2L,
 05639                            Type = "POST"
 05640                        },
 05641                        new
 05642                        {
 05643                            Id = 9L,
 05644                            Action = "Orders/{id}/DownloadOrderToFile",
 05645                            Caption = "Скачать CSV",
 05646                            Code = "Csv",
 05647                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05648                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05649                            IsDeleted = false,
 05650                            OwnerActionId = 3L,
 05651                            StatusId = 2L,
 05652                            Type = "GET"
 05653                        },
 05654                        new
 05655                        {
 05656                            Id = 10L,
 05657                            Action = "Orders/{id}/DownloadOrderToFile",
 05658                            Caption = "Скачать CSV",
 05659                            Code = "Csv",
 05660                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05661                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05662                            IsDeleted = false,
 05663                            OwnerActionId = 1L,
 05664                            StatusId = 3L,
 05665                            Type = "GET"
 05666                        },
 05667                        new
 05668                        {
 05669                            Id = 11L,
 05670                            Action = "Orders/{id}/Clone",
 05671                            Caption = "Создать копию",
 05672                            Code = "Clone",
 05673                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05674                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05675                            IsDeleted = false,
 05676                            OwnerActionId = 1L,
 05677                            StatusId = 3L,
 05678                            Type = "POST"
 05679                        },
 05680                        new
 05681                        {
 05682                            Id = 86L,
 05683                            Action = "Orders/{id}/Reject",
 05684                            Caption = "Отказаться",
 05685                            Code = "Reject",
 05686                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05687                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05688                            IsDeleted = false,
 05689                            OwnerActionId = 1L,
 05690                            StatusId = 3L,
 05691                            Type = "POST"
 05692                        },
 05693                        new
 05694                        {
 05695                            Id = 12L,
 05696                            Action = "Orders/{id}/DownloadOrderToFile",
 05697                            Caption = "Скачать CSV",
 05698                            Code = "Csv",
 05699                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05700                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05701                            IsDeleted = false,
 05702                            OwnerActionId = 1L,
 05703                            StatusId = 4L,
 05704                            Type = "GET"
 05705                        },
 05706                        new
 05707                        {
 05708                            Id = 13L,
 05709                            Action = "Orders/{id}/Clone",
 05710                            Caption = "Создать копию",
 05711                            Code = "Clone",
 05712                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05713                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05714                            IsDeleted = false,
 05715                            OwnerActionId = 1L,
 05716                            StatusId = 4L,
 05717                            Type = "POST"
 05718                        },
 05719                        new
 05720                        {
 05721                            Id = 87L,
 05722                            Action = "Orders/{id}/DownloadOrderToFile",
 05723                            Caption = "Скачать CSV",
 05724                            Code = "Csv",
 05725                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05726                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05727                            IsDeleted = false,
 05728                            OwnerActionId = 3L,
 05729                            StatusId = 4L,
 05730                            Type = "GET"
 05731                        },
 05732                        new
 05733                        {
 05734                            Id = 14L,
 05735                            Action = "Orders/{id}/DownloadOrderToFile",
 05736                            Caption = "Скачать CSV",
 05737                            Code = "Csv",
 05738                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05739                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05740                            IsDeleted = false,
 05741                            OwnerActionId = 1L,
 05742                            StatusId = 5L,
 05743                            Type = "GET"
 05744                        },
 05745                        new
 05746                        {
 05747                            Id = 15L,
 05748                            Action = "Orders/{id}/Clone",
 05749                            Caption = "Создать копию",
 05750                            Code = "Clone",
 05751                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05752                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05753                            IsDeleted = false,
 05754                            OwnerActionId = 1L,
 05755                            StatusId = 5L,
 05756                            Type = "POST"
 05757                        },
 05758                        new
 05759                        {
 05760                            Id = 16L,
 05761                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05762                            Caption = "Скачать CSV",
 05763                            Code = "Csv",
 05764                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05765                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05766                            IsDeleted = false,
 05767                            OwnerActionId = 2L,
 05768                            StatusId = 6L,
 05769                            Type = "GET"
 05770                        },
 05771                        new
 05772                        {
 05773                            Id = 17L,
 05774                            Action = "Shipments/{id}/PaymentReserve",
 05775                            Caption = "Принять",
 05776                            Code = "PaymentReserve",
 05777                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05778                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05779                            IsDeleted = false,
 05780                            OwnerActionId = 2L,
 05781                            StatusId = 6L,
 05782                            Type = "POST"
 05783                        },
 05784                        new
 05785                        {
 05786                            Id = 83L,
 05787                            Action = "Shipments/{id}/SupplierReject",
 05788                            Caption = "Отказать",
 05789                            Code = "RejectBySupplier",
 05790                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05791                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05792                            IsDeleted = false,
 05793                            OwnerActionId = 2L,
 05794                            StatusId = 6L,
 05795                            Type = "POST"
 05796                        },
 05797                        new
 05798                        {
 05799                            Id = 18L,
 05800                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05801                            Caption = "Скачать CSV",
 05802                            Code = "Csv",
 05803                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05804                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05805                            IsDeleted = false,
 05806                            OwnerActionId = 3L,
 05807                            StatusId = 6L,
 05808                            Type = "GET"
 05809                        },
 05810                        new
 05811                        {
 05812                            Id = 19L,
 05813                            Action = "Shipments/{id}/Payment",
 05814                            Caption = "Оплатить",
 05815                            Code = "Payment",
 05816                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05817                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05818                            IsDeleted = false,
 05819                            OwnerActionId = 1L,
 05820                            StatusId = 8L,
 05821                            Type = "POST"
 05822                        },
 05823                        new
 05824                        {
 05825                            Id = 45L,
 05826                            Action = "Shipments/{id}/CustomerReject",
 05827                            Caption = "Отказаться",
 05828                            Code = "RejectByCustomer",
 05829                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05830                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05831                            IsDeleted = false,
 05832                            OwnerActionId = 1L,
 05833                            StatusId = 8L,
 05834                            Type = "POST"
 05835                        },
 05836                        new
 05837                        {
 05838                            Id = 20L,
 05839                            Action = "Orders/CreateOnBase",
 05840                            Caption = "Создать заявку на основе",
 05841                            Code = "CreateOnBase",
 05842                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05843                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05844                            IsDeleted = false,
 05845                            OwnerActionId = 1L,
 05846                            StatusId = 8L,
 05847                            Type = "POST"
 05848                        },
 05849                        new
 05850                        {
 05851                            Id = 21L,
 05852                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05853                            Caption = "Скачать CSV",
 05854                            Code = "Csv",
 05855                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05856                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05857                            IsDeleted = false,
 05858                            OwnerActionId = 1L,
 05859                            StatusId = 8L,
 05860                            Type = "GET"
 05861                        },
 05862                        new
 05863                        {
 05864                            Id = 22L,
 05865                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05866                            Caption = "Скачать CSV",
 05867                            Code = "Csv",
 05868                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05869                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05870                            IsDeleted = false,
 05871                            OwnerActionId = 2L,
 05872                            StatusId = 8L,
 05873                            Type = "GET"
 05874                        },
 05875                        new
 05876                        {
 05877                            Id = 23L,
 05878                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05879                            Caption = "Скачать CSV",
 05880                            Code = "Csv",
 05881                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05882                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05883                            IsDeleted = false,
 05884                            OwnerActionId = 3L,
 05885                            StatusId = 8L,
 05886                            Type = "GET"
 05887                        },
 05888                        new
 05889                        {
 05890                            Id = 24L,
 05891                            Action = "Orders/CreateOnBase",
 05892                            Caption = "Создать заявку на основе",
 05893                            Code = "CreateOnBase",
 05894                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05895                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05896                            IsDeleted = false,
 05897                            OwnerActionId = 1L,
 05898                            StatusId = 9L,
 05899                            Type = "POST"
 05900                        },
 05901                        new
 05902                        {
 05903                            Id = 25L,
 05904                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05905                            Caption = "Скачать CSV",
 05906                            Code = "Csv",
 05907                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05908                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05909                            IsDeleted = false,
 05910                            OwnerActionId = 1L,
 05911                            StatusId = 9L,
 05912                            Type = "GET"
 05913                        },
 05914                        new
 05915                        {
 05916                            Id = 88L,
 05917                            Action = "Shipments/{id}/CustomerReject",
 05918                            Caption = "Отказаться",
 05919                            Code = "RejectByCustomer",
 05920                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05921                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05922                            IsDeleted = false,
 05923                            OwnerActionId = 1L,
 05924                            StatusId = 9L,
 05925                            Type = "POST"
 05926                        },
 05927                        new
 05928                        {
 05929                            Id = 26L,
 05930                            Action = "Shipments/{id}/ReadyToShip",
 05931                            Caption = "Подготовить к выдаче",
 05932                            Code = "ReadyToShip",
 05933                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05934                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05935                            IsDeleted = false,
 05936                            OwnerActionId = 2L,
 05937                            StatusId = 9L,
 05938                            Type = "POST"
 05939                        },
 05940                        new
 05941                        {
 05942                            Id = 27L,
 05943                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05944                            Caption = "Скачать CSV",
 05945                            Code = "Csv",
 05946                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05947                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05948                            IsDeleted = false,
 05949                            OwnerActionId = 2L,
 05950                            StatusId = 9L,
 05951                            Type = "GET"
 05952                        },
 05953                        new
 05954                        {
 05955                            Id = 43L,
 05956                            Action = "Shipments/{id}/SupplierReject",
 05957                            Caption = "Отказать",
 05958                            Code = "RejectBySupplier",
 05959                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05960                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05961                            IsDeleted = false,
 05962                            OwnerActionId = 2L,
 05963                            StatusId = 9L,
 05964                            Type = "POST"
 05965                        },
 05966                        new
 05967                        {
 05968                            Id = 28L,
 05969                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05970                            Caption = "Скачать CSV",
 05971                            Code = "Csv",
 05972                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05973                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05974                            IsDeleted = false,
 05975                            OwnerActionId = 3L,
 05976                            StatusId = 9L,
 05977                            Type = "GET"
 05978                        },
 05979                        new
 05980                        {
 05981                            Id = 29L,
 05982                            Action = "Orders/CreateOnBase",
 05983                            Caption = "Создать заявку на основе",
 05984                            Code = "CreateOnBase",
 05985                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05986                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05987                            IsDeleted = false,
 05988                            OwnerActionId = 1L,
 05989                            StatusId = 10L,
 05990                            Type = "POST"
 05991                        },
 05992                        new
 05993                        {
 05994                            Id = 30L,
 05995                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05996                            Caption = "Скачать CSV",
 05997                            Code = "Csv",
 05998                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05999                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06000                            IsDeleted = false,
 06001                            OwnerActionId = 1L,
 06002                            StatusId = 10L,
 06003                            Type = "GET"
 06004                        },
 06005                        new
 06006                        {
 06007                            Id = 34L,
 06008                            Action = "Shipments/{id}/Print",
 06009                            Caption = "Распечатать УПД",
 06010                            Code = "Pdf",
 06011                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06012                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06013                            IsDeleted = false,
 06014                            OwnerActionId = 1L,
 06015                            StatusId = 10L,
 06016                            Type = "GET"
 06017                        },
 06018                        new
 06019                        {
 06020                            Id = 89L,
 06021                            Action = "Shipments/{id}/CustomerReject",
 06022                            Caption = "Отказаться",
 06023                            Code = "RejectByCustomer",
 06024                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06025                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06026                            IsDeleted = false,
 06027                            OwnerActionId = 1L,
 06028                            StatusId = 10L,
 06029                            Type = "POST"
 06030                        },
 06031                        new
 06032                        {
 06033                            Id = 31L,
 06034                            Action = "Shipments/{id}/Ship",
 06035                            Caption = "Выдать",
 06036                            Code = "Ship",
 06037                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06038                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06039                            IsDeleted = false,
 06040                            OwnerActionId = 2L,
 06041                            StatusId = 10L,
 06042                            Type = "POST"
 06043                        },
 06044                        new
 06045                        {
 06046                            Id = 35L,
 06047                            Action = "Shipments/{id}/Correction",
 06048                            Caption = "Редактировать",
 06049                            Code = "Edit",
 06050                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06051                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06052                            IsDeleted = false,
 06053                            OwnerActionId = 2L,
 06054                            StatusId = 10L,
 06055                            Type = "PUT"
 06056                        },
 06057                        new
 06058                        {
 06059                            Id = 44L,
 06060                            Action = "Shipments/{id}/SupplierReject",
 06061                            Caption = "Отказать",
 06062                            Code = "RejectBySupplier",
 06063                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06064                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06065                            IsDeleted = false,
 06066                            OwnerActionId = 2L,
 06067                            StatusId = 10L,
 06068                            Type = "POST"
 06069                        },
 06070                        new
 06071                        {
 06072                            Id = 32L,
 06073                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06074                            Caption = "Скачать CSV",
 06075                            Code = "Csv",
 06076                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06077                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06078                            IsDeleted = false,
 06079                            OwnerActionId = 2L,
 06080                            StatusId = 10L,
 06081                            Type = "GET"
 06082                        },
 06083                        new
 06084                        {
 06085                            Id = 33L,
 06086                            Action = "Shipments/{id}/Print",
 06087                            Caption = "Распечатать УПД",
 06088                            Code = "Pdf",
 06089                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06090                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06091                            IsDeleted = false,
 06092                            OwnerActionId = 2L,
 06093                            StatusId = 10L,
 06094                            Type = "GET"
 06095                        },
 06096                        new
 06097                        {
 06098                            Id = 98L,
 06099                            Action = "Shipments/{id}/Print",
 06100                            Caption = "Распечатать УПД",
 06101                            Code = "Pdf",
 06102                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06103                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06104                            IsDeleted = false,
 06105                            OwnerActionId = 3L,
 06106                            StatusId = 10L,
 06107                            Type = "GET"
 06108                        },
 06109                        new
 06110                        {
 06111                            Id = 97L,
 06112                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06113                            Caption = "Скачать CSV",
 06114                            Code = "Csv",
 06115                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06116                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06117                            IsDeleted = false,
 06118                            OwnerActionId = 3L,
 06119                            StatusId = 10L,
 06120                            Type = "GET"
 06121                        },
 06122                        new
 06123                        {
 06124                            Id = 36L,
 06125                            Action = "Orders/CreateOnBase",
 06126                            Caption = "Создать заявку на основе",
 06127                            Code = "CreateOnBase",
 06128                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06129                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06130                            IsDeleted = false,
 06131                            OwnerActionId = 1L,
 06132                            StatusId = 11L,
 06133                            Type = "POST"
 06134                        },
 06135                        new
 06136                        {
 06137                            Id = 37L,
 06138                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06139                            Caption = "Скачать CSV",
 06140                            Code = "Csv",
 06141                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06142                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06143                            IsDeleted = false,
 06144                            OwnerActionId = 1L,
 06145                            StatusId = 11L,
 06146                            Type = "GET"
 06147                        },
 06148                        new
 06149                        {
 06150                            Id = 90L,
 06151                            Action = "Shipments/{id}/CustomerReject",
 06152                            Caption = "Отказаться",
 06153                            Code = "RejectByCustomer",
 06154                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06155                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06156                            IsDeleted = false,
 06157                            OwnerActionId = 1L,
 06158                            StatusId = 11L,
 06159                            Type = "POST"
 06160                        },
 06161                        new
 06162                        {
 06163                            Id = 38L,
 06164                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06165                            Caption = "Скачать CSV",
 06166                            Code = "Csv",
 06167                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06168                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06169                            IsDeleted = false,
 06170                            OwnerActionId = 2L,
 06171                            StatusId = 11L,
 06172                            Type = "GET"
 06173                        },
 06174                        new
 06175                        {
 06176                            Id = 39L,
 06177                            Action = "Shipments/{id}/ReadyToShip",
 06178                            Caption = "Подготовить к выдаче",
 06179                            Code = "ReadyToShip",
 06180                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06181                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06182                            IsDeleted = false,
 06183                            OwnerActionId = 2L,
 06184                            StatusId = 11L,
 06185                            Type = "PUT"
 06186                        },
 06187                        new
 06188                        {
 06189                            Id = 81L,
 06190                            Action = "Shipments/{id}/SupplierReject",
 06191                            Caption = "Отказать",
 06192                            Code = "RejectBySupplier",
 06193                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06194                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06195                            IsDeleted = false,
 06196                            OwnerActionId = 2L,
 06197                            StatusId = 11L,
 06198                            Type = "PUT"
 06199                        },
 06200                        new
 06201                        {
 06202                            Id = 40L,
 06203                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06204                            Caption = "Скачать CSV",
 06205                            Code = "Csv",
 06206                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06207                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06208                            IsDeleted = false,
 06209                            OwnerActionId = 3L,
 06210                            StatusId = 11L,
 06211                            Type = "GET"
 06212                        },
 06213                        new
 06214                        {
 06215                            Id = 41L,
 06216                            Action = "Orders/CreateOnBase",
 06217                            Caption = "Создать заявку на основе",
 06218                            Code = "CreateOnBase",
 06219                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06220                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06221                            IsDeleted = false,
 06222                            OwnerActionId = 1L,
 06223                            StatusId = 12L,
 06224                            Type = "POST"
 06225                        },
 06226                        new
 06227                        {
 06228                            Id = 42L,
 06229                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06230                            Caption = "Скачать CSV",
 06231                            Code = "Csv",
 06232                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06233                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06234                            IsDeleted = false,
 06235                            OwnerActionId = 1L,
 06236                            StatusId = 12L,
 06237                            Type = "GET"
 06238                        },
 06239                        new
 06240                        {
 06241                            Id = 46L,
 06242                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06243                            Caption = "Скачать CSV",
 06244                            Code = "Csv",
 06245                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06246                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06247                            IsDeleted = false,
 06248                            OwnerActionId = 2L,
 06249                            StatusId = 12L,
 06250                            Type = "GET"
 06251                        },
 06252                        new
 06253                        {
 06254                            Id = 47L,
 06255                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06256                            Caption = "Скачать CSV",
 06257                            Code = "Csv",
 06258                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06259                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06260                            IsDeleted = false,
 06261                            OwnerActionId = 3L,
 06262                            StatusId = 12L,
 06263                            Type = "GET"
 06264                        },
 06265                        new
 06266                        {
 06267                            Id = 48L,
 06268                            Action = "Orders/CreateOnBase",
 06269                            Caption = "Создать заявку на основе",
 06270                            Code = "CreateOnBase",
 06271                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06272                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06273                            IsDeleted = false,
 06274                            OwnerActionId = 1L,
 06275                            StatusId = 13L,
 06276                            Type = "POST"
 06277                        },
 06278                        new
 06279                        {
 06280                            Id = 49L,
 06281                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06282                            Caption = "Скачать CSV",
 06283                            Code = "Csv",
 06284                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06285                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06286                            IsDeleted = false,
 06287                            OwnerActionId = 1L,
 06288                            StatusId = 13L,
 06289                            Type = "GET"
 06290                        },
 06291                        new
 06292                        {
 06293                            Id = 91L,
 06294                            Action = "Shipments/{id}/Print",
 06295                            Caption = "Распечатать УПД",
 06296                            Code = "Pdf",
 06297                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06298                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06299                            IsDeleted = false,
 06300                            OwnerActionId = 1L,
 06301                            StatusId = 13L,
 06302                            Type = "GET"
 06303                        },
 06304                        new
 06305                        {
 06306                            Id = 82L,
 06307                            Action = "Shipments/{id}/Accept",
 06308                            Caption = "Принять",
 06309                            Code = "Accept",
 06310                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06311                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06312                            IsDeleted = false,
 06313                            OwnerActionId = 1L,
 06314                            StatusId = 13L,
 06315                            Type = "PUT"
 06316                        },
 06317                        new
 06318                        {
 06319                            Id = 84L,
 06320                            Action = "Shipments/{id}/CustomerReject",
 06321                            Caption = "Отказаться",
 06322                            Code = "RejectByCustomer",
 06323                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06324                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06325                            IsDeleted = false,
 06326                            OwnerActionId = 1L,
 06327                            StatusId = 13L,
 06328                            Type = "PUT"
 06329                        },
 06330                        new
 06331                        {
 06332                            Id = 50L,
 06333                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06334                            Caption = "Скачать CSV",
 06335                            Code = "Csv",
 06336                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06337                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06338                            IsDeleted = false,
 06339                            OwnerActionId = 2L,
 06340                            StatusId = 13L,
 06341                            Type = "GET"
 06342                        },
 06343                        new
 06344                        {
 06345                            Id = 51L,
 06346                            Action = "Shipments/{id}/Print",
 06347                            Caption = "Распечатать УПД",
 06348                            Code = "Pdf",
 06349                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06350                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06351                            IsDeleted = false,
 06352                            OwnerActionId = 2L,
 06353                            StatusId = 13L,
 06354                            Type = "GET"
 06355                        },
 06356                        new
 06357                        {
 06358                            Id = 52L,
 06359                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06360                            Caption = "Скачать CSV",
 06361                            Code = "Csv",
 06362                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06363                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06364                            IsDeleted = false,
 06365                            OwnerActionId = 3L,
 06366                            StatusId = 13L,
 06367                            Type = "GET"
 06368                        },
 06369                        new
 06370                        {
 06371                            Id = 53L,
 06372                            Action = "Shipments/{id}/Print",
 06373                            Caption = "Распечатать УПД",
 06374                            Code = "Pdf",
 06375                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06376                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06377                            IsDeleted = false,
 06378                            OwnerActionId = 3L,
 06379                            StatusId = 13L,
 06380                            Type = "GET"
 06381                        },
 06382                        new
 06383                        {
 06384                            Id = 54L,
 06385                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06386                            Caption = "Скачать CSV",
 06387                            Code = "Csv",
 06388                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06389                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06390                            IsDeleted = false,
 06391                            OwnerActionId = 1L,
 06392                            StatusId = 14L,
 06393                            Type = "GET"
 06394                        },
 06395                        new
 06396                        {
 06397                            Id = 55L,
 06398                            Action = "Shipments/{id}/Print",
 06399                            Caption = "Распечатать УПД",
 06400                            Code = "Pdf",
 06401                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06402                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06403                            IsDeleted = false,
 06404                            OwnerActionId = 1L,
 06405                            StatusId = 14L,
 06406                            Type = "GET"
 06407                        },
 06408                        new
 06409                        {
 06410                            Id = 56L,
 06411                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06412                            Caption = "Скачать CSV",
 06413                            Code = "Csv",
 06414                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06415                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06416                            IsDeleted = false,
 06417                            OwnerActionId = 2L,
 06418                            StatusId = 14L,
 06419                            Type = "GET"
 06420                        },
 06421                        new
 06422                        {
 06423                            Id = 57L,
 06424                            Action = "Shipments/{id}/Print",
 06425                            Caption = "Распечатать УПД",
 06426                            Code = "Pdf",
 06427                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06428                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06429                            IsDeleted = false,
 06430                            OwnerActionId = 2L,
 06431                            StatusId = 14L,
 06432                            Type = "GET"
 06433                        },
 06434                        new
 06435                        {
 06436                            Id = 58L,
 06437                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06438                            Caption = "Скачать CSV",
 06439                            Code = "Csv",
 06440                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06441                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06442                            IsDeleted = false,
 06443                            OwnerActionId = 3L,
 06444                            StatusId = 14L,
 06445                            Type = "GET"
 06446                        },
 06447                        new
 06448                        {
 06449                            Id = 92L,
 06450                            Action = "Shipments/{id}/Print",
 06451                            Caption = "Распечатать УПД",
 06452                            Code = "Pdf",
 06453                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06454                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06455                            IsDeleted = false,
 06456                            OwnerActionId = 3L,
 06457                            StatusId = 14L,
 06458                            Type = "GET"
 06459                        },
 06460                        new
 06461                        {
 06462                            Id = 59L,
 06463                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06464                            Caption = "Скачать CSV",
 06465                            Code = "Csv",
 06466                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06467                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06468                            IsDeleted = false,
 06469                            OwnerActionId = 1L,
 06470                            StatusId = 15L,
 06471                            Type = "GET"
 06472                        },
 06473                        new
 06474                        {
 06475                            Id = 60L,
 06476                            Action = "Shipments/{id}/Print",
 06477                            Caption = "Распечатать УПД",
 06478                            Code = "Pdf",
 06479                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06480                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06481                            IsDeleted = false,
 06482                            OwnerActionId = 1L,
 06483                            StatusId = 15L,
 06484                            Type = "GET"
 06485                        },
 06486                        new
 06487                        {
 06488                            Id = 61L,
 06489                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06490                            Caption = "Скачать CSV",
 06491                            Code = "Csv",
 06492                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06493                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06494                            IsDeleted = false,
 06495                            OwnerActionId = 2L,
 06496                            StatusId = 15L,
 06497                            Type = "GET"
 06498                        },
 06499                        new
 06500                        {
 06501                            Id = 62L,
 06502                            Action = "Shipments/{id}/Print",
 06503                            Caption = "Распечатать УПД",
 06504                            Code = "Pdf",
 06505                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06506                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06507                            IsDeleted = false,
 06508                            OwnerActionId = 2L,
 06509                            StatusId = 15L,
 06510                            Type = "GET"
 06511                        },
 06512                        new
 06513                        {
 06514                            Id = 63L,
 06515                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06516                            Caption = "Скачать CSV",
 06517                            Code = "Csv",
 06518                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06519                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06520                            IsDeleted = false,
 06521                            OwnerActionId = 3L,
 06522                            StatusId = 15L,
 06523                            Type = "GET"
 06524                        },
 06525                        new
 06526                        {
 06527                            Id = 93L,
 06528                            Action = "Shipments/{id}/Print",
 06529                            Caption = "Распечатать УПД",
 06530                            Code = "Pdf",
 06531                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06532                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06533                            IsDeleted = false,
 06534                            OwnerActionId = 3L,
 06535                            StatusId = 15L,
 06536                            Type = "GET"
 06537                        },
 06538                        new
 06539                        {
 06540                            Id = 64L,
 06541                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06542                            Caption = "Скачать CSV",
 06543                            Code = "Csv",
 06544                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06545                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06546                            IsDeleted = false,
 06547                            OwnerActionId = 1L,
 06548                            StatusId = 16L,
 06549                            Type = "GET"
 06550                        },
 06551                        new
 06552                        {
 06553                            Id = 65L,
 06554                            Action = "Shipments/{id}/Print",
 06555                            Caption = "Распечатать УПД",
 06556                            Code = "Pdf",
 06557                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06558                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06559                            IsDeleted = false,
 06560                            OwnerActionId = 1L,
 06561                            StatusId = 16L,
 06562                            Type = "GET"
 06563                        },
 06564                        new
 06565                        {
 06566                            Id = 66L,
 06567                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06568                            Caption = "Скачать CSV",
 06569                            Code = "Csv",
 06570                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06571                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06572                            IsDeleted = false,
 06573                            OwnerActionId = 2L,
 06574                            StatusId = 16L,
 06575                            Type = "GET"
 06576                        },
 06577                        new
 06578                        {
 06579                            Id = 67L,
 06580                            Action = "Shipments/{id}/Print",
 06581                            Caption = "Распечатать УПД",
 06582                            Code = "Pdf",
 06583                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06584                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06585                            IsDeleted = false,
 06586                            OwnerActionId = 2L,
 06587                            StatusId = 16L,
 06588                            Type = "GET"
 06589                        },
 06590                        new
 06591                        {
 06592                            Id = 68L,
 06593                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06594                            Caption = "Скачать CSV",
 06595                            Code = "Csv",
 06596                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06597                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06598                            IsDeleted = false,
 06599                            OwnerActionId = 3L,
 06600                            StatusId = 16L,
 06601                            Type = "GET"
 06602                        },
 06603                        new
 06604                        {
 06605                            Id = 94L,
 06606                            Action = "Shipments/{id}/Print",
 06607                            Caption = "Распечатать УПД",
 06608                            Code = "Pdf",
 06609                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06610                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06611                            IsDeleted = false,
 06612                            OwnerActionId = 3L,
 06613                            StatusId = 16L,
 06614                            Type = "GET"
 06615                        },
 06616                        new
 06617                        {
 06618                            Id = 69L,
 06619                            Action = "Shipments/{id}/AcceptClaim",
 06620                            Caption = "Принять",
 06621                            Code = "AcceptClaim",
 06622                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06623                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06624                            IsDeleted = false,
 06625                            OwnerActionId = 3L,
 06626                            StatusId = 16L,
 06627                            Type = "PUT"
 06628                        },
 06629                        new
 06630                        {
 06631                            Id = 70L,
 06632                            Action = "Shipments/{id}/DeclineClaim",
 06633                            Caption = "Отказать",
 06634                            Code = "DeclineClaim",
 06635                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06636                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06637                            IsDeleted = false,
 06638                            OwnerActionId = 3L,
 06639                            StatusId = 16L,
 06640                            Type = "PUT"
 06641                        },
 06642                        new
 06643                        {
 06644                            Id = 71L,
 06645                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06646                            Caption = "Скачать CSV",
 06647                            Code = "Csv",
 06648                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06649                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06650                            IsDeleted = false,
 06651                            OwnerActionId = 1L,
 06652                            StatusId = 17L,
 06653                            Type = "GET"
 06654                        },
 06655                        new
 06656                        {
 06657                            Id = 72L,
 06658                            Action = "Shipments/{id}/Print",
 06659                            Caption = "Распечатать УПД",
 06660                            Code = "Pdf",
 06661                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06662                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06663                            IsDeleted = false,
 06664                            OwnerActionId = 1L,
 06665                            StatusId = 17L,
 06666                            Type = "GET"
 06667                        },
 06668                        new
 06669                        {
 06670                            Id = 73L,
 06671                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06672                            Caption = "Скачать CSV",
 06673                            Code = "Csv",
 06674                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06675                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06676                            IsDeleted = false,
 06677                            OwnerActionId = 2L,
 06678                            StatusId = 17L,
 06679                            Type = "GET"
 06680                        },
 06681                        new
 06682                        {
 06683                            Id = 74L,
 06684                            Action = "Shipments/{id}/Print",
 06685                            Caption = "Распечатать УПД",
 06686                            Code = "Pdf",
 06687                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06688                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06689                            IsDeleted = false,
 06690                            OwnerActionId = 2L,
 06691                            StatusId = 17L,
 06692                            Type = "GET"
 06693                        },
 06694                        new
 06695                        {
 06696                            Id = 75L,
 06697                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06698                            Caption = "Скачать CSV",
 06699                            Code = "Csv",
 06700                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06701                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06702                            IsDeleted = false,
 06703                            OwnerActionId = 3L,
 06704                            StatusId = 17L,
 06705                            Type = "GET"
 06706                        },
 06707                        new
 06708                        {
 06709                            Id = 95L,
 06710                            Action = "Shipments/{id}/Print",
 06711                            Caption = "Распечатать УПД",
 06712                            Code = "Pdf",
 06713                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06714                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06715                            IsDeleted = false,
 06716                            OwnerActionId = 3L,
 06717                            StatusId = 17L,
 06718                            Type = "GET"
 06719                        },
 06720                        new
 06721                        {
 06722                            Id = 76L,
 06723                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06724                            Caption = "Скачать CSV",
 06725                            Code = "Csv",
 06726                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06727                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06728                            IsDeleted = false,
 06729                            OwnerActionId = 1L,
 06730                            StatusId = 18L,
 06731                            Type = "GET"
 06732                        },
 06733                        new
 06734                        {
 06735                            Id = 77L,
 06736                            Action = "Shipments/{id}/Print",
 06737                            Caption = "Распечатать УПД",
 06738                            Code = "Pdf",
 06739                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06740                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06741                            IsDeleted = false,
 06742                            OwnerActionId = 1L,
 06743                            StatusId = 18L,
 06744                            Type = "GET"
 06745                        },
 06746                        new
 06747                        {
 06748                            Id = 78L,
 06749                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06750                            Caption = "Скачать CSV",
 06751                            Code = "Csv",
 06752                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06753                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06754                            IsDeleted = false,
 06755                            OwnerActionId = 2L,
 06756                            StatusId = 18L,
 06757                            Type = "GET"
 06758                        },
 06759                        new
 06760                        {
 06761                            Id = 79L,
 06762                            Action = "Shipments/{id}/Print",
 06763                            Caption = "Распечатать УПД",
 06764                            Code = "Pdf",
 06765                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06766                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06767                            IsDeleted = false,
 06768                            OwnerActionId = 2L,
 06769                            StatusId = 18L,
 06770                            Type = "GET"
 06771                        },
 06772                        new
 06773                        {
 06774                            Id = 80L,
 06775                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06776                            Caption = "Скачать CSV",
 06777                            Code = "Csv",
 06778                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06779                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06780                            IsDeleted = false,
 06781                            OwnerActionId = 3L,
 06782                            StatusId = 18L,
 06783                            Type = "GET"
 06784                        },
 06785                        new
 06786                        {
 06787                            Id = 96L,
 06788                            Action = "Shipments/{id}/Print",
 06789                            Caption = "Распечатать УПД",
 06790                            Code = "Pdf",
 06791                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06792                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06793                            IsDeleted = false,
 06794                            OwnerActionId = 3L,
 06795                            StatusId = 18L,
 06796                            Type = "GET"
 06797                        });
 06798                });
 6799
 06800            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", b =>
 06801                {
 06802                    b.Property<long>("Id")
 06803                        .ValueGeneratedOnAdd()
 06804                        .HasColumnType("bigint")
 06805                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 06806
 06807                    b.Property<string>("Code")
 06808                        .IsRequired()
 06809                        .HasColumnType("text");
 06810
 06811                    b.Property<long?>("CreatedByUserId")
 06812                        .HasColumnType("bigint");
 06813
 06814                    b.Property<DateTime>("CreationDateTime")
 06815                        .HasColumnType("timestamp without time zone");
 06816
 06817                    b.Property<string>("Description")
 06818                        .HasColumnType("text");
 06819
 06820                    b.Property<Guid>("GUID")
 06821                        .ValueGeneratedOnAdd()
 06822                        .HasColumnType("uuid");
 06823
 06824                    b.Property<bool>("IsDeleted")
 06825                        .HasColumnType("boolean");
 06826
 06827                    b.Property<DateTime?>("ModificationDateTime")
 06828                        .HasColumnType("timestamp without time zone");
 06829
 06830                    b.Property<long?>("ModifiedByUserId")
 06831                        .HasColumnType("bigint");
 06832
 06833                    b.Property<long>("MovementTypeId")
 06834                        .HasColumnType("bigint");
 06835
 06836                    b.Property<string>("Name")
 06837                        .IsRequired()
 06838                        .HasColumnType("text");
 06839
 06840                    b.Property<long?>("RecStateId")
 06841                        .HasColumnType("bigint");
 06842
 06843                    b.Property<long>("StatusOwnerId")
 06844                        .HasColumnType("bigint");
 06845
 06846                    b.HasKey("Id");
 06847
 06848                    b.HasIndex("CreatedByUserId");
 06849
 06850                    b.HasIndex("ModifiedByUserId");
 06851
 06852                    b.HasIndex("MovementTypeId");
 06853
 06854                    b.HasIndex("RecStateId");
 06855
 06856                    b.HasIndex("StatusOwnerId");
 06857
 06858                    b.ToTable("MovementStatus");
 06859
 06860                    b.HasData(
 06861                        new
 06862                        {
 06863                            Id = 1L,
 06864                            Code = "Draft",
 06865                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06866                            Description = "",
 06867                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06868                            IsDeleted = false,
 06869                            MovementTypeId = 1L,
 06870                            Name = "Черновик",
 06871                            StatusOwnerId = 1L
 06872                        },
 06873                        new
 06874                        {
 06875                            Id = 2L,
 06876                            Code = "InQueue",
 06877                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06878                            Description = "",
 06879                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06880                            IsDeleted = false,
 06881                            MovementTypeId = 1L,
 06882                            Name = "В очереди на обработку",
 06883                            StatusOwnerId = 3L
 06884                        },
 06885                        new
 06886                        {
 06887                            Id = 3L,
 06888                            Code = "InProgress",
 06889                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06890                            Description = "",
 06891                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06892                            IsDeleted = false,
 06893                            MovementTypeId = 1L,
 06894                            Name = "В обработке",
 06895                            StatusOwnerId = 2L
 06896                        },
 06897                        new
 06898                        {
 06899                            Id = 4L,
 06900                            Code = "Reject",
 06901                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06902                            Description = "",
 06903                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06904                            IsDeleted = false,
 06905                            MovementTypeId = 1L,
 06906                            Name = "Отказ",
 06907                            StatusOwnerId = 3L
 06908                        },
 06909                        new
 06910                        {
 06911                            Id = 5L,
 06912                            Code = "Finished",
 06913                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06914                            Description = "",
 06915                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06916                            IsDeleted = false,
 06917                            MovementTypeId = 1L,
 06918                            Name = "Обработано",
 06919                            StatusOwnerId = 2L
 06920                        },
 06921                        new
 06922                        {
 06923                            Id = 6L,
 06924                            Code = "Draft",
 06925                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06926                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06927                            IsDeleted = false,
 06928                            MovementTypeId = 2L,
 06929                            Name = "Черновик",
 06930                            StatusOwnerId = 2L
 06931                        },
 06932                        new
 06933                        {
 06934                            Id = 7L,
 06935                            Code = "Reject",
 06936                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06937                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06938                            IsDeleted = false,
 06939                            MovementTypeId = 2L,
 06940                            Name = "Отказ",
 06941                            StatusOwnerId = 1L
 06942                        },
 06943                        new
 06944                        {
 06945                            Id = 8L,
 06946                            Code = "PaymentAwaiting",
 06947                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06948                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06949                            IsDeleted = false,
 06950                            MovementTypeId = 2L,
 06951                            Name = "Ожидает оплаты",
 06952                            StatusOwnerId = 1L
 06953                        },
 06954                        new
 06955                        {
 06956                            Id = 9L,
 06957                            Code = "Picking",
 06958                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06959                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06960                            IsDeleted = false,
 06961                            MovementTypeId = 2L,
 06962                            Name = "Сборка заказа",
 06963                            StatusOwnerId = 2L
 06964                        },
 06965                        new
 06966                        {
 06967                            Id = 10L,
 06968                            Code = "ReadyForShipment",
 06969                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06970                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06971                            IsDeleted = false,
 06972                            MovementTypeId = 2L,
 06973                            Name = "Готово к выдаче",
 06974                            StatusOwnerId = 2L
 06975                        },
 06976                        new
 06977                        {
 06978                            Id = 11L,
 06979                            Code = "Correction",
 06980                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06981                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06982                            IsDeleted = false,
 06983                            MovementTypeId = 2L,
 06984                            Name = "Корректировка",
 06985                            StatusOwnerId = 2L
 06986                        },
 06987                        new
 06988                        {
 06989                            Id = 12L,
 06990                            Code = "SupplierReject",
 06991                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06992                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06993                            IsDeleted = false,
 06994                            MovementTypeId = 2L,
 06995                            Name = "Отказ поставщика",
 06996                            StatusOwnerId = 2L
 06997                        },
 06998                        new
 06999                        {
 07000                            Id = 13L,
 07001                            Code = "Shipped",
 07002                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07003                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07004                            IsDeleted = false,
 07005                            MovementTypeId = 2L,
 07006                            Name = "Выдано",
 07007                            StatusOwnerId = 1L
 07008                        },
 07009                        new
 07010                        {
 07011                            Id = 14L,
 07012                            Code = "Received",
 07013                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07014                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07015                            IsDeleted = false,
 07016                            MovementTypeId = 2L,
 07017                            Name = "Принято",
 07018                            StatusOwnerId = 1L
 07019                        },
 07020                        new
 07021                        {
 07022                            Id = 15L,
 07023                            Code = "CustomerReject",
 07024                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07025                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07026                            IsDeleted = false,
 07027                            MovementTypeId = 2L,
 07028                            Name = "Отказ покупателя",
 07029                            StatusOwnerId = 1L
 07030                        },
 07031                        new
 07032                        {
 07033                            Id = 16L,
 07034                            Code = "ClaimInProgress",
 07035                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07036                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07037                            IsDeleted = false,
 07038                            MovementTypeId = 2L,
 07039                            Name = "Претензия разбор",
 07040                            StatusOwnerId = 3L
 07041                        },
 07042                        new
 07043                        {
 07044                            Id = 17L,
 07045                            Code = "ClaimDeclined",
 07046                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07047                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07048                            IsDeleted = false,
 07049                            MovementTypeId = 2L,
 07050                            Name = "Претензия отказано",
 07051                            StatusOwnerId = 3L
 07052                        },
 07053                        new
 07054                        {
 07055                            Id = 18L,
 07056                            Code = "ClaimAccepted",
 07057                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07058                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07059                            IsDeleted = false,
 07060                            MovementTypeId = 2L,
 07061                            Name = "Претензия подтверждено",
 07062                            StatusOwnerId = 3L
 07063                        });
 07064                });
 7065
 07066            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusJournal", b =>
 07067                {
 07068                    b.Property<long>("Id")
 07069                        .ValueGeneratedOnAdd()
 07070                        .HasColumnType("bigint")
 07071                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07072
 07073                    b.Property<long?>("CreatedByUserId")
 07074                        .HasColumnType("bigint");
 07075
 07076                    b.Property<DateTime>("CreationDateTime")
 07077                        .HasColumnType("timestamp without time zone");
 07078
 07079                    b.Property<Guid>("GUID")
 07080                        .ValueGeneratedOnAdd()
 07081                        .HasColumnType("uuid");
 07082
 07083                    b.Property<bool>("IsDeleted")
 07084                        .HasColumnType("boolean");
 07085
 07086                    b.Property<DateTime?>("ModificationDateTime")
 07087                        .HasColumnType("timestamp without time zone");
 07088
 07089                    b.Property<long?>("ModifiedByUserId")
 07090                        .HasColumnType("bigint");
 07091
 07092                    b.Property<long?>("MovementId")
 07093                        .HasColumnType("bigint");
 07094
 07095                    b.Property<long?>("RecStateId")
 07096                        .HasColumnType("bigint");
 07097
 07098                    b.Property<long?>("StatusCurrentId")
 07099                        .HasColumnType("bigint");
 07100
 07101                    b.HasKey("Id");
 07102
 07103                    b.HasIndex("CreatedByUserId");
 07104
 07105                    b.HasIndex("ModifiedByUserId");
 07106
 07107                    b.HasIndex("MovementId");
 07108
 07109                    b.HasIndex("RecStateId");
 07110
 07111                    b.HasIndex("StatusCurrentId");
 07112
 07113                    b.ToTable("MovementStatusJournals");
 07114                });
 7115
 07116            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusOwner", b =>
 07117                {
 07118                    b.Property<long>("Id")
 07119                        .ValueGeneratedOnAdd()
 07120                        .HasColumnType("bigint")
 07121                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07122
 07123                    b.Property<long?>("CreatedByUserId")
 07124                        .HasColumnType("bigint");
 07125
 07126                    b.Property<DateTime>("CreationDateTime")
 07127                        .HasColumnType("timestamp without time zone");
 07128
 07129                    b.Property<bool>("IsDeleted")
 07130                        .HasColumnType("boolean");
 07131
 07132                    b.Property<DateTime?>("ModificationDateTime")
 07133                        .HasColumnType("timestamp without time zone");
 07134
 07135                    b.Property<long?>("ModifiedByUserId")
 07136                        .HasColumnType("bigint");
 07137
 07138                    b.Property<string>("Name")
 07139                        .HasColumnType("text");
 07140
 07141                    b.Property<long?>("RecStateId")
 07142                        .HasColumnType("bigint");
 07143
 07144                    b.HasKey("Id");
 07145
 07146                    b.HasIndex("CreatedByUserId");
 07147
 07148                    b.HasIndex("ModifiedByUserId");
 07149
 07150                    b.HasIndex("RecStateId");
 07151
 07152                    b.ToTable("MovementStatusOwners");
 07153
 07154                    b.HasData(
 07155                        new
 07156                        {
 07157                            Id = 1L,
 07158                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07159                            IsDeleted = false,
 07160                            Name = "Customer"
 07161                        },
 07162                        new
 07163                        {
 07164                            Id = 2L,
 07165                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07166                            IsDeleted = false,
 07167                            Name = "Supplier"
 07168                        },
 07169                        new
 07170                        {
 07171                            Id = 3L,
 07172                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07173                            IsDeleted = false,
 07174                            Name = "Platform"
 07175                        });
 07176                });
 7177
 07178            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusRoute", b =>
 07179                {
 07180                    b.Property<long>("Id")
 07181                        .ValueGeneratedOnAdd()
 07182                        .HasColumnType("bigint")
 07183                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07184
 07185                    b.Property<long?>("CreatedByUserId")
 07186                        .HasColumnType("bigint");
 07187
 07188                    b.Property<DateTime>("CreationDateTime")
 07189                        .HasColumnType("timestamp without time zone");
 07190
 07191                    b.Property<Guid>("GUID")
 07192                        .ValueGeneratedOnAdd()
 07193                        .HasColumnType("uuid");
 07194
 07195                    b.Property<int>("Hour")
 07196                        .HasColumnType("integer");
 07197
 07198                    b.Property<bool>("IsDeleted")
 07199                        .HasColumnType("boolean");
 07200
 07201                    b.Property<DateTime?>("ModificationDateTime")
 07202                        .HasColumnType("timestamp without time zone");
 07203
 07204                    b.Property<long?>("ModifiedByUserId")
 07205                        .HasColumnType("bigint");
 07206
 07207                    b.Property<long?>("RecStateId")
 07208                        .HasColumnType("bigint");
 07209
 07210                    b.Property<string>("RouteKey")
 07211                        .HasColumnType("text");
 07212
 07213                    b.Property<long>("StatusCurrentId")
 07214                        .HasColumnType("bigint");
 07215
 07216                    b.Property<long>("StatusNextId")
 07217                        .HasColumnType("bigint");
 07218
 07219                    b.HasKey("Id");
 07220
 07221                    b.HasIndex("CreatedByUserId");
 07222
 07223                    b.HasIndex("ModifiedByUserId");
 07224
 07225                    b.HasIndex("RecStateId");
 07226
 07227                    b.HasIndex("StatusCurrentId");
 07228
 07229                    b.HasIndex("StatusNextId");
 07230
 07231                    b.ToTable("MovementStatusRoutes");
 07232
 07233                    b.HasData(
 07234                        new
 07235                        {
 07236                            Id = 1L,
 07237                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07238                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07239                            Hour = 0,
 07240                            IsDeleted = false,
 07241                            RouteKey = "Send",
 07242                            StatusCurrentId = 1L,
 07243                            StatusNextId = 2L
 07244                        },
 07245                        new
 07246                        {
 07247                            Id = 2L,
 07248                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07249                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07250                            Hour = 0,
 07251                            IsDeleted = false,
 07252                            RouteKey = "Confirm",
 07253                            StatusCurrentId = 2L,
 07254                            StatusNextId = 3L
 07255                        },
 07256                        new
 07257                        {
 07258                            Id = 3L,
 07259                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07260                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07261                            Hour = 8,
 07262                            IsDeleted = false,
 07263                            RouteKey = "Auto",
 07264                            StatusCurrentId = 2L,
 07265                            StatusNextId = 4L
 07266                        },
 07267                        new
 07268                        {
 07269                            Id = 4L,
 07270                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07271                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07272                            Hour = 0,
 07273                            IsDeleted = false,
 07274                            RouteKey = "RejectOrder",
 07275                            StatusCurrentId = 2L,
 07276                            StatusNextId = 4L
 07277                        },
 07278                        new
 07279                        {
 07280                            Id = 5L,
 07281                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07282                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07283                            Hour = 8,
 07284                            IsDeleted = false,
 07285                            RouteKey = "Auto",
 07286                            StatusCurrentId = 3L,
 07287                            StatusNextId = 4L
 07288                        },
 07289                        new
 07290                        {
 07291                            Id = 6L,
 07292                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07293                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07294                            Hour = 0,
 07295                            IsDeleted = false,
 07296                            RouteKey = "Finished",
 07297                            StatusCurrentId = 3L,
 07298                            StatusNextId = 5L
 07299                        },
 07300                        new
 07301                        {
 07302                            Id = 7L,
 07303                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07304                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07305                            Hour = 0,
 07306                            IsDeleted = false,
 07307                            RouteKey = "RejectOrder",
 07308                            StatusCurrentId = 3L,
 07309                            StatusNextId = 4L
 07310                        },
 07311                        new
 07312                        {
 07313                            Id = 8L,
 07314                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07315                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07316                            Hour = 0,
 07317                            IsDeleted = false,
 07318                            RouteKey = "SupplierReject",
 07319                            StatusCurrentId = 6L,
 07320                            StatusNextId = 12L
 07321                        },
 07322                        new
 07323                        {
 07324                            Id = 9L,
 07325                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07326                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07327                            Hour = 0,
 07328                            IsDeleted = false,
 07329                            RouteKey = "PaymentReserve",
 07330                            StatusCurrentId = 6L,
 07331                            StatusNextId = 8L
 07332                        },
 07333                        new
 07334                        {
 07335                            Id = 10L,
 07336                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07337                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07338                            Hour = 0,
 07339                            IsDeleted = false,
 07340                            RouteKey = "Payment",
 07341                            StatusCurrentId = 8L,
 07342                            StatusNextId = 9L
 07343                        },
 07344                        new
 07345                        {
 07346                            Id = 11L,
 07347                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07348                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07349                            Hour = 0,
 07350                            IsDeleted = false,
 07351                            RouteKey = "CustomerReject",
 07352                            StatusCurrentId = 8L,
 07353                            StatusNextId = 15L
 07354                        },
 07355                        new
 07356                        {
 07357                            Id = 12L,
 07358                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07359                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07360                            Hour = 24,
 07361                            IsDeleted = false,
 07362                            RouteKey = "Auto",
 07363                            StatusCurrentId = 8L,
 07364                            StatusNextId = 7L
 07365                        },
 07366                        new
 07367                        {
 07368                            Id = 13L,
 07369                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07370                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07371                            Hour = 0,
 07372                            IsDeleted = false,
 07373                            RouteKey = "SupplierReject",
 07374                            StatusCurrentId = 9L,
 07375                            StatusNextId = 12L
 07376                        },
 07377                        new
 07378                        {
 07379                            Id = 14L,
 07380                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07381                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07382                            Hour = 24,
 07383                            IsDeleted = false,
 07384                            RouteKey = "Auto",
 07385                            StatusCurrentId = 9L,
 07386                            StatusNextId = 7L
 07387                        },
 07388                        new
 07389                        {
 07390                            Id = 15L,
 07391                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07392                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07393                            Hour = 0,
 07394                            IsDeleted = false,
 07395                            RouteKey = "ReadyToShip",
 07396                            StatusCurrentId = 9L,
 07397                            StatusNextId = 10L
 07398                        },
 07399                        new
 07400                        {
 07401                            Id = 30L,
 07402                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07403                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07404                            Hour = 0,
 07405                            IsDeleted = false,
 07406                            RouteKey = "CustomerReject",
 07407                            StatusCurrentId = 9L,
 07408                            StatusNextId = 15L
 07409                        },
 07410                        new
 07411                        {
 07412                            Id = 16L,
 07413                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07414                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07415                            Hour = 0,
 07416                            IsDeleted = false,
 07417                            RouteKey = "Ship",
 07418                            StatusCurrentId = 10L,
 07419                            StatusNextId = 13L
 07420                        },
 07421                        new
 07422                        {
 07423                            Id = 17L,
 07424                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07425                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07426                            Hour = 24,
 07427                            IsDeleted = false,
 07428                            RouteKey = "Auto",
 07429                            StatusCurrentId = 10L,
 07430                            StatusNextId = 7L
 07431                        },
 07432                        new
 07433                        {
 07434                            Id = 18L,
 07435                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07436                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07437                            Hour = 0,
 07438                            IsDeleted = false,
 07439                            RouteKey = "SupplierReject",
 07440                            StatusCurrentId = 10L,
 07441                            StatusNextId = 12L
 07442                        },
 07443                        new
 07444                        {
 07445                            Id = 19L,
 07446                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07447                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07448                            Hour = 0,
 07449                            IsDeleted = false,
 07450                            RouteKey = "Correction",
 07451                            StatusCurrentId = 10L,
 07452                            StatusNextId = 11L
 07453                        },
 07454                        new
 07455                        {
 07456                            Id = 31L,
 07457                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07458                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07459                            Hour = 0,
 07460                            IsDeleted = false,
 07461                            RouteKey = "CustomerReject",
 07462                            StatusCurrentId = 10L,
 07463                            StatusNextId = 15L
 07464                        },
 07465                        new
 07466                        {
 07467                            Id = 20L,
 07468                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07469                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07470                            Hour = 8,
 07471                            IsDeleted = false,
 07472                            RouteKey = "Auto",
 07473                            StatusCurrentId = 11L,
 07474                            StatusNextId = 7L
 07475                        },
 07476                        new
 07477                        {
 07478                            Id = 21L,
 07479                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07480                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07481                            Hour = 0,
 07482                            IsDeleted = false,
 07483                            RouteKey = "SupplierReject",
 07484                            StatusCurrentId = 11L,
 07485                            StatusNextId = 12L
 07486                        },
 07487                        new
 07488                        {
 07489                            Id = 22L,
 07490                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07491                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07492                            Hour = 0,
 07493                            IsDeleted = false,
 07494                            RouteKey = "ReadyToShip",
 07495                            StatusCurrentId = 11L,
 07496                            StatusNextId = 10L
 07497                        },
 07498                        new
 07499                        {
 07500                            Id = 32L,
 07501                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07502                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07503                            Hour = 0,
 07504                            IsDeleted = false,
 07505                            RouteKey = "CustomerReject",
 07506                            StatusCurrentId = 11L,
 07507                            StatusNextId = 15L
 07508                        },
 07509                        new
 07510                        {
 07511                            Id = 23L,
 07512                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07513                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07514                            Hour = 0,
 07515                            IsDeleted = false,
 07516                            RouteKey = "Accept",
 07517                            StatusCurrentId = 13L,
 07518                            StatusNextId = 14L
 07519                        },
 07520                        new
 07521                        {
 07522                            Id = 24L,
 07523                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07524                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07525                            Hour = 0,
 07526                            IsDeleted = false,
 07527                            RouteKey = "CustomerReject",
 07528                            StatusCurrentId = 13L,
 07529                            StatusNextId = 15L
 07530                        },
 07531                        new
 07532                        {
 07533                            Id = 25L,
 07534                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07535                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07536                            Hour = 24,
 07537                            IsDeleted = false,
 07538                            RouteKey = "Auto",
 07539                            StatusCurrentId = 13L,
 07540                            StatusNextId = 7L
 07541                        },
 07542                        new
 07543                        {
 07544                            Id = 26L,
 07545                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07546                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07547                            Hour = 0,
 07548                            IsDeleted = false,
 07549                            RouteKey = "ClaimProcess",
 07550                            StatusCurrentId = 15L,
 07551                            StatusNextId = 16L
 07552                        },
 07553                        new
 07554                        {
 07555                            Id = 27L,
 07556                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07557                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07558                            Hour = 0,
 07559                            IsDeleted = false,
 07560                            RouteKey = "ClaimAccept",
 07561                            StatusCurrentId = 16L,
 07562                            StatusNextId = 18L
 07563                        },
 07564                        new
 07565                        {
 07566                            Id = 28L,
 07567                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07568                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07569                            Hour = 24,
 07570                            IsDeleted = false,
 07571                            RouteKey = "Auto",
 07572                            StatusCurrentId = 16L,
 07573                            StatusNextId = 18L
 07574                        },
 07575                        new
 07576                        {
 07577                            Id = 29L,
 07578                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07579                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07580                            Hour = 0,
 07581                            IsDeleted = false,
 07582                            RouteKey = "ClaimDecline",
 07583                            StatusCurrentId = 16L,
 07584                            StatusNextId = 17L
 07585                        });
 07586                });
 7587
 07588            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", b =>
 07589                {
 07590                    b.Property<long>("Id")
 07591                        .ValueGeneratedOnAdd()
 07592                        .HasColumnType("bigint")
 07593                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07594
 07595                    b.Property<string>("Code")
 07596                        .IsRequired()
 07597                        .HasColumnType("text");
 07598
 07599                    b.Property<long?>("CreatedByUserId")
 07600                        .HasColumnType("bigint");
 07601
 07602                    b.Property<DateTime>("CreationDateTime")
 07603                        .HasColumnType("timestamp without time zone");
 07604
 07605                    b.Property<string>("Description")
 07606                        .HasColumnType("text");
 07607
 07608                    b.Property<Guid>("GUID")
 07609                        .ValueGeneratedOnAdd()
 07610                        .HasColumnType("uuid");
 07611
 07612                    b.Property<bool>("IsDeleted")
 07613                        .HasColumnType("boolean");
 07614
 07615                    b.Property<DateTime?>("ModificationDateTime")
 07616                        .HasColumnType("timestamp without time zone");
 07617
 07618                    b.Property<long?>("ModifiedByUserId")
 07619                        .HasColumnType("bigint");
 07620
 07621                    b.Property<string>("Name")
 07622                        .IsRequired()
 07623                        .HasColumnType("text");
 07624
 07625                    b.Property<long?>("RecStateId")
 07626                        .HasColumnType("bigint");
 07627
 07628                    b.HasKey("Id");
 07629
 07630                    b.HasIndex("CreatedByUserId");
 07631
 07632                    b.HasIndex("ModifiedByUserId");
 07633
 07634                    b.HasIndex("RecStateId");
 07635
 07636                    b.ToTable("MovementType");
 07637
 07638                    b.HasData(
 07639                        new
 07640                        {
 07641                            Id = 1L,
 07642                            Code = "Order",
 07643                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07644                            Description = "",
 07645                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07646                            IsDeleted = false,
 07647                            Name = "Заказ"
 07648                        },
 07649                        new
 07650                        {
 07651                            Id = 2L,
 07652                            Code = "Shipment",
 07653                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07654                            Description = "",
 07655                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07656                            IsDeleted = false,
 07657                            Name = "Отгрузка"
 07658                        },
 07659                        new
 07660                        {
 07661                            Id = 3L,
 07662                            Code = "Arrival",
 07663                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07664                            Description = "",
 07665                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07666                            IsDeleted = false,
 07667                            Name = "Приход"
 07668                        },
 07669                        new
 07670                        {
 07671                            Id = 4L,
 07672                            Code = "Deny",
 07673                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07674                            Description = "",
 07675                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07676                            IsDeleted = false,
 07677                            Name = "Отказ"
 07678                        });
 07679                });
 7680
 07681            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Notification", b =>
 07682                {
 07683                    b.Property<long>("Id")
 07684                        .ValueGeneratedOnAdd()
 07685                        .HasColumnType("bigint")
 07686                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07687
 07688                    b.Property<string>("Body")
 07689                        .IsRequired()
 07690                        .HasColumnType("text");
 07691
 07692                    b.Property<long?>("CreatedByUserId")
 07693                        .HasColumnType("bigint");
 07694
 07695                    b.Property<DateTime>("CreationDateTime")
 07696                        .HasColumnType("timestamp without time zone");
 07697
 07698                    b.Property<Guid>("GUID")
 07699                        .ValueGeneratedOnAdd()
 07700                        .HasColumnType("uuid");
 07701
 07702                    b.Property<bool>("IsDeleted")
 07703                        .HasColumnType("boolean");
 07704
 07705                    b.Property<DateTime?>("ModificationDateTime")
 07706                        .HasColumnType("timestamp without time zone");
 07707
 07708                    b.Property<long?>("ModifiedByUserId")
 07709                        .HasColumnType("bigint");
 07710
 07711                    b.Property<long>("NotificationsTypeId")
 07712                        .HasColumnType("bigint");
 07713
 07714                    b.Property<long?>("RecStateId")
 07715                        .HasColumnType("bigint");
 07716
 07717                    b.Property<string>("Subject")
 07718                        .IsRequired()
 07719                        .HasColumnType("text");
 07720
 07721                    b.Property<DateTime>("TimeToTurnOff")
 07722                        .HasColumnType("timestamp without time zone");
 07723
 07724                    b.Property<long>("UserId")
 07725                        .HasColumnType("bigint");
 07726
 07727                    b.HasKey("Id");
 07728
 07729                    b.HasIndex("CreatedByUserId");
 07730
 07731                    b.HasIndex("ModifiedByUserId");
 07732
 07733                    b.HasIndex("NotificationsTypeId");
 07734
 07735                    b.HasIndex("RecStateId");
 07736
 07737                    b.HasIndex("UserId");
 07738
 07739                    b.ToTable("Notifications");
 07740                });
 7741
 07742            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationUsers", b =>
 07743                {
 07744                    b.Property<long>("Id")
 07745                        .ValueGeneratedOnAdd()
 07746                        .HasColumnType("bigint")
 07747                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07748
 07749                    b.Property<long?>("CreatedByUserId")
 07750                        .HasColumnType("bigint");
 07751
 07752                    b.Property<DateTime>("CreationDateTime")
 07753                        .HasColumnType("timestamp without time zone");
 07754
 07755                    b.Property<Guid>("GUID")
 07756                        .ValueGeneratedOnAdd()
 07757                        .HasColumnType("uuid");
 07758
 07759                    b.Property<bool>("IsDeleted")
 07760                        .HasColumnType("boolean");
 07761
 07762                    b.Property<DateTime?>("ModificationDateTime")
 07763                        .HasColumnType("timestamp without time zone");
 07764
 07765                    b.Property<long?>("ModifiedByUserId")
 07766                        .HasColumnType("bigint");
 07767
 07768                    b.Property<long>("NotificationId")
 07769                        .HasColumnType("bigint");
 07770
 07771                    b.Property<long?>("NotificationsStatusId")
 07772                        .HasColumnType("bigint");
 07773
 07774                    b.Property<long?>("RecStateId")
 07775                        .HasColumnType("bigint");
 07776
 07777                    b.Property<long?>("UserId")
 07778                        .HasColumnType("bigint");
 07779
 07780                    b.HasKey("Id");
 07781
 07782                    b.HasIndex("CreatedByUserId");
 07783
 07784                    b.HasIndex("ModifiedByUserId");
 07785
 07786                    b.HasIndex("NotificationId");
 07787
 07788                    b.HasIndex("NotificationsStatusId");
 07789
 07790                    b.HasIndex("RecStateId");
 07791
 07792                    b.HasIndex("UserId");
 07793
 07794                    b.ToTable("NotificationUsers");
 07795                });
 7796
 07797            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsStatus", b =>
 07798                {
 07799                    b.Property<long>("Id")
 07800                        .ValueGeneratedOnAdd()
 07801                        .HasColumnType("bigint")
 07802                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07803
 07804                    b.Property<string>("Code")
 07805                        .IsRequired()
 07806                        .HasColumnType("text");
 07807
 07808                    b.Property<long?>("CreatedByUserId")
 07809                        .HasColumnType("bigint");
 07810
 07811                    b.Property<DateTime>("CreationDateTime")
 07812                        .HasColumnType("timestamp without time zone");
 07813
 07814                    b.Property<string>("Description")
 07815                        .HasColumnType("text");
 07816
 07817                    b.Property<Guid>("GUID")
 07818                        .ValueGeneratedOnAdd()
 07819                        .HasColumnType("uuid");
 07820
 07821                    b.Property<bool>("IsDeleted")
 07822                        .HasColumnType("boolean");
 07823
 07824                    b.Property<DateTime?>("ModificationDateTime")
 07825                        .HasColumnType("timestamp without time zone");
 07826
 07827                    b.Property<long?>("ModifiedByUserId")
 07828                        .HasColumnType("bigint");
 07829
 07830                    b.Property<string>("Name")
 07831                        .IsRequired()
 07832                        .HasColumnType("text");
 07833
 07834                    b.Property<long?>("RecStateId")
 07835                        .HasColumnType("bigint");
 07836
 07837                    b.HasKey("Id");
 07838
 07839                    b.HasIndex("CreatedByUserId");
 07840
 07841                    b.HasIndex("ModifiedByUserId");
 07842
 07843                    b.HasIndex("RecStateId");
 07844
 07845                    b.ToTable("NotificationsStatus");
 07846
 07847                    b.HasData(
 07848                        new
 07849                        {
 07850                            Id = 1L,
 07851                            Code = "Unknown",
 07852                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07853                            Description = "",
 07854                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07855                            IsDeleted = false,
 07856                            Name = "Неизвестно"
 07857                        },
 07858                        new
 07859                        {
 07860                            Id = 2L,
 07861                            Code = "Created",
 07862                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07863                            Description = "",
 07864                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07865                            IsDeleted = false,
 07866                            Name = "Создано"
 07867                        },
 07868                        new
 07869                        {
 07870                            Id = 3L,
 07871                            Code = "Sent",
 07872                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07873                            Description = "",
 07874                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07875                            IsDeleted = false,
 07876                            Name = "Отправлено"
 07877                        },
 07878                        new
 07879                        {
 07880                            Id = 4L,
 07881                            Code = "Read",
 07882                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07883                            Description = "",
 07884                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07885                            IsDeleted = false,
 07886                            Name = "Прочитано"
 07887                        },
 07888                        new
 07889                        {
 07890                            Id = 5L,
 07891                            Code = "Deactivated",
 07892                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07893                            Description = "",
 07894                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07895                            IsDeleted = false,
 07896                            Name = "Отключено"
 07897                        });
 07898                });
 7899
 07900            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsType", b =>
 07901                {
 07902                    b.Property<long>("Id")
 07903                        .ValueGeneratedOnAdd()
 07904                        .HasColumnType("bigint")
 07905                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07906
 07907                    b.Property<string>("Code")
 07908                        .IsRequired()
 07909                        .HasColumnType("text");
 07910
 07911                    b.Property<long?>("CreatedByUserId")
 07912                        .HasColumnType("bigint");
 07913
 07914                    b.Property<DateTime>("CreationDateTime")
 07915                        .HasColumnType("timestamp without time zone");
 07916
 07917                    b.Property<string>("Description")
 07918                        .HasColumnType("text");
 07919
 07920                    b.Property<Guid>("GUID")
 07921                        .ValueGeneratedOnAdd()
 07922                        .HasColumnType("uuid");
 07923
 07924                    b.Property<bool>("IsDeleted")
 07925                        .HasColumnType("boolean");
 07926
 07927                    b.Property<DateTime?>("ModificationDateTime")
 07928                        .HasColumnType("timestamp without time zone");
 07929
 07930                    b.Property<long?>("ModifiedByUserId")
 07931                        .HasColumnType("bigint");
 07932
 07933                    b.Property<string>("Name")
 07934                        .IsRequired()
 07935                        .HasColumnType("text");
 07936
 07937                    b.Property<long?>("RecStateId")
 07938                        .HasColumnType("bigint");
 07939
 07940                    b.HasKey("Id");
 07941
 07942                    b.HasIndex("CreatedByUserId");
 07943
 07944                    b.HasIndex("ModifiedByUserId");
 07945
 07946                    b.HasIndex("RecStateId");
 07947
 07948                    b.ToTable("NotificationsType");
 07949
 07950                    b.HasData(
 07951                        new
 07952                        {
 07953                            Id = 1L,
 07954                            Code = "System",
 07955                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07956                            Description = "",
 07957                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07958                            IsDeleted = false,
 07959                            Name = "Системное"
 07960                        },
 07961                        new
 07962                        {
 07963                            Id = 2L,
 07964                            Code = "News",
 07965                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07966                            Description = "",
 07967                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07968                            IsDeleted = false,
 07969                            Name = "Новость"
 07970                        });
 07971                });
 7972
 07973            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Photo", b =>
 07974                {
 07975                    b.Property<long>("Id")
 07976                        .ValueGeneratedOnAdd()
 07977                        .HasColumnType("bigint")
 07978                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07979
 07980                    b.Property<long?>("CreatedByUserId")
 07981                        .HasColumnType("bigint");
 07982
 07983                    b.Property<DateTime>("CreationDateTime")
 07984                        .HasColumnType("timestamp without time zone");
 07985
 07986                    b.Property<int>("FullSizeHeight")
 07987                        .HasColumnType("integer");
 07988
 07989                    b.Property<string>("FullSizeUrl")
 07990                        .HasColumnType("text");
 07991
 07992                    b.Property<int>("FullSizeWidth")
 07993                        .HasColumnType("integer");
 07994
 07995                    b.Property<Guid>("GUID")
 07996                        .ValueGeneratedOnAdd()
 07997                        .HasColumnType("uuid");
 07998
 07999                    b.Property<long?>("GoodId")
 08000                        .HasColumnType("bigint");
 08001
 08002                    b.Property<bool>("IsDeleted")
 08003                        .HasColumnType("boolean");
 08004
 08005                    b.Property<DateTime?>("ModificationDateTime")
 08006                        .HasColumnType("timestamp without time zone");
 08007
 08008                    b.Property<long?>("ModifiedByUserId")
 08009                        .HasColumnType("bigint");
 08010
 08011                    b.Property<int>("PreviewHeight")
 08012                        .HasColumnType("integer");
 08013
 08014                    b.Property<string>("PreviewUrl")
 08015                        .HasColumnType("text");
 08016
 08017                    b.Property<int>("PreviewWidth")
 08018                        .HasColumnType("integer");
 08019
 08020                    b.Property<long?>("RecStateId")
 08021                        .HasColumnType("bigint");
 08022
 08023                    b.HasKey("Id");
 08024
 08025                    b.HasIndex("CreatedByUserId");
 08026
 08027                    b.HasIndex("GoodId");
 08028
 08029                    b.HasIndex("ModifiedByUserId");
 08030
 08031                    b.HasIndex("RecStateId");
 08032
 08033                    b.ToTable("Photos");
 08034                });
 8035
 08036            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceCurrent", b =>
 08037                {
 08038                    b.Property<long>("Id")
 08039                        .ValueGeneratedOnAdd()
 08040                        .HasColumnType("bigint")
 08041                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08042
 08043                    b.Property<long?>("CreatedByUserId")
 08044                        .HasColumnType("bigint");
 08045
 08046                    b.Property<DateTime>("CreationDateTime")
 08047                        .HasColumnType("timestamp without time zone");
 08048
 08049                    b.Property<Guid>("GUID")
 08050                        .ValueGeneratedOnAdd()
 08051                        .HasColumnType("uuid");
 08052
 08053                    b.Property<long>("GoodId")
 08054                        .HasColumnType("bigint");
 08055
 08056                    b.Property<bool>("IsDeleted")
 08057                        .HasColumnType("boolean");
 08058
 08059                    b.Property<DateTime?>("ModificationDateTime")
 08060                        .HasColumnType("timestamp without time zone");
 08061
 08062                    b.Property<long?>("ModifiedByUserId")
 08063                        .HasColumnType("bigint");
 08064
 08065                    b.Property<decimal>("Price")
 08066                        .HasColumnType("numeric");
 08067
 08068                    b.Property<long?>("RecStateId")
 08069                        .HasColumnType("bigint");
 08070
 08071                    b.Property<long>("SupplierDepartmentId")
 08072                        .HasColumnType("bigint");
 08073
 08074                    b.HasKey("Id");
 08075
 08076                    b.HasIndex("CreatedByUserId");
 08077
 08078                    b.HasIndex("GoodId");
 08079
 08080                    b.HasIndex("ModifiedByUserId");
 08081
 08082                    b.HasIndex("RecStateId");
 08083
 08084                    b.HasIndex("SupplierDepartmentId");
 08085
 08086                    b.ToTable("PricesCurrent");
 08087                });
 8088
 08089            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrend", b =>
 08090                {
 08091                    b.Property<long>("Id")
 08092                        .ValueGeneratedOnAdd()
 08093                        .HasColumnType("bigint")
 08094                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08095
 08096                    b.Property<DateTime>("BeginDate")
 08097                        .HasColumnType("timestamp without time zone");
 08098
 08099                    b.Property<long?>("CreatedByUserId")
 08100                        .HasColumnType("bigint");
 08101
 08102                    b.Property<DateTime>("CreationDateTime")
 08103                        .HasColumnType("timestamp without time zone");
 08104
 08105                    b.Property<string>("DocNumber")
 08106                        .IsRequired()
 08107                        .HasColumnType("text");
 08108
 08109                    b.Property<DateTime>("EndDate")
 08110                        .HasColumnType("timestamp without time zone");
 08111
 08112                    b.Property<Guid>("GUID")
 08113                        .ValueGeneratedOnAdd()
 08114                        .HasColumnType("uuid");
 08115
 08116                    b.Property<bool>("IsDeleted")
 08117                        .HasColumnType("boolean");
 08118
 08119                    b.Property<DateTime?>("ModificationDateTime")
 08120                        .HasColumnType("timestamp without time zone");
 08121
 08122                    b.Property<long?>("ModifiedByUserId")
 08123                        .HasColumnType("bigint");
 08124
 08125                    b.Property<long?>("RecStateId")
 08126                        .HasColumnType("bigint");
 08127
 08128                    b.Property<long>("SupplierDepartmentId")
 08129                        .HasColumnType("bigint");
 08130
 08131                    b.HasKey("Id");
 08132
 08133                    b.HasIndex("CreatedByUserId");
 08134
 08135                    b.HasIndex("ModifiedByUserId");
 08136
 08137                    b.HasIndex("RecStateId");
 08138
 08139                    b.HasIndex("SupplierDepartmentId");
 08140
 08141                    b.ToTable("PricesTrend");
 08142                });
 8143
 08144            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrendDetail", b =>
 08145                {
 08146                    b.Property<long>("Id")
 08147                        .ValueGeneratedOnAdd()
 08148                        .HasColumnType("bigint")
 08149                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08150
 08151                    b.Property<long?>("CreatedByUserId")
 08152                        .HasColumnType("bigint");
 08153
 08154                    b.Property<DateTime>("CreationDateTime")
 08155                        .HasColumnType("timestamp without time zone");
 08156
 08157                    b.Property<Guid>("GUID")
 08158                        .ValueGeneratedOnAdd()
 08159                        .HasColumnType("uuid");
 08160
 08161                    b.Property<long>("GoodId")
 08162                        .HasColumnType("bigint");
 08163
 08164                    b.Property<bool>("IsDeleted")
 08165                        .HasColumnType("boolean");
 08166
 08167                    b.Property<DateTime?>("ModificationDateTime")
 08168                        .HasColumnType("timestamp without time zone");
 08169
 08170                    b.Property<long?>("ModifiedByUserId")
 08171                        .HasColumnType("bigint");
 08172
 08173                    b.Property<decimal>("PriceNew")
 08174                        .HasColumnType("numeric");
 08175
 08176                    b.Property<decimal?>("PriceOld")
 08177                        .HasColumnType("numeric");
 08178
 08179                    b.Property<long>("PriceTrendId")
 08180                        .HasColumnType("bigint");
 08181
 08182                    b.Property<long?>("RecStateId")
 08183                        .HasColumnType("bigint");
 08184
 08185                    b.HasKey("Id");
 08186
 08187                    b.HasIndex("CreatedByUserId");
 08188
 08189                    b.HasIndex("ModifiedByUserId");
 08190
 08191                    b.HasIndex("PriceTrendId");
 08192
 08193                    b.HasIndex("RecStateId");
 08194
 08195                    b.HasIndex("GoodId", "PriceTrendId")
 08196                        .IsUnique();
 08197
 08198                    b.ToTable("PriceTrendDetails");
 08199                });
 8200
 08201            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoBid", b =>
 08202                {
 08203                    b.Property<long>("Id")
 08204                        .ValueGeneratedOnAdd()
 08205                        .HasColumnType("bigint")
 08206                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08207
 08208                    b.Property<long?>("CreatedByUserId")
 08209                        .HasColumnType("bigint");
 08210
 08211                    b.Property<DateTime>("CreationDate")
 08212                        .HasColumnType("timestamp without time zone");
 08213
 08214                    b.Property<DateTime>("CreationDateTime")
 08215                        .HasColumnType("timestamp without time zone");
 08216
 08217                    b.Property<long>("CustomerDepartmentId")
 08218                        .HasColumnType("bigint");
 08219
 08220                    b.Property<DateTime>("DateEnd")
 08221                        .HasColumnType("timestamp without time zone");
 08222
 08223                    b.Property<Guid>("GUID")
 08224                        .ValueGeneratedOnAdd()
 08225                        .HasColumnType("uuid");
 08226
 08227                    b.Property<long>("GoodId")
 08228                        .HasColumnType("bigint");
 08229
 08230                    b.Property<bool>("IsDeleted")
 08231                        .HasColumnType("boolean");
 08232
 08233                    b.Property<DateTime?>("ModificationDateTime")
 08234                        .HasColumnType("timestamp without time zone");
 08235
 08236                    b.Property<long?>("ModifiedByUserId")
 08237                        .HasColumnType("bigint");
 08238
 08239                    b.Property<decimal>("Price")
 08240                        .HasColumnType("numeric");
 08241
 08242                    b.Property<long>("PromoOfferId")
 08243                        .HasColumnType("bigint");
 08244
 08245                    b.Property<decimal>("Quantity")
 08246                        .HasColumnType("numeric");
 08247
 08248                    b.Property<long?>("RecStateId")
 08249                        .HasColumnType("bigint");
 08250
 08251                    b.Property<decimal>("Sum")
 08252                        .HasColumnType("numeric");
 08253
 08254                    b.HasKey("Id");
 08255
 08256                    b.HasIndex("CreatedByUserId");
 08257
 08258                    b.HasIndex("CustomerDepartmentId");
 08259
 08260                    b.HasIndex("GoodId");
 08261
 08262                    b.HasIndex("ModifiedByUserId");
 08263
 08264                    b.HasIndex("PromoOfferId");
 08265
 08266                    b.HasIndex("RecStateId");
 08267
 08268                    b.ToTable("PromoBids");
 08269                });
 8270
 08271            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoOffer", b =>
 08272                {
 08273                    b.Property<long>("Id")
 08274                        .ValueGeneratedOnAdd()
 08275                        .HasColumnType("bigint")
 08276                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08277
 08278                    b.Property<long?>("CreatedByUserId")
 08279                        .HasColumnType("bigint");
 08280
 08281                    b.Property<DateTime>("CreationDateTime")
 08282                        .HasColumnType("timestamp without time zone");
 08283
 08284                    b.Property<DateTime>("DateBegin")
 08285                        .HasColumnType("timestamp without time zone");
 08286
 08287                    b.Property<DateTime>("DateEnd")
 08288                        .HasColumnType("timestamp without time zone");
 08289
 08290                    b.Property<Guid>("GUID")
 08291                        .ValueGeneratedOnAdd()
 08292                        .HasColumnType("uuid");
 08293
 08294                    b.Property<long>("GoodId")
 08295                        .HasColumnType("bigint");
 08296
 08297                    b.Property<bool>("IsDeleted")
 08298                        .HasColumnType("boolean");
 08299
 08300                    b.Property<decimal?>("MaxQuantity")
 08301                        .HasColumnType("numeric");
 08302
 08303                    b.Property<decimal>("MinQuantity")
 08304                        .HasColumnType("numeric");
 08305
 08306                    b.Property<DateTime?>("ModificationDateTime")
 08307                        .HasColumnType("timestamp without time zone");
 08308
 08309                    b.Property<long?>("ModifiedByUserId")
 08310                        .HasColumnType("bigint");
 08311
 08312                    b.Property<decimal>("Price")
 08313                        .HasColumnType("numeric");
 08314
 08315                    b.Property<long?>("RecStateId")
 08316                        .HasColumnType("bigint");
 08317
 08318                    b.Property<long>("SupplierDepartmentId")
 08319                        .HasColumnType("bigint");
 08320
 08321                    b.HasKey("Id");
 08322
 08323                    b.HasIndex("CreatedByUserId");
 08324
 08325                    b.HasIndex("GoodId");
 08326
 08327                    b.HasIndex("ModifiedByUserId");
 08328
 08329                    b.HasIndex("RecStateId");
 08330
 08331                    b.HasIndex("SupplierDepartmentId");
 08332
 08333                    b.ToTable("PromoOffers");
 08334                });
 8335
 08336            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", b =>
 08337                {
 08338                    b.Property<long>("Id")
 08339                        .ValueGeneratedOnAdd()
 08340                        .HasColumnType("bigint")
 08341                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08342
 08343                    b.Property<string>("Code")
 08344                        .IsRequired()
 08345                        .HasColumnType("text");
 08346
 08347                    b.Property<long?>("CreatedByUserId")
 08348                        .HasColumnType("bigint");
 08349
 08350                    b.Property<DateTime>("CreationDateTime")
 08351                        .HasColumnType("timestamp without time zone");
 08352
 08353                    b.Property<string>("Description")
 08354                        .HasColumnType("text");
 08355
 08356                    b.Property<Guid>("GUID")
 08357                        .ValueGeneratedOnAdd()
 08358                        .HasColumnType("uuid");
 08359
 08360                    b.Property<bool>("IsDeleted")
 08361                        .HasColumnType("boolean");
 08362
 08363                    b.Property<DateTime?>("ModificationDateTime")
 08364                        .HasColumnType("timestamp without time zone");
 08365
 08366                    b.Property<long?>("ModifiedByUserId")
 08367                        .HasColumnType("bigint");
 08368
 08369                    b.Property<string>("Name")
 08370                        .IsRequired()
 08371                        .HasColumnType("text");
 08372
 08373                    b.Property<long?>("RecStateId")
 08374                        .HasColumnType("bigint");
 08375
 08376                    b.HasKey("Id");
 08377
 08378                    b.HasIndex("CreatedByUserId");
 08379
 08380                    b.HasIndex("ModifiedByUserId");
 08381
 08382                    b.HasIndex("RecStateId");
 08383
 08384                    b.ToTable("RecordsState");
 08385
 08386                    b.HasData(
 08387                        new
 08388                        {
 08389                            Id = 1L,
 08390                            Code = "Error",
 08391                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08392                            Description = "",
 08393                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08394                            IsDeleted = false,
 08395                            Name = "Ошибка"
 08396                        },
 08397                        new
 08398                        {
 08399                            Id = 2L,
 08400                            Code = "Active",
 08401                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08402                            Description = "",
 08403                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08404                            IsDeleted = false,
 08405                            Name = "Активно"
 08406                        },
 08407                        new
 08408                        {
 08409                            Id = 3L,
 08410                            Code = "Inactive",
 08411                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08412                            Description = "",
 08413                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08414                            IsDeleted = false,
 08415                            Name = "Неактивно"
 08416                        },
 08417                        new
 08418                        {
 08419                            Id = 4L,
 08420                            Code = "Deleted",
 08421                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08422                            Description = "",
 08423                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08424                            IsDeleted = false,
 08425                            Name = "Удалено"
 08426                        },
 08427                        new
 08428                        {
 08429                            Id = 5L,
 08430                            Code = "Empty",
 08431                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08432                            Description = "",
 08433                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08434                            IsDeleted = false,
 08435                            Name = "Пусто"
 08436                        });
 08437                });
 8438
 08439            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Rest", b =>
 08440                {
 08441                    b.Property<long>("Id")
 08442                        .ValueGeneratedOnAdd()
 08443                        .HasColumnType("bigint")
 08444                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08445
 08446                    b.Property<long?>("CreatedByUserId")
 08447                        .HasColumnType("bigint");
 08448
 08449                    b.Property<DateTime>("CreationDateTime")
 08450                        .HasColumnType("timestamp without time zone");
 08451
 08452                    b.Property<long>("DepartmentId")
 08453                        .HasColumnType("bigint");
 08454
 08455                    b.Property<Guid>("GUID")
 08456                        .ValueGeneratedOnAdd()
 08457                        .HasColumnType("uuid");
 08458
 08459                    b.Property<long>("GoodId")
 08460                        .HasColumnType("bigint");
 08461
 08462                    b.Property<bool>("IsDeleted")
 08463                        .HasColumnType("boolean");
 08464
 08465                    b.Property<DateTime?>("ModificationDateTime")
 08466                        .HasColumnType("timestamp without time zone");
 08467
 08468                    b.Property<long?>("ModifiedByUserId")
 08469                        .HasColumnType("bigint");
 08470
 08471                    b.Property<decimal>("Quantity")
 08472                        .HasColumnType("numeric");
 08473
 08474                    b.Property<long?>("RecStateId")
 08475                        .HasColumnType("bigint");
 08476
 08477                    b.HasKey("Id");
 08478
 08479                    b.HasIndex("CreatedByUserId");
 08480
 08481                    b.HasIndex("DepartmentId");
 08482
 08483                    b.HasIndex("ModifiedByUserId");
 08484
 08485                    b.HasIndex("RecStateId");
 08486
 08487                    b.HasIndex("GoodId", "DepartmentId")
 08488                        .IsUnique();
 08489
 08490                    b.ToTable("Rests");
 08491                });
 8492
 08493            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", b =>
 08494                {
 08495                    b.Property<long>("Id")
 08496                        .ValueGeneratedOnAdd()
 08497                        .HasColumnType("bigint")
 08498                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08499
 08500                    b.Property<long?>("CreatedByUserId")
 08501                        .HasColumnType("bigint");
 08502
 08503                    b.Property<DateTime>("CreationDateTime")
 08504                        .HasColumnType("timestamp without time zone");
 08505
 08506                    b.Property<string>("Description")
 08507                        .HasColumnType("text");
 08508
 08509                    b.Property<Guid>("GUID")
 08510                        .ValueGeneratedOnAdd()
 08511                        .HasColumnType("uuid");
 08512
 08513                    b.Property<bool>("IsDeleted")
 08514                        .HasColumnType("boolean");
 08515
 08516                    b.Property<DateTime?>("ModificationDateTime")
 08517                        .HasColumnType("timestamp without time zone");
 08518
 08519                    b.Property<long?>("ModifiedByUserId")
 08520                        .HasColumnType("bigint");
 08521
 08522                    b.Property<string>("Name")
 08523                        .IsRequired()
 08524                        .HasColumnType("text");
 08525
 08526                    b.Property<long?>("RecStateId")
 08527                        .HasColumnType("bigint");
 08528
 08529                    b.HasKey("Id");
 08530
 08531                    b.HasIndex("CreatedByUserId");
 08532
 08533                    b.HasIndex("ModifiedByUserId");
 08534
 08535                    b.HasIndex("RecStateId");
 08536
 08537                    b.ToTable("Roles");
 08538
 08539                    b.HasData(
 08540                        new
 08541                        {
 08542                            Id = 1L,
 08543                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08544                            Description = "Администратор системы",
 08545                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08546                            IsDeleted = false,
 08547                            Name = "dd_sys_hi_level"
 08548                        },
 08549                        new
 08550                        {
 08551                            Id = 2L,
 08552                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08553                            Description = "Оператор системы",
 08554                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08555                            IsDeleted = false,
 08556                            Name = "dd_sys_low_level"
 08557                        },
 08558                        new
 08559                        {
 08560                            Id = 3L,
 08561                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08562                            Description = "Владелец магазина",
 08563                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08564                            IsDeleted = false,
 08565                            Name = "dd_cust_hi_level"
 08566                        },
 08567                        new
 08568                        {
 08569                            Id = 4L,
 08570                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08571                            Description = "Товаровед магазина",
 08572                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08573                            IsDeleted = false,
 08574                            Name = "dd_cust_mid_level"
 08575                        },
 08576                        new
 08577                        {
 08578                            Id = 5L,
 08579                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08580                            Description = "Продавец магазина",
 08581                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08582                            IsDeleted = false,
 08583                            Name = "dd_cust_low_level"
 08584                        },
 08585                        new
 08586                        {
 08587                            Id = 6L,
 08588                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08589                            Description = "Владелец поставщика (дистрибьютера)",
 08590                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08591                            IsDeleted = false,
 08592                            Name = "dd_supp_hi_level"
 08593                        },
 08594                        new
 08595                        {
 08596                            Id = 7L,
 08597                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08598                            Description = "Управляющий поставщика",
 08599                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08600                            IsDeleted = false,
 08601                            Name = "dd_supp_mid_level"
 08602                        },
 08603                        new
 08604                        {
 08605                            Id = 8L,
 08606                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08607                            Description = "Кладовщик поставщика",
 08608                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08609                            IsDeleted = false,
 08610                            Name = "dd_supp_low_level"
 08611                        },
 08612                        new
 08613                        {
 08614                            Id = 9L,
 08615                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08616                            Description = "Анонимный пользователь",
 08617                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08618                            IsDeleted = false,
 08619                            Name = "dd_anonym"
 08620                        });
 08621                });
 8622
 08623            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.SupplyContract", b =>
 08624                {
 08625                    b.Property<long>("Id")
 08626                        .ValueGeneratedOnAdd()
 08627                        .HasColumnType("bigint")
 08628                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08629
 08630                    b.Property<DateTime>("BeginDate")
 08631                        .HasColumnType("timestamp without time zone");
 08632
 08633                    b.Property<long>("BuyerId")
 08634                        .HasColumnType("bigint");
 08635
 08636                    b.Property<long?>("CreatedByUserId")
 08637                        .HasColumnType("bigint");
 08638
 08639                    b.Property<DateTime>("CreationDateTime")
 08640                        .HasColumnType("timestamp without time zone");
 08641
 08642                    b.Property<string>("DocumentNumber")
 08643                        .IsRequired()
 08644                        .HasColumnType("text");
 08645
 08646                    b.Property<DateTime>("EndDate")
 08647                        .HasColumnType("timestamp without time zone");
 08648
 08649                    b.Property<Guid>("GUID")
 08650                        .ValueGeneratedOnAdd()
 08651                        .HasColumnType("uuid");
 08652
 08653                    b.Property<bool>("IsDeleted")
 08654                        .HasColumnType("boolean");
 08655
 08656                    b.Property<DateTime?>("ModificationDateTime")
 08657                        .HasColumnType("timestamp without time zone");
 08658
 08659                    b.Property<long?>("ModifiedByUserId")
 08660                        .HasColumnType("bigint");
 08661
 08662                    b.Property<decimal>("PrepaimentPercent")
 08663                        .HasColumnType("numeric");
 08664
 08665                    b.Property<long?>("RecStateId")
 08666                        .HasColumnType("bigint");
 08667
 08668                    b.Property<long>("SellerId")
 08669                        .HasColumnType("bigint");
 08670
 08671                    b.Property<DateTime>("SignOffDate")
 08672                        .HasColumnType("timestamp without time zone");
 08673
 08674                    b.Property<decimal>("TradeRatio")
 08675                        .HasColumnType("numeric");
 08676
 08677                    b.HasKey("Id");
 08678
 08679                    b.HasIndex("BuyerId");
 08680
 08681                    b.HasIndex("CreatedByUserId");
 08682
 08683                    b.HasIndex("DocumentNumber");
 08684
 08685                    b.HasIndex("ModifiedByUserId");
 08686
 08687                    b.HasIndex("RecStateId");
 08688
 08689                    b.HasIndex("SellerId");
 08690
 08691                    b.ToTable("SupplyContract");
 08692                });
 8693
 08694            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.TaxSystem", b =>
 08695                {
 08696                    b.Property<long>("Id")
 08697                        .ValueGeneratedOnAdd()
 08698                        .HasColumnType("bigint")
 08699                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08700
 08701                    b.Property<string>("Code")
 08702                        .HasColumnType("text");
 08703
 08704                    b.Property<long?>("CreatedByUserId")
 08705                        .HasColumnType("bigint");
 08706
 08707                    b.Property<DateTime>("CreationDateTime")
 08708                        .HasColumnType("timestamp without time zone");
 08709
 08710                    b.Property<string>("Description")
 08711                        .HasColumnType("text");
 08712
 08713                    b.Property<Guid>("GUID")
 08714                        .ValueGeneratedOnAdd()
 08715                        .HasColumnType("uuid");
 08716
 08717                    b.Property<bool>("IsDeleted")
 08718                        .HasColumnType("boolean");
 08719
 08720                    b.Property<DateTime?>("ModificationDateTime")
 08721                        .HasColumnType("timestamp without time zone");
 08722
 08723                    b.Property<long?>("ModifiedByUserId")
 08724                        .HasColumnType("bigint");
 08725
 08726                    b.Property<string>("Name")
 08727                        .HasColumnType("text");
 08728
 08729                    b.Property<long?>("RecStateId")
 08730                        .HasColumnType("bigint");
 08731
 08732                    b.HasKey("Id");
 08733
 08734                    b.HasIndex("CreatedByUserId");
 08735
 08736                    b.HasIndex("ModifiedByUserId");
 08737
 08738                    b.HasIndex("RecStateId");
 08739
 08740                    b.ToTable("TaxSystems");
 08741
 08742                    b.HasData(
 08743                        new
 08744                        {
 08745                            Id = 1L,
 08746                            Code = "УСН",
 08747                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08748                            Description = "Упрощенка",
 08749                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08750                            IsDeleted = false,
 08751                            Name = "Упрощенная система налогообложения"
 08752                        },
 08753                        new
 08754                        {
 08755                            Id = 2L,
 08756                            Code = "ЕНВД",
 08757                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08758                            Description = "Вмененка",
 08759                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08760                            IsDeleted = false,
 08761                            Name = "Единый налог на вмененные доходы"
 08762                        },
 08763                        new
 08764                        {
 08765                            Id = 3L,
 08766                            Code = "ES",
 08767                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08768                            Description = "Единый сельскохозяйственный налог",
 08769                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08770                            IsDeleted = false,
 08771                            Name = "ЕСХН"
 08772                        },
 08773                        new
 08774                        {
 08775                            Id = 4L,
 08776                            Code = "ОСН",
 08777                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08778                            Description = "Стандартная",
 08779                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08780                            IsDeleted = false,
 08781                            Name = "Основная система налогообложения"
 08782                        });
 08783                });
 8784
 08785            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UnitsKind", b =>
 08786                {
 08787                    b.Property<long>("Id")
 08788                        .ValueGeneratedOnAdd()
 08789                        .HasColumnType("bigint")
 08790                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08791
 08792                    b.Property<string>("Code")
 08793                        .IsRequired()
 08794                        .HasColumnType("text");
 08795
 08796                    b.Property<long?>("CreatedByUserId")
 08797                        .HasColumnType("bigint");
 08798
 08799                    b.Property<DateTime>("CreationDateTime")
 08800                        .HasColumnType("timestamp without time zone");
 08801
 08802                    b.Property<string>("Description")
 08803                        .HasColumnType("text");
 08804
 08805                    b.Property<Guid>("GUID")
 08806                        .ValueGeneratedOnAdd()
 08807                        .HasColumnType("uuid");
 08808
 08809                    b.Property<bool>("IsDeleted")
 08810                        .HasColumnType("boolean");
 08811
 08812                    b.Property<DateTime?>("ModificationDateTime")
 08813                        .HasColumnType("timestamp without time zone");
 08814
 08815                    b.Property<long?>("ModifiedByUserId")
 08816                        .HasColumnType("bigint");
 08817
 08818                    b.Property<string>("Name")
 08819                        .IsRequired()
 08820                        .HasColumnType("text");
 08821
 08822                    b.Property<long?>("RecStateId")
 08823                        .HasColumnType("bigint");
 08824
 08825                    b.Property<string>("StrCode")
 08826                        .HasColumnType("text");
 08827
 08828                    b.HasKey("Id");
 08829
 08830                    b.HasIndex("CreatedByUserId");
 08831
 08832                    b.HasIndex("ModifiedByUserId");
 08833
 08834                    b.HasIndex("RecStateId");
 08835
 08836                    b.ToTable("UnitsKind");
 08837
 08838                    b.HasData(
 08839                        new
 08840                        {
 08841                            Id = 1L,
 08842                            Code = "1",
 08843                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08844                            Description = "",
 08845                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08846                            IsDeleted = false,
 08847                            Name = "Неизвестно",
 08848                            StrCode = "Unknown"
 08849                        },
 08850                        new
 08851                        {
 08852                            Id = 2L,
 08853                            Code = "166",
 08854                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08855                            Description = "Килограмм",
 08856                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08857                            IsDeleted = false,
 08858                            Name = "КГ",
 08859                            StrCode = "Kg"
 08860                        },
 08861                        new
 08862                        {
 08863                            Id = 3L,
 08864                            Code = "112",
 08865                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08866                            Description = "Литр",
 08867                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08868                            IsDeleted = false,
 08869                            Name = "Л",
 08870                            StrCode = "Litre"
 08871                        },
 08872                        new
 08873                        {
 08874                            Id = 4L,
 08875                            Code = "6",
 08876                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08877                            Description = "Метр",
 08878                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08879                            IsDeleted = false,
 08880                            Name = "М",
 08881                            StrCode = "Meter"
 08882                        },
 08883                        new
 08884                        {
 08885                            Id = 5L,
 08886                            Code = "796",
 08887                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08888                            Description = "Штука (1 единица товара)",
 08889                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08890                            IsDeleted = false,
 08891                            Name = "ШТ",
 08892                            StrCode = "Item"
 08893                        },
 08894                        new
 08895                        {
 08896                            Id = 6L,
 08897                            Code = "55",
 08898                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08899                            Description = "Квадратный метр",
 08900                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08901                            IsDeleted = false,
 08902                            Name = "М2",
 08903                            StrCode = "SquareMetre"
 08904                        },
 08905                        new
 08906                        {
 08907                            Id = 7L,
 08908                            Code = "113",
 08909                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08910                            Description = "Кубический метр",
 08911                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08912                            IsDeleted = false,
 08913                            Name = "М3",
 08914                            StrCode = "CubicMetre"
 08915                        });
 08916                });
 8917
 08918            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Upload", b =>
 08919                {
 08920                    b.Property<long>("Id")
 08921                        .ValueGeneratedOnAdd()
 08922                        .HasColumnType("bigint")
 08923                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08924
 08925                    b.Property<long?>("CreatedByUserId")
 08926                        .HasColumnType("bigint");
 08927
 08928                    b.Property<DateTime>("CreationDateTime")
 08929                        .HasColumnType("timestamp without time zone");
 08930
 08931                    b.Property<Guid>("GUID")
 08932                        .ValueGeneratedOnAdd()
 08933                        .HasColumnType("uuid");
 08934
 08935                    b.Property<bool>("IsDeleted")
 08936                        .HasColumnType("boolean");
 08937
 08938                    b.Property<DateTime?>("ModificationDateTime")
 08939                        .HasColumnType("timestamp without time zone");
 08940
 08941                    b.Property<long?>("ModifiedByUserId")
 08942                        .HasColumnType("bigint");
 08943
 08944                    b.Property<long?>("RecStateId")
 08945                        .HasColumnType("bigint");
 08946
 08947                    b.Property<byte[]>("ResultFile")
 08948                        .HasColumnType("bytea");
 08949
 08950                    b.Property<byte[]>("SourceFile")
 08951                        .HasColumnType("bytea");
 08952
 08953                    b.Property<int>("SourceRecordCount")
 08954                        .HasColumnType("integer");
 08955
 08956                    b.Property<int>("Status")
 08957                        .HasColumnType("integer");
 08958
 08959                    b.Property<int>("UploadedRecordCount")
 08960                        .HasColumnType("integer");
 08961
 08962                    b.HasKey("Id");
 08963
 08964                    b.HasIndex("CreatedByUserId");
 08965
 08966                    b.HasIndex("ModifiedByUserId");
 08967
 08968                    b.HasIndex("RecStateId");
 08969
 08970                    b.ToTable("Uploads");
 08971                });
 8972
 08973            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UploadItem", b =>
 08974                {
 08975                    b.Property<long>("Id")
 08976                        .ValueGeneratedOnAdd()
 08977                        .HasColumnType("bigint")
 08978                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08979
 08980                    b.Property<long?>("CreatedByUserId")
 08981                        .HasColumnType("bigint");
 08982
 08983                    b.Property<DateTime>("CreationDateTime")
 08984                        .HasColumnType("timestamp without time zone");
 08985
 08986                    b.Property<long>("EndityId")
 08987                        .HasColumnType("bigint");
 08988
 08989                    b.Property<string>("EntityName")
 08990                        .IsRequired()
 08991                        .HasColumnType("text");
 08992
 08993                    b.Property<Guid>("GUID")
 08994                        .ValueGeneratedOnAdd()
 08995                        .HasColumnType("uuid");
 08996
 08997                    b.Property<bool>("IsDeleted")
 08998                        .HasColumnType("boolean");
 08999
 09000                    b.Property<DateTime?>("ModificationDateTime")
 09001                        .HasColumnType("timestamp without time zone");
 09002
 09003                    b.Property<long?>("ModifiedByUserId")
 09004                        .HasColumnType("bigint");
 09005
 09006                    b.Property<long?>("RecStateId")
 09007                        .HasColumnType("bigint");
 09008
 09009                    b.Property<long>("UploadId")
 09010                        .HasColumnType("bigint");
 09011
 09012                    b.HasKey("Id");
 09013
 09014                    b.HasIndex("CreatedByUserId");
 09015
 09016                    b.HasIndex("ModifiedByUserId");
 09017
 09018                    b.HasIndex("RecStateId");
 09019
 09020                    b.HasIndex("UploadId");
 09021
 09022                    b.ToTable("UploadItems");
 09023                });
 9024
 09025            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", b =>
 09026                {
 09027                    b.Property<long>("Id")
 09028                        .ValueGeneratedOnAdd()
 09029                        .HasColumnType("bigint")
 09030                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09031
 09032                    b.Property<long?>("ContragentId")
 09033                        .HasColumnType("bigint");
 09034
 09035                    b.Property<long?>("CreatedByUserId")
 09036                        .HasColumnType("bigint");
 09037
 09038                    b.Property<DateTime>("CreationDateTime")
 09039                        .HasColumnType("timestamp without time zone");
 09040
 09041                    b.Property<string>("Email")
 09042                        .IsRequired()
 09043                        .HasColumnType("text");
 09044
 09045                    b.Property<Guid>("ExternalKey")
 09046                        .ValueGeneratedOnAdd()
 09047                        .HasColumnType("uuid");
 09048
 09049                    b.Property<string>("FirstName")
 09050                        .IsRequired()
 09051                        .HasColumnType("text");
 09052
 09053                    b.Property<Guid>("GUID")
 09054                        .ValueGeneratedOnAdd()
 09055                        .HasColumnType("uuid");
 09056
 09057                    b.Property<bool>("IsBlocked")
 09058                        .HasColumnType("boolean");
 09059
 09060                    b.Property<bool>("IsContactPerson")
 09061                        .HasColumnType("boolean");
 09062
 09063                    b.Property<bool>("IsDeleted")
 09064                        .HasColumnType("boolean");
 09065
 09066                    b.Property<string>("LastName")
 09067                        .IsRequired()
 09068                        .HasColumnType("text");
 09069
 09070                    b.Property<string>("Login")
 09071                        .HasColumnType("text");
 09072
 09073                    b.Property<string>("MiddleName")
 09074                        .HasColumnType("text");
 09075
 09076                    b.Property<DateTime?>("ModificationDateTime")
 09077                        .HasColumnType("timestamp without time zone");
 09078
 09079                    b.Property<long?>("ModifiedByUserId")
 09080                        .HasColumnType("bigint");
 09081
 09082                    b.Property<string>("Phone")
 09083                        .HasColumnType("text");
 09084
 09085                    b.Property<string>("Position")
 09086                        .IsRequired()
 09087                        .HasColumnType("text");
 09088
 09089                    b.Property<long?>("RecStateId")
 09090                        .HasColumnType("bigint");
 09091
 09092                    b.HasKey("Id");
 09093
 09094                    b.HasIndex("ContragentId");
 09095
 09096                    b.HasIndex("CreatedByUserId");
 09097
 09098                    b.HasIndex("Email");
 09099
 09100                    b.HasIndex("LastName");
 09101
 09102                    b.HasIndex("Login");
 09103
 09104                    b.HasIndex("ModifiedByUserId");
 09105
 09106                    b.HasIndex("Phone");
 09107
 09108                    b.HasIndex("RecStateId");
 09109
 09110                    b.ToTable("Users");
 09111
 09112                    b.HasData(
 09113                        new
 09114                        {
 09115                            Id = -1L,
 09116                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09117                            Email = "EmbeddedSvetaAdmin@dd.com",
 09118                            ExternalKey = new Guid("00000000-0000-0000-0000-000000000000"),
 09119                            FirstName = "1",
 09120                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09121                            IsBlocked = false,
 09122                            IsContactPerson = true,
 09123                            IsDeleted = false,
 09124                            LastName = "1",
 09125                            Login = "svetaAdmin",
 09126                            MiddleName = "1",
 09127                            Phone = "1",
 09128                            Position = "1"
 09129                        },
 09130                        new
 09131                        {
 09132                            Id = -2L,
 09133                            ContragentId = -1L,
 09134                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09135                            Email = "EmbeddedAnonymUser@dd.com",
 09136                            ExternalKey = new Guid("00000000-0000-0000-0000-000000000000"),
 09137                            FirstName = "Anonym User",
 09138                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09139                            IsBlocked = false,
 09140                            IsContactPerson = true,
 09141                            IsDeleted = false,
 09142                            LastName = "1",
 09143                            Login = "Anonym User",
 09144                            MiddleName = "Anonym User",
 09145                            Phone = "1",
 09146                            Position = "Анонимная УЗ, не удалять"
 09147                        });
 09148                });
 9149
 09150            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserDepartment", b =>
 09151                {
 09152                    b.Property<long>("UserId")
 09153                        .HasColumnType("bigint");
 09154
 09155                    b.Property<long>("DepartmentId")
 09156                        .HasColumnType("bigint");
 09157
 09158                    b.Property<long?>("CreatedByUserId")
 09159                        .HasColumnType("bigint");
 09160
 09161                    b.Property<DateTime>("CreationDateTime")
 09162                        .HasColumnType("timestamp without time zone");
 09163
 09164                    b.Property<Guid>("GUID")
 09165                        .ValueGeneratedOnAdd()
 09166                        .HasColumnType("uuid");
 09167
 09168                    b.HasKey("UserId", "DepartmentId");
 09169
 09170                    b.HasIndex("DepartmentId");
 09171
 09172                    b.ToTable("UserDepartment");
 09173
 09174                    b.HasData(
 09175                        new
 09176                        {
 09177                            UserId = -2L,
 09178                            DepartmentId = -1L,
 09179                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09180                            GUID = new Guid("00000000-0000-0000-0000-000000000000")
 09181                        });
 09182                });
 9183
 09184            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserRole", b =>
 09185                {
 09186                    b.Property<long>("UserId")
 09187                        .HasColumnType("bigint");
 09188
 09189                    b.Property<long>("RoleId")
 09190                        .HasColumnType("bigint");
 09191
 09192                    b.Property<long?>("CreatedByUserId")
 09193                        .HasColumnType("bigint");
 09194
 09195                    b.Property<DateTime>("CreationDateTime")
 09196                        .HasColumnType("timestamp without time zone");
 09197
 09198                    b.Property<Guid>("GUID")
 09199                        .ValueGeneratedOnAdd()
 09200                        .HasColumnType("uuid");
 09201
 09202                    b.HasKey("UserId", "RoleId");
 09203
 09204                    b.HasIndex("RoleId");
 09205
 09206                    b.ToTable("UserRole");
 09207                });
 9208
 09209            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.VatsKind", b =>
 09210                {
 09211                    b.Property<long>("Id")
 09212                        .ValueGeneratedOnAdd()
 09213                        .HasColumnType("bigint")
 09214                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09215
 09216                    b.Property<string>("Code")
 09217                        .IsRequired()
 09218                        .HasColumnType("text");
 09219
 09220                    b.Property<long?>("CreatedByUserId")
 09221                        .HasColumnType("bigint");
 09222
 09223                    b.Property<DateTime>("CreationDateTime")
 09224                        .HasColumnType("timestamp without time zone");
 09225
 09226                    b.Property<string>("Description")
 09227                        .HasColumnType("text");
 09228
 09229                    b.Property<Guid>("GUID")
 09230                        .ValueGeneratedOnAdd()
 09231                        .HasColumnType("uuid");
 09232
 09233                    b.Property<bool>("IsDeleted")
 09234                        .HasColumnType("boolean");
 09235
 09236                    b.Property<DateTime?>("ModificationDateTime")
 09237                        .HasColumnType("timestamp without time zone");
 09238
 09239                    b.Property<long?>("ModifiedByUserId")
 09240                        .HasColumnType("bigint");
 09241
 09242                    b.Property<string>("Name")
 09243                        .IsRequired()
 09244                        .HasColumnType("text");
 09245
 09246                    b.Property<long?>("RecStateId")
 09247                        .HasColumnType("bigint");
 09248
 09249                    b.Property<string>("StrCode")
 09250                        .HasColumnType("text");
 09251
 09252                    b.HasKey("Id");
 09253
 09254                    b.HasIndex("CreatedByUserId");
 09255
 09256                    b.HasIndex("ModifiedByUserId");
 09257
 09258                    b.HasIndex("RecStateId");
 09259
 09260                    b.ToTable("VatsKind");
 09261
 09262                    b.HasData(
 09263                        new
 09264                        {
 09265                            Id = 1L,
 09266                            Code = "1",
 09267                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09268                            Description = "",
 09269                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09270                            IsDeleted = false,
 09271                            Name = "0%",
 09272                            StrCode = "Zero"
 09273                        },
 09274                        new
 09275                        {
 09276                            Id = 2L,
 09277                            Code = "10",
 09278                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09279                            Description = "",
 09280                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09281                            IsDeleted = false,
 09282                            Name = "10%",
 09283                            StrCode = "Ten"
 09284                        },
 09285                        new
 09286                        {
 09287                            Id = 3L,
 09288                            Code = "20",
 09289                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09290                            Description = "",
 09291                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09292                            IsDeleted = false,
 09293                            Name = "20%",
 09294                            StrCode = "Twenty"
 09295                        });
 09296                });
 9297
 09298            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransaction", b =>
 09299                {
 09300                    b.Property<long>("Id")
 09301                        .ValueGeneratedOnAdd()
 09302                        .HasColumnType("bigint")
 09303                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09304
 09305                    b.Property<long?>("CreatedByUserId")
 09306                        .HasColumnType("bigint");
 09307
 09308                    b.Property<DateTime>("CreationDateTime")
 09309                        .HasColumnType("timestamp without time zone");
 09310
 09311                    b.Property<Guid>("GUID")
 09312                        .ValueGeneratedOnAdd()
 09313                        .HasColumnType("uuid");
 09314
 09315                    b.Property<bool>("IsDeleted")
 09316                        .HasColumnType("boolean");
 09317
 09318                    b.Property<DateTime?>("ModificationDateTime")
 09319                        .HasColumnType("timestamp without time zone");
 09320
 09321                    b.Property<long?>("ModifiedByUserId")
 09322                        .HasColumnType("bigint");
 09323
 09324                    b.Property<long?>("MovementId")
 09325                        .HasColumnType("bigint");
 09326
 09327                    b.Property<long?>("RecStateId")
 09328                        .HasColumnType("bigint");
 09329
 09330                    b.Property<string>("SmsId")
 09331                        .HasColumnType("text");
 09332
 09333                    b.Property<long?>("StatusId")
 09334                        .HasColumnType("bigint");
 09335
 09336                    b.Property<decimal>("Sum")
 09337                        .HasColumnType("numeric");
 09338
 09339                    b.Property<string>("TransactionId")
 09340                        .HasColumnType("text");
 09341
 09342                    b.HasKey("Id");
 09343
 09344                    b.HasIndex("CreatedByUserId");
 09345
 09346                    b.HasIndex("ModifiedByUserId");
 09347
 09348                    b.HasIndex("MovementId");
 09349
 09350                    b.HasIndex("RecStateId");
 09351
 09352                    b.HasIndex("StatusId");
 09353
 09354                    b.ToTable("WalletTransactions");
 09355                });
 9356
 09357            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransactionStatus", b =>
 09358                {
 09359                    b.Property<long>("Id")
 09360                        .ValueGeneratedOnAdd()
 09361                        .HasColumnType("bigint")
 09362                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09363
 09364                    b.Property<string>("Code")
 09365                        .IsRequired()
 09366                        .HasColumnType("text");
 09367
 09368                    b.Property<long?>("CreatedByUserId")
 09369                        .HasColumnType("bigint");
 09370
 09371                    b.Property<DateTime>("CreationDateTime")
 09372                        .HasColumnType("timestamp without time zone");
 09373
 09374                    b.Property<string>("Description")
 09375                        .HasColumnType("text");
 09376
 09377                    b.Property<Guid>("GUID")
 09378                        .ValueGeneratedOnAdd()
 09379                        .HasColumnType("uuid");
 09380
 09381                    b.Property<bool>("IsDeleted")
 09382                        .HasColumnType("boolean");
 09383
 09384                    b.Property<DateTime?>("ModificationDateTime")
 09385                        .HasColumnType("timestamp without time zone");
 09386
 09387                    b.Property<long?>("ModifiedByUserId")
 09388                        .HasColumnType("bigint");
 09389
 09390                    b.Property<string>("Name")
 09391                        .IsRequired()
 09392                        .HasColumnType("text");
 09393
 09394                    b.Property<long?>("RecStateId")
 09395                        .HasColumnType("bigint");
 09396
 09397                    b.HasKey("Id");
 09398
 09399                    b.HasIndex("CreatedByUserId");
 09400
 09401                    b.HasIndex("ModifiedByUserId");
 09402
 09403                    b.HasIndex("RecStateId");
 09404
 09405                    b.ToTable("WalletTransactionStatuses");
 09406
 09407                    b.HasData(
 09408                        new
 09409                        {
 09410                            Id = 1L,
 09411                            Code = "WaitSms",
 09412                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09413                            Description = "",
 09414                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09415                            IsDeleted = false,
 09416                            Name = "Ожидание смс подтверждения"
 09417                        },
 09418                        new
 09419                        {
 09420                            Id = 2L,
 09421                            Code = "Hold",
 09422                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09423                            Description = "",
 09424                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09425                            IsDeleted = false,
 09426                            Name = "Холдировано"
 09427                        },
 09428                        new
 09429                        {
 09430                            Id = 3L,
 09431                            Code = "Confirm",
 09432                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09433                            Description = "",
 09434                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09435                            IsDeleted = false,
 09436                            Name = "Подтверждено"
 09437                        },
 09438                        new
 09439                        {
 09440                            Id = 4L,
 09441                            Code = "Cancel",
 09442                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09443                            Description = "",
 09444                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09445                            IsDeleted = false,
 09446                            Name = "Отменено"
 09447                        });
 09448                });
 9449
 09450            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WorkSchedule", b =>
 09451                {
 09452                    b.Property<long>("Id")
 09453                        .ValueGeneratedOnAdd()
 09454                        .HasColumnType("bigint")
 09455                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09456
 09457                    b.Property<DateTime>("BeginTime")
 09458                        .HasColumnType("timestamp without time zone");
 09459
 09460                    b.Property<long?>("CreatedByUserId")
 09461                        .HasColumnType("bigint");
 09462
 09463                    b.Property<DateTime>("CreationDateTime")
 09464                        .HasColumnType("timestamp without time zone");
 09465
 09466                    b.Property<DateTime>("EndTime")
 09467                        .HasColumnType("timestamp without time zone");
 09468
 09469                    b.Property<Guid>("GUID")
 09470                        .ValueGeneratedOnAdd()
 09471                        .HasColumnType("uuid");
 09472
 09473                    b.Property<bool>("IsDeleted")
 09474                        .HasColumnType("boolean");
 09475
 09476                    b.Property<bool>("IsWorkingDay")
 09477                        .HasColumnType("boolean");
 09478
 09479                    b.Property<DateTime?>("ModificationDateTime")
 09480                        .HasColumnType("timestamp without time zone");
 09481
 09482                    b.Property<long?>("ModifiedByUserId")
 09483                        .HasColumnType("bigint");
 09484
 09485                    b.Property<long?>("RecStateId")
 09486                        .HasColumnType("bigint");
 09487
 09488                    b.HasKey("Id");
 09489
 09490                    b.HasIndex("CreatedByUserId");
 09491
 09492                    b.HasIndex("ModifiedByUserId");
 09493
 09494                    b.HasIndex("RecStateId");
 09495
 09496                    b.ToTable("WorkScheduler");
 09497                });
 9498
 09499            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", b =>
 09500                {
 09501                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09502                        .WithMany()
 09503                        .HasForeignKey("CreatedByUserId");
 09504
 09505                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09506                        .WithMany()
 09507                        .HasForeignKey("ModifiedByUserId");
 09508
 09509                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09510                        .WithMany()
 09511                        .HasForeignKey("RecStateId");
 09512                });
 9513
 09514            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.BankAccount", b =>
 09515                {
 09516                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Contragent")
 09517                        .WithMany("BankAccounts")
 09518                        .HasForeignKey("ContragentId");
 09519
 09520                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09521                        .WithMany()
 09522                        .HasForeignKey("CreatedByUserId");
 09523
 09524                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09525                        .WithMany()
 09526                        .HasForeignKey("ModifiedByUserId");
 09527
 09528                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09529                        .WithMany()
 09530                        .HasForeignKey("RecStateId");
 09531                });
 9532
 09533            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.BarCode", b =>
 09534                {
 09535                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09536                        .WithMany()
 09537                        .HasForeignKey("CreatedByUserId");
 09538
 09539                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", null)
 09540                        .WithMany("Barcodes")
 09541                        .HasForeignKey("GoodId");
 09542
 09543                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09544                        .WithMany()
 09545                        .HasForeignKey("ModifiedByUserId");
 09546
 09547                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09548                        .WithMany()
 09549                        .HasForeignKey("RecStateId");
 09550                });
 9551
 09552            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", b =>
 09553                {
 09554                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09555                        .WithMany()
 09556                        .HasForeignKey("CreatedByUserId");
 09557
 09558                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09559                        .WithMany()
 09560                        .HasForeignKey("ModifiedByUserId");
 09561
 09562                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", "Parent")
 09563                        .WithMany()
 09564                        .HasForeignKey("ParentId");
 09565
 09566                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09567                        .WithMany()
 09568                        .HasForeignKey("RecStateId");
 09569                });
 9570
 09571            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", b =>
 09572                {
 09573                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09574                        .WithMany()
 09575                        .HasForeignKey("CreatedByUserId");
 09576
 09577                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09578                        .WithMany()
 09579                        .HasForeignKey("ModifiedByUserId");
 09580
 09581                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", "Parent")
 09582                        .WithMany()
 09583                        .HasForeignKey("ParentId");
 09584
 09585                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09586                        .WithMany()
 09587                        .HasForeignKey("RecStateId");
 09588                });
 9589
 09590            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Cluster", b =>
 09591                {
 09592                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09593                        .WithMany()
 09594                        .HasForeignKey("CreatedByUserId");
 09595
 09596                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09597                        .WithMany()
 09598                        .HasForeignKey("ModifiedByUserId");
 09599
 09600                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09601                        .WithMany()
 09602                        .HasForeignKey("RecStateId");
 09603
 09604                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Warehouse")
 09605                        .WithMany()
 09606                        .HasForeignKey("WarehouseId")
 09607                        .OnDelete(DeleteBehavior.Cascade)
 09608                        .IsRequired();
 09609                });
 9610
 09611            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", b =>
 09612                {
 09613                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.ContragentsKind", "ContragentsKind")
 09614                        .WithMany()
 09615                        .HasForeignKey("ContragentsKindId")
 09616                        .OnDelete(DeleteBehavior.Cascade)
 09617                        .IsRequired();
 09618
 09619                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09620                        .WithMany()
 09621                        .HasForeignKey("CreatedByUserId");
 09622
 09623                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", "JuridicAddress")
 09624                        .WithMany()
 09625                        .HasForeignKey("JuridicAddressId")
 09626                        .OnDelete(DeleteBehavior.Cascade)
 09627                        .IsRequired();
 09628
 09629                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09630                        .WithMany()
 09631                        .HasForeignKey("ModifiedByUserId");
 09632
 09633                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "Owner")
 09634                        .WithMany()
 09635                        .HasForeignKey("OwnerId")
 09636                        .OnDelete(DeleteBehavior.Cascade)
 09637                        .IsRequired();
 09638
 09639                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", "PhysicAddress")
 09640                        .WithMany()
 09641                        .HasForeignKey("PhysicAddressId")
 09642                        .OnDelete(DeleteBehavior.Cascade)
 09643                        .IsRequired();
 09644
 09645                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09646                        .WithMany()
 09647                        .HasForeignKey("RecStateId");
 09648
 09649                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.TaxSystem", "TaxSystem")
 09650                        .WithMany()
 09651                        .HasForeignKey("TaxSystemId");
 09652                });
 9653
 09654            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ContragentsKind", b =>
 09655                {
 09656                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09657                        .WithMany()
 09658                        .HasForeignKey("CreatedByUserId");
 09659
 09660                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09661                        .WithMany()
 09662                        .HasForeignKey("ModifiedByUserId");
 09663
 09664                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09665                        .WithMany()
 09666                        .HasForeignKey("RecStateId");
 09667                });
 9668
 09669            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ControlAccess", b =>
 09670                {
 09671                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09672                        .WithMany()
 09673                        .HasForeignKey("CreatedByUserId");
 09674
 09675                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09676                        .WithMany()
 09677                        .HasForeignKey("ModifiedByUserId");
 09678
 09679                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09680                        .WithMany()
 09681                        .HasForeignKey("RecStateId");
 09682
 09683                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", "Role")
 09684                        .WithMany("ControlsAccess")
 09685                        .HasForeignKey("RoleId")
 09686                        .OnDelete(DeleteBehavior.Cascade)
 09687                        .IsRequired();
 09688                });
 9689
 09690            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Country", b =>
 09691                {
 09692                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09693                        .WithMany()
 09694                        .HasForeignKey("CreatedByUserId");
 09695
 09696                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09697                        .WithMany()
 09698                        .HasForeignKey("ModifiedByUserId");
 09699
 09700                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09701                        .WithMany()
 09702                        .HasForeignKey("RecStateId");
 09703                });
 9704
 09705            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Currency", b =>
 09706                {
 09707                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09708                        .WithMany()
 09709                        .HasForeignKey("CreatedByUserId");
 09710
 09711                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09712                        .WithMany()
 09713                        .HasForeignKey("ModifiedByUserId");
 09714
 09715                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09716                        .WithMany()
 09717                        .HasForeignKey("RecStateId");
 09718                });
 9719
 09720            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", b =>
 09721                {
 09722                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", "ActualAddress")
 09723                        .WithMany()
 09724                        .HasForeignKey("ActualAddressId");
 09725
 09726                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Cluster", "Cluster")
 09727                        .WithMany("Departments")
 09728                        .HasForeignKey("ClusterId");
 09729
 09730                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Contragent")
 09731                        .WithMany("Departments")
 09732                        .HasForeignKey("ContragentId")
 09733                        .OnDelete(DeleteBehavior.Cascade)
 09734                        .IsRequired();
 09735
 09736                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09737                        .WithMany()
 09738                        .HasForeignKey("CreatedByUserId");
 09739
 09740                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsKind", "Kind")
 09741                        .WithMany()
 09742                        .HasForeignKey("KindId");
 09743
 09744                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09745                        .WithMany()
 09746                        .HasForeignKey("ModifiedByUserId");
 09747
 09748                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", "PostalAddress")
 09749                        .WithMany()
 09750                        .HasForeignKey("PostalAddressId");
 09751
 09752                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09753                        .WithMany()
 09754                        .HasForeignKey("RecStateId");
 09755
 09756                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsStatus", "Status")
 09757                        .WithMany()
 09758                        .HasForeignKey("StatusId");
 09759                });
 9760
 09761            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentCategoryRatio", b =>
 09762                {
 09763                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", "Category")
 09764                        .WithMany("DepartmentCategoryRatios")
 09765                        .HasForeignKey("CategoryId")
 09766                        .OnDelete(DeleteBehavior.Cascade)
 09767                        .IsRequired();
 09768
 09769                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09770                        .WithMany()
 09771                        .HasForeignKey("CreatedByUserId");
 09772
 09773                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 09774                        .WithMany()
 09775                        .HasForeignKey("DepartmentId")
 09776                        .OnDelete(DeleteBehavior.Cascade)
 09777                        .IsRequired();
 09778
 09779                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09780                        .WithMany()
 09781                        .HasForeignKey("ModifiedByUserId");
 09782
 09783                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09784                        .WithMany()
 09785                        .HasForeignKey("RecStateId");
 09786                });
 9787
 09788            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentGoodSetting", b =>
 09789                {
 09790                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09791                        .WithMany()
 09792                        .HasForeignKey("CreatedByUserId");
 09793
 09794                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 09795                        .WithMany()
 09796                        .HasForeignKey("DepartmentId")
 09797                        .OnDelete(DeleteBehavior.Cascade)
 09798                        .IsRequired();
 09799
 09800                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 09801                        .WithMany("DepartmentGoodSettings")
 09802                        .HasForeignKey("GoodId")
 09803                        .OnDelete(DeleteBehavior.Cascade)
 09804                        .IsRequired();
 09805
 09806                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09807                        .WithMany()
 09808                        .HasForeignKey("ModifiedByUserId");
 09809
 09810                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09811                        .WithMany()
 09812                        .HasForeignKey("RecStateId");
 09813                });
 9814
 09815            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsKind", b =>
 09816                {
 09817                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09818                        .WithMany()
 09819                        .HasForeignKey("CreatedByUserId");
 09820
 09821                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09822                        .WithMany()
 09823                        .HasForeignKey("ModifiedByUserId");
 09824
 09825                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09826                        .WithMany()
 09827                        .HasForeignKey("RecStateId");
 09828                });
 9829
 09830            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsStatus", b =>
 09831                {
 09832                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09833                        .WithMany()
 09834                        .HasForeignKey("CreatedByUserId");
 09835
 09836                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09837                        .WithMany()
 09838                        .HasForeignKey("ModifiedByUserId");
 09839
 09840                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09841                        .WithMany()
 09842                        .HasForeignKey("RecStateId");
 09843                });
 9844
 09845            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DiscountColor", b =>
 09846                {
 09847                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09848                        .WithMany()
 09849                        .HasForeignKey("CreatedByUserId");
 09850
 09851                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09852                        .WithMany()
 09853                        .HasForeignKey("ModifiedByUserId");
 09854
 09855                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09856                        .WithMany()
 09857                        .HasForeignKey("RecStateId");
 09858                });
 9859
 09860            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Email", b =>
 09861                {
 09862                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09863                        .WithMany()
 09864                        .HasForeignKey("CreatedByUserId");
 09865
 09866                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09867                        .WithMany()
 09868                        .HasForeignKey("ModifiedByUserId");
 09869
 09870                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09871                        .WithMany()
 09872                        .HasForeignKey("RecStateId");
 09873                });
 9874
 09875            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Event", b =>
 09876                {
 09877                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09878                        .WithMany()
 09879                        .HasForeignKey("CreatedByUserId");
 09880
 09881                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.EventsKind", "EventsKind")
 09882                        .WithMany()
 09883                        .HasForeignKey("EventsKindId")
 09884                        .OnDelete(DeleteBehavior.Cascade)
 09885                        .IsRequired();
 09886
 09887                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09888                        .WithMany()
 09889                        .HasForeignKey("ModifiedByUserId");
 09890
 09891                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09892                        .WithMany()
 09893                        .HasForeignKey("RecStateId");
 09894
 09895                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 09896                        .WithMany()
 09897                        .HasForeignKey("UserId")
 09898                        .OnDelete(DeleteBehavior.Cascade)
 09899                        .IsRequired();
 09900                });
 9901
 09902            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.EventsKind", b =>
 09903                {
 09904                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09905                        .WithMany()
 09906                        .HasForeignKey("CreatedByUserId");
 09907
 09908                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09909                        .WithMany()
 09910                        .HasForeignKey("ModifiedByUserId");
 09911
 09912                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09913                        .WithMany()
 09914                        .HasForeignKey("RecStateId");
 09915                });
 9916
 09917            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ExchangeToken", b =>
 09918                {
 09919                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Contragent")
 09920                        .WithMany()
 09921                        .HasForeignKey("ContragentId")
 09922                        .OnDelete(DeleteBehavior.Cascade)
 09923                        .IsRequired();
 09924
 09925                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09926                        .WithMany()
 09927                        .HasForeignKey("CreatedByUserId");
 09928
 09929                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09930                        .WithMany()
 09931                        .HasForeignKey("ModifiedByUserId");
 09932
 09933                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09934                        .WithMany()
 09935                        .HasForeignKey("RecStateId");
 09936                });
 9937
 09938            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", b =>
 09939                {
 09940                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", "Brand")
 09941                        .WithMany()
 09942                        .HasForeignKey("BrandId");
 09943
 09944                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", "Category")
 09945                        .WithMany()
 09946                        .HasForeignKey("CategoryId")
 09947                        .OnDelete(DeleteBehavior.Cascade)
 09948                        .IsRequired();
 09949
 09950                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Country", "Country")
 09951                        .WithMany()
 09952                        .HasForeignKey("CountryId");
 09953
 09954                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09955                        .WithMany()
 09956                        .HasForeignKey("CreatedByUserId");
 09957
 09958                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.BarCode", "MainBarcode")
 09959                        .WithMany()
 09960                        .HasForeignKey("MainBarcodeId")
 09961                        .OnDelete(DeleteBehavior.Cascade)
 09962                        .IsRequired();
 09963
 09964                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Manufacturer")
 09965                        .WithMany()
 09966                        .HasForeignKey("ManufacturerId");
 09967
 09968                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09969                        .WithMany()
 09970                        .HasForeignKey("ModifiedByUserId");
 09971
 09972                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09973                        .WithMany()
 09974                        .HasForeignKey("RecStateId");
 09975
 09976                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", "SubBrand")
 09977                        .WithMany()
 09978                        .HasForeignKey("SubBrandId");
 09979
 09980                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Supplier")
 09981                        .WithMany()
 09982                        .HasForeignKey("SupplierId");
 09983
 09984                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.UnitsKind", "UnitsKind")
 09985                        .WithMany()
 09986                        .HasForeignKey("UnitsKindId")
 09987                        .OnDelete(DeleteBehavior.Cascade)
 09988                        .IsRequired();
 09989
 09990                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.VatsKind", "VatsKind")
 09991                        .WithMany()
 09992                        .HasForeignKey("VatsKindId")
 09993                        .OnDelete(DeleteBehavior.Cascade)
 09994                        .IsRequired();
 09995                });
 9996
 09997            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Incident", b =>
 09998                {
 09999                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010000                        .WithMany()
 010001                        .HasForeignKey("CreatedByUserId");
 010002
 010003                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsKind", "Kind")
 010004                        .WithMany()
 010005                        .HasForeignKey("KindId");
 010006
 010007                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010008                        .WithMany()
 010009                        .HasForeignKey("ModifiedByUserId");
 010010
 010011                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010012                        .WithMany()
 010013                        .HasForeignKey("RecStateId");
 010014
 010015                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsStatus", "Status")
 010016                        .WithMany()
 010017                        .HasForeignKey("StatusId");
 010018
 010019                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 010020                        .WithMany()
 010021                        .HasForeignKey("UserId")
 010022                        .OnDelete(DeleteBehavior.Cascade)
 010023                        .IsRequired();
 010024                });
 10025
 010026            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsKind", b =>
 010027                {
 010028                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010029                        .WithMany()
 010030                        .HasForeignKey("CreatedByUserId");
 010031
 010032                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010033                        .WithMany()
 010034                        .HasForeignKey("ModifiedByUserId");
 010035
 010036                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010037                        .WithMany()
 010038                        .HasForeignKey("RecStateId");
 010039                });
 10040
 010041            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsStatus", b =>
 010042                {
 010043                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010044                        .WithMany()
 010045                        .HasForeignKey("CreatedByUserId");
 010046
 010047                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010048                        .WithMany()
 010049                        .HasForeignKey("ModifiedByUserId");
 010050
 010051                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010052                        .WithMany()
 010053                        .HasForeignKey("RecStateId");
 010054                });
 10055
 010056            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.JobLogger", b =>
 010057                {
 010058                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010059                        .WithMany()
 010060                        .HasForeignKey("CreatedByUserId");
 010061
 010062                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010063                        .WithMany()
 010064                        .HasForeignKey("ModifiedByUserId");
 010065
 010066                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010067                        .WithMany()
 010068                        .HasForeignKey("RecStateId");
 010069                });
 10070
 010071            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MethodRole", b =>
 010072                {
 010073                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Methods", "Methods")
 010074                        .WithMany("MethodsRoles")
 010075                        .HasForeignKey("MethodId")
 010076                        .OnDelete(DeleteBehavior.Cascade)
 010077                        .IsRequired();
 010078
 010079                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", "Roles")
 010080                        .WithMany("MethodsRoles")
 010081                        .HasForeignKey("RoleId")
 010082                        .OnDelete(DeleteBehavior.Cascade)
 010083                        .IsRequired();
 010084                });
 10085
 010086            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Methods", b =>
 010087                {
 010088                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010089                        .WithMany()
 010090                        .HasForeignKey("CreatedByUserId");
 010091
 010092                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010093                        .WithMany()
 010094                        .HasForeignKey("ModifiedByUserId");
 010095
 010096                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010097                        .WithMany()
 010098                        .HasForeignKey("RecStateId");
 010099                });
 10100
 010101            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", b =>
 010102                {
 010103                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010104                        .WithMany()
 010105                        .HasForeignKey("CreatedByUserId");
 010106
 010107                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Customer")
 010108                        .WithMany()
 010109                        .HasForeignKey("CustomerId")
 010110                        .OnDelete(DeleteBehavior.Cascade)
 010111                        .IsRequired();
 010112
 010113                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010114                        .WithMany()
 010115                        .HasForeignKey("ModifiedByUserId");
 010116
 010117                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "MovementStatus")
 010118                        .WithMany()
 010119                        .HasForeignKey("MovementStatusId")
 010120                        .OnDelete(DeleteBehavior.Cascade)
 010121                        .IsRequired();
 010122
 010123                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", "MovementType")
 010124                        .WithMany()
 010125                        .HasForeignKey("MovementTypeId")
 010126                        .OnDelete(DeleteBehavior.Cascade)
 010127                        .IsRequired();
 010128
 010129                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", "Parent")
 010130                        .WithMany()
 010131                        .HasForeignKey("ParentId");
 010132
 010133                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010134                        .WithMany()
 010135                        .HasForeignKey("RecStateId");
 010136
 010137                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Receiver")
 010138                        .WithMany()
 010139                        .HasForeignKey("ReceiverId")
 010140                        .OnDelete(DeleteBehavior.Cascade)
 010141                        .IsRequired();
 010142
 010143                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Sender")
 010144                        .WithMany()
 010145                        .HasForeignKey("SenderId");
 010146
 010147                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Supplier")
 010148                        .WithMany()
 010149                        .HasForeignKey("SupplierId")
 010150                        .OnDelete(DeleteBehavior.Cascade)
 010151                        .IsRequired();
 010152                });
 10153
 010154            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementItem", b =>
 010155                {
 010156                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010157                        .WithMany()
 010158                        .HasForeignKey("CreatedByUserId");
 010159
 010160                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 010161                        .WithMany()
 010162                        .HasForeignKey("GoodId")
 010163                        .OnDelete(DeleteBehavior.Cascade)
 010164                        .IsRequired();
 010165
 010166                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010167                        .WithMany()
 010168                        .HasForeignKey("ModifiedByUserId");
 010169
 010170                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", null)
 010171                        .WithMany("Items")
 010172                        .HasForeignKey("MovementId");
 010173
 010174                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010175                        .WithMany()
 010176                        .HasForeignKey("RecStateId");
 010177                });
 10178
 010179            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementNote", b =>
 010180                {
 010181                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010182                        .WithMany()
 010183                        .HasForeignKey("CreatedByUserId");
 010184
 010185                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010186                        .WithMany()
 010187                        .HasForeignKey("ModifiedByUserId");
 010188
 010189                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", null)
 010190                        .WithMany("Notes")
 010191                        .HasForeignKey("MovementId");
 010192
 010193                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010194                        .WithMany()
 010195                        .HasForeignKey("RecStateId");
 010196                });
 10197
 010198            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementRouteAction", b =>
 010199                {
 010200                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010201                        .WithMany()
 010202                        .HasForeignKey("CreatedByUserId");
 010203
 010204                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010205                        .WithMany()
 010206                        .HasForeignKey("ModifiedByUserId");
 010207
 010208                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusOwner", "OwnerAction")
 010209                        .WithMany()
 010210                        .HasForeignKey("OwnerActionId")
 010211                        .OnDelete(DeleteBehavior.Cascade)
 010212                        .IsRequired();
 010213
 010214                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010215                        .WithMany()
 010216                        .HasForeignKey("RecStateId");
 010217
 010218                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "Status")
 010219                        .WithMany()
 010220                        .HasForeignKey("StatusId")
 010221                        .OnDelete(DeleteBehavior.Cascade)
 010222                        .IsRequired();
 010223                });
 10224
 010225            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", b =>
 010226                {
 010227                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010228                        .WithMany()
 010229                        .HasForeignKey("CreatedByUserId");
 010230
 010231                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010232                        .WithMany()
 010233                        .HasForeignKey("ModifiedByUserId");
 010234
 010235                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", "MovementType")
 010236                        .WithMany()
 010237                        .HasForeignKey("MovementTypeId")
 010238                        .OnDelete(DeleteBehavior.Cascade)
 010239                        .IsRequired();
 010240
 010241                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010242                        .WithMany()
 010243                        .HasForeignKey("RecStateId");
 010244
 010245                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusOwner", "StatusOwner")
 010246                        .WithMany()
 010247                        .HasForeignKey("StatusOwnerId")
 010248                        .OnDelete(DeleteBehavior.Cascade)
 010249                        .IsRequired();
 010250                });
 10251
 010252            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusJournal", b =>
 010253                {
 010254                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010255                        .WithMany()
 010256                        .HasForeignKey("CreatedByUserId");
 010257
 010258                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010259                        .WithMany()
 010260                        .HasForeignKey("ModifiedByUserId");
 010261
 010262                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", "Movement")
 010263                        .WithMany()
 010264                        .HasForeignKey("MovementId");
 010265
 010266                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010267                        .WithMany()
 010268                        .HasForeignKey("RecStateId");
 010269
 010270                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "StatusCurrent")
 010271                        .WithMany()
 010272                        .HasForeignKey("StatusCurrentId");
 010273                });
 10274
 010275            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusOwner", b =>
 010276                {
 010277                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010278                        .WithMany()
 010279                        .HasForeignKey("CreatedByUserId");
 010280
 010281                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010282                        .WithMany()
 010283                        .HasForeignKey("ModifiedByUserId");
 010284
 010285                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010286                        .WithMany()
 010287                        .HasForeignKey("RecStateId");
 010288                });
 10289
 010290            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusRoute", b =>
 010291                {
 010292                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010293                        .WithMany()
 010294                        .HasForeignKey("CreatedByUserId");
 010295
 010296                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010297                        .WithMany()
 010298                        .HasForeignKey("ModifiedByUserId");
 010299
 010300                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010301                        .WithMany()
 010302                        .HasForeignKey("RecStateId");
 010303
 010304                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "StatusCurrent")
 010305                        .WithMany()
 010306                        .HasForeignKey("StatusCurrentId")
 010307                        .OnDelete(DeleteBehavior.Cascade)
 010308                        .IsRequired();
 010309
 010310                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "StatusNext")
 010311                        .WithMany()
 010312                        .HasForeignKey("StatusNextId")
 010313                        .OnDelete(DeleteBehavior.Cascade)
 010314                        .IsRequired();
 010315                });
 10316
 010317            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", b =>
 010318                {
 010319                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010320                        .WithMany()
 010321                        .HasForeignKey("CreatedByUserId");
 010322
 010323                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010324                        .WithMany()
 010325                        .HasForeignKey("ModifiedByUserId");
 010326
 010327                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010328                        .WithMany()
 010329                        .HasForeignKey("RecStateId");
 010330                });
 10331
 010332            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Notification", b =>
 010333                {
 010334                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010335                        .WithMany()
 010336                        .HasForeignKey("CreatedByUserId");
 010337
 010338                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010339                        .WithMany()
 010340                        .HasForeignKey("ModifiedByUserId");
 010341
 010342                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsType", "NotificationsType")
 010343                        .WithMany()
 010344                        .HasForeignKey("NotificationsTypeId")
 010345                        .OnDelete(DeleteBehavior.Cascade)
 010346                        .IsRequired();
 010347
 010348                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010349                        .WithMany()
 010350                        .HasForeignKey("RecStateId");
 010351
 010352                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 010353                        .WithMany()
 010354                        .HasForeignKey("UserId")
 010355                        .OnDelete(DeleteBehavior.Cascade)
 010356                        .IsRequired();
 010357                });
 10358
 010359            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationUsers", b =>
 010360                {
 010361                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010362                        .WithMany()
 010363                        .HasForeignKey("CreatedByUserId");
 010364
 010365                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010366                        .WithMany()
 010367                        .HasForeignKey("ModifiedByUserId");
 010368
 010369                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Notification", "Notification")
 010370                        .WithMany()
 010371                        .HasForeignKey("NotificationId")
 010372                        .OnDelete(DeleteBehavior.Cascade)
 010373                        .IsRequired();
 010374
 010375                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsStatus", "NotificationsStat
 010376                        .WithMany()
 010377                        .HasForeignKey("NotificationsStatusId");
 010378
 010379                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010380                        .WithMany()
 010381                        .HasForeignKey("RecStateId");
 010382
 010383                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 010384                        .WithMany()
 010385                        .HasForeignKey("UserId");
 010386                });
 10387
 010388            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsStatus", b =>
 010389                {
 010390                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010391                        .WithMany()
 010392                        .HasForeignKey("CreatedByUserId");
 010393
 010394                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010395                        .WithMany()
 010396                        .HasForeignKey("ModifiedByUserId");
 010397
 010398                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010399                        .WithMany()
 010400                        .HasForeignKey("RecStateId");
 010401                });
 10402
 010403            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsType", b =>
 010404                {
 010405                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010406                        .WithMany()
 010407                        .HasForeignKey("CreatedByUserId");
 010408
 010409                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010410                        .WithMany()
 010411                        .HasForeignKey("ModifiedByUserId");
 010412
 010413                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010414                        .WithMany()
 010415                        .HasForeignKey("RecStateId");
 010416                });
 10417
 010418            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Photo", b =>
 010419                {
 010420                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010421                        .WithMany()
 010422                        .HasForeignKey("CreatedByUserId");
 010423
 010424                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", null)
 010425                        .WithMany("Photos")
 010426                        .HasForeignKey("GoodId");
 010427
 010428                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010429                        .WithMany()
 010430                        .HasForeignKey("ModifiedByUserId");
 010431
 010432                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010433                        .WithMany()
 010434                        .HasForeignKey("RecStateId");
 010435                });
 10436
 010437            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceCurrent", b =>
 010438                {
 010439                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010440                        .WithMany()
 010441                        .HasForeignKey("CreatedByUserId");
 010442
 010443                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 010444                        .WithMany()
 010445                        .HasForeignKey("GoodId")
 010446                        .OnDelete(DeleteBehavior.Cascade)
 010447                        .IsRequired();
 010448
 010449                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010450                        .WithMany()
 010451                        .HasForeignKey("ModifiedByUserId");
 010452
 010453                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010454                        .WithMany()
 010455                        .HasForeignKey("RecStateId");
 010456
 010457                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "SupplierDepartment")
 010458                        .WithMany()
 010459                        .HasForeignKey("SupplierDepartmentId")
 010460                        .OnDelete(DeleteBehavior.Cascade)
 010461                        .IsRequired();
 010462                });
 10463
 010464            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrend", b =>
 010465                {
 010466                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010467                        .WithMany()
 010468                        .HasForeignKey("CreatedByUserId");
 010469
 010470                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010471                        .WithMany()
 010472                        .HasForeignKey("ModifiedByUserId");
 010473
 010474                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010475                        .WithMany()
 010476                        .HasForeignKey("RecStateId");
 010477
 010478                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "SupplierDepartment")
 010479                        .WithMany()
 010480                        .HasForeignKey("SupplierDepartmentId")
 010481                        .OnDelete(DeleteBehavior.Cascade)
 010482                        .IsRequired();
 010483                });
 10484
 010485            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrendDetail", b =>
 010486                {
 010487                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010488                        .WithMany()
 010489                        .HasForeignKey("CreatedByUserId");
 010490
 010491                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 010492                        .WithMany("Prices")
 010493                        .HasForeignKey("GoodId")
 010494                        .OnDelete(DeleteBehavior.Cascade)
 010495                        .IsRequired();
 010496
 010497                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010498                        .WithMany()
 010499                        .HasForeignKey("ModifiedByUserId");
 010500
 010501                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrend", "PriceTrend")
 010502                        .WithMany("PriceTrendDetails")
 010503                        .HasForeignKey("PriceTrendId")
 010504                        .OnDelete(DeleteBehavior.Cascade)
 010505                        .IsRequired();
 010506
 010507                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010508                        .WithMany()
 010509                        .HasForeignKey("RecStateId");
 010510                });
 10511
 010512            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoBid", b =>
 010513                {
 010514                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010515                        .WithMany()
 010516                        .HasForeignKey("CreatedByUserId");
 010517
 010518                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "CustomerDepartment")
 010519                        .WithMany()
 010520                        .HasForeignKey("CustomerDepartmentId")
 010521                        .OnDelete(DeleteBehavior.Cascade)
 010522                        .IsRequired();
 010523
 010524                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 010525                        .WithMany()
 010526                        .HasForeignKey("GoodId")
 010527                        .OnDelete(DeleteBehavior.Cascade)
 010528                        .IsRequired();
 010529
 010530                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010531                        .WithMany()
 010532                        .HasForeignKey("ModifiedByUserId");
 010533
 010534                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoOffer", "PromoOffer")
 010535                        .WithMany("Bids")
 010536                        .HasForeignKey("PromoOfferId")
 010537                        .OnDelete(DeleteBehavior.Cascade)
 010538                        .IsRequired();
 010539
 010540                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010541                        .WithMany()
 010542                        .HasForeignKey("RecStateId");
 010543                });
 10544
 010545            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoOffer", b =>
 010546                {
 010547                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010548                        .WithMany()
 010549                        .HasForeignKey("CreatedByUserId");
 010550
 010551                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 010552                        .WithMany()
 010553                        .HasForeignKey("GoodId")
 010554                        .OnDelete(DeleteBehavior.Cascade)
 010555                        .IsRequired();
 010556
 010557                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010558                        .WithMany()
 010559                        .HasForeignKey("ModifiedByUserId");
 010560
 010561                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010562                        .WithMany()
 010563                        .HasForeignKey("RecStateId");
 010564
 010565                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "SupplierDepartment")
 010566                        .WithMany()
 010567                        .HasForeignKey("SupplierDepartmentId")
 010568                        .OnDelete(DeleteBehavior.Cascade)
 010569                        .IsRequired();
 010570                });
 10571
 010572            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", b =>
 010573                {
 010574                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010575                        .WithMany()
 010576                        .HasForeignKey("CreatedByUserId");
 010577
 010578                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010579                        .WithMany()
 010580                        .HasForeignKey("ModifiedByUserId");
 010581
 010582                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010583                        .WithMany()
 010584                        .HasForeignKey("RecStateId");
 010585                });
 10586
 010587            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Rest", b =>
 010588                {
 010589                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010590                        .WithMany()
 010591                        .HasForeignKey("CreatedByUserId");
 010592
 010593                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 010594                        .WithMany()
 010595                        .HasForeignKey("DepartmentId")
 010596                        .OnDelete(DeleteBehavior.Cascade)
 010597                        .IsRequired();
 010598
 010599                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 010600                        .WithMany("Rests")
 010601                        .HasForeignKey("GoodId")
 010602                        .OnDelete(DeleteBehavior.Cascade)
 010603                        .IsRequired();
 010604
 010605                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010606                        .WithMany()
 010607                        .HasForeignKey("ModifiedByUserId");
 010608
 010609                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010610                        .WithMany()
 010611                        .HasForeignKey("RecStateId");
 010612                });
 10613
 010614            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", b =>
 010615                {
 010616                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010617                        .WithMany()
 010618                        .HasForeignKey("CreatedByUserId");
 010619
 010620                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010621                        .WithMany()
 010622                        .HasForeignKey("ModifiedByUserId");
 010623
 010624                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010625                        .WithMany()
 010626                        .HasForeignKey("RecStateId");
 010627                });
 10628
 010629            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.SupplyContract", b =>
 010630                {
 010631                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Buyer")
 010632                        .WithMany("ContractsAsBuyer")
 010633                        .HasForeignKey("BuyerId")
 010634                        .OnDelete(DeleteBehavior.Cascade)
 010635                        .IsRequired();
 010636
 010637                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010638                        .WithMany()
 010639                        .HasForeignKey("CreatedByUserId");
 010640
 010641                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010642                        .WithMany()
 010643                        .HasForeignKey("ModifiedByUserId");
 010644
 010645                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010646                        .WithMany()
 010647                        .HasForeignKey("RecStateId");
 010648
 010649                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Seller")
 010650                        .WithMany("ContractsAsSeller")
 010651                        .HasForeignKey("SellerId")
 010652                        .OnDelete(DeleteBehavior.Cascade)
 010653                        .IsRequired();
 010654                });
 10655
 010656            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.TaxSystem", b =>
 010657                {
 010658                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010659                        .WithMany()
 010660                        .HasForeignKey("CreatedByUserId");
 010661
 010662                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010663                        .WithMany()
 010664                        .HasForeignKey("ModifiedByUserId");
 010665
 010666                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010667                        .WithMany()
 010668                        .HasForeignKey("RecStateId");
 010669                });
 10670
 010671            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UnitsKind", b =>
 010672                {
 010673                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010674                        .WithMany()
 010675                        .HasForeignKey("CreatedByUserId");
 010676
 010677                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010678                        .WithMany()
 010679                        .HasForeignKey("ModifiedByUserId");
 010680
 010681                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010682                        .WithMany()
 010683                        .HasForeignKey("RecStateId");
 010684                });
 10685
 010686            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Upload", b =>
 010687                {
 010688                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010689                        .WithMany()
 010690                        .HasForeignKey("CreatedByUserId");
 010691
 010692                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010693                        .WithMany()
 010694                        .HasForeignKey("ModifiedByUserId");
 010695
 010696                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010697                        .WithMany()
 010698                        .HasForeignKey("RecStateId");
 010699                });
 10700
 010701            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UploadItem", b =>
 010702                {
 010703                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010704                        .WithMany()
 010705                        .HasForeignKey("CreatedByUserId");
 010706
 010707                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010708                        .WithMany()
 010709                        .HasForeignKey("ModifiedByUserId");
 010710
 010711                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010712                        .WithMany()
 010713                        .HasForeignKey("RecStateId");
 010714
 010715                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Upload", null)
 010716                        .WithMany("Items")
 010717                        .HasForeignKey("UploadId")
 010718                        .OnDelete(DeleteBehavior.Cascade)
 010719                        .IsRequired();
 010720                });
 10721
 010722            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", b =>
 010723                {
 010724                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Contragent")
 010725                        .WithMany("User")
 010726                        .HasForeignKey("ContragentId");
 010727
 010728                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010729                        .WithMany()
 010730                        .HasForeignKey("CreatedByUserId");
 010731
 010732                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010733                        .WithMany()
 010734                        .HasForeignKey("ModifiedByUserId");
 010735
 010736                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010737                        .WithMany()
 010738                        .HasForeignKey("RecStateId");
 010739                });
 10740
 010741            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserDepartment", b =>
 010742                {
 010743                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 010744                        .WithMany("UsersDepartments")
 010745                        .HasForeignKey("DepartmentId")
 010746                        .OnDelete(DeleteBehavior.Cascade)
 010747                        .IsRequired();
 010748
 010749                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 010750                        .WithMany("UsersDepartments")
 010751                        .HasForeignKey("UserId")
 010752                        .OnDelete(DeleteBehavior.Cascade)
 010753                        .IsRequired();
 010754                });
 10755
 010756            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserRole", b =>
 010757                {
 010758                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", "Roles")
 010759                        .WithMany("UsersRoles")
 010760                        .HasForeignKey("RoleId")
 010761                        .OnDelete(DeleteBehavior.Cascade)
 010762                        .IsRequired();
 010763
 010764                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 010765                        .WithMany("UsersRoles")
 010766                        .HasForeignKey("UserId")
 010767                        .OnDelete(DeleteBehavior.Cascade)
 010768                        .IsRequired();
 010769                });
 10770
 010771            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.VatsKind", b =>
 010772                {
 010773                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010774                        .WithMany()
 010775                        .HasForeignKey("CreatedByUserId");
 010776
 010777                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010778                        .WithMany()
 010779                        .HasForeignKey("ModifiedByUserId");
 010780
 010781                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010782                        .WithMany()
 010783                        .HasForeignKey("RecStateId");
 010784                });
 10785
 010786            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransaction", b =>
 010787                {
 010788                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010789                        .WithMany()
 010790                        .HasForeignKey("CreatedByUserId");
 010791
 010792                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010793                        .WithMany()
 010794                        .HasForeignKey("ModifiedByUserId");
 010795
 010796                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", "Movement")
 010797                        .WithMany()
 010798                        .HasForeignKey("MovementId");
 010799
 010800                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010801                        .WithMany()
 010802                        .HasForeignKey("RecStateId");
 010803
 010804                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransactionStatus", "Status")
 010805                        .WithMany()
 010806                        .HasForeignKey("StatusId");
 010807                });
 10808
 010809            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransactionStatus", b =>
 010810                {
 010811                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010812                        .WithMany()
 010813                        .HasForeignKey("CreatedByUserId");
 010814
 010815                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010816                        .WithMany()
 010817                        .HasForeignKey("ModifiedByUserId");
 010818
 010819                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010820                        .WithMany()
 010821                        .HasForeignKey("RecStateId");
 010822                });
 10823
 010824            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WorkSchedule", b =>
 010825                {
 010826                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010827                        .WithMany()
 010828                        .HasForeignKey("CreatedByUserId");
 010829
 010830                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010831                        .WithMany()
 010832                        .HasForeignKey("ModifiedByUserId");
 010833
 010834                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010835                        .WithMany()
 010836                        .HasForeignKey("RecStateId");
 010837                });
 10838#pragma warning restore 612, 618
 010839        }
 10840    }
 10841}