< Summary

Class:SVETA.Api.Migrations.DeleteContrUniqIndex
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200507095158_DeleteContrUniqIndex.cs
/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200507095158_DeleteContrUniqIndex.Designer.cs
Covered lines:0
Uncovered lines:11423
Coverable lines:11423
Total lines:11599
Line coverage:0% (0 of 11423)
Covered branches:0
Total branches:252
Branch coverage:0% (0 of 252)

Metrics

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

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200507095158_DeleteContrUniqIndex.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3
 4namespace SVETA.Api.Migrations
 5{
 6    public partial class DeleteContrUniqIndex : Migration
 7    {
 8        protected override void Up(MigrationBuilder migrationBuilder)
 09        {
 010            migrationBuilder.DropIndex(
 011                name: "IX_Contragents_FullName",
 012                table: "Contragents");
 13
 014            migrationBuilder.DropIndex(
 015                name: "IX_Contragents_Inn",
 016                table: "Contragents");
 17
 018            migrationBuilder.DropIndex(
 019                name: "IX_Contragents_ShortName",
 020                table: "Contragents");
 21
 022            migrationBuilder.UpdateData(
 023                table: "ContragentsKind",
 024                keyColumn: "Id",
 025                keyValue: 2L,
 026                column: "ExternalKey",
 027                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 28
 029            migrationBuilder.UpdateData(
 030                table: "ContragentsKind",
 031                keyColumn: "Id",
 032                keyValue: 3L,
 033                column: "ExternalKey",
 034                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 35
 036            migrationBuilder.UpdateData(
 037                table: "ContragentsKind",
 038                keyColumn: "Id",
 039                keyValue: 4L,
 040                column: "ExternalKey",
 041                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 42
 043            migrationBuilder.UpdateData(
 044                table: "ContragentsKind",
 045                keyColumn: "Id",
 046                keyValue: 6L,
 047                column: "ExternalKey",
 048                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 49
 050            migrationBuilder.UpdateData(
 051                table: "Users",
 052                keyColumn: "Id",
 053                keyValue: -2L,
 054                column: "ExternalKey",
 055                value: new Guid("3ce2ae32-9028-46b6-afbe-ad4feec0a016"));
 56
 057            migrationBuilder.UpdateData(
 058                table: "Users",
 059                keyColumn: "Id",
 060                keyValue: -1L,
 061                column: "ExternalKey",
 062                value: new Guid("964c5734-ba34-43d0-8770-b22b665e9abd"));
 63
 064            migrationBuilder.CreateIndex(
 065                name: "IX_Contragents_Inn_Kpp",
 066                table: "Contragents",
 067                columns: new[] { "Inn", "Kpp" },
 068                unique: true);
 069        }
 70
 71        protected override void Down(MigrationBuilder migrationBuilder)
 072        {
 073            migrationBuilder.DropIndex(
 074                name: "IX_Contragents_Inn_Kpp",
 075                table: "Contragents");
 76
 077            migrationBuilder.UpdateData(
 078                table: "ContragentsKind",
 079                keyColumn: "Id",
 080                keyValue: 2L,
 081                column: "ExternalKey",
 082                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 83
 084            migrationBuilder.UpdateData(
 085                table: "ContragentsKind",
 086                keyColumn: "Id",
 087                keyValue: 3L,
 088                column: "ExternalKey",
 089                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 90
 091            migrationBuilder.UpdateData(
 092                table: "ContragentsKind",
 093                keyColumn: "Id",
 094                keyValue: 4L,
 095                column: "ExternalKey",
 096                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 97
 098            migrationBuilder.UpdateData(
 099                table: "ContragentsKind",
 0100                keyColumn: "Id",
 0101                keyValue: 6L,
 0102                column: "ExternalKey",
 0103                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 104
 0105            migrationBuilder.UpdateData(
 0106                table: "Users",
 0107                keyColumn: "Id",
 0108                keyValue: -2L,
 0109                column: "ExternalKey",
 0110                value: new Guid("3ce2ae32-9028-46b6-afbe-ad4feec0a016"));
 111
 0112            migrationBuilder.UpdateData(
 0113                table: "Users",
 0114                keyColumn: "Id",
 0115                keyValue: -1L,
 0116                column: "ExternalKey",
 0117                value: new Guid("964c5734-ba34-43d0-8770-b22b665e9abd"));
 118
 0119            migrationBuilder.CreateIndex(
 0120                name: "IX_Contragents_FullName",
 0121                table: "Contragents",
 0122                column: "FullName",
 0123                unique: true);
 124
 0125            migrationBuilder.CreateIndex(
 0126                name: "IX_Contragents_Inn",
 0127                table: "Contragents",
 0128                column: "Inn",
 0129                unique: true);
 130
 0131            migrationBuilder.CreateIndex(
 0132                name: "IX_Contragents_ShortName",
 0133                table: "Contragents",
 0134                column: "ShortName",
 0135                unique: true);
 0136        }
 137    }
 138}

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