< Summary

Class:SVETA.Api.Migrations.IREChiefAccRequired
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200511155504_IRE-ChiefAccRequired.cs
/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200511155504_IRE-ChiefAccRequired.Designer.cs
Covered lines:0
Uncovered lines:11467
Coverable lines:11467
Total lines:11639
Line coverage:0% (0 of 11467)
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/20200511155504_IRE-ChiefAccRequired.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3
 4namespace SVETA.Api.Migrations
 5{
 6    public partial class IREChiefAccRequired : Migration
 7    {
 8        protected override void Up(MigrationBuilder migrationBuilder)
 09        {
 010            migrationBuilder.AlterColumn<string>(
 011                name: "ChiefAccountant",
 012                table: "Contragents",
 013                nullable: false,
 014                oldClrType: typeof(string),
 015                oldType: "text",
 016                oldNullable: true);
 17
 018            migrationBuilder.UpdateData(
 019                table: "ContragentsKind",
 020                keyColumn: "Id",
 021                keyValue: 2L,
 022                column: "ExternalKey",
 023                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 24
 025            migrationBuilder.UpdateData(
 026                table: "ContragentsKind",
 027                keyColumn: "Id",
 028                keyValue: 3L,
 029                column: "ExternalKey",
 030                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 31
 032            migrationBuilder.UpdateData(
 033                table: "ContragentsKind",
 034                keyColumn: "Id",
 035                keyValue: 4L,
 036                column: "ExternalKey",
 037                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 38
 039            migrationBuilder.UpdateData(
 040                table: "ContragentsKind",
 041                keyColumn: "Id",
 042                keyValue: 6L,
 043                column: "ExternalKey",
 044                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 45
 046            migrationBuilder.UpdateData(
 047                table: "ExchangeTokens",
 048                keyColumn: "Id",
 049                keyValue: 1L,
 050                column: "GUID",
 051                value: new Guid("8eea3bee-1f37-4654-a22f-f0b18b0c4588"));
 52
 053            migrationBuilder.UpdateData(
 054                table: "Users",
 055                keyColumn: "Id",
 056                keyValue: -2L,
 057                column: "ExternalKey",
 058                value: new Guid("3ce2ae32-9028-46b6-afbe-ad4feec0a016"));
 59
 060            migrationBuilder.UpdateData(
 061                table: "Users",
 062                keyColumn: "Id",
 063                keyValue: -1L,
 064                column: "ExternalKey",
 065                value: new Guid("964c5734-ba34-43d0-8770-b22b665e9abd"));
 066        }
 67
 68        protected override void Down(MigrationBuilder migrationBuilder)
 069        {
 070            migrationBuilder.AlterColumn<string>(
 071                name: "ChiefAccountant",
 072                table: "Contragents",
 073                type: "text",
 074                nullable: true,
 075                oldClrType: typeof(string));
 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: "ExchangeTokens",
 0107                keyColumn: "Id",
 0108                keyValue: 1L,
 0109                column: "GUID",
 0110                value: new Guid("8eea3bee-1f37-4654-a22f-f0b18b0c4588"));
 111
 0112            migrationBuilder.UpdateData(
 0113                table: "Users",
 0114                keyColumn: "Id",
 0115                keyValue: -2L,
 0116                column: "ExternalKey",
 0117                value: new Guid("3ce2ae32-9028-46b6-afbe-ad4feec0a016"));
 118
 0119            migrationBuilder.UpdateData(
 0120                table: "Users",
 0121                keyColumn: "Id",
 0122                keyValue: -1L,
 0123                column: "ExternalKey",
 0124                value: new Guid("964c5734-ba34-43d0-8770-b22b665e9abd"));
 0125        }
 126    }
 127}

/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200511155504_IRE-ChiefAccRequired.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("20200511155504_IRE-ChiefAccRequired")]
 14    partial class IREChiefAccRequired
 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                        .IsRequired()
 0417                        .HasColumnType("text");
 0418
 0419                    b.Property<long>("ContragentsKindId")
 0420                        .HasColumnType("bigint");
 0421
 0422                    b.Property<long?>("CreatedByUserId")
 0423                        .HasColumnType("bigint");
 0424
 0425                    b.Property<DateTime>("CreationDateTime")
 0426                        .HasColumnType("timestamp without time zone");
 0427
 0428                    b.Property<string>("Email")
 0429                        .IsRequired()
 0430                        .HasColumnType("text");
 0431
 0432                    b.Property<Guid>("ExternalKey")
 0433                        .ValueGeneratedOnAdd()
 0434                        .HasColumnType("uuid");
 0435
 0436                    b.Property<string>("FullName")
 0437                        .IsRequired()
 0438                        .HasColumnType("text");
 0439
 0440                    b.Property<Guid>("GUID")
 0441                        .ValueGeneratedOnAdd()
 0442                        .HasColumnType("uuid");
 0443
 0444                    b.Property<string>("Inn")
 0445                        .IsRequired()
 0446                        .HasColumnType("text");
 0447
 0448                    b.Property<bool>("IsDeleted")
 0449                        .HasColumnType("boolean");
 0450
 0451                    b.Property<long>("JuridicAddressId")
 0452                        .HasColumnType("bigint");
 0453
 0454                    b.Property<string>("Kpp")
 0455                        .IsRequired()
 0456                        .HasColumnType("text");
 0457
 0458                    b.Property<DateTime?>("ModificationDateTime")
 0459                        .HasColumnType("timestamp without time zone");
 0460
 0461                    b.Property<long?>("ModifiedByUserId")
 0462                        .HasColumnType("bigint");
 0463
 0464                    b.Property<string>("Ogrn")
 0465                        .IsRequired()
 0466                        .HasColumnType("text");
 0467
 0468                    b.Property<string>("Okato")
 0469                        .HasColumnType("text");
 0470
 0471                    b.Property<string>("Okpo")
 0472                        .HasColumnType("text");
 0473
 0474                    b.Property<string>("Okved")
 0475                        .HasColumnType("text");
 0476
 0477                    b.Property<long>("OwnerId")
 0478                        .HasColumnType("bigint");
 0479
 0480                    b.Property<string>("PhoneNumber")
 0481                        .IsRequired()
 0482                        .HasColumnType("text");
 0483
 0484                    b.Property<long>("PhysicAddressId")
 0485                        .HasColumnType("bigint");
 0486
 0487                    b.Property<long?>("RecStateId")
 0488                        .HasColumnType("bigint");
 0489
 0490                    b.Property<string>("SettlementAccount")
 0491                        .HasColumnType("text");
 0492
 0493                    b.Property<string>("ShortName")
 0494                        .IsRequired()
 0495                        .HasColumnType("text");
 0496
 0497                    b.Property<string>("TaxSystemCRM")
 0498                        .IsRequired()
 0499                        .HasColumnType("text");
 0500
 0501                    b.Property<long?>("TaxSystemId")
 0502                        .HasColumnType("bigint");
 0503
 0504                    b.Property<string>("WalletId")
 0505                        .IsRequired()
 0506                        .HasColumnType("text");
 0507
 0508                    b.Property<string>("WalletShortId")
 0509                        .IsRequired()
 0510                        .HasColumnType("text");
 0511
 0512                    b.Property<string>("WebSite")
 0513                        .HasColumnType("text");
 0514
 0515                    b.Property<string>("СorrespondentAccount")
 0516                        .HasColumnType("text");
 0517
 0518                    b.HasKey("Id");
 0519
 0520                    b.HasIndex("ContragentsKindId");
 0521
 0522                    b.HasIndex("CreatedByUserId");
 0523
 0524                    b.HasIndex("JuridicAddressId");
 0525
 0526                    b.HasIndex("ModifiedByUserId");
 0527
 0528                    b.HasIndex("OwnerId");
 0529
 0530                    b.HasIndex("PhysicAddressId");
 0531
 0532                    b.HasIndex("RecStateId");
 0533
 0534                    b.HasIndex("TaxSystemId");
 0535
 0536                    b.HasIndex("Inn", "Kpp")
 0537                        .IsUnique();
 0538
 0539                    b.ToTable("Contragents");
 0540
 0541                    b.HasData(
 0542                        new
 0543                        {
 0544                            Id = -1L,
 0545                            ChiefAccountant = "1",
 0546                            ContragentsKindId = 2L,
 0547                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0548                            Email = "example@email.ru",
 0549                            ExternalKey = new Guid("00000000-0000-0000-0000-000000000000"),
 0550                            FullName = "Общество с ограниченной ответственностью Анонимный контрагент",
 0551                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0552                            Inn = "2",
 0553                            IsDeleted = false,
 0554                            JuridicAddressId = -1L,
 0555                            Kpp = "2",
 0556                            Ogrn = "2",
 0557                            Okato = "1",
 0558                            Okpo = "1",
 0559                            Okved = "1",
 0560                            OwnerId = -2L,
 0561                            PhoneNumber = "88008008000",
 0562                            PhysicAddressId = -1L,
 0563                            RecStateId = 2L,
 0564                            ShortName = "ООО Анонимный контрагент",
 0565                            TaxSystemCRM = "",
 0566                            TaxSystemId = 1L,
 0567                            WalletId = "",
 0568                            WalletShortId = "",
 0569                            WebSite = "www.example.com"
 0570                        },
 0571                        new
 0572                        {
 0573                            Id = -2L,
 0574                            ChiefAccountant = "1",
 0575                            ContragentsKindId = 6L,
 0576                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0577                            Email = "service@email.ru",
 0578                            ExternalKey = new Guid("00000000-0000-0000-0000-000000000000"),
 0579                            FullName = "Сервисный контрагент",
 0580                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0581                            Inn = "1",
 0582                            IsDeleted = false,
 0583                            JuridicAddressId = -1L,
 0584                            Kpp = "1",
 0585                            Ogrn = "1",
 0586                            Okato = "1",
 0587                            Okpo = "1",
 0588                            Okved = "1",
 0589                            OwnerId = -1L,
 0590                            PhoneNumber = "1",
 0591                            PhysicAddressId = -1L,
 0592                            RecStateId = 2L,
 0593                            ShortName = "1",
 0594                            TaxSystemCRM = "",
 0595                            TaxSystemId = 1L,
 0596                            WalletId = "",
 0597                            WalletShortId = "",
 0598                            WebSite = "1"
 0599                        });
 0600                });
 601
 0602            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ContragentsKind", b =>
 0603                {
 0604                    b.Property<long>("Id")
 0605                        .ValueGeneratedOnAdd()
 0606                        .HasColumnType("bigint")
 0607                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0608
 0609                    b.Property<string>("Code")
 0610                        .IsRequired()
 0611                        .HasColumnType("text");
 0612
 0613                    b.Property<long?>("CreatedByUserId")
 0614                        .HasColumnType("bigint");
 0615
 0616                    b.Property<DateTime>("CreationDateTime")
 0617                        .HasColumnType("timestamp without time zone");
 0618
 0619                    b.Property<string>("Description")
 0620                        .HasColumnType("text");
 0621
 0622                    b.Property<Guid>("ExternalKey")
 0623                        .ValueGeneratedOnAdd()
 0624                        .HasColumnType("uuid");
 0625
 0626                    b.Property<Guid>("GUID")
 0627                        .ValueGeneratedOnAdd()
 0628                        .HasColumnType("uuid");
 0629
 0630                    b.Property<bool>("IsDeleted")
 0631                        .HasColumnType("boolean");
 0632
 0633                    b.Property<DateTime?>("ModificationDateTime")
 0634                        .HasColumnType("timestamp without time zone");
 0635
 0636                    b.Property<long?>("ModifiedByUserId")
 0637                        .HasColumnType("bigint");
 0638
 0639                    b.Property<string>("Name")
 0640                        .IsRequired()
 0641                        .HasColumnType("text");
 0642
 0643                    b.Property<long?>("RecStateId")
 0644                        .HasColumnType("bigint");
 0645
 0646                    b.HasKey("Id");
 0647
 0648                    b.HasIndex("CreatedByUserId");
 0649
 0650                    b.HasIndex("ModifiedByUserId");
 0651
 0652                    b.HasIndex("RecStateId");
 0653
 0654                    b.ToTable("ContragentsKind");
 0655
 0656                    b.HasData(
 0657                        new
 0658                        {
 0659                            Id = 1L,
 0660                            Code = "Unknown",
 0661                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0662                            Description = "",
 0663                            ExternalKey = new Guid("00000000-0000-0000-0000-000000000000"),
 0664                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0665                            IsDeleted = false,
 0666                            Name = "Неизвестный"
 0667                        },
 0668                        new
 0669                        {
 0670                            Id = 2L,
 0671                            Code = "Retailer",
 0672                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0673                            Description = "",
 0674                            ExternalKey = new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"),
 0675                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0676                            IsDeleted = false,
 0677                            Name = "Магазин"
 0678                        },
 0679                        new
 0680                        {
 0681                            Id = 3L,
 0682                            Code = "Wholesaler",
 0683                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0684                            Description = "",
 0685                            ExternalKey = new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"),
 0686                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0687                            IsDeleted = false,
 0688                            Name = "Дистрибьютор"
 0689                        },
 0690                        new
 0691                        {
 0692                            Id = 4L,
 0693                            Code = "Manufacturer",
 0694                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0695                            Description = "",
 0696                            ExternalKey = new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"),
 0697                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0698                            IsDeleted = false,
 0699                            Name = "Производитель"
 0700                        },
 0701                        new
 0702                        {
 0703                            Id = 5L,
 0704                            Code = "Supplier",
 0705                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0706                            Description = "В будущем надо удалить",
 0707                            ExternalKey = new Guid("00000000-0000-0000-0000-000000000000"),
 0708                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0709                            IsDeleted = false,
 0710                            Name = "---"
 0711                        },
 0712                        new
 0713                        {
 0714                            Id = 6L,
 0715                            Code = "Platform",
 0716                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0717                            Description = "",
 0718                            ExternalKey = new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"),
 0719                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0720                            IsDeleted = false,
 0721                            Name = "Платформа"
 0722                        });
 0723                });
 724
 0725            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ControlAccess", b =>
 0726                {
 0727                    b.Property<long>("Id")
 0728                        .ValueGeneratedOnAdd()
 0729                        .HasColumnType("bigint")
 0730                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0731
 0732                    b.Property<string>("Action")
 0733                        .IsRequired()
 0734                        .HasColumnType("text");
 0735
 0736                    b.Property<bool?>("Available")
 0737                        .HasColumnType("boolean");
 0738
 0739                    b.Property<long?>("CreatedByUserId")
 0740                        .HasColumnType("bigint");
 0741
 0742                    b.Property<DateTime>("CreationDateTime")
 0743                        .HasColumnType("timestamp without time zone");
 0744
 0745                    b.Property<Guid>("GUID")
 0746                        .ValueGeneratedOnAdd()
 0747                        .HasColumnType("uuid");
 0748
 0749                    b.Property<bool>("IsDeleted")
 0750                        .HasColumnType("boolean");
 0751
 0752                    b.Property<DateTime?>("ModificationDateTime")
 0753                        .HasColumnType("timestamp without time zone");
 0754
 0755                    b.Property<long?>("ModifiedByUserId")
 0756                        .HasColumnType("bigint");
 0757
 0758                    b.Property<long?>("RecStateId")
 0759                        .HasColumnType("bigint");
 0760
 0761                    b.Property<long>("RoleId")
 0762                        .HasColumnType("bigint");
 0763
 0764                    b.HasKey("Id");
 0765
 0766                    b.HasIndex("CreatedByUserId");
 0767
 0768                    b.HasIndex("ModifiedByUserId");
 0769
 0770                    b.HasIndex("RecStateId");
 0771
 0772                    b.HasIndex("RoleId");
 0773
 0774                    b.HasIndex("Action", "Available", "RoleId")
 0775                        .IsUnique();
 0776
 0777                    b.ToTable("ControlsAccess");
 0778
 0779                    b.HasData(
 0780                        new
 0781                        {
 0782                            Id = 26L,
 0783                            Action = "viewOrders",
 0784                            Available = true,
 0785                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0786                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0787                            IsDeleted = false,
 0788                            RoleId = 1L
 0789                        },
 0790                        new
 0791                        {
 0792                            Id = 27L,
 0793                            Action = "viewShipments",
 0794                            Available = true,
 0795                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0796                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0797                            IsDeleted = false,
 0798                            RoleId = 1L
 0799                        },
 0800                        new
 0801                        {
 0802                            Id = 28L,
 0803                            Action = "viewUser",
 0804                            Available = true,
 0805                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0806                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0807                            IsDeleted = false,
 0808                            RoleId = 1L
 0809                        },
 0810                        new
 0811                        {
 0812                            Id = 29L,
 0813                            Action = "viewShowcase",
 0814                            Available = true,
 0815                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0816                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0817                            IsDeleted = false,
 0818                            RoleId = 1L
 0819                        },
 0820                        new
 0821                        {
 0822                            Id = 30L,
 0823                            Action = "viewAnalytics",
 0824                            Available = true,
 0825                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0826                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0827                            IsDeleted = false,
 0828                            RoleId = 1L
 0829                        },
 0830                        new
 0831                        {
 0832                            Id = 31L,
 0833                            Action = "viewSettings",
 0834                            Available = true,
 0835                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0836                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0837                            IsDeleted = false,
 0838                            RoleId = 1L
 0839                        },
 0840                        new
 0841                        {
 0842                            Id = 32L,
 0843                            Action = "viewSystemManagement",
 0844                            Available = true,
 0845                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0846                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0847                            IsDeleted = false,
 0848                            RoleId = 1L
 0849                        },
 0850                        new
 0851                        {
 0852                            Id = 33L,
 0853                            Action = "viewSupport",
 0854                            Available = true,
 0855                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0856                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0857                            IsDeleted = false,
 0858                            RoleId = 1L
 0859                        },
 0860                        new
 0861                        {
 0862                            Id = 34L,
 0863                            Action = "viewOrders",
 0864                            Available = true,
 0865                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0866                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0867                            IsDeleted = false,
 0868                            RoleId = 2L
 0869                        },
 0870                        new
 0871                        {
 0872                            Id = 35L,
 0873                            Action = "viewShipments",
 0874                            Available = true,
 0875                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0876                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0877                            IsDeleted = false,
 0878                            RoleId = 2L
 0879                        },
 0880                        new
 0881                        {
 0882                            Id = 36L,
 0883                            Action = "viewUser",
 0884                            Available = true,
 0885                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0886                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0887                            IsDeleted = false,
 0888                            RoleId = 2L
 0889                        },
 0890                        new
 0891                        {
 0892                            Id = 37L,
 0893                            Action = "viewShowcase",
 0894                            Available = true,
 0895                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0896                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0897                            IsDeleted = false,
 0898                            RoleId = 2L
 0899                        },
 0900                        new
 0901                        {
 0902                            Id = 38L,
 0903                            Action = "viewAnalytics",
 0904                            Available = true,
 0905                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0906                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0907                            IsDeleted = false,
 0908                            RoleId = 2L
 0909                        },
 0910                        new
 0911                        {
 0912                            Id = 39L,
 0913                            Action = "viewSettings",
 0914                            Available = true,
 0915                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0916                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0917                            IsDeleted = false,
 0918                            RoleId = 2L
 0919                        },
 0920                        new
 0921                        {
 0922                            Id = 40L,
 0923                            Action = "viewSystemManagement",
 0924                            Available = true,
 0925                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0926                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0927                            IsDeleted = false,
 0928                            RoleId = 2L
 0929                        },
 0930                        new
 0931                        {
 0932                            Id = 41L,
 0933                            Action = "viewSupport",
 0934                            Available = true,
 0935                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0936                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0937                            IsDeleted = false,
 0938                            RoleId = 2L
 0939                        },
 0940                        new
 0941                        {
 0942                            Id = 42L,
 0943                            Action = "viewUser",
 0944                            Available = true,
 0945                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0946                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0947                            IsDeleted = false,
 0948                            RoleId = 6L
 0949                        },
 0950                        new
 0951                        {
 0952                            Id = 43L,
 0953                            Action = "viewShowcase",
 0954                            Available = true,
 0955                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0956                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0957                            IsDeleted = false,
 0958                            RoleId = 6L
 0959                        },
 0960                        new
 0961                        {
 0962                            Id = 44L,
 0963                            Action = "viewOrders",
 0964                            Available = false,
 0965                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0966                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0967                            IsDeleted = false,
 0968                            RoleId = 6L
 0969                        },
 0970                        new
 0971                        {
 0972                            Id = 45L,
 0973                            Action = "viewShipments",
 0974                            Available = true,
 0975                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0976                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0977                            IsDeleted = false,
 0978                            RoleId = 6L
 0979                        },
 0980                        new
 0981                        {
 0982                            Id = 46L,
 0983                            Action = "viewAnalytics",
 0984                            Available = true,
 0985                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0986                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0987                            IsDeleted = false,
 0988                            RoleId = 6L
 0989                        },
 0990                        new
 0991                        {
 0992                            Id = 47L,
 0993                            Action = "viewSettings",
 0994                            Available = true,
 0995                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 0996                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 0997                            IsDeleted = false,
 0998                            RoleId = 6L
 0999                        },
 01000                        new
 01001                        {
 01002                            Id = 48L,
 01003                            Action = "viewSupport",
 01004                            Available = true,
 01005                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01006                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01007                            IsDeleted = false,
 01008                            RoleId = 6L
 01009                        },
 01010                        new
 01011                        {
 01012                            Id = 49L,
 01013                            Action = "viewUser",
 01014                            Available = true,
 01015                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01016                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01017                            IsDeleted = false,
 01018                            RoleId = 7L
 01019                        },
 01020                        new
 01021                        {
 01022                            Id = 50L,
 01023                            Action = "viewShowcase",
 01024                            Available = true,
 01025                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01026                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01027                            IsDeleted = false,
 01028                            RoleId = 7L
 01029                        },
 01030                        new
 01031                        {
 01032                            Id = 51L,
 01033                            Action = "viewOrders",
 01034                            Available = false,
 01035                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01036                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01037                            IsDeleted = false,
 01038                            RoleId = 7L
 01039                        },
 01040                        new
 01041                        {
 01042                            Id = 52L,
 01043                            Action = "viewShipments",
 01044                            Available = true,
 01045                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01046                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01047                            IsDeleted = false,
 01048                            RoleId = 7L
 01049                        },
 01050                        new
 01051                        {
 01052                            Id = 53L,
 01053                            Action = "viewAnalytics",
 01054                            Available = true,
 01055                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01056                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01057                            IsDeleted = false,
 01058                            RoleId = 7L
 01059                        },
 01060                        new
 01061                        {
 01062                            Id = 54L,
 01063                            Action = "viewSettings",
 01064                            Available = true,
 01065                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01066                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01067                            IsDeleted = false,
 01068                            RoleId = 7L
 01069                        },
 01070                        new
 01071                        {
 01072                            Id = 55L,
 01073                            Action = "viewSupport",
 01074                            Available = true,
 01075                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01076                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01077                            IsDeleted = false,
 01078                            RoleId = 7L
 01079                        },
 01080                        new
 01081                        {
 01082                            Id = 56L,
 01083                            Action = "viewUser",
 01084                            Available = true,
 01085                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01086                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01087                            IsDeleted = false,
 01088                            RoleId = 8L
 01089                        },
 01090                        new
 01091                        {
 01092                            Id = 57L,
 01093                            Action = "viewShowcase",
 01094                            Available = true,
 01095                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01096                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01097                            IsDeleted = false,
 01098                            RoleId = 8L
 01099                        },
 01100                        new
 01101                        {
 01102                            Id = 58L,
 01103                            Action = "viewOrders",
 01104                            Available = false,
 01105                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01106                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01107                            IsDeleted = false,
 01108                            RoleId = 8L
 01109                        },
 01110                        new
 01111                        {
 01112                            Id = 59L,
 01113                            Action = "viewShipments",
 01114                            Available = true,
 01115                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01116                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01117                            IsDeleted = false,
 01118                            RoleId = 8L
 01119                        },
 01120                        new
 01121                        {
 01122                            Id = 60L,
 01123                            Action = "viewAnalytics",
 01124                            Available = true,
 01125                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01126                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01127                            IsDeleted = false,
 01128                            RoleId = 8L
 01129                        },
 01130                        new
 01131                        {
 01132                            Id = 61L,
 01133                            Action = "viewSettings",
 01134                            Available = true,
 01135                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01136                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01137                            IsDeleted = false,
 01138                            RoleId = 8L
 01139                        },
 01140                        new
 01141                        {
 01142                            Id = 62L,
 01143                            Action = "viewSupport",
 01144                            Available = true,
 01145                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01146                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01147                            IsDeleted = false,
 01148                            RoleId = 8L
 01149                        },
 01150                        new
 01151                        {
 01152                            Id = 63L,
 01153                            Action = "viewUser",
 01154                            Available = true,
 01155                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01156                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01157                            IsDeleted = false,
 01158                            RoleId = 3L
 01159                        },
 01160                        new
 01161                        {
 01162                            Id = 64L,
 01163                            Action = "viewShowcase",
 01164                            Available = true,
 01165                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01166                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01167                            IsDeleted = false,
 01168                            RoleId = 3L
 01169                        },
 01170                        new
 01171                        {
 01172                            Id = 65L,
 01173                            Action = "viewOrders",
 01174                            Available = true,
 01175                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01176                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01177                            IsDeleted = false,
 01178                            RoleId = 3L
 01179                        },
 01180                        new
 01181                        {
 01182                            Id = 66L,
 01183                            Action = "viewShipments",
 01184                            Available = true,
 01185                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01186                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01187                            IsDeleted = false,
 01188                            RoleId = 3L
 01189                        },
 01190                        new
 01191                        {
 01192                            Id = 67L,
 01193                            Action = "viewSupport",
 01194                            Available = true,
 01195                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01196                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01197                            IsDeleted = false,
 01198                            RoleId = 3L
 01199                        },
 01200                        new
 01201                        {
 01202                            Id = 69L,
 01203                            Action = "viewUser",
 01204                            Available = true,
 01205                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01206                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01207                            IsDeleted = false,
 01208                            RoleId = 4L
 01209                        },
 01210                        new
 01211                        {
 01212                            Id = 70L,
 01213                            Action = "viewShowcase",
 01214                            Available = true,
 01215                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01216                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01217                            IsDeleted = false,
 01218                            RoleId = 4L
 01219                        },
 01220                        new
 01221                        {
 01222                            Id = 71L,
 01223                            Action = "viewOrders",
 01224                            Available = true,
 01225                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01226                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01227                            IsDeleted = false,
 01228                            RoleId = 4L
 01229                        },
 01230                        new
 01231                        {
 01232                            Id = 72L,
 01233                            Action = "viewShipments",
 01234                            Available = true,
 01235                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01236                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01237                            IsDeleted = false,
 01238                            RoleId = 4L
 01239                        },
 01240                        new
 01241                        {
 01242                            Id = 73L,
 01243                            Action = "viewSupport",
 01244                            Available = true,
 01245                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01246                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01247                            IsDeleted = false,
 01248                            RoleId = 4L
 01249                        },
 01250                        new
 01251                        {
 01252                            Id = 75L,
 01253                            Action = "viewUser",
 01254                            Available = true,
 01255                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01256                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01257                            IsDeleted = false,
 01258                            RoleId = 5L
 01259                        },
 01260                        new
 01261                        {
 01262                            Id = 76L,
 01263                            Action = "viewShowcase",
 01264                            Available = true,
 01265                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01266                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01267                            IsDeleted = false,
 01268                            RoleId = 5L
 01269                        },
 01270                        new
 01271                        {
 01272                            Id = 77L,
 01273                            Action = "viewOrders",
 01274                            Available = true,
 01275                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01276                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01277                            IsDeleted = false,
 01278                            RoleId = 5L
 01279                        },
 01280                        new
 01281                        {
 01282                            Id = 78L,
 01283                            Action = "viewShipments",
 01284                            Available = true,
 01285                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01286                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01287                            IsDeleted = false,
 01288                            RoleId = 5L
 01289                        },
 01290                        new
 01291                        {
 01292                            Id = 79L,
 01293                            Action = "viewSupport",
 01294                            Available = true,
 01295                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01296                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01297                            IsDeleted = false,
 01298                            RoleId = 5L
 01299                        },
 01300                        new
 01301                        {
 01302                            Id = 82L,
 01303                            Action = "viewShowcase",
 01304                            Available = true,
 01305                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01306                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01307                            IsDeleted = false,
 01308                            RoleId = 9L
 01309                        },
 01310                        new
 01311                        {
 01312                            Id = 83L,
 01313                            Action = "viewNotifications",
 01314                            Available = true,
 01315                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01316                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01317                            IsDeleted = false,
 01318                            RoleId = 1L
 01319                        },
 01320                        new
 01321                        {
 01322                            Id = 84L,
 01323                            Action = "viewNotifications",
 01324                            Available = true,
 01325                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01326                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01327                            IsDeleted = false,
 01328                            RoleId = 2L
 01329                        },
 01330                        new
 01331                        {
 01332                            Id = 85L,
 01333                            Action = "viewNotifications",
 01334                            Available = true,
 01335                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01336                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01337                            IsDeleted = false,
 01338                            RoleId = 3L
 01339                        },
 01340                        new
 01341                        {
 01342                            Id = 86L,
 01343                            Action = "viewNotifications",
 01344                            Available = true,
 01345                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01346                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01347                            IsDeleted = false,
 01348                            RoleId = 4L
 01349                        },
 01350                        new
 01351                        {
 01352                            Id = 87L,
 01353                            Action = "viewNotifications",
 01354                            Available = true,
 01355                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01356                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01357                            IsDeleted = false,
 01358                            RoleId = 5L
 01359                        },
 01360                        new
 01361                        {
 01362                            Id = 88L,
 01363                            Action = "viewNotifications",
 01364                            Available = true,
 01365                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01366                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01367                            IsDeleted = false,
 01368                            RoleId = 6L
 01369                        },
 01370                        new
 01371                        {
 01372                            Id = 89L,
 01373                            Action = "viewNotifications",
 01374                            Available = true,
 01375                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01376                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01377                            IsDeleted = false,
 01378                            RoleId = 7L
 01379                        },
 01380                        new
 01381                        {
 01382                            Id = 90L,
 01383                            Action = "viewNotifications",
 01384                            Available = true,
 01385                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01386                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01387                            IsDeleted = false,
 01388                            RoleId = 8L
 01389                        },
 01390                        new
 01391                        {
 01392                            Id = 91L,
 01393                            Action = "viewDistributor",
 01394                            Available = true,
 01395                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01396                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01397                            IsDeleted = false,
 01398                            RoleId = 1L
 01399                        },
 01400                        new
 01401                        {
 01402                            Id = 92L,
 01403                            Action = "viewDistributor",
 01404                            Available = true,
 01405                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01406                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01407                            IsDeleted = false,
 01408                            RoleId = 6L
 01409                        },
 01410                        new
 01411                        {
 01412                            Id = 93L,
 01413                            Action = "viewDistributor",
 01414                            Available = true,
 01415                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01416                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01417                            IsDeleted = false,
 01418                            RoleId = 7L
 01419                        },
 01420                        new
 01421                        {
 01422                            Id = 94L,
 01423                            Action = "viewDistributor",
 01424                            Available = true,
 01425                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01426                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01427                            IsDeleted = false,
 01428                            RoleId = 8L
 01429                        },
 01430                        new
 01431                        {
 01432                            Id = 95L,
 01433                            Action = "viewRests",
 01434                            Available = true,
 01435                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01436                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01437                            IsDeleted = false,
 01438                            RoleId = 7L
 01439                        },
 01440                        new
 01441                        {
 01442                            Id = 96L,
 01443                            Action = "viewPricing",
 01444                            Available = true,
 01445                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01446                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01447                            IsDeleted = false,
 01448                            RoleId = 7L
 01449                        },
 01450                        new
 01451                        {
 01452                            Id = 97L,
 01453                            Action = "viewSelectionParameters",
 01454                            Available = true,
 01455                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01456                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01457                            IsDeleted = false,
 01458                            RoleId = 7L
 01459                        },
 01460                        new
 01461                        {
 01462                            Id = 98L,
 01463                            Action = "viewRests",
 01464                            Available = true,
 01465                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01466                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01467                            IsDeleted = false,
 01468                            RoleId = 1L
 01469                        },
 01470                        new
 01471                        {
 01472                            Id = 99L,
 01473                            Action = "viewPricing",
 01474                            Available = true,
 01475                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01476                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01477                            IsDeleted = false,
 01478                            RoleId = 1L
 01479                        },
 01480                        new
 01481                        {
 01482                            Id = 100L,
 01483                            Action = "viewSelectionParameters",
 01484                            Available = true,
 01485                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01486                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01487                            IsDeleted = false,
 01488                            RoleId = 1L
 01489                        },
 01490                        new
 01491                        {
 01492                            Id = 101L,
 01493                            Action = "viewRests",
 01494                            Available = true,
 01495                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01496                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01497                            IsDeleted = false,
 01498                            RoleId = 2L
 01499                        },
 01500                        new
 01501                        {
 01502                            Id = 102L,
 01503                            Action = "viewPricing",
 01504                            Available = true,
 01505                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01506                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01507                            IsDeleted = false,
 01508                            RoleId = 2L
 01509                        },
 01510                        new
 01511                        {
 01512                            Id = 103L,
 01513                            Action = "viewSelectionParameters",
 01514                            Available = true,
 01515                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01516                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01517                            IsDeleted = false,
 01518                            RoleId = 2L
 01519                        },
 01520                        new
 01521                        {
 01522                            Id = 104L,
 01523                            Action = "viewRests",
 01524                            Available = false,
 01525                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01526                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01527                            IsDeleted = false,
 01528                            RoleId = 3L
 01529                        },
 01530                        new
 01531                        {
 01532                            Id = 105L,
 01533                            Action = "viewPricing",
 01534                            Available = false,
 01535                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01536                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01537                            IsDeleted = false,
 01538                            RoleId = 3L
 01539                        },
 01540                        new
 01541                        {
 01542                            Id = 106L,
 01543                            Action = "viewSelectionParameters",
 01544                            Available = false,
 01545                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01546                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01547                            IsDeleted = false,
 01548                            RoleId = 3L
 01549                        },
 01550                        new
 01551                        {
 01552                            Id = 107L,
 01553                            Action = "viewDepartments",
 01554                            Available = true,
 01555                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01556                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01557                            IsDeleted = false,
 01558                            RoleId = 1L
 01559                        },
 01560                        new
 01561                        {
 01562                            Id = 108L,
 01563                            Action = "viewDepartments",
 01564                            Available = true,
 01565                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01566                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01567                            IsDeleted = false,
 01568                            RoleId = 2L
 01569                        },
 01570                        new
 01571                        {
 01572                            Id = 109L,
 01573                            Action = "viewDepartments",
 01574                            Available = true,
 01575                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01576                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01577                            IsDeleted = false,
 01578                            RoleId = 3L
 01579                        },
 01580                        new
 01581                        {
 01582                            Id = 110L,
 01583                            Action = "viewDepartments",
 01584                            Available = true,
 01585                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01586                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01587                            IsDeleted = false,
 01588                            RoleId = 7L
 01589                        },
 01590                        new
 01591                        {
 01592                            Id = 111L,
 01593                            Action = "viewDepartments",
 01594                            Available = true,
 01595                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01596                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01597                            IsDeleted = false,
 01598                            RoleId = 6L
 01599                        },
 01600                        new
 01601                        {
 01602                            Id = 112L,
 01603                            Action = "viewPricing",
 01604                            Available = true,
 01605                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01606                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01607                            IsDeleted = false,
 01608                            RoleId = 6L
 01609                        },
 01610                        new
 01611                        {
 01612                            Id = 113L,
 01613                            Action = "viewRests",
 01614                            Available = true,
 01615                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01616                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01617                            IsDeleted = false,
 01618                            RoleId = 6L
 01619                        },
 01620                        new
 01621                        {
 01622                            Id = 114L,
 01623                            Action = "viewSelectionParameters",
 01624                            Available = true,
 01625                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01626                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01627                            IsDeleted = false,
 01628                            RoleId = 6L
 01629                        },
 01630                        new
 01631                        {
 01632                            Id = 115L,
 01633                            Action = "viewOrderDraft",
 01634                            Available = true,
 01635                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01636                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01637                            IsDeleted = false,
 01638                            RoleId = 3L
 01639                        },
 01640                        new
 01641                        {
 01642                            Id = 116L,
 01643                            Action = "viewOrderDraft",
 01644                            Available = true,
 01645                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01646                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01647                            IsDeleted = false,
 01648                            RoleId = 4L
 01649                        },
 01650                        new
 01651                        {
 01652                            Id = 117L,
 01653                            Action = "viewOrderDraft",
 01654                            Available = true,
 01655                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01656                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01657                            IsDeleted = false,
 01658                            RoleId = 5L
 01659                        },
 01660                        new
 01661                        {
 01662                            Id = 118L,
 01663                            Action = "viewSettings",
 01664                            Available = true,
 01665                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01666                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01667                            IsDeleted = false,
 01668                            RoleId = 3L
 01669                        },
 01670                        new
 01671                        {
 01672                            Id = 119L,
 01673                            Action = "viewRests",
 01674                            Available = false,
 01675                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01676                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01677                            IsDeleted = false,
 01678                            RoleId = 4L
 01679                        },
 01680                        new
 01681                        {
 01682                            Id = 120L,
 01683                            Action = "viewPricing",
 01684                            Available = false,
 01685                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01686                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01687                            IsDeleted = false,
 01688                            RoleId = 4L
 01689                        },
 01690                        new
 01691                        {
 01692                            Id = 121L,
 01693                            Action = "viewSelectionParameters",
 01694                            Available = false,
 01695                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01696                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01697                            IsDeleted = false,
 01698                            RoleId = 4L
 01699                        },
 01700                        new
 01701                        {
 01702                            Id = 122L,
 01703                            Action = "viewRests",
 01704                            Available = false,
 01705                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01706                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01707                            IsDeleted = false,
 01708                            RoleId = 5L
 01709                        },
 01710                        new
 01711                        {
 01712                            Id = 123L,
 01713                            Action = "viewPricing",
 01714                            Available = false,
 01715                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01716                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01717                            IsDeleted = false,
 01718                            RoleId = 5L
 01719                        },
 01720                        new
 01721                        {
 01722                            Id = 124L,
 01723                            Action = "viewSelectionParameters",
 01724                            Available = false,
 01725                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 01726                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 01727                            IsDeleted = false,
 01728                            RoleId = 5L
 01729                        });
 01730                });
 1731
 01732            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Country", b =>
 01733                {
 01734                    b.Property<long>("Id")
 01735                        .ValueGeneratedOnAdd()
 01736                        .HasColumnType("bigint")
 01737                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 01738
 01739                    b.Property<int>("Code")
 01740                        .HasColumnType("integer");
 01741
 01742                    b.Property<long?>("CreatedByUserId")
 01743                        .HasColumnType("bigint");
 01744
 01745                    b.Property<DateTime>("CreationDateTime")
 01746                        .HasColumnType("timestamp without time zone");
 01747
 01748                    b.Property<Guid>("GUID")
 01749                        .ValueGeneratedOnAdd()
 01750                        .HasColumnType("uuid");
 01751
 01752                    b.Property<bool>("IsDeleted")
 01753                        .HasColumnType("boolean");
 01754
 01755                    b.Property<DateTime?>("ModificationDateTime")
 01756                        .HasColumnType("timestamp without time zone");
 01757
 01758                    b.Property<long?>("ModifiedByUserId")
 01759                        .HasColumnType("bigint");
 01760
 01761                    b.Property<string>("Name")
 01762                        .IsRequired()
 01763                        .HasColumnType("text");
 01764
 01765                    b.Property<long?>("RecStateId")
 01766                        .HasColumnType("bigint");
 01767
 01768                    b.HasKey("Id");
 01769
 01770                    b.HasIndex("CreatedByUserId");
 01771
 01772                    b.HasIndex("ModifiedByUserId");
 01773
 01774                    b.HasIndex("Name")
 01775                        .IsUnique();
 01776
 01777                    b.HasIndex("RecStateId");
 01778
 01779                    b.ToTable("Countries");
 01780
 01781                    b.HasData(
 01782                        new
 01783                        {
 01784                            Id = 2L,
 01785                            Code = 895,
 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 = 3L,
 01794                            Code = 36,
 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 = 4L,
 01803                            Code = 40,
 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 = 5L,
 01812                            Code = 31,
 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 = 6L,
 01821                            Code = 8,
 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 = 7L,
 01830                            Code = 12,
 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 = 8L,
 01839                            Code = 16,
 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 = 9L,
 01848                            Code = 660,
 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 = 10L,
 01857                            Code = 24,
 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 = 11L,
 01866                            Code = 20,
 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 = 12L,
 01875                            Code = 10,
 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 = 13L,
 01884                            Code = 28,
 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 = 14L,
 01893                            Code = 32,
 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 = 15L,
 01902                            Code = 51,
 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 = 16L,
 01911                            Code = 533,
 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 = 17L,
 01920                            Code = 4,
 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 = 18L,
 01929                            Code = 44,
 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 = 19L,
 01938                            Code = 50,
 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 = 20L,
 01947                            Code = 52,
 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 = 21L,
 01956                            Code = 48,
 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 = 22L,
 01965                            Code = 112,
 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 = 23L,
 01974                            Code = 84,
 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 = 24L,
 01983                            Code = 56,
 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 = 25L,
 01992                            Code = 204,
 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 = 26L,
 02001                            Code = 60,
 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 = 27L,
 02010                            Code = 100,
 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 = 28L,
 02019                            Code = 68,
 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 = 29L,
 02028                            Code = 535,
 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 = 30L,
 02037                            Code = 70,
 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 = 31L,
 02046                            Code = 72,
 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 = 32L,
 02055                            Code = 76,
 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 = 33L,
 02064                            Code = 86,
 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 = 34L,
 02073                            Code = 96,
 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 = 35L,
 02082                            Code = 854,
 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 = 36L,
 02091                            Code = 108,
 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 = 37L,
 02100                            Code = 64,
 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 = 38L,
 02109                            Code = 548,
 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 = 39L,
 02118                            Code = 348,
 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 = 40L,
 02127                            Code = 862,
 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 = 41L,
 02136                            Code = 92,
 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 = 42L,
 02145                            Code = 850,
 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 = 43L,
 02154                            Code = 704,
 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 = 44L,
 02163                            Code = 266,
 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 = 45L,
 02172                            Code = 332,
 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 = 46L,
 02181                            Code = 328,
 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 = 47L,
 02190                            Code = 270,
 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 = 48L,
 02199                            Code = 288,
 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 = 49L,
 02208                            Code = 312,
 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 = 50L,
 02217                            Code = 320,
 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 = 51L,
 02226                            Code = 324,
 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 = 52L,
 02235                            Code = 624,
 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 = 53L,
 02244                            Code = 276,
 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 = 54L,
 02253                            Code = 831,
 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 = 55L,
 02262                            Code = 292,
 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 = 56L,
 02271                            Code = 340,
 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 = 57L,
 02280                            Code = 344,
 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 = 58L,
 02289                            Code = 308,
 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 = 59L,
 02298                            Code = 304,
 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 = 60L,
 02307                            Code = 300,
 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 = 61L,
 02316                            Code = 268,
 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 = 62L,
 02325                            Code = 316,
 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 = 63L,
 02334                            Code = 208,
 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 = 64L,
 02343                            Code = 832,
 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 = 65L,
 02352                            Code = 262,
 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 = 66L,
 02361                            Code = 212,
 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 = 67L,
 02370                            Code = 214,
 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 = 68L,
 02379                            Code = 818,
 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 = 69L,
 02388                            Code = 894,
 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 = 70L,
 02397                            Code = 732,
 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 = 71L,
 02406                            Code = 716,
 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 = 72L,
 02415                            Code = 376,
 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 = 73L,
 02424                            Code = 356,
 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 = 74L,
 02433                            Code = 360,
 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 = 75L,
 02442                            Code = 400,
 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 = 76L,
 02451                            Code = 368,
 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 = 77L,
 02460                            Code = 364,
 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 = 78L,
 02469                            Code = 372,
 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 = 79L,
 02478                            Code = 352,
 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 = 80L,
 02487                            Code = 724,
 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 = 81L,
 02496                            Code = 380,
 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 = 82L,
 02505                            Code = 887,
 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 = 83L,
 02514                            Code = 132,
 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 = 84L,
 02523                            Code = 398,
 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 = 85L,
 02532                            Code = 116,
 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 = 86L,
 02541                            Code = 120,
 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 = 87L,
 02550                            Code = 124,
 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 = 88L,
 02559                            Code = 634,
 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 = 89L,
 02568                            Code = 404,
 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 = 90L,
 02577                            Code = 196,
 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 = 91L,
 02586                            Code = 417,
 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 = 92L,
 02595                            Code = 296,
 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 = 93L,
 02604                            Code = 156,
 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 = 94L,
 02613                            Code = 166,
 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 = 95L,
 02622                            Code = 170,
 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 = 96L,
 02631                            Code = 174,
 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 = 97L,
 02640                            Code = 178,
 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 = 98L,
 02649                            Code = 180,
 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 = 99L,
 02658                            Code = 408,
 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 = 100L,
 02667                            Code = 410,
 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 = 101L,
 02676                            Code = 188,
 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 = 102L,
 02685                            Code = 384,
 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 = 103L,
 02694                            Code = 192,
 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 = 104L,
 02703                            Code = 414,
 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 = 105L,
 02712                            Code = 531,
 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 = 106L,
 02721                            Code = 418,
 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 = 107L,
 02730                            Code = 428,
 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 = 108L,
 02739                            Code = 426,
 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 = 109L,
 02748                            Code = 422,
 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 = 110L,
 02757                            Code = 434,
 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 = 111L,
 02766                            Code = 430,
 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 = 112L,
 02775                            Code = 438,
 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 = 113L,
 02784                            Code = 440,
 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 = 114L,
 02793                            Code = 442,
 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 = 115L,
 02802                            Code = 480,
 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 = 116L,
 02811                            Code = 478,
 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 = 117L,
 02820                            Code = 450,
 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 = 118L,
 02829                            Code = 175,
 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 = 119L,
 02838                            Code = 446,
 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 = 120L,
 02847                            Code = 454,
 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 = 121L,
 02856                            Code = 458,
 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 = 122L,
 02865                            Code = 466,
 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 = 123L,
 02874                            Code = 581,
 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 = 124L,
 02883                            Code = 462,
 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 = 125L,
 02892                            Code = 470,
 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 = 126L,
 02901                            Code = 504,
 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 = 127L,
 02910                            Code = 474,
 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 = 128L,
 02919                            Code = 584,
 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 = 129L,
 02928                            Code = 484,
 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 = 130L,
 02937                            Code = 583,
 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 = 131L,
 02946                            Code = 508,
 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 = 132L,
 02955                            Code = 498,
 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 = 133L,
 02964                            Code = 492,
 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 = 134L,
 02973                            Code = 496,
 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 = 135L,
 02982                            Code = 500,
 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 = 136L,
 02991                            Code = 104,
 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 = 137L,
 03000                            Code = 516,
 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 = 138L,
 03009                            Code = 520,
 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 = 139L,
 03018                            Code = 524,
 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 = 140L,
 03027                            Code = 562,
 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 = 141L,
 03036                            Code = 566,
 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 = 142L,
 03045                            Code = 528,
 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 = 143L,
 03054                            Code = 558,
 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 = 144L,
 03063                            Code = 570,
 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 = 145L,
 03072                            Code = 554,
 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 = 146L,
 03081                            Code = 540,
 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 = 147L,
 03090                            Code = 578,
 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 = 148L,
 03099                            Code = 784,
 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 = 149L,
 03108                            Code = 512,
 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 = 150L,
 03117                            Code = 74,
 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 = 151L,
 03126                            Code = 833,
 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 = 152L,
 03135                            Code = 574,
 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 = 153L,
 03144                            Code = 162,
 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 = 154L,
 03153                            Code = 334,
 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 = 155L,
 03162                            Code = 136,
 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 = 156L,
 03171                            Code = 184,
 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 = 157L,
 03180                            Code = 796,
 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 = 158L,
 03189                            Code = 586,
 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 = 159L,
 03198                            Code = 585,
 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 = 160L,
 03207                            Code = 275,
 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 = 161L,
 03216                            Code = 591,
 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 = 162L,
 03225                            Code = 336,
 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 = 163L,
 03234                            Code = 598,
 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 = 164L,
 03243                            Code = 600,
 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 = 165L,
 03252                            Code = 604,
 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 = 166L,
 03261                            Code = 612,
 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 = 167L,
 03270                            Code = 616,
 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 = 168L,
 03279                            Code = 620,
 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 = 169L,
 03288                            Code = 630,
 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 = 170L,
 03297                            Code = 807,
 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 = 171L,
 03306                            Code = 638,
 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 = 172L,
 03315                            Code = 643,
 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 = 173L,
 03324                            Code = 646,
 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 = 174L,
 03333                            Code = 642,
 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 = 175L,
 03342                            Code = 882,
 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 = 176L,
 03351                            Code = 674,
 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 = 177L,
 03360                            Code = 678,
 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 = 178L,
 03369                            Code = 682,
 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 = 179L,
 03378                            Code = 748,
 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 = 180L,
 03387                            Code = 654,
 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 = 181L,
 03396                            Code = 580,
 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 = 182L,
 03405                            Code = 652,
 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 = 183L,
 03414                            Code = 663,
 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 = 184L,
 03423                            Code = 686,
 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 = 185L,
 03432                            Code = 670,
 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 = 186L,
 03441                            Code = 659,
 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 = 187L,
 03450                            Code = 662,
 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 = 188L,
 03459                            Code = 666,
 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 = 189L,
 03468                            Code = 688,
 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 = 190L,
 03477                            Code = 690,
 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 = 191L,
 03486                            Code = 702,
 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 = 192L,
 03495                            Code = 534,
 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 = 193L,
 03504                            Code = 760,
 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 = 194L,
 03513                            Code = 703,
 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 = 195L,
 03522                            Code = 705,
 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 = 196L,
 03531                            Code = 826,
 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 = 197L,
 03540                            Code = 840,
 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 = 198L,
 03549                            Code = 90,
 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 = 199L,
 03558                            Code = 706,
 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 = 200L,
 03567                            Code = 729,
 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 = 201L,
 03576                            Code = 740,
 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 = 202L,
 03585                            Code = 694,
 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 = 203L,
 03594                            Code = 762,
 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 = 204L,
 03603                            Code = 764,
 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 = 205L,
 03612                            Code = 158,
 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 = 206L,
 03621                            Code = 834,
 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 = 207L,
 03630                            Code = 626,
 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 = 208L,
 03639                            Code = 768,
 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 = 209L,
 03648                            Code = 772,
 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 = 210L,
 03657                            Code = 776,
 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 = 211L,
 03666                            Code = 780,
 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 = 212L,
 03675                            Code = 798,
 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 = 213L,
 03684                            Code = 788,
 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 = 214L,
 03693                            Code = 795,
 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 = 215L,
 03702                            Code = 792,
 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 = 216L,
 03711                            Code = 800,
 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 = 217L,
 03720                            Code = 860,
 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 = 218L,
 03729                            Code = 804,
 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 = 219L,
 03738                            Code = 876,
 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 = 220L,
 03747                            Code = 858,
 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 = 221L,
 03756                            Code = 234,
 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 = 222L,
 03765                            Code = 242,
 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 = 223L,
 03774                            Code = 608,
 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 = 224L,
 03783                            Code = 246,
 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 = 225L,
 03792                            Code = 238,
 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 = 226L,
 03801                            Code = 250,
 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 = 227L,
 03810                            Code = 254,
 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 = 228L,
 03819                            Code = 258,
 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 = 229L,
 03828                            Code = 260,
 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 = 230L,
 03837                            Code = 191,
 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 = 231L,
 03846                            Code = 140,
 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 = 232L,
 03855                            Code = 148,
 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 = 233L,
 03864                            Code = 499,
 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 = 234L,
 03873                            Code = 203,
 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 = 235L,
 03882                            Code = 152,
 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 = 236L,
 03891                            Code = 756,
 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 = 237L,
 03900                            Code = 752,
 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 = 238L,
 03909                            Code = 744,
 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 = 239L,
 03918                            Code = 144,
 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 = 240L,
 03927                            Code = 218,
 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 = 241L,
 03936                            Code = 226,
 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 = 242L,
 03945                            Code = 248,
 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 = 243L,
 03954                            Code = 222,
 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 = 244L,
 03963                            Code = 232,
 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 = 245L,
 03972                            Code = 233,
 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 = 246L,
 03981                            Code = 231,
 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 = 247L,
 03990                            Code = 710,
 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 = 248L,
 03999                            Code = 239,
 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                        new
 04006                        {
 04007                            Id = 249L,
 04008                            Code = 896,
 04009                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04010                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04011                            IsDeleted = false,
 04012                            Name = "Южная Осетия"
 04013                        },
 04014                        new
 04015                        {
 04016                            Id = 250L,
 04017                            Code = 728,
 04018                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04019                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04020                            IsDeleted = false,
 04021                            Name = "Южный Судан"
 04022                        },
 04023                        new
 04024                        {
 04025                            Id = 251L,
 04026                            Code = 388,
 04027                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04028                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04029                            IsDeleted = false,
 04030                            Name = "Ямайка"
 04031                        },
 04032                        new
 04033                        {
 04034                            Id = 252L,
 04035                            Code = 392,
 04036                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04037                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04038                            IsDeleted = false,
 04039                            Name = "Япония"
 04040                        });
 04041                });
 4042
 04043            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Currency", b =>
 04044                {
 04045                    b.Property<long>("Id")
 04046                        .ValueGeneratedOnAdd()
 04047                        .HasColumnType("bigint")
 04048                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04049
 04050                    b.Property<string>("CODE")
 04051                        .IsRequired()
 04052                        .HasColumnType("text");
 04053
 04054                    b.Property<string>("COUNTRY")
 04055                        .IsRequired()
 04056                        .HasColumnType("text");
 04057
 04058                    b.Property<long?>("CreatedByUserId")
 04059                        .HasColumnType("bigint");
 04060
 04061                    b.Property<DateTime>("CreationDateTime")
 04062                        .HasColumnType("timestamp without time zone");
 04063
 04064                    b.Property<Guid>("GUID")
 04065                        .ValueGeneratedOnAdd()
 04066                        .HasColumnType("uuid");
 04067
 04068                    b.Property<bool>("IsDeleted")
 04069                        .HasColumnType("boolean");
 04070
 04071                    b.Property<DateTime?>("ModificationDateTime")
 04072                        .HasColumnType("timestamp without time zone");
 04073
 04074                    b.Property<long?>("ModifiedByUserId")
 04075                        .HasColumnType("bigint");
 04076
 04077                    b.Property<string>("NAME")
 04078                        .IsRequired()
 04079                        .HasColumnType("text");
 04080
 04081                    b.Property<decimal>("Rate")
 04082                        .HasColumnType("numeric");
 04083
 04084                    b.Property<long?>("RecStateId")
 04085                        .HasColumnType("bigint");
 04086
 04087                    b.Property<string>("STRCODE")
 04088                        .IsRequired()
 04089                        .HasColumnType("text");
 04090
 04091                    b.Property<string>("global_id")
 04092                        .HasColumnType("text");
 04093
 04094                    b.Property<string>("system_object_id")
 04095                        .HasColumnType("text");
 04096
 04097                    b.HasKey("Id");
 04098
 04099                    b.HasIndex("CODE")
 04100                        .IsUnique();
 04101
 04102                    b.HasIndex("CreatedByUserId");
 04103
 04104                    b.HasIndex("ModifiedByUserId");
 04105
 04106                    b.HasIndex("NAME")
 04107                        .IsUnique();
 04108
 04109                    b.HasIndex("RecStateId");
 04110
 04111                    b.HasIndex("STRCODE")
 04112                        .IsUnique();
 04113
 04114                    b.ToTable("Currency");
 04115
 04116                    b.HasData(
 04117                        new
 04118                        {
 04119                            Id = 1L,
 04120                            CODE = "643",
 04121                            COUNTRY = "Россия",
 04122                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04123                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04124                            IsDeleted = false,
 04125                            NAME = "Российский рубль",
 04126                            Rate = 1m,
 04127                            STRCODE = "RUB",
 04128                            global_id = "62838439",
 04129                            system_object_id = "643"
 04130                        });
 04131                });
 4132
 04133            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", b =>
 04134                {
 04135                    b.Property<long>("Id")
 04136                        .ValueGeneratedOnAdd()
 04137                        .HasColumnType("bigint")
 04138                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04139
 04140                    b.Property<long?>("ActualAddressId")
 04141                        .HasColumnType("bigint");
 04142
 04143                    b.Property<decimal>("Area")
 04144                        .HasColumnType("numeric");
 04145
 04146                    b.Property<long?>("ClusterId")
 04147                        .HasColumnType("bigint");
 04148
 04149                    b.Property<long>("ContragentId")
 04150                        .HasColumnType("bigint");
 04151
 04152                    b.Property<long?>("CreatedByUserId")
 04153                        .HasColumnType("bigint");
 04154
 04155                    b.Property<DateTime>("CreationDateTime")
 04156                        .HasColumnType("timestamp without time zone");
 04157
 04158                    b.Property<string>("Email")
 04159                        .HasColumnType("text");
 04160
 04161                    b.Property<Guid>("GUID")
 04162                        .ValueGeneratedOnAdd()
 04163                        .HasColumnType("uuid");
 04164
 04165                    b.Property<bool>("IsDeleted")
 04166                        .HasColumnType("boolean");
 04167
 04168                    b.Property<long?>("KindId")
 04169                        .HasColumnType("bigint");
 04170
 04171                    b.Property<string>("Kpp")
 04172                        .HasColumnType("text");
 04173
 04174                    b.Property<DateTime?>("ModificationDateTime")
 04175                        .HasColumnType("timestamp without time zone");
 04176
 04177                    b.Property<long?>("ModifiedByUserId")
 04178                        .HasColumnType("bigint");
 04179
 04180                    b.Property<string>("Name")
 04181                        .IsRequired()
 04182                        .HasColumnType("text");
 04183
 04184                    b.Property<string>("PhoneNumber")
 04185                        .IsRequired()
 04186                        .HasColumnType("text");
 04187
 04188                    b.Property<long?>("RecStateId")
 04189                        .HasColumnType("bigint");
 04190
 04191                    b.Property<long?>("StatusId")
 04192                        .HasColumnType("bigint");
 04193
 04194                    b.HasKey("Id");
 04195
 04196                    b.HasIndex("ActualAddressId");
 04197
 04198                    b.HasIndex("ClusterId");
 04199
 04200                    b.HasIndex("ContragentId");
 04201
 04202                    b.HasIndex("CreatedByUserId");
 04203
 04204                    b.HasIndex("KindId");
 04205
 04206                    b.HasIndex("ModifiedByUserId");
 04207
 04208                    b.HasIndex("Name")
 04209                        .IsUnique();
 04210
 04211                    b.HasIndex("PhoneNumber");
 04212
 04213                    b.HasIndex("RecStateId");
 04214
 04215                    b.HasIndex("StatusId");
 04216
 04217                    b.ToTable("Departments");
 04218
 04219                    b.HasData(
 04220                        new
 04221                        {
 04222                            Id = -1L,
 04223                            ActualAddressId = -1L,
 04224                            Area = 100.0m,
 04225                            ContragentId = -1L,
 04226                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04227                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04228                            IsDeleted = false,
 04229                            KindId = 2L,
 04230                            Kpp = "3",
 04231                            Name = "Анонимный магазин №1",
 04232                            PhoneNumber = "88008008000",
 04233                            StatusId = 2L
 04234                        });
 04235                });
 4236
 04237            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentCategoryRatio", b =>
 04238                {
 04239                    b.Property<long>("Id")
 04240                        .ValueGeneratedOnAdd()
 04241                        .HasColumnType("bigint")
 04242                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04243
 04244                    b.Property<long>("CategoryId")
 04245                        .HasColumnType("bigint");
 04246
 04247                    b.Property<long?>("CreatedByUserId")
 04248                        .HasColumnType("bigint");
 04249
 04250                    b.Property<DateTime>("CreationDateTime")
 04251                        .HasColumnType("timestamp without time zone");
 04252
 04253                    b.Property<long>("DepartmentId")
 04254                        .HasColumnType("bigint");
 04255
 04256                    b.Property<Guid>("GUID")
 04257                        .ValueGeneratedOnAdd()
 04258                        .HasColumnType("uuid");
 04259
 04260                    b.Property<bool>("IsDeleted")
 04261                        .HasColumnType("boolean");
 04262
 04263                    b.Property<DateTime?>("ModificationDateTime")
 04264                        .HasColumnType("timestamp without time zone");
 04265
 04266                    b.Property<long?>("ModifiedByUserId")
 04267                        .HasColumnType("bigint");
 04268
 04269                    b.Property<long?>("RecStateId")
 04270                        .HasColumnType("bigint");
 04271
 04272                    b.Property<decimal>("TradeRatio")
 04273                        .HasColumnType("numeric");
 04274
 04275                    b.HasKey("Id");
 04276
 04277                    b.HasIndex("CategoryId");
 04278
 04279                    b.HasIndex("CreatedByUserId");
 04280
 04281                    b.HasIndex("ModifiedByUserId");
 04282
 04283                    b.HasIndex("RecStateId");
 04284
 04285                    b.HasIndex("DepartmentId", "CategoryId")
 04286                        .IsUnique();
 04287
 04288                    b.ToTable("DepartmentCategoryRatio");
 04289                });
 4290
 04291            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentGoodSetting", b =>
 04292                {
 04293                    b.Property<long>("Id")
 04294                        .ValueGeneratedOnAdd()
 04295                        .HasColumnType("bigint")
 04296                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04297
 04298                    b.Property<long?>("CreatedByUserId")
 04299                        .HasColumnType("bigint");
 04300
 04301                    b.Property<DateTime>("CreationDateTime")
 04302                        .HasColumnType("timestamp without time zone");
 04303
 04304                    b.Property<long>("DepartmentId")
 04305                        .HasColumnType("bigint");
 04306
 04307                    b.Property<Guid>("GUID")
 04308                        .ValueGeneratedOnAdd()
 04309                        .HasColumnType("uuid");
 04310
 04311                    b.Property<long>("GoodId")
 04312                        .HasColumnType("bigint");
 04313
 04314                    b.Property<bool>("IsDeleted")
 04315                        .HasColumnType("boolean");
 04316
 04317                    b.Property<decimal>("MinQuantity")
 04318                        .HasColumnType("numeric");
 04319
 04320                    b.Property<DateTime?>("ModificationDateTime")
 04321                        .HasColumnType("timestamp without time zone");
 04322
 04323                    b.Property<long?>("ModifiedByUserId")
 04324                        .HasColumnType("bigint");
 04325
 04326                    b.Property<decimal>("PickingQuantum")
 04327                        .HasColumnType("numeric");
 04328
 04329                    b.Property<long?>("RecStateId")
 04330                        .HasColumnType("bigint");
 04331
 04332                    b.HasKey("Id");
 04333
 04334                    b.HasIndex("CreatedByUserId");
 04335
 04336                    b.HasIndex("DepartmentId");
 04337
 04338                    b.HasIndex("ModifiedByUserId");
 04339
 04340                    b.HasIndex("RecStateId");
 04341
 04342                    b.HasIndex("GoodId", "DepartmentId")
 04343                        .IsUnique();
 04344
 04345                    b.ToTable("DepartmentGoodSetting");
 04346                });
 4347
 04348            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsKind", b =>
 04349                {
 04350                    b.Property<long>("Id")
 04351                        .ValueGeneratedOnAdd()
 04352                        .HasColumnType("bigint")
 04353                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04354
 04355                    b.Property<string>("Code")
 04356                        .IsRequired()
 04357                        .HasColumnType("text");
 04358
 04359                    b.Property<long?>("CreatedByUserId")
 04360                        .HasColumnType("bigint");
 04361
 04362                    b.Property<DateTime>("CreationDateTime")
 04363                        .HasColumnType("timestamp without time zone");
 04364
 04365                    b.Property<string>("Description")
 04366                        .HasColumnType("text");
 04367
 04368                    b.Property<Guid>("GUID")
 04369                        .ValueGeneratedOnAdd()
 04370                        .HasColumnType("uuid");
 04371
 04372                    b.Property<bool>("IsDeleted")
 04373                        .HasColumnType("boolean");
 04374
 04375                    b.Property<DateTime?>("ModificationDateTime")
 04376                        .HasColumnType("timestamp without time zone");
 04377
 04378                    b.Property<long?>("ModifiedByUserId")
 04379                        .HasColumnType("bigint");
 04380
 04381                    b.Property<string>("Name")
 04382                        .IsRequired()
 04383                        .HasColumnType("text");
 04384
 04385                    b.Property<long?>("RecStateId")
 04386                        .HasColumnType("bigint");
 04387
 04388                    b.HasKey("Id");
 04389
 04390                    b.HasIndex("CreatedByUserId");
 04391
 04392                    b.HasIndex("ModifiedByUserId");
 04393
 04394                    b.HasIndex("RecStateId");
 04395
 04396                    b.ToTable("DepartmentsKind");
 04397
 04398                    b.HasData(
 04399                        new
 04400                        {
 04401                            Id = 1L,
 04402                            Code = "Warehouse",
 04403                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04404                            Description = "",
 04405                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04406                            IsDeleted = false,
 04407                            Name = "Склад"
 04408                        },
 04409                        new
 04410                        {
 04411                            Id = 2L,
 04412                            Code = "Shop",
 04413                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04414                            Description = "",
 04415                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04416                            IsDeleted = false,
 04417                            Name = "Магазин"
 04418                        },
 04419                        new
 04420                        {
 04421                            Id = 3L,
 04422                            Code = "Plant",
 04423                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04424                            Description = "",
 04425                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04426                            IsDeleted = false,
 04427                            Name = "Завод"
 04428                        });
 04429                });
 4430
 04431            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsStatus", b =>
 04432                {
 04433                    b.Property<long>("Id")
 04434                        .ValueGeneratedOnAdd()
 04435                        .HasColumnType("bigint")
 04436                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04437
 04438                    b.Property<string>("Code")
 04439                        .IsRequired()
 04440                        .HasColumnType("text");
 04441
 04442                    b.Property<long?>("CreatedByUserId")
 04443                        .HasColumnType("bigint");
 04444
 04445                    b.Property<DateTime>("CreationDateTime")
 04446                        .HasColumnType("timestamp without time zone");
 04447
 04448                    b.Property<string>("Description")
 04449                        .HasColumnType("text");
 04450
 04451                    b.Property<Guid>("GUID")
 04452                        .ValueGeneratedOnAdd()
 04453                        .HasColumnType("uuid");
 04454
 04455                    b.Property<bool>("IsDeleted")
 04456                        .HasColumnType("boolean");
 04457
 04458                    b.Property<DateTime?>("ModificationDateTime")
 04459                        .HasColumnType("timestamp without time zone");
 04460
 04461                    b.Property<long?>("ModifiedByUserId")
 04462                        .HasColumnType("bigint");
 04463
 04464                    b.Property<string>("Name")
 04465                        .IsRequired()
 04466                        .HasColumnType("text");
 04467
 04468                    b.Property<long?>("RecStateId")
 04469                        .HasColumnType("bigint");
 04470
 04471                    b.HasKey("Id");
 04472
 04473                    b.HasIndex("CreatedByUserId");
 04474
 04475                    b.HasIndex("ModifiedByUserId");
 04476
 04477                    b.HasIndex("RecStateId");
 04478
 04479                    b.ToTable("DepartmentsStatus");
 04480
 04481                    b.HasData(
 04482                        new
 04483                        {
 04484                            Id = 1L,
 04485                            Code = "New",
 04486                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04487                            Description = "",
 04488                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04489                            IsDeleted = false,
 04490                            Name = "Новый"
 04491                        },
 04492                        new
 04493                        {
 04494                            Id = 2L,
 04495                            Code = "Active",
 04496                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04497                            Description = "",
 04498                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04499                            IsDeleted = false,
 04500                            Name = "Активный"
 04501                        },
 04502                        new
 04503                        {
 04504                            Id = 3L,
 04505                            Code = "Inactive",
 04506                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04507                            Description = "",
 04508                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04509                            IsDeleted = false,
 04510                            Name = "Неактивный"
 04511                        },
 04512                        new
 04513                        {
 04514                            Id = 4L,
 04515                            Code = "Paused",
 04516                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04517                            Description = "",
 04518                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04519                            IsDeleted = false,
 04520                            Name = "На паузе"
 04521                        });
 04522                });
 4523
 04524            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DiscountColor", b =>
 04525                {
 04526                    b.Property<long>("Id")
 04527                        .ValueGeneratedOnAdd()
 04528                        .HasColumnType("bigint")
 04529                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04530
 04531                    b.Property<long?>("CreatedByUserId")
 04532                        .HasColumnType("bigint");
 04533
 04534                    b.Property<DateTime>("CreationDateTime")
 04535                        .HasColumnType("timestamp without time zone");
 04536
 04537                    b.Property<int>("DiscountLevel")
 04538                        .HasColumnType("integer");
 04539
 04540                    b.Property<Guid>("GUID")
 04541                        .ValueGeneratedOnAdd()
 04542                        .HasColumnType("uuid");
 04543
 04544                    b.Property<bool>("IsDeleted")
 04545                        .HasColumnType("boolean");
 04546
 04547                    b.Property<string>("LabelColor")
 04548                        .IsRequired()
 04549                        .HasColumnType("text");
 04550
 04551                    b.Property<DateTime?>("ModificationDateTime")
 04552                        .HasColumnType("timestamp without time zone");
 04553
 04554                    b.Property<long?>("ModifiedByUserId")
 04555                        .HasColumnType("bigint");
 04556
 04557                    b.Property<long?>("RecStateId")
 04558                        .HasColumnType("bigint");
 04559
 04560                    b.HasKey("Id");
 04561
 04562                    b.HasIndex("CreatedByUserId");
 04563
 04564                    b.HasIndex("ModifiedByUserId");
 04565
 04566                    b.HasIndex("RecStateId");
 04567
 04568                    b.HasIndex("DiscountLevel", "LabelColor")
 04569                        .IsUnique();
 04570
 04571                    b.ToTable("DiscountColors");
 04572                });
 4573
 04574            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Email", b =>
 04575                {
 04576                    b.Property<long>("Id")
 04577                        .ValueGeneratedOnAdd()
 04578                        .HasColumnType("bigint")
 04579                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04580
 04581                    b.Property<string>("Attachment")
 04582                        .HasColumnType("text");
 04583
 04584                    b.Property<string>("Body")
 04585                        .IsRequired()
 04586                        .HasColumnType("text");
 04587
 04588                    b.Property<long?>("CreatedByUserId")
 04589                        .HasColumnType("bigint");
 04590
 04591                    b.Property<DateTime>("CreationDateTime")
 04592                        .HasColumnType("timestamp without time zone");
 04593
 04594                    b.Property<string>("Error")
 04595                        .HasColumnType("text");
 04596
 04597                    b.Property<Guid>("GUID")
 04598                        .ValueGeneratedOnAdd()
 04599                        .HasColumnType("uuid");
 04600
 04601                    b.Property<bool>("IsDeleted")
 04602                        .HasColumnType("boolean");
 04603
 04604                    b.Property<DateTime?>("ModificationDateTime")
 04605                        .HasColumnType("timestamp without time zone");
 04606
 04607                    b.Property<long?>("ModifiedByUserId")
 04608                        .HasColumnType("bigint");
 04609
 04610                    b.Property<long?>("RecStateId")
 04611                        .HasColumnType("bigint");
 04612
 04613                    b.Property<string>("Receiver")
 04614                        .IsRequired()
 04615                        .HasColumnType("text");
 04616
 04617                    b.Property<bool>("Sent")
 04618                        .HasColumnType("boolean");
 04619
 04620                    b.Property<string>("Subject")
 04621                        .IsRequired()
 04622                        .HasColumnType("text");
 04623
 04624                    b.HasKey("Id");
 04625
 04626                    b.HasIndex("CreatedByUserId");
 04627
 04628                    b.HasIndex("ModifiedByUserId");
 04629
 04630                    b.HasIndex("RecStateId");
 04631
 04632                    b.ToTable("Emails");
 04633                });
 4634
 04635            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Event", b =>
 04636                {
 04637                    b.Property<long>("Id")
 04638                        .ValueGeneratedOnAdd()
 04639                        .HasColumnType("bigint")
 04640                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04641
 04642                    b.Property<long?>("CreatedByUserId")
 04643                        .HasColumnType("bigint");
 04644
 04645                    b.Property<DateTime>("CreationDateTime")
 04646                        .HasColumnType("timestamp without time zone");
 04647
 04648                    b.Property<DateTime>("DtCreated")
 04649                        .HasColumnType("timestamp without time zone");
 04650
 04651                    b.Property<string>("Entity")
 04652                        .IsRequired()
 04653                        .HasColumnType("text");
 04654
 04655                    b.Property<long>("EventsKindId")
 04656                        .HasColumnType("bigint");
 04657
 04658                    b.Property<Guid>("GUID")
 04659                        .ValueGeneratedOnAdd()
 04660                        .HasColumnType("uuid");
 04661
 04662                    b.Property<bool>("IsDeleted")
 04663                        .HasColumnType("boolean");
 04664
 04665                    b.Property<DateTime?>("ModificationDateTime")
 04666                        .HasColumnType("timestamp without time zone");
 04667
 04668                    b.Property<long?>("ModifiedByUserId")
 04669                        .HasColumnType("bigint");
 04670
 04671                    b.Property<string>("ReasonJson")
 04672                        .HasColumnType("jsonb");
 04673
 04674                    b.Property<long?>("RecStateId")
 04675                        .HasColumnType("bigint");
 04676
 04677                    b.Property<Guid>("RecordGuid")
 04678                        .HasColumnType("uuid");
 04679
 04680                    b.Property<long>("UserId")
 04681                        .HasColumnType("bigint");
 04682
 04683                    b.HasKey("Id");
 04684
 04685                    b.HasIndex("CreatedByUserId");
 04686
 04687                    b.HasIndex("Entity");
 04688
 04689                    b.HasIndex("EventsKindId");
 04690
 04691                    b.HasIndex("ModifiedByUserId");
 04692
 04693                    b.HasIndex("ReasonJson");
 04694
 04695                    b.HasIndex("RecStateId");
 04696
 04697                    b.HasIndex("UserId");
 04698
 04699                    b.ToTable("Events");
 04700                });
 4701
 04702            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.EventsKind", b =>
 04703                {
 04704                    b.Property<long>("Id")
 04705                        .ValueGeneratedOnAdd()
 04706                        .HasColumnType("bigint")
 04707                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04708
 04709                    b.Property<string>("Code")
 04710                        .IsRequired()
 04711                        .HasColumnType("text");
 04712
 04713                    b.Property<long?>("CreatedByUserId")
 04714                        .HasColumnType("bigint");
 04715
 04716                    b.Property<DateTime>("CreationDateTime")
 04717                        .HasColumnType("timestamp without time zone");
 04718
 04719                    b.Property<string>("Description")
 04720                        .HasColumnType("text");
 04721
 04722                    b.Property<Guid>("GUID")
 04723                        .ValueGeneratedOnAdd()
 04724                        .HasColumnType("uuid");
 04725
 04726                    b.Property<bool>("IsDeleted")
 04727                        .HasColumnType("boolean");
 04728
 04729                    b.Property<DateTime?>("ModificationDateTime")
 04730                        .HasColumnType("timestamp without time zone");
 04731
 04732                    b.Property<long?>("ModifiedByUserId")
 04733                        .HasColumnType("bigint");
 04734
 04735                    b.Property<string>("Name")
 04736                        .IsRequired()
 04737                        .HasColumnType("text");
 04738
 04739                    b.Property<long?>("RecStateId")
 04740                        .HasColumnType("bigint");
 04741
 04742                    b.HasKey("Id");
 04743
 04744                    b.HasIndex("CreatedByUserId");
 04745
 04746                    b.HasIndex("ModifiedByUserId");
 04747
 04748                    b.HasIndex("RecStateId");
 04749
 04750                    b.ToTable("EventsKind");
 04751
 04752                    b.HasData(
 04753                        new
 04754                        {
 04755                            Id = 1L,
 04756                            Code = "Unknown",
 04757                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04758                            Description = "",
 04759                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04760                            IsDeleted = false,
 04761                            Name = "Неизвестно"
 04762                        },
 04763                        new
 04764                        {
 04765                            Id = 2L,
 04766                            Code = "Create",
 04767                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04768                            Description = "",
 04769                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04770                            IsDeleted = false,
 04771                            Name = "Создание"
 04772                        },
 04773                        new
 04774                        {
 04775                            Id = 3L,
 04776                            Code = "Update",
 04777                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04778                            Description = "",
 04779                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04780                            IsDeleted = false,
 04781                            Name = "Обновление"
 04782                        },
 04783                        new
 04784                        {
 04785                            Id = 4L,
 04786                            Code = "Delete",
 04787                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04788                            Description = "",
 04789                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04790                            IsDeleted = false,
 04791                            Name = "Удаление"
 04792                        });
 04793                });
 4794
 04795            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ExchangeToken", b =>
 04796                {
 04797                    b.Property<long>("Id")
 04798                        .ValueGeneratedOnAdd()
 04799                        .HasColumnType("bigint")
 04800                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04801
 04802                    b.Property<long>("ContragentId")
 04803                        .HasColumnType("bigint");
 04804
 04805                    b.Property<long?>("CreatedByUserId")
 04806                        .HasColumnType("bigint");
 04807
 04808                    b.Property<DateTime>("CreationDateTime")
 04809                        .HasColumnType("timestamp without time zone");
 04810
 04811                    b.Property<string>("Description")
 04812                        .HasColumnType("text");
 04813
 04814                    b.Property<Guid>("GUID")
 04815                        .ValueGeneratedOnAdd()
 04816                        .HasColumnType("uuid");
 04817
 04818                    b.Property<bool>("IsDeleted")
 04819                        .HasColumnType("boolean");
 04820
 04821                    b.Property<DateTime?>("ModificationDateTime")
 04822                        .HasColumnType("timestamp without time zone");
 04823
 04824                    b.Property<long?>("ModifiedByUserId")
 04825                        .HasColumnType("bigint");
 04826
 04827                    b.Property<long?>("RecStateId")
 04828                        .HasColumnType("bigint");
 04829
 04830                    b.HasKey("Id");
 04831
 04832                    b.HasIndex("ContragentId");
 04833
 04834                    b.HasIndex("CreatedByUserId");
 04835
 04836                    b.HasIndex("ModifiedByUserId");
 04837
 04838                    b.HasIndex("RecStateId");
 04839
 04840                    b.ToTable("ExchangeTokens");
 04841
 04842                    b.HasData(
 04843                        new
 04844                        {
 04845                            Id = 1L,
 04846                            ContragentId = -2L,
 04847                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04848                            Description = "Для синхронизации с CRM",
 04849                            GUID = new Guid("8eea3bee-1f37-4654-a22f-f0b18b0c4588"),
 04850                            IsDeleted = false,
 04851                            RecStateId = 2L
 04852                        });
 04853                });
 4854
 04855            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", b =>
 04856                {
 04857                    b.Property<long>("Id")
 04858                        .ValueGeneratedOnAdd()
 04859                        .HasColumnType("bigint")
 04860                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04861
 04862                    b.Property<long?>("BrandId")
 04863                        .HasColumnType("bigint");
 04864
 04865                    b.Property<long>("CategoryId")
 04866                        .HasColumnType("bigint");
 04867
 04868                    b.Property<string>("ConformityCertNumber")
 04869                        .IsRequired()
 04870                        .HasColumnType("text");
 04871
 04872                    b.Property<long?>("CountryId")
 04873                        .HasColumnType("bigint");
 04874
 04875                    b.Property<long?>("CreatedByUserId")
 04876                        .HasColumnType("bigint");
 04877
 04878                    b.Property<DateTime>("CreationDateTime")
 04879                        .HasColumnType("timestamp without time zone");
 04880
 04881                    b.Property<string>("CustomDeclarationNumber")
 04882                        .IsRequired()
 04883                        .HasColumnType("text");
 04884
 04885                    b.Property<int>("ExpirationDays")
 04886                        .HasColumnType("integer");
 04887
 04888                    b.Property<Guid>("GUID")
 04889                        .ValueGeneratedOnAdd()
 04890                        .HasColumnType("uuid");
 04891
 04892                    b.Property<decimal>("GroupPackHeight")
 04893                        .HasColumnType("numeric");
 04894
 04895                    b.Property<int>("GroupPackNesting")
 04896                        .HasColumnType("integer");
 04897
 04898                    b.Property<decimal>("GroupPackThickness")
 04899                        .HasColumnType("numeric");
 04900
 04901                    b.Property<decimal>("GroupPackWidth")
 04902                        .HasColumnType("numeric");
 04903
 04904                    b.Property<decimal>("Height")
 04905                        .HasColumnType("numeric");
 04906
 04907                    b.Property<bool>("IsDeleted")
 04908                        .HasColumnType("boolean");
 04909
 04910                    b.Property<long>("MainBarcodeId")
 04911                        .HasColumnType("bigint");
 04912
 04913                    b.Property<long?>("ManufacturerId")
 04914                        .HasColumnType("bigint");
 04915
 04916                    b.Property<decimal>("MinDeliveryLot")
 04917                        .HasColumnType("numeric");
 04918
 04919                    b.Property<DateTime?>("ModificationDateTime")
 04920                        .HasColumnType("timestamp without time zone");
 04921
 04922                    b.Property<long?>("ModifiedByUserId")
 04923                        .HasColumnType("bigint");
 04924
 04925                    b.Property<string>("Name")
 04926                        .IsRequired()
 04927                        .HasColumnType("text");
 04928
 04929                    b.Property<int>("PalletNesting")
 04930                        .HasColumnType("integer");
 04931
 04932                    b.Property<long?>("RecStateId")
 04933                        .HasColumnType("bigint");
 04934
 04935                    b.Property<long?>("SubBrandId")
 04936                        .HasColumnType("bigint");
 04937
 04938                    b.Property<long?>("SupplierId")
 04939                        .HasColumnType("bigint");
 04940
 04941                    b.Property<decimal>("Thickness")
 04942                        .HasColumnType("numeric");
 04943
 04944                    b.Property<long>("UnitsKindId")
 04945                        .HasColumnType("bigint");
 04946
 04947                    b.Property<long>("VatsKindId")
 04948                        .HasColumnType("bigint");
 04949
 04950                    b.Property<string>("VendorCode")
 04951                        .IsRequired()
 04952                        .HasColumnType("text");
 04953
 04954                    b.Property<decimal>("Weight")
 04955                        .HasColumnType("numeric");
 04956
 04957                    b.Property<decimal>("Width")
 04958                        .HasColumnType("numeric");
 04959
 04960                    b.HasKey("Id");
 04961
 04962                    b.HasIndex("BrandId");
 04963
 04964                    b.HasIndex("CategoryId");
 04965
 04966                    b.HasIndex("CountryId");
 04967
 04968                    b.HasIndex("CreatedByUserId");
 04969
 04970                    b.HasIndex("MainBarcodeId");
 04971
 04972                    b.HasIndex("ManufacturerId");
 04973
 04974                    b.HasIndex("ModifiedByUserId");
 04975
 04976                    b.HasIndex("Name");
 04977
 04978                    b.HasIndex("RecStateId");
 04979
 04980                    b.HasIndex("SubBrandId");
 04981
 04982                    b.HasIndex("SupplierId");
 04983
 04984                    b.HasIndex("UnitsKindId");
 04985
 04986                    b.HasIndex("VatsKindId");
 04987
 04988                    b.ToTable("Goods");
 04989                });
 4990
 04991            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Incident", b =>
 04992                {
 04993                    b.Property<long>("Id")
 04994                        .ValueGeneratedOnAdd()
 04995                        .HasColumnType("bigint")
 04996                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04997
 04998                    b.Property<string>("Body")
 04999                        .HasColumnType("text");
 05000
 05001                    b.Property<long?>("CreatedByUserId")
 05002                        .HasColumnType("bigint");
 05003
 05004                    b.Property<DateTime>("CreationDateTime")
 05005                        .HasColumnType("timestamp without time zone");
 05006
 05007                    b.Property<DateTime>("DtCreated")
 05008                        .HasColumnType("timestamp without time zone");
 05009
 05010                    b.Property<Guid>("GUID")
 05011                        .ValueGeneratedOnAdd()
 05012                        .HasColumnType("uuid");
 05013
 05014                    b.Property<bool>("IsDeleted")
 05015                        .HasColumnType("boolean");
 05016
 05017                    b.Property<long?>("KindId")
 05018                        .HasColumnType("bigint");
 05019
 05020                    b.Property<DateTime?>("ModificationDateTime")
 05021                        .HasColumnType("timestamp without time zone");
 05022
 05023                    b.Property<long?>("ModifiedByUserId")
 05024                        .HasColumnType("bigint");
 05025
 05026                    b.Property<long?>("RecStateId")
 05027                        .HasColumnType("bigint");
 05028
 05029                    b.Property<long?>("StatusId")
 05030                        .HasColumnType("bigint");
 05031
 05032                    b.Property<string>("Subject")
 05033                        .HasColumnType("text");
 05034
 05035                    b.Property<string>("Ticket")
 05036                        .HasColumnType("text");
 05037
 05038                    b.Property<long>("UserId")
 05039                        .HasColumnType("bigint");
 05040
 05041                    b.HasKey("Id");
 05042
 05043                    b.HasIndex("CreatedByUserId");
 05044
 05045                    b.HasIndex("KindId");
 05046
 05047                    b.HasIndex("ModifiedByUserId");
 05048
 05049                    b.HasIndex("RecStateId");
 05050
 05051                    b.HasIndex("StatusId");
 05052
 05053                    b.HasIndex("UserId");
 05054
 05055                    b.ToTable("Incidents");
 05056                });
 5057
 05058            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsKind", b =>
 05059                {
 05060                    b.Property<long>("Id")
 05061                        .ValueGeneratedOnAdd()
 05062                        .HasColumnType("bigint")
 05063                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05064
 05065                    b.Property<string>("Code")
 05066                        .IsRequired()
 05067                        .HasColumnType("text");
 05068
 05069                    b.Property<long?>("CreatedByUserId")
 05070                        .HasColumnType("bigint");
 05071
 05072                    b.Property<DateTime>("CreationDateTime")
 05073                        .HasColumnType("timestamp without time zone");
 05074
 05075                    b.Property<string>("Description")
 05076                        .HasColumnType("text");
 05077
 05078                    b.Property<Guid>("GUID")
 05079                        .ValueGeneratedOnAdd()
 05080                        .HasColumnType("uuid");
 05081
 05082                    b.Property<bool>("IsDeleted")
 05083                        .HasColumnType("boolean");
 05084
 05085                    b.Property<DateTime?>("ModificationDateTime")
 05086                        .HasColumnType("timestamp without time zone");
 05087
 05088                    b.Property<long?>("ModifiedByUserId")
 05089                        .HasColumnType("bigint");
 05090
 05091                    b.Property<string>("Name")
 05092                        .IsRequired()
 05093                        .HasColumnType("text");
 05094
 05095                    b.Property<long?>("RecStateId")
 05096                        .HasColumnType("bigint");
 05097
 05098                    b.HasKey("Id");
 05099
 05100                    b.HasIndex("CreatedByUserId");
 05101
 05102                    b.HasIndex("ModifiedByUserId");
 05103
 05104                    b.HasIndex("RecStateId");
 05105
 05106                    b.ToTable("IncidentsKind");
 05107
 05108                    b.HasData(
 05109                        new
 05110                        {
 05111                            Id = 1L,
 05112                            Code = "Unknown",
 05113                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05114                            Description = "",
 05115                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05116                            IsDeleted = false,
 05117                            Name = "Неизвестно"
 05118                        },
 05119                        new
 05120                        {
 05121                            Id = 2L,
 05122                            Code = "Error",
 05123                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05124                            Description = "",
 05125                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05126                            IsDeleted = false,
 05127                            Name = "Ошибка"
 05128                        },
 05129                        new
 05130                        {
 05131                            Id = 3L,
 05132                            Code = "Question",
 05133                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05134                            Description = "",
 05135                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05136                            IsDeleted = false,
 05137                            Name = "Вопрос"
 05138                        },
 05139                        new
 05140                        {
 05141                            Id = 4L,
 05142                            Code = "Suggestion",
 05143                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05144                            Description = "",
 05145                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05146                            IsDeleted = false,
 05147                            Name = "Предложение"
 05148                        });
 05149                });
 5150
 05151            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsStatus", b =>
 05152                {
 05153                    b.Property<long>("Id")
 05154                        .ValueGeneratedOnAdd()
 05155                        .HasColumnType("bigint")
 05156                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05157
 05158                    b.Property<string>("Code")
 05159                        .IsRequired()
 05160                        .HasColumnType("text");
 05161
 05162                    b.Property<long?>("CreatedByUserId")
 05163                        .HasColumnType("bigint");
 05164
 05165                    b.Property<DateTime>("CreationDateTime")
 05166                        .HasColumnType("timestamp without time zone");
 05167
 05168                    b.Property<string>("Description")
 05169                        .HasColumnType("text");
 05170
 05171                    b.Property<Guid>("GUID")
 05172                        .ValueGeneratedOnAdd()
 05173                        .HasColumnType("uuid");
 05174
 05175                    b.Property<bool>("IsDeleted")
 05176                        .HasColumnType("boolean");
 05177
 05178                    b.Property<DateTime?>("ModificationDateTime")
 05179                        .HasColumnType("timestamp without time zone");
 05180
 05181                    b.Property<long?>("ModifiedByUserId")
 05182                        .HasColumnType("bigint");
 05183
 05184                    b.Property<string>("Name")
 05185                        .IsRequired()
 05186                        .HasColumnType("text");
 05187
 05188                    b.Property<long?>("RecStateId")
 05189                        .HasColumnType("bigint");
 05190
 05191                    b.HasKey("Id");
 05192
 05193                    b.HasIndex("CreatedByUserId");
 05194
 05195                    b.HasIndex("ModifiedByUserId");
 05196
 05197                    b.HasIndex("RecStateId");
 05198
 05199                    b.ToTable("IncidentsStatus");
 05200
 05201                    b.HasData(
 05202                        new
 05203                        {
 05204                            Id = 1L,
 05205                            Code = "Open",
 05206                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05207                            Description = "",
 05208                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05209                            IsDeleted = false,
 05210                            Name = "Открыт"
 05211                        },
 05212                        new
 05213                        {
 05214                            Id = 2L,
 05215                            Code = "InWork",
 05216                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05217                            Description = "",
 05218                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05219                            IsDeleted = false,
 05220                            Name = "В работе"
 05221                        },
 05222                        new
 05223                        {
 05224                            Id = 3L,
 05225                            Code = "Resolved",
 05226                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05227                            Description = "",
 05228                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05229                            IsDeleted = false,
 05230                            Name = "Решен"
 05231                        },
 05232                        new
 05233                        {
 05234                            Id = 4L,
 05235                            Code = "Canceled",
 05236                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05237                            Description = "",
 05238                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05239                            IsDeleted = false,
 05240                            Name = "Отменен"
 05241                        },
 05242                        new
 05243                        {
 05244                            Id = 5L,
 05245                            Code = "Closed",
 05246                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05247                            Description = "",
 05248                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05249                            IsDeleted = false,
 05250                            Name = "Закрыт"
 05251                        });
 05252                });
 5253
 05254            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.JobLogger", b =>
 05255                {
 05256                    b.Property<long>("Id")
 05257                        .ValueGeneratedOnAdd()
 05258                        .HasColumnType("bigint")
 05259                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05260
 05261                    b.Property<long?>("CreatedByUserId")
 05262                        .HasColumnType("bigint");
 05263
 05264                    b.Property<DateTime>("CreationDateTime")
 05265                        .HasColumnType("timestamp without time zone");
 05266
 05267                    b.Property<Guid>("GUID")
 05268                        .ValueGeneratedOnAdd()
 05269                        .HasColumnType("uuid");
 05270
 05271                    b.Property<bool>("IsDeleted")
 05272                        .HasColumnType("boolean");
 05273
 05274                    b.Property<string>("JobName")
 05275                        .HasColumnType("text");
 05276
 05277                    b.Property<string>("Log")
 05278                        .HasColumnType("text");
 05279
 05280                    b.Property<string>("LogLevel")
 05281                        .HasColumnType("text");
 05282
 05283                    b.Property<DateTime?>("ModificationDateTime")
 05284                        .HasColumnType("timestamp without time zone");
 05285
 05286                    b.Property<long?>("ModifiedByUserId")
 05287                        .HasColumnType("bigint");
 05288
 05289                    b.Property<long?>("RecStateId")
 05290                        .HasColumnType("bigint");
 05291
 05292                    b.HasKey("Id");
 05293
 05294                    b.HasIndex("CreatedByUserId");
 05295
 05296                    b.HasIndex("ModifiedByUserId");
 05297
 05298                    b.HasIndex("RecStateId");
 05299
 05300                    b.ToTable("JobLoggers");
 05301                });
 5302
 05303            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MethodRole", b =>
 05304                {
 05305                    b.Property<long>("RoleId")
 05306                        .HasColumnType("bigint");
 05307
 05308                    b.Property<long>("MethodId")
 05309                        .HasColumnType("bigint");
 05310
 05311                    b.Property<long?>("CreatedByUserId")
 05312                        .HasColumnType("bigint");
 05313
 05314                    b.Property<DateTime>("CreationDateTime")
 05315                        .HasColumnType("timestamp without time zone");
 05316
 05317                    b.Property<Guid>("GUID")
 05318                        .ValueGeneratedOnAdd()
 05319                        .HasColumnType("uuid");
 05320
 05321                    b.HasKey("RoleId", "MethodId");
 05322
 05323                    b.HasIndex("MethodId");
 05324
 05325                    b.ToTable("MethodRole");
 05326                });
 5327
 05328            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Methods", b =>
 05329                {
 05330                    b.Property<long>("Id")
 05331                        .ValueGeneratedOnAdd()
 05332                        .HasColumnType("bigint")
 05333                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05334
 05335                    b.Property<long?>("CreatedByUserId")
 05336                        .HasColumnType("bigint");
 05337
 05338                    b.Property<DateTime>("CreationDateTime")
 05339                        .HasColumnType("timestamp without time zone");
 05340
 05341                    b.Property<string>("Description")
 05342                        .HasColumnType("text");
 05343
 05344                    b.Property<Guid>("GUID")
 05345                        .ValueGeneratedOnAdd()
 05346                        .HasColumnType("uuid");
 05347
 05348                    b.Property<bool>("IsDeleted")
 05349                        .HasColumnType("boolean");
 05350
 05351                    b.Property<string>("MethodName")
 05352                        .IsRequired()
 05353                        .HasColumnType("text");
 05354
 05355                    b.Property<DateTime?>("ModificationDateTime")
 05356                        .HasColumnType("timestamp without time zone");
 05357
 05358                    b.Property<long?>("ModifiedByUserId")
 05359                        .HasColumnType("bigint");
 05360
 05361                    b.Property<long?>("RecStateId")
 05362                        .HasColumnType("bigint");
 05363
 05364                    b.HasKey("Id");
 05365
 05366                    b.HasIndex("CreatedByUserId");
 05367
 05368                    b.HasIndex("ModifiedByUserId");
 05369
 05370                    b.HasIndex("RecStateId");
 05371
 05372                    b.ToTable("Methods");
 05373                });
 5374
 05375            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", b =>
 05376                {
 05377                    b.Property<long>("Id")
 05378                        .ValueGeneratedOnAdd()
 05379                        .HasColumnType("bigint")
 05380                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05381
 05382                    b.Property<string>("Attachment")
 05383                        .HasColumnType("text");
 05384
 05385                    b.Property<long?>("CreatedByUserId")
 05386                        .HasColumnType("bigint");
 05387
 05388                    b.Property<DateTime>("CreationDateTime")
 05389                        .HasColumnType("timestamp without time zone");
 05390
 05391                    b.Property<long>("CustomerId")
 05392                        .HasColumnType("bigint");
 05393
 05394                    b.Property<string>("DocumentNumber")
 05395                        .IsRequired()
 05396                        .HasColumnType("text");
 05397
 05398                    b.Property<DateTime>("DtCreated")
 05399                        .HasColumnType("timestamp without time zone");
 05400
 05401                    b.Property<Guid>("GUID")
 05402                        .ValueGeneratedOnAdd()
 05403                        .HasColumnType("uuid");
 05404
 05405                    b.Property<bool>("IsDeleted")
 05406                        .HasColumnType("boolean");
 05407
 05408                    b.Property<DateTime?>("ModificationDateTime")
 05409                        .HasColumnType("timestamp without time zone");
 05410
 05411                    b.Property<long?>("ModifiedByUserId")
 05412                        .HasColumnType("bigint");
 05413
 05414                    b.Property<long>("MovementStatusId")
 05415                        .HasColumnType("bigint");
 05416
 05417                    b.Property<long>("MovementTypeId")
 05418                        .HasColumnType("bigint");
 05419
 05420                    b.Property<long?>("ParentId")
 05421                        .HasColumnType("bigint");
 05422
 05423                    b.Property<decimal>("PrepaimentPercent")
 05424                        .HasColumnType("numeric");
 05425
 05426                    b.Property<decimal>("PrepaimentSum")
 05427                        .HasColumnType("numeric");
 05428
 05429                    b.Property<long?>("RecStateId")
 05430                        .HasColumnType("bigint");
 05431
 05432                    b.Property<long>("ReceiverId")
 05433                        .HasColumnType("bigint");
 05434
 05435                    b.Property<long?>("SenderId")
 05436                        .HasColumnType("bigint");
 05437
 05438                    b.Property<long>("SupplierId")
 05439                        .HasColumnType("bigint");
 05440
 05441                    b.Property<DateTime?>("SupplierTransferDate")
 05442                        .HasColumnType("timestamp without time zone");
 05443
 05444                    b.HasKey("Id");
 05445
 05446                    b.HasIndex("CreatedByUserId");
 05447
 05448                    b.HasIndex("CustomerId");
 05449
 05450                    b.HasIndex("ModifiedByUserId");
 05451
 05452                    b.HasIndex("MovementStatusId");
 05453
 05454                    b.HasIndex("MovementTypeId");
 05455
 05456                    b.HasIndex("ParentId");
 05457
 05458                    b.HasIndex("RecStateId");
 05459
 05460                    b.HasIndex("ReceiverId");
 05461
 05462                    b.HasIndex("SenderId");
 05463
 05464                    b.HasIndex("SupplierId");
 05465
 05466                    b.ToTable("Movements");
 05467                });
 5468
 05469            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementItem", b =>
 05470                {
 05471                    b.Property<long>("Id")
 05472                        .ValueGeneratedOnAdd()
 05473                        .HasColumnType("bigint")
 05474                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05475
 05476                    b.Property<string>("Comment")
 05477                        .HasColumnType("text");
 05478
 05479                    b.Property<long?>("CreatedByUserId")
 05480                        .HasColumnType("bigint");
 05481
 05482                    b.Property<DateTime>("CreationDateTime")
 05483                        .HasColumnType("timestamp without time zone");
 05484
 05485                    b.Property<Guid>("GUID")
 05486                        .ValueGeneratedOnAdd()
 05487                        .HasColumnType("uuid");
 05488
 05489                    b.Property<long>("GoodId")
 05490                        .HasColumnType("bigint");
 05491
 05492                    b.Property<bool>("IsDeleted")
 05493                        .HasColumnType("boolean");
 05494
 05495                    b.Property<DateTime?>("ModificationDateTime")
 05496                        .HasColumnType("timestamp without time zone");
 05497
 05498                    b.Property<long?>("ModifiedByUserId")
 05499                        .HasColumnType("bigint");
 05500
 05501                    b.Property<long?>("MovementId")
 05502                        .HasColumnType("bigint");
 05503
 05504                    b.Property<decimal>("Price")
 05505                        .HasColumnType("numeric");
 05506
 05507                    b.Property<decimal>("Quantity")
 05508                        .HasColumnType("numeric");
 05509
 05510                    b.Property<long?>("RecStateId")
 05511                        .HasColumnType("bigint");
 05512
 05513                    b.HasKey("Id");
 05514
 05515                    b.HasIndex("CreatedByUserId");
 05516
 05517                    b.HasIndex("GoodId");
 05518
 05519                    b.HasIndex("ModifiedByUserId");
 05520
 05521                    b.HasIndex("MovementId");
 05522
 05523                    b.HasIndex("RecStateId");
 05524
 05525                    b.ToTable("MovementItems");
 05526                });
 5527
 05528            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementNote", b =>
 05529                {
 05530                    b.Property<long>("Id")
 05531                        .ValueGeneratedOnAdd()
 05532                        .HasColumnType("bigint")
 05533                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05534
 05535                    b.Property<string>("Body")
 05536                        .IsRequired()
 05537                        .HasColumnType("text");
 05538
 05539                    b.Property<long?>("CreatedByUserId")
 05540                        .HasColumnType("bigint");
 05541
 05542                    b.Property<DateTime>("CreationDateTime")
 05543                        .HasColumnType("timestamp without time zone");
 05544
 05545                    b.Property<Guid>("GUID")
 05546                        .ValueGeneratedOnAdd()
 05547                        .HasColumnType("uuid");
 05548
 05549                    b.Property<bool>("IsDeleted")
 05550                        .HasColumnType("boolean");
 05551
 05552                    b.Property<DateTime?>("ModificationDateTime")
 05553                        .HasColumnType("timestamp without time zone");
 05554
 05555                    b.Property<long?>("ModifiedByUserId")
 05556                        .HasColumnType("bigint");
 05557
 05558                    b.Property<long?>("MovementId")
 05559                        .HasColumnType("bigint");
 05560
 05561                    b.Property<long?>("RecStateId")
 05562                        .HasColumnType("bigint");
 05563
 05564                    b.HasKey("Id");
 05565
 05566                    b.HasIndex("CreatedByUserId");
 05567
 05568                    b.HasIndex("ModifiedByUserId");
 05569
 05570                    b.HasIndex("MovementId");
 05571
 05572                    b.HasIndex("RecStateId");
 05573
 05574                    b.ToTable("MovementNotes");
 05575                });
 5576
 05577            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementRouteAction", b =>
 05578                {
 05579                    b.Property<long>("Id")
 05580                        .ValueGeneratedOnAdd()
 05581                        .HasColumnType("bigint")
 05582                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05583
 05584                    b.Property<string>("Action")
 05585                        .HasColumnType("text");
 05586
 05587                    b.Property<string>("Caption")
 05588                        .HasColumnType("text");
 05589
 05590                    b.Property<string>("Code")
 05591                        .HasColumnType("text");
 05592
 05593                    b.Property<long?>("CreatedByUserId")
 05594                        .HasColumnType("bigint");
 05595
 05596                    b.Property<DateTime>("CreationDateTime")
 05597                        .HasColumnType("timestamp without time zone");
 05598
 05599                    b.Property<Guid>("GUID")
 05600                        .ValueGeneratedOnAdd()
 05601                        .HasColumnType("uuid");
 05602
 05603                    b.Property<bool>("IsDeleted")
 05604                        .HasColumnType("boolean");
 05605
 05606                    b.Property<DateTime?>("ModificationDateTime")
 05607                        .HasColumnType("timestamp without time zone");
 05608
 05609                    b.Property<long?>("ModifiedByUserId")
 05610                        .HasColumnType("bigint");
 05611
 05612                    b.Property<long>("OwnerActionId")
 05613                        .HasColumnType("bigint");
 05614
 05615                    b.Property<long?>("RecStateId")
 05616                        .HasColumnType("bigint");
 05617
 05618                    b.Property<long>("StatusId")
 05619                        .HasColumnType("bigint");
 05620
 05621                    b.Property<string>("Type")
 05622                        .HasColumnType("text");
 05623
 05624                    b.HasKey("Id");
 05625
 05626                    b.HasIndex("CreatedByUserId");
 05627
 05628                    b.HasIndex("ModifiedByUserId");
 05629
 05630                    b.HasIndex("OwnerActionId");
 05631
 05632                    b.HasIndex("RecStateId");
 05633
 05634                    b.HasIndex("StatusId");
 05635
 05636                    b.ToTable("MovementRouteActions");
 05637
 05638                    b.HasData(
 05639                        new
 05640                        {
 05641                            Id = 1L,
 05642                            Action = "Orders/{id}/DownloadOrderToFile",
 05643                            Caption = "Скачать CSV",
 05644                            Code = "Csv",
 05645                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05646                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05647                            IsDeleted = false,
 05648                            OwnerActionId = 1L,
 05649                            StatusId = 1L,
 05650                            Type = "GET"
 05651                        },
 05652                        new
 05653                        {
 05654                            Id = 2L,
 05655                            Action = "Orders/{id}",
 05656                            Caption = "Изменить",
 05657                            Code = "Edit",
 05658                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05659                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05660                            IsDeleted = false,
 05661                            OwnerActionId = 1L,
 05662                            StatusId = 1L,
 05663                            Type = "GET"
 05664                        },
 05665                        new
 05666                        {
 05667                            Id = 3L,
 05668                            Action = "Orders/{id}",
 05669                            Caption = "Удалить",
 05670                            Code = "Delete",
 05671                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05672                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05673                            IsDeleted = false,
 05674                            OwnerActionId = 1L,
 05675                            StatusId = 1L,
 05676                            Type = "DELETE"
 05677                        },
 05678                        new
 05679                        {
 05680                            Id = 4L,
 05681                            Action = "Orders/{id}/Send",
 05682                            Caption = "Отправить заявку",
 05683                            Code = "Send",
 05684                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05685                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05686                            IsDeleted = false,
 05687                            OwnerActionId = 1L,
 05688                            StatusId = 1L,
 05689                            Type = "POST"
 05690                        },
 05691                        new
 05692                        {
 05693                            Id = 5L,
 05694                            Action = "Orders/{id}/DownloadOrderToFile",
 05695                            Caption = "Скачать CSV",
 05696                            Code = "Csv",
 05697                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05698                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05699                            IsDeleted = false,
 05700                            OwnerActionId = 1L,
 05701                            StatusId = 2L,
 05702                            Type = "GET"
 05703                        },
 05704                        new
 05705                        {
 05706                            Id = 6L,
 05707                            Action = "Orders/{id}/Clone",
 05708                            Caption = "Создать копию",
 05709                            Code = "Clone",
 05710                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05711                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05712                            IsDeleted = false,
 05713                            OwnerActionId = 1L,
 05714                            StatusId = 2L,
 05715                            Type = "POST"
 05716                        },
 05717                        new
 05718                        {
 05719                            Id = 7L,
 05720                            Action = "Orders/{id}/Reject",
 05721                            Caption = "Отказаться",
 05722                            Code = "Reject",
 05723                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05724                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05725                            IsDeleted = false,
 05726                            OwnerActionId = 1L,
 05727                            StatusId = 2L,
 05728                            Type = "POST"
 05729                        },
 05730                        new
 05731                        {
 05732                            Id = 8L,
 05733                            Action = "Orders/{id}",
 05734                            Caption = "Принять",
 05735                            Code = "Confirm",
 05736                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05737                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05738                            IsDeleted = false,
 05739                            OwnerActionId = 3L,
 05740                            StatusId = 2L,
 05741                            Type = "POST"
 05742                        },
 05743                        new
 05744                        {
 05745                            Id = 85L,
 05746                            Action = "Orders/{id}/PlatformReject",
 05747                            Caption = "Отказать",
 05748                            Code = "RejectByPlatform",
 05749                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05750                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05751                            IsDeleted = false,
 05752                            OwnerActionId = 3L,
 05753                            StatusId = 2L,
 05754                            Type = "POST"
 05755                        },
 05756                        new
 05757                        {
 05758                            Id = 9L,
 05759                            Action = "Orders/{id}/DownloadOrderToFile",
 05760                            Caption = "Скачать CSV",
 05761                            Code = "Csv",
 05762                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05763                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05764                            IsDeleted = false,
 05765                            OwnerActionId = 3L,
 05766                            StatusId = 2L,
 05767                            Type = "GET"
 05768                        },
 05769                        new
 05770                        {
 05771                            Id = 10L,
 05772                            Action = "Orders/{id}/DownloadOrderToFile",
 05773                            Caption = "Скачать CSV",
 05774                            Code = "Csv",
 05775                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05776                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05777                            IsDeleted = false,
 05778                            OwnerActionId = 1L,
 05779                            StatusId = 3L,
 05780                            Type = "GET"
 05781                        },
 05782                        new
 05783                        {
 05784                            Id = 11L,
 05785                            Action = "Orders/{id}/Clone",
 05786                            Caption = "Создать копию",
 05787                            Code = "Clone",
 05788                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05789                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05790                            IsDeleted = false,
 05791                            OwnerActionId = 1L,
 05792                            StatusId = 3L,
 05793                            Type = "POST"
 05794                        },
 05795                        new
 05796                        {
 05797                            Id = 86L,
 05798                            Action = "Orders/{id}/Reject",
 05799                            Caption = "Отказаться",
 05800                            Code = "Reject",
 05801                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05802                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05803                            IsDeleted = false,
 05804                            OwnerActionId = 1L,
 05805                            StatusId = 3L,
 05806                            Type = "POST"
 05807                        },
 05808                        new
 05809                        {
 05810                            Id = 12L,
 05811                            Action = "Orders/{id}/DownloadOrderToFile",
 05812                            Caption = "Скачать CSV",
 05813                            Code = "Csv",
 05814                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05815                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05816                            IsDeleted = false,
 05817                            OwnerActionId = 1L,
 05818                            StatusId = 4L,
 05819                            Type = "GET"
 05820                        },
 05821                        new
 05822                        {
 05823                            Id = 13L,
 05824                            Action = "Orders/{id}/Clone",
 05825                            Caption = "Создать копию",
 05826                            Code = "Clone",
 05827                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05828                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05829                            IsDeleted = false,
 05830                            OwnerActionId = 1L,
 05831                            StatusId = 4L,
 05832                            Type = "POST"
 05833                        },
 05834                        new
 05835                        {
 05836                            Id = 87L,
 05837                            Action = "Orders/{id}/DownloadOrderToFile",
 05838                            Caption = "Скачать CSV",
 05839                            Code = "Csv",
 05840                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05841                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05842                            IsDeleted = false,
 05843                            OwnerActionId = 3L,
 05844                            StatusId = 4L,
 05845                            Type = "GET"
 05846                        },
 05847                        new
 05848                        {
 05849                            Id = 14L,
 05850                            Action = "Orders/{id}/DownloadOrderToFile",
 05851                            Caption = "Скачать CSV",
 05852                            Code = "Csv",
 05853                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05854                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05855                            IsDeleted = false,
 05856                            OwnerActionId = 1L,
 05857                            StatusId = 5L,
 05858                            Type = "GET"
 05859                        },
 05860                        new
 05861                        {
 05862                            Id = 15L,
 05863                            Action = "Orders/{id}/Clone",
 05864                            Caption = "Создать копию",
 05865                            Code = "Clone",
 05866                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05867                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05868                            IsDeleted = false,
 05869                            OwnerActionId = 1L,
 05870                            StatusId = 5L,
 05871                            Type = "POST"
 05872                        },
 05873                        new
 05874                        {
 05875                            Id = 16L,
 05876                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05877                            Caption = "Скачать CSV",
 05878                            Code = "Csv",
 05879                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05880                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05881                            IsDeleted = false,
 05882                            OwnerActionId = 2L,
 05883                            StatusId = 6L,
 05884                            Type = "GET"
 05885                        },
 05886                        new
 05887                        {
 05888                            Id = 17L,
 05889                            Action = "Shipments/{id}/PaymentReserve",
 05890                            Caption = "Принять",
 05891                            Code = "PaymentReserve",
 05892                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05893                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05894                            IsDeleted = false,
 05895                            OwnerActionId = 2L,
 05896                            StatusId = 6L,
 05897                            Type = "POST"
 05898                        },
 05899                        new
 05900                        {
 05901                            Id = 83L,
 05902                            Action = "Shipments/{id}/SupplierReject",
 05903                            Caption = "Отказать",
 05904                            Code = "RejectBySupplier",
 05905                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05906                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05907                            IsDeleted = false,
 05908                            OwnerActionId = 2L,
 05909                            StatusId = 6L,
 05910                            Type = "POST"
 05911                        },
 05912                        new
 05913                        {
 05914                            Id = 18L,
 05915                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05916                            Caption = "Скачать CSV",
 05917                            Code = "Csv",
 05918                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05919                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05920                            IsDeleted = false,
 05921                            OwnerActionId = 3L,
 05922                            StatusId = 6L,
 05923                            Type = "GET"
 05924                        },
 05925                        new
 05926                        {
 05927                            Id = 19L,
 05928                            Action = "Shipments/{id}/Payment",
 05929                            Caption = "Оплатить",
 05930                            Code = "Payment",
 05931                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05932                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05933                            IsDeleted = false,
 05934                            OwnerActionId = 1L,
 05935                            StatusId = 8L,
 05936                            Type = "POST"
 05937                        },
 05938                        new
 05939                        {
 05940                            Id = 45L,
 05941                            Action = "Shipments/{id}/CustomerReject",
 05942                            Caption = "Отказаться",
 05943                            Code = "RejectByCustomer",
 05944                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05945                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05946                            IsDeleted = false,
 05947                            OwnerActionId = 1L,
 05948                            StatusId = 8L,
 05949                            Type = "POST"
 05950                        },
 05951                        new
 05952                        {
 05953                            Id = 20L,
 05954                            Action = "Orders/CreateOnBase",
 05955                            Caption = "Создать заявку на основе",
 05956                            Code = "CreateOnBase",
 05957                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05958                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05959                            IsDeleted = false,
 05960                            OwnerActionId = 1L,
 05961                            StatusId = 8L,
 05962                            Type = "POST"
 05963                        },
 05964                        new
 05965                        {
 05966                            Id = 21L,
 05967                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05968                            Caption = "Скачать CSV",
 05969                            Code = "Csv",
 05970                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05971                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05972                            IsDeleted = false,
 05973                            OwnerActionId = 1L,
 05974                            StatusId = 8L,
 05975                            Type = "GET"
 05976                        },
 05977                        new
 05978                        {
 05979                            Id = 22L,
 05980                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05981                            Caption = "Скачать CSV",
 05982                            Code = "Csv",
 05983                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05984                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05985                            IsDeleted = false,
 05986                            OwnerActionId = 2L,
 05987                            StatusId = 8L,
 05988                            Type = "GET"
 05989                        },
 05990                        new
 05991                        {
 05992                            Id = 23L,
 05993                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05994                            Caption = "Скачать CSV",
 05995                            Code = "Csv",
 05996                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05997                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05998                            IsDeleted = false,
 05999                            OwnerActionId = 3L,
 06000                            StatusId = 8L,
 06001                            Type = "GET"
 06002                        },
 06003                        new
 06004                        {
 06005                            Id = 24L,
 06006                            Action = "Orders/CreateOnBase",
 06007                            Caption = "Создать заявку на основе",
 06008                            Code = "CreateOnBase",
 06009                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06010                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06011                            IsDeleted = false,
 06012                            OwnerActionId = 1L,
 06013                            StatusId = 9L,
 06014                            Type = "POST"
 06015                        },
 06016                        new
 06017                        {
 06018                            Id = 25L,
 06019                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06020                            Caption = "Скачать CSV",
 06021                            Code = "Csv",
 06022                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06023                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06024                            IsDeleted = false,
 06025                            OwnerActionId = 1L,
 06026                            StatusId = 9L,
 06027                            Type = "GET"
 06028                        },
 06029                        new
 06030                        {
 06031                            Id = 88L,
 06032                            Action = "Shipments/{id}/CustomerReject",
 06033                            Caption = "Отказаться",
 06034                            Code = "RejectByCustomer",
 06035                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06036                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06037                            IsDeleted = false,
 06038                            OwnerActionId = 1L,
 06039                            StatusId = 9L,
 06040                            Type = "POST"
 06041                        },
 06042                        new
 06043                        {
 06044                            Id = 26L,
 06045                            Action = "Shipments/{id}/ReadyToShip",
 06046                            Caption = "Подготовить к выдаче",
 06047                            Code = "ReadyToShip",
 06048                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06049                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06050                            IsDeleted = false,
 06051                            OwnerActionId = 2L,
 06052                            StatusId = 9L,
 06053                            Type = "POST"
 06054                        },
 06055                        new
 06056                        {
 06057                            Id = 27L,
 06058                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06059                            Caption = "Скачать CSV",
 06060                            Code = "Csv",
 06061                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06062                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06063                            IsDeleted = false,
 06064                            OwnerActionId = 2L,
 06065                            StatusId = 9L,
 06066                            Type = "GET"
 06067                        },
 06068                        new
 06069                        {
 06070                            Id = 43L,
 06071                            Action = "Shipments/{id}/SupplierReject",
 06072                            Caption = "Отказать",
 06073                            Code = "RejectBySupplier",
 06074                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06075                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06076                            IsDeleted = false,
 06077                            OwnerActionId = 2L,
 06078                            StatusId = 9L,
 06079                            Type = "POST"
 06080                        },
 06081                        new
 06082                        {
 06083                            Id = 28L,
 06084                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06085                            Caption = "Скачать CSV",
 06086                            Code = "Csv",
 06087                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06088                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06089                            IsDeleted = false,
 06090                            OwnerActionId = 3L,
 06091                            StatusId = 9L,
 06092                            Type = "GET"
 06093                        },
 06094                        new
 06095                        {
 06096                            Id = 29L,
 06097                            Action = "Orders/CreateOnBase",
 06098                            Caption = "Создать заявку на основе",
 06099                            Code = "CreateOnBase",
 06100                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06101                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06102                            IsDeleted = false,
 06103                            OwnerActionId = 1L,
 06104                            StatusId = 10L,
 06105                            Type = "POST"
 06106                        },
 06107                        new
 06108                        {
 06109                            Id = 30L,
 06110                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06111                            Caption = "Скачать CSV",
 06112                            Code = "Csv",
 06113                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06114                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06115                            IsDeleted = false,
 06116                            OwnerActionId = 1L,
 06117                            StatusId = 10L,
 06118                            Type = "GET"
 06119                        },
 06120                        new
 06121                        {
 06122                            Id = 34L,
 06123                            Action = "Shipments/{id}/Print",
 06124                            Caption = "Распечатать УПД",
 06125                            Code = "Pdf",
 06126                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06127                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06128                            IsDeleted = false,
 06129                            OwnerActionId = 1L,
 06130                            StatusId = 10L,
 06131                            Type = "GET"
 06132                        },
 06133                        new
 06134                        {
 06135                            Id = 89L,
 06136                            Action = "Shipments/{id}/CustomerReject",
 06137                            Caption = "Отказаться",
 06138                            Code = "RejectByCustomer",
 06139                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06140                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06141                            IsDeleted = false,
 06142                            OwnerActionId = 1L,
 06143                            StatusId = 10L,
 06144                            Type = "POST"
 06145                        },
 06146                        new
 06147                        {
 06148                            Id = 31L,
 06149                            Action = "Shipments/{id}/Ship",
 06150                            Caption = "Выдать",
 06151                            Code = "Ship",
 06152                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06153                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06154                            IsDeleted = false,
 06155                            OwnerActionId = 2L,
 06156                            StatusId = 10L,
 06157                            Type = "POST"
 06158                        },
 06159                        new
 06160                        {
 06161                            Id = 35L,
 06162                            Action = "Shipments/{id}/Correction",
 06163                            Caption = "Редактировать",
 06164                            Code = "Edit",
 06165                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06166                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06167                            IsDeleted = false,
 06168                            OwnerActionId = 2L,
 06169                            StatusId = 10L,
 06170                            Type = "POST"
 06171                        },
 06172                        new
 06173                        {
 06174                            Id = 44L,
 06175                            Action = "Shipments/{id}/SupplierReject",
 06176                            Caption = "Отказать",
 06177                            Code = "RejectBySupplier",
 06178                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06179                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06180                            IsDeleted = false,
 06181                            OwnerActionId = 2L,
 06182                            StatusId = 10L,
 06183                            Type = "POST"
 06184                        },
 06185                        new
 06186                        {
 06187                            Id = 32L,
 06188                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06189                            Caption = "Скачать CSV",
 06190                            Code = "Csv",
 06191                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06192                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06193                            IsDeleted = false,
 06194                            OwnerActionId = 2L,
 06195                            StatusId = 10L,
 06196                            Type = "GET"
 06197                        },
 06198                        new
 06199                        {
 06200                            Id = 33L,
 06201                            Action = "Shipments/{id}/Print",
 06202                            Caption = "Распечатать УПД",
 06203                            Code = "Pdf",
 06204                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06205                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06206                            IsDeleted = false,
 06207                            OwnerActionId = 2L,
 06208                            StatusId = 10L,
 06209                            Type = "GET"
 06210                        },
 06211                        new
 06212                        {
 06213                            Id = 98L,
 06214                            Action = "Shipments/{id}/Print",
 06215                            Caption = "Распечатать УПД",
 06216                            Code = "Pdf",
 06217                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06218                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06219                            IsDeleted = false,
 06220                            OwnerActionId = 3L,
 06221                            StatusId = 10L,
 06222                            Type = "GET"
 06223                        },
 06224                        new
 06225                        {
 06226                            Id = 97L,
 06227                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06228                            Caption = "Скачать CSV",
 06229                            Code = "Csv",
 06230                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06231                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06232                            IsDeleted = false,
 06233                            OwnerActionId = 3L,
 06234                            StatusId = 10L,
 06235                            Type = "GET"
 06236                        },
 06237                        new
 06238                        {
 06239                            Id = 36L,
 06240                            Action = "Orders/CreateOnBase",
 06241                            Caption = "Создать заявку на основе",
 06242                            Code = "CreateOnBase",
 06243                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06244                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06245                            IsDeleted = false,
 06246                            OwnerActionId = 1L,
 06247                            StatusId = 11L,
 06248                            Type = "POST"
 06249                        },
 06250                        new
 06251                        {
 06252                            Id = 37L,
 06253                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06254                            Caption = "Скачать CSV",
 06255                            Code = "Csv",
 06256                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06257                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06258                            IsDeleted = false,
 06259                            OwnerActionId = 1L,
 06260                            StatusId = 11L,
 06261                            Type = "GET"
 06262                        },
 06263                        new
 06264                        {
 06265                            Id = 90L,
 06266                            Action = "Shipments/{id}/CustomerReject",
 06267                            Caption = "Отказаться",
 06268                            Code = "RejectByCustomer",
 06269                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06270                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06271                            IsDeleted = false,
 06272                            OwnerActionId = 1L,
 06273                            StatusId = 11L,
 06274                            Type = "POST"
 06275                        },
 06276                        new
 06277                        {
 06278                            Id = 38L,
 06279                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06280                            Caption = "Скачать CSV",
 06281                            Code = "Csv",
 06282                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06283                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06284                            IsDeleted = false,
 06285                            OwnerActionId = 2L,
 06286                            StatusId = 11L,
 06287                            Type = "GET"
 06288                        },
 06289                        new
 06290                        {
 06291                            Id = 39L,
 06292                            Action = "Shipments/{id}/ReadyToShip",
 06293                            Caption = "Подготовить к выдаче",
 06294                            Code = "ReadyToShip",
 06295                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06296                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06297                            IsDeleted = false,
 06298                            OwnerActionId = 2L,
 06299                            StatusId = 11L,
 06300                            Type = "POST"
 06301                        },
 06302                        new
 06303                        {
 06304                            Id = 81L,
 06305                            Action = "Shipments/{id}/SupplierReject",
 06306                            Caption = "Отказать",
 06307                            Code = "RejectBySupplier",
 06308                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06309                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06310                            IsDeleted = false,
 06311                            OwnerActionId = 2L,
 06312                            StatusId = 11L,
 06313                            Type = "POST"
 06314                        },
 06315                        new
 06316                        {
 06317                            Id = 40L,
 06318                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06319                            Caption = "Скачать CSV",
 06320                            Code = "Csv",
 06321                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06322                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06323                            IsDeleted = false,
 06324                            OwnerActionId = 3L,
 06325                            StatusId = 11L,
 06326                            Type = "GET"
 06327                        },
 06328                        new
 06329                        {
 06330                            Id = 41L,
 06331                            Action = "Orders/CreateOnBase",
 06332                            Caption = "Создать заявку на основе",
 06333                            Code = "CreateOnBase",
 06334                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06335                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06336                            IsDeleted = false,
 06337                            OwnerActionId = 1L,
 06338                            StatusId = 12L,
 06339                            Type = "POST"
 06340                        },
 06341                        new
 06342                        {
 06343                            Id = 42L,
 06344                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06345                            Caption = "Скачать CSV",
 06346                            Code = "Csv",
 06347                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06348                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06349                            IsDeleted = false,
 06350                            OwnerActionId = 1L,
 06351                            StatusId = 12L,
 06352                            Type = "GET"
 06353                        },
 06354                        new
 06355                        {
 06356                            Id = 46L,
 06357                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06358                            Caption = "Скачать CSV",
 06359                            Code = "Csv",
 06360                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06361                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06362                            IsDeleted = false,
 06363                            OwnerActionId = 2L,
 06364                            StatusId = 12L,
 06365                            Type = "GET"
 06366                        },
 06367                        new
 06368                        {
 06369                            Id = 47L,
 06370                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06371                            Caption = "Скачать CSV",
 06372                            Code = "Csv",
 06373                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06374                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06375                            IsDeleted = false,
 06376                            OwnerActionId = 3L,
 06377                            StatusId = 12L,
 06378                            Type = "GET"
 06379                        },
 06380                        new
 06381                        {
 06382                            Id = 48L,
 06383                            Action = "Orders/CreateOnBase",
 06384                            Caption = "Создать заявку на основе",
 06385                            Code = "CreateOnBase",
 06386                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06387                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06388                            IsDeleted = false,
 06389                            OwnerActionId = 1L,
 06390                            StatusId = 13L,
 06391                            Type = "POST"
 06392                        },
 06393                        new
 06394                        {
 06395                            Id = 49L,
 06396                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06397                            Caption = "Скачать CSV",
 06398                            Code = "Csv",
 06399                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06400                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06401                            IsDeleted = false,
 06402                            OwnerActionId = 1L,
 06403                            StatusId = 13L,
 06404                            Type = "GET"
 06405                        },
 06406                        new
 06407                        {
 06408                            Id = 91L,
 06409                            Action = "Shipments/{id}/Print",
 06410                            Caption = "Распечатать УПД",
 06411                            Code = "Pdf",
 06412                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06413                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06414                            IsDeleted = false,
 06415                            OwnerActionId = 1L,
 06416                            StatusId = 13L,
 06417                            Type = "GET"
 06418                        },
 06419                        new
 06420                        {
 06421                            Id = 82L,
 06422                            Action = "Shipments/{id}/Accept",
 06423                            Caption = "Принять",
 06424                            Code = "Accept",
 06425                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06426                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06427                            IsDeleted = false,
 06428                            OwnerActionId = 1L,
 06429                            StatusId = 13L,
 06430                            Type = "PUT"
 06431                        },
 06432                        new
 06433                        {
 06434                            Id = 84L,
 06435                            Action = "Shipments/{id}/CustomerReject",
 06436                            Caption = "Отказаться",
 06437                            Code = "RejectByCustomer",
 06438                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06439                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06440                            IsDeleted = false,
 06441                            OwnerActionId = 1L,
 06442                            StatusId = 13L,
 06443                            Type = "POST"
 06444                        },
 06445                        new
 06446                        {
 06447                            Id = 50L,
 06448                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06449                            Caption = "Скачать CSV",
 06450                            Code = "Csv",
 06451                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06452                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06453                            IsDeleted = false,
 06454                            OwnerActionId = 2L,
 06455                            StatusId = 13L,
 06456                            Type = "GET"
 06457                        },
 06458                        new
 06459                        {
 06460                            Id = 51L,
 06461                            Action = "Shipments/{id}/Print",
 06462                            Caption = "Распечатать УПД",
 06463                            Code = "Pdf",
 06464                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06465                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06466                            IsDeleted = false,
 06467                            OwnerActionId = 2L,
 06468                            StatusId = 13L,
 06469                            Type = "GET"
 06470                        },
 06471                        new
 06472                        {
 06473                            Id = 52L,
 06474                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06475                            Caption = "Скачать CSV",
 06476                            Code = "Csv",
 06477                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06478                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06479                            IsDeleted = false,
 06480                            OwnerActionId = 3L,
 06481                            StatusId = 13L,
 06482                            Type = "GET"
 06483                        },
 06484                        new
 06485                        {
 06486                            Id = 53L,
 06487                            Action = "Shipments/{id}/Print",
 06488                            Caption = "Распечатать УПД",
 06489                            Code = "Pdf",
 06490                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06491                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06492                            IsDeleted = false,
 06493                            OwnerActionId = 3L,
 06494                            StatusId = 13L,
 06495                            Type = "GET"
 06496                        },
 06497                        new
 06498                        {
 06499                            Id = 54L,
 06500                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06501                            Caption = "Скачать CSV",
 06502                            Code = "Csv",
 06503                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06504                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06505                            IsDeleted = false,
 06506                            OwnerActionId = 1L,
 06507                            StatusId = 14L,
 06508                            Type = "GET"
 06509                        },
 06510                        new
 06511                        {
 06512                            Id = 55L,
 06513                            Action = "Shipments/{id}/Print",
 06514                            Caption = "Распечатать УПД",
 06515                            Code = "Pdf",
 06516                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06517                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06518                            IsDeleted = false,
 06519                            OwnerActionId = 1L,
 06520                            StatusId = 14L,
 06521                            Type = "GET"
 06522                        },
 06523                        new
 06524                        {
 06525                            Id = 56L,
 06526                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06527                            Caption = "Скачать CSV",
 06528                            Code = "Csv",
 06529                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06530                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06531                            IsDeleted = false,
 06532                            OwnerActionId = 2L,
 06533                            StatusId = 14L,
 06534                            Type = "GET"
 06535                        },
 06536                        new
 06537                        {
 06538                            Id = 57L,
 06539                            Action = "Shipments/{id}/Print",
 06540                            Caption = "Распечатать УПД",
 06541                            Code = "Pdf",
 06542                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06543                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06544                            IsDeleted = false,
 06545                            OwnerActionId = 2L,
 06546                            StatusId = 14L,
 06547                            Type = "GET"
 06548                        },
 06549                        new
 06550                        {
 06551                            Id = 58L,
 06552                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06553                            Caption = "Скачать CSV",
 06554                            Code = "Csv",
 06555                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06556                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06557                            IsDeleted = false,
 06558                            OwnerActionId = 3L,
 06559                            StatusId = 14L,
 06560                            Type = "GET"
 06561                        },
 06562                        new
 06563                        {
 06564                            Id = 92L,
 06565                            Action = "Shipments/{id}/Print",
 06566                            Caption = "Распечатать УПД",
 06567                            Code = "Pdf",
 06568                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06569                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06570                            IsDeleted = false,
 06571                            OwnerActionId = 3L,
 06572                            StatusId = 14L,
 06573                            Type = "GET"
 06574                        },
 06575                        new
 06576                        {
 06577                            Id = 59L,
 06578                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06579                            Caption = "Скачать CSV",
 06580                            Code = "Csv",
 06581                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06582                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06583                            IsDeleted = false,
 06584                            OwnerActionId = 1L,
 06585                            StatusId = 15L,
 06586                            Type = "GET"
 06587                        },
 06588                        new
 06589                        {
 06590                            Id = 60L,
 06591                            Action = "Shipments/{id}/Print",
 06592                            Caption = "Распечатать УПД",
 06593                            Code = "Pdf",
 06594                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06595                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06596                            IsDeleted = false,
 06597                            OwnerActionId = 1L,
 06598                            StatusId = 15L,
 06599                            Type = "GET"
 06600                        },
 06601                        new
 06602                        {
 06603                            Id = 61L,
 06604                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06605                            Caption = "Скачать CSV",
 06606                            Code = "Csv",
 06607                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06608                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06609                            IsDeleted = false,
 06610                            OwnerActionId = 2L,
 06611                            StatusId = 15L,
 06612                            Type = "GET"
 06613                        },
 06614                        new
 06615                        {
 06616                            Id = 62L,
 06617                            Action = "Shipments/{id}/Print",
 06618                            Caption = "Распечатать УПД",
 06619                            Code = "Pdf",
 06620                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06621                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06622                            IsDeleted = false,
 06623                            OwnerActionId = 2L,
 06624                            StatusId = 15L,
 06625                            Type = "GET"
 06626                        },
 06627                        new
 06628                        {
 06629                            Id = 63L,
 06630                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06631                            Caption = "Скачать CSV",
 06632                            Code = "Csv",
 06633                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06634                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06635                            IsDeleted = false,
 06636                            OwnerActionId = 3L,
 06637                            StatusId = 15L,
 06638                            Type = "GET"
 06639                        },
 06640                        new
 06641                        {
 06642                            Id = 93L,
 06643                            Action = "Shipments/{id}/Print",
 06644                            Caption = "Распечатать УПД",
 06645                            Code = "Pdf",
 06646                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06647                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06648                            IsDeleted = false,
 06649                            OwnerActionId = 3L,
 06650                            StatusId = 15L,
 06651                            Type = "GET"
 06652                        },
 06653                        new
 06654                        {
 06655                            Id = 64L,
 06656                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06657                            Caption = "Скачать CSV",
 06658                            Code = "Csv",
 06659                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06660                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06661                            IsDeleted = false,
 06662                            OwnerActionId = 1L,
 06663                            StatusId = 16L,
 06664                            Type = "GET"
 06665                        },
 06666                        new
 06667                        {
 06668                            Id = 65L,
 06669                            Action = "Shipments/{id}/Print",
 06670                            Caption = "Распечатать УПД",
 06671                            Code = "Pdf",
 06672                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06673                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06674                            IsDeleted = false,
 06675                            OwnerActionId = 1L,
 06676                            StatusId = 16L,
 06677                            Type = "GET"
 06678                        },
 06679                        new
 06680                        {
 06681                            Id = 66L,
 06682                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06683                            Caption = "Скачать CSV",
 06684                            Code = "Csv",
 06685                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06686                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06687                            IsDeleted = false,
 06688                            OwnerActionId = 2L,
 06689                            StatusId = 16L,
 06690                            Type = "GET"
 06691                        },
 06692                        new
 06693                        {
 06694                            Id = 67L,
 06695                            Action = "Shipments/{id}/Print",
 06696                            Caption = "Распечатать УПД",
 06697                            Code = "Pdf",
 06698                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06699                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06700                            IsDeleted = false,
 06701                            OwnerActionId = 2L,
 06702                            StatusId = 16L,
 06703                            Type = "GET"
 06704                        },
 06705                        new
 06706                        {
 06707                            Id = 68L,
 06708                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06709                            Caption = "Скачать CSV",
 06710                            Code = "Csv",
 06711                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06712                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06713                            IsDeleted = false,
 06714                            OwnerActionId = 3L,
 06715                            StatusId = 16L,
 06716                            Type = "GET"
 06717                        },
 06718                        new
 06719                        {
 06720                            Id = 94L,
 06721                            Action = "Shipments/{id}/Print",
 06722                            Caption = "Распечатать УПД",
 06723                            Code = "Pdf",
 06724                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06725                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06726                            IsDeleted = false,
 06727                            OwnerActionId = 3L,
 06728                            StatusId = 16L,
 06729                            Type = "GET"
 06730                        },
 06731                        new
 06732                        {
 06733                            Id = 69L,
 06734                            Action = "Shipments/{id}/AcceptClaim",
 06735                            Caption = "Принять",
 06736                            Code = "AcceptClaim",
 06737                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06738                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06739                            IsDeleted = false,
 06740                            OwnerActionId = 3L,
 06741                            StatusId = 16L,
 06742                            Type = "POST"
 06743                        },
 06744                        new
 06745                        {
 06746                            Id = 70L,
 06747                            Action = "Shipments/{id}/DeclineClaim",
 06748                            Caption = "Отказать",
 06749                            Code = "DeclineClaim",
 06750                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06751                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06752                            IsDeleted = false,
 06753                            OwnerActionId = 3L,
 06754                            StatusId = 16L,
 06755                            Type = "POST"
 06756                        },
 06757                        new
 06758                        {
 06759                            Id = 71L,
 06760                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06761                            Caption = "Скачать CSV",
 06762                            Code = "Csv",
 06763                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06764                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06765                            IsDeleted = false,
 06766                            OwnerActionId = 1L,
 06767                            StatusId = 17L,
 06768                            Type = "GET"
 06769                        },
 06770                        new
 06771                        {
 06772                            Id = 72L,
 06773                            Action = "Shipments/{id}/Print",
 06774                            Caption = "Распечатать УПД",
 06775                            Code = "Pdf",
 06776                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06777                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06778                            IsDeleted = false,
 06779                            OwnerActionId = 1L,
 06780                            StatusId = 17L,
 06781                            Type = "GET"
 06782                        },
 06783                        new
 06784                        {
 06785                            Id = 73L,
 06786                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06787                            Caption = "Скачать CSV",
 06788                            Code = "Csv",
 06789                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06790                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06791                            IsDeleted = false,
 06792                            OwnerActionId = 2L,
 06793                            StatusId = 17L,
 06794                            Type = "GET"
 06795                        },
 06796                        new
 06797                        {
 06798                            Id = 74L,
 06799                            Action = "Shipments/{id}/Print",
 06800                            Caption = "Распечатать УПД",
 06801                            Code = "Pdf",
 06802                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06803                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06804                            IsDeleted = false,
 06805                            OwnerActionId = 2L,
 06806                            StatusId = 17L,
 06807                            Type = "GET"
 06808                        },
 06809                        new
 06810                        {
 06811                            Id = 75L,
 06812                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06813                            Caption = "Скачать CSV",
 06814                            Code = "Csv",
 06815                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06816                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06817                            IsDeleted = false,
 06818                            OwnerActionId = 3L,
 06819                            StatusId = 17L,
 06820                            Type = "GET"
 06821                        },
 06822                        new
 06823                        {
 06824                            Id = 95L,
 06825                            Action = "Shipments/{id}/Print",
 06826                            Caption = "Распечатать УПД",
 06827                            Code = "Pdf",
 06828                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06829                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06830                            IsDeleted = false,
 06831                            OwnerActionId = 3L,
 06832                            StatusId = 17L,
 06833                            Type = "GET"
 06834                        },
 06835                        new
 06836                        {
 06837                            Id = 76L,
 06838                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06839                            Caption = "Скачать CSV",
 06840                            Code = "Csv",
 06841                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06842                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06843                            IsDeleted = false,
 06844                            OwnerActionId = 1L,
 06845                            StatusId = 18L,
 06846                            Type = "GET"
 06847                        },
 06848                        new
 06849                        {
 06850                            Id = 77L,
 06851                            Action = "Shipments/{id}/Print",
 06852                            Caption = "Распечатать УПД",
 06853                            Code = "Pdf",
 06854                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06855                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06856                            IsDeleted = false,
 06857                            OwnerActionId = 1L,
 06858                            StatusId = 18L,
 06859                            Type = "GET"
 06860                        },
 06861                        new
 06862                        {
 06863                            Id = 78L,
 06864                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06865                            Caption = "Скачать CSV",
 06866                            Code = "Csv",
 06867                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06868                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06869                            IsDeleted = false,
 06870                            OwnerActionId = 2L,
 06871                            StatusId = 18L,
 06872                            Type = "GET"
 06873                        },
 06874                        new
 06875                        {
 06876                            Id = 79L,
 06877                            Action = "Shipments/{id}/Print",
 06878                            Caption = "Распечатать УПД",
 06879                            Code = "Pdf",
 06880                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06881                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06882                            IsDeleted = false,
 06883                            OwnerActionId = 2L,
 06884                            StatusId = 18L,
 06885                            Type = "GET"
 06886                        },
 06887                        new
 06888                        {
 06889                            Id = 80L,
 06890                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06891                            Caption = "Скачать CSV",
 06892                            Code = "Csv",
 06893                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06894                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06895                            IsDeleted = false,
 06896                            OwnerActionId = 3L,
 06897                            StatusId = 18L,
 06898                            Type = "GET"
 06899                        },
 06900                        new
 06901                        {
 06902                            Id = 96L,
 06903                            Action = "Shipments/{id}/Print",
 06904                            Caption = "Распечатать УПД",
 06905                            Code = "Pdf",
 06906                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06907                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06908                            IsDeleted = false,
 06909                            OwnerActionId = 3L,
 06910                            StatusId = 18L,
 06911                            Type = "GET"
 06912                        },
 06913                        new
 06914                        {
 06915                            Id = 99L,
 06916                            Action = "Orders/{id}/Print",
 06917                            Caption = "Скачать PDF",
 06918                            Code = "SimpleOrderPdf",
 06919                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06920                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06921                            IsDeleted = false,
 06922                            OwnerActionId = 1L,
 06923                            StatusId = 1L,
 06924                            Type = "GET"
 06925                        },
 06926                        new
 06927                        {
 06928                            Id = 100L,
 06929                            Action = "Orders/{id}/Print",
 06930                            Caption = "Скачать PDF",
 06931                            Code = "SimpleOrderPdf",
 06932                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06933                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06934                            IsDeleted = false,
 06935                            OwnerActionId = 1L,
 06936                            StatusId = 2L,
 06937                            Type = "GET"
 06938                        },
 06939                        new
 06940                        {
 06941                            Id = 101L,
 06942                            Action = "Orders/{id}/Print",
 06943                            Caption = "Скачать PDF",
 06944                            Code = "SimpleOrderPdf",
 06945                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06946                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06947                            IsDeleted = false,
 06948                            OwnerActionId = 3L,
 06949                            StatusId = 2L,
 06950                            Type = "GET"
 06951                        },
 06952                        new
 06953                        {
 06954                            Id = 102L,
 06955                            Action = "Orders/{id}/Print",
 06956                            Caption = "Скачать PDF",
 06957                            Code = "SimpleOrderPdf",
 06958                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06959                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06960                            IsDeleted = false,
 06961                            OwnerActionId = 1L,
 06962                            StatusId = 3L,
 06963                            Type = "GET"
 06964                        },
 06965                        new
 06966                        {
 06967                            Id = 103L,
 06968                            Action = "Shipments/{id}/SimplePrint",
 06969                            Caption = "Скачать PDF",
 06970                            Code = "SimpleShipmentPdf",
 06971                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06972                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06973                            IsDeleted = false,
 06974                            OwnerActionId = 2L,
 06975                            StatusId = 6L,
 06976                            Type = "GET"
 06977                        },
 06978                        new
 06979                        {
 06980                            Id = 104L,
 06981                            Action = "Shipments/{id}/SimplePrint",
 06982                            Caption = "Скачать PDF",
 06983                            Code = "SimpleShipmentPdf",
 06984                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06985                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06986                            IsDeleted = false,
 06987                            OwnerActionId = 3L,
 06988                            StatusId = 6L,
 06989                            Type = "GET"
 06990                        },
 06991                        new
 06992                        {
 06993                            Id = 105L,
 06994                            Action = "Orders/{id}/Print",
 06995                            Caption = "Скачать PDF",
 06996                            Code = "SimpleOrderPdf",
 06997                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06998                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06999                            IsDeleted = false,
 07000                            OwnerActionId = 1L,
 07001                            StatusId = 4L,
 07002                            Type = "GET"
 07003                        },
 07004                        new
 07005                        {
 07006                            Id = 106L,
 07007                            Action = "Orders/{id}/Print",
 07008                            Caption = "Скачать PDF",
 07009                            Code = "SimpleOrderPdf",
 07010                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07011                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07012                            IsDeleted = false,
 07013                            OwnerActionId = 3L,
 07014                            StatusId = 4L,
 07015                            Type = "GET"
 07016                        },
 07017                        new
 07018                        {
 07019                            Id = 107L,
 07020                            Action = "Orders/{id}/Print",
 07021                            Caption = "Скачать PDF",
 07022                            Code = "SimpleOrderPdf",
 07023                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07024                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07025                            IsDeleted = false,
 07026                            OwnerActionId = 1L,
 07027                            StatusId = 5L,
 07028                            Type = "GET"
 07029                        },
 07030                        new
 07031                        {
 07032                            Id = 108L,
 07033                            Action = "Orders/{id}/Print",
 07034                            Caption = "Скачать PDF",
 07035                            Code = "SimpleOrderPdf",
 07036                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07037                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07038                            IsDeleted = false,
 07039                            OwnerActionId = 3L,
 07040                            StatusId = 5L,
 07041                            Type = "GET"
 07042                        },
 07043                        new
 07044                        {
 07045                            Id = 109L,
 07046                            Action = "Shipments/{id}/SimplePrint",
 07047                            Caption = "Скачать PDF",
 07048                            Code = "SimpleShipmentPdf",
 07049                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07050                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07051                            IsDeleted = false,
 07052                            OwnerActionId = 1L,
 07053                            StatusId = 8L,
 07054                            Type = "GET"
 07055                        },
 07056                        new
 07057                        {
 07058                            Id = 110L,
 07059                            Action = "Shipments/{id}/SimplePrint",
 07060                            Caption = "Скачать PDF",
 07061                            Code = "SimpleShipmentPdf",
 07062                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07063                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07064                            IsDeleted = false,
 07065                            OwnerActionId = 2L,
 07066                            StatusId = 8L,
 07067                            Type = "GET"
 07068                        },
 07069                        new
 07070                        {
 07071                            Id = 111L,
 07072                            Action = "Shipments/{id}/SimplePrint",
 07073                            Caption = "Скачать PDF",
 07074                            Code = "SimpleShipmentPdf",
 07075                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07076                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07077                            IsDeleted = false,
 07078                            OwnerActionId = 3L,
 07079                            StatusId = 8L,
 07080                            Type = "GET"
 07081                        },
 07082                        new
 07083                        {
 07084                            Id = 112L,
 07085                            Action = "Shipments/{id}/SimplePrint",
 07086                            Caption = "Скачать PDF",
 07087                            Code = "SimpleShipmentPdf",
 07088                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07089                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07090                            IsDeleted = false,
 07091                            OwnerActionId = 1L,
 07092                            StatusId = 9L,
 07093                            Type = "GET"
 07094                        },
 07095                        new
 07096                        {
 07097                            Id = 113L,
 07098                            Action = "Shipments/{id}/SimplePrint",
 07099                            Caption = "Скачать PDF",
 07100                            Code = "SimpleShipmentPdf",
 07101                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07102                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07103                            IsDeleted = false,
 07104                            OwnerActionId = 3L,
 07105                            StatusId = 9L,
 07106                            Type = "GET"
 07107                        },
 07108                        new
 07109                        {
 07110                            Id = 114L,
 07111                            Action = "Shipments/{id}/Attachment",
 07112                            Caption = "Скачать вложение",
 07113                            Code = "GetAttachment",
 07114                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07115                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07116                            IsDeleted = false,
 07117                            OwnerActionId = 1L,
 07118                            StatusId = 10L,
 07119                            Type = "GET"
 07120                        },
 07121                        new
 07122                        {
 07123                            Id = 115L,
 07124                            Action = "Shipments/{id}/Attachment",
 07125                            Caption = "Приложить файл",
 07126                            Code = "SetAttachment",
 07127                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07128                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07129                            IsDeleted = false,
 07130                            OwnerActionId = 2L,
 07131                            StatusId = 10L,
 07132                            Type = "POST"
 07133                        },
 07134                        new
 07135                        {
 07136                            Id = 116L,
 07137                            Action = "Shipments/{id}/Attachment",
 07138                            Caption = "Удалить вложение",
 07139                            Code = "DeleteAttachment",
 07140                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07141                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07142                            IsDeleted = false,
 07143                            OwnerActionId = 2L,
 07144                            StatusId = 11L,
 07145                            Type = "DELETE"
 07146                        },
 07147                        new
 07148                        {
 07149                            Id = 117L,
 07150                            Action = "Shipments/{id}/Attachment",
 07151                            Caption = "Скачать вложение",
 07152                            Code = "GetAttachment",
 07153                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07154                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07155                            IsDeleted = false,
 07156                            OwnerActionId = 1L,
 07157                            StatusId = 13L,
 07158                            Type = "GET"
 07159                        },
 07160                        new
 07161                        {
 07162                            Id = 118L,
 07163                            Action = "Shipments/{id}/Attachment",
 07164                            Caption = "Скачать вложение",
 07165                            Code = "GetAttachment",
 07166                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07167                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07168                            IsDeleted = false,
 07169                            OwnerActionId = 2L,
 07170                            StatusId = 13L,
 07171                            Type = "GET"
 07172                        },
 07173                        new
 07174                        {
 07175                            Id = 119L,
 07176                            Action = "Shipments/{id}/Attachment",
 07177                            Caption = "Приложить файл",
 07178                            Code = "SetAttachment",
 07179                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07180                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07181                            IsDeleted = false,
 07182                            OwnerActionId = 2L,
 07183                            StatusId = 13L,
 07184                            Type = "POST"
 07185                        },
 07186                        new
 07187                        {
 07188                            Id = 120L,
 07189                            Action = "Shipments/{id}/Attachment",
 07190                            Caption = "Скачать вложение",
 07191                            Code = "GetAttachment",
 07192                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07193                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07194                            IsDeleted = false,
 07195                            OwnerActionId = 3L,
 07196                            StatusId = 13L,
 07197                            Type = "GET"
 07198                        },
 07199                        new
 07200                        {
 07201                            Id = 121L,
 07202                            Action = "Shipments/{id}/Attachment",
 07203                            Caption = "Скачать вложение",
 07204                            Code = "GetAttachment",
 07205                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07206                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07207                            IsDeleted = false,
 07208                            OwnerActionId = 1L,
 07209                            StatusId = 14L,
 07210                            Type = "GET"
 07211                        },
 07212                        new
 07213                        {
 07214                            Id = 122L,
 07215                            Action = "Shipments/{id}/Attachment",
 07216                            Caption = "Скачать вложение",
 07217                            Code = "GetAttachment",
 07218                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07219                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07220                            IsDeleted = false,
 07221                            OwnerActionId = 2L,
 07222                            StatusId = 14L,
 07223                            Type = "GET"
 07224                        },
 07225                        new
 07226                        {
 07227                            Id = 123L,
 07228                            Action = "Shipments/{id}/Attachment",
 07229                            Caption = "Скачать вложение",
 07230                            Code = "GetAttachment",
 07231                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07232                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07233                            IsDeleted = false,
 07234                            OwnerActionId = 3L,
 07235                            StatusId = 14L,
 07236                            Type = "GET"
 07237                        },
 07238                        new
 07239                        {
 07240                            Id = 124L,
 07241                            Action = "Shipments/{id}/Attachment",
 07242                            Caption = "Скачать вложение",
 07243                            Code = "GetAttachment",
 07244                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07245                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07246                            IsDeleted = false,
 07247                            OwnerActionId = 1L,
 07248                            StatusId = 15L,
 07249                            Type = "GET"
 07250                        },
 07251                        new
 07252                        {
 07253                            Id = 125L,
 07254                            Action = "Shipments/{id}/Attachment",
 07255                            Caption = "Скачать вложение",
 07256                            Code = "GetAttachment",
 07257                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07258                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07259                            IsDeleted = false,
 07260                            OwnerActionId = 2L,
 07261                            StatusId = 15L,
 07262                            Type = "GET"
 07263                        },
 07264                        new
 07265                        {
 07266                            Id = 126L,
 07267                            Action = "Shipments/{id}/Attachment",
 07268                            Caption = "Скачать вложение",
 07269                            Code = "GetAttachment",
 07270                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07271                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07272                            IsDeleted = false,
 07273                            OwnerActionId = 3L,
 07274                            StatusId = 15L,
 07275                            Type = "GET"
 07276                        },
 07277                        new
 07278                        {
 07279                            Id = 127L,
 07280                            Action = "Shipments/{id}/Attachment",
 07281                            Caption = "Скачать вложение",
 07282                            Code = "GetAttachment",
 07283                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07284                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07285                            IsDeleted = false,
 07286                            OwnerActionId = 1L,
 07287                            StatusId = 16L,
 07288                            Type = "GET"
 07289                        },
 07290                        new
 07291                        {
 07292                            Id = 128L,
 07293                            Action = "Shipments/{id}/Attachment",
 07294                            Caption = "Скачать вложение",
 07295                            Code = "GetAttachment",
 07296                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07297                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07298                            IsDeleted = false,
 07299                            OwnerActionId = 2L,
 07300                            StatusId = 16L,
 07301                            Type = "GET"
 07302                        },
 07303                        new
 07304                        {
 07305                            Id = 129L,
 07306                            Action = "Shipments/{id}/Attachment",
 07307                            Caption = "Скачать вложение",
 07308                            Code = "GetAttachment",
 07309                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07310                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07311                            IsDeleted = false,
 07312                            OwnerActionId = 3L,
 07313                            StatusId = 16L,
 07314                            Type = "GET"
 07315                        },
 07316                        new
 07317                        {
 07318                            Id = 130L,
 07319                            Action = "Shipments/{id}/Attachment",
 07320                            Caption = "Скачать вложение",
 07321                            Code = "GetAttachment",
 07322                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07323                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07324                            IsDeleted = false,
 07325                            OwnerActionId = 1L,
 07326                            StatusId = 17L,
 07327                            Type = "GET"
 07328                        },
 07329                        new
 07330                        {
 07331                            Id = 131L,
 07332                            Action = "Shipments/{id}/Attachment",
 07333                            Caption = "Скачать вложение",
 07334                            Code = "GetAttachment",
 07335                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07336                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07337                            IsDeleted = false,
 07338                            OwnerActionId = 2L,
 07339                            StatusId = 17L,
 07340                            Type = "GET"
 07341                        },
 07342                        new
 07343                        {
 07344                            Id = 132L,
 07345                            Action = "Shipments/{id}/Attachment",
 07346                            Caption = "Скачать вложение",
 07347                            Code = "GetAttachment",
 07348                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07349                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07350                            IsDeleted = false,
 07351                            OwnerActionId = 3L,
 07352                            StatusId = 17L,
 07353                            Type = "GET"
 07354                        },
 07355                        new
 07356                        {
 07357                            Id = 133L,
 07358                            Action = "Shipments/{id}/Attachment",
 07359                            Caption = "Скачать вложение",
 07360                            Code = "GetAttachment",
 07361                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07362                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07363                            IsDeleted = false,
 07364                            OwnerActionId = 1L,
 07365                            StatusId = 18L,
 07366                            Type = "GET"
 07367                        },
 07368                        new
 07369                        {
 07370                            Id = 134L,
 07371                            Action = "Shipments/{id}/Attachment",
 07372                            Caption = "Скачать вложение",
 07373                            Code = "GetAttachment",
 07374                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07375                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07376                            IsDeleted = false,
 07377                            OwnerActionId = 2L,
 07378                            StatusId = 18L,
 07379                            Type = "GET"
 07380                        },
 07381                        new
 07382                        {
 07383                            Id = 135L,
 07384                            Action = "Shipments/{id}/Attachment",
 07385                            Caption = "Скачать вложение",
 07386                            Code = "GetAttachment",
 07387                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07388                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07389                            IsDeleted = false,
 07390                            OwnerActionId = 3L,
 07391                            StatusId = 18L,
 07392                            Type = "GET"
 07393                        });
 07394                });
 7395
 07396            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", b =>
 07397                {
 07398                    b.Property<long>("Id")
 07399                        .ValueGeneratedOnAdd()
 07400                        .HasColumnType("bigint")
 07401                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07402
 07403                    b.Property<string>("Code")
 07404                        .IsRequired()
 07405                        .HasColumnType("text");
 07406
 07407                    b.Property<long?>("CreatedByUserId")
 07408                        .HasColumnType("bigint");
 07409
 07410                    b.Property<DateTime>("CreationDateTime")
 07411                        .HasColumnType("timestamp without time zone");
 07412
 07413                    b.Property<string>("Description")
 07414                        .HasColumnType("text");
 07415
 07416                    b.Property<Guid>("GUID")
 07417                        .ValueGeneratedOnAdd()
 07418                        .HasColumnType("uuid");
 07419
 07420                    b.Property<bool>("IsDeleted")
 07421                        .HasColumnType("boolean");
 07422
 07423                    b.Property<DateTime?>("ModificationDateTime")
 07424                        .HasColumnType("timestamp without time zone");
 07425
 07426                    b.Property<long?>("ModifiedByUserId")
 07427                        .HasColumnType("bigint");
 07428
 07429                    b.Property<long>("MovementTypeId")
 07430                        .HasColumnType("bigint");
 07431
 07432                    b.Property<string>("Name")
 07433                        .IsRequired()
 07434                        .HasColumnType("text");
 07435
 07436                    b.Property<long?>("RecStateId")
 07437                        .HasColumnType("bigint");
 07438
 07439                    b.Property<long>("StatusOwnerId")
 07440                        .HasColumnType("bigint");
 07441
 07442                    b.HasKey("Id");
 07443
 07444                    b.HasIndex("CreatedByUserId");
 07445
 07446                    b.HasIndex("ModifiedByUserId");
 07447
 07448                    b.HasIndex("MovementTypeId");
 07449
 07450                    b.HasIndex("RecStateId");
 07451
 07452                    b.HasIndex("StatusOwnerId");
 07453
 07454                    b.ToTable("MovementStatus");
 07455
 07456                    b.HasData(
 07457                        new
 07458                        {
 07459                            Id = 1L,
 07460                            Code = "Draft",
 07461                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07462                            Description = "",
 07463                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07464                            IsDeleted = false,
 07465                            MovementTypeId = 1L,
 07466                            Name = "Черновик",
 07467                            StatusOwnerId = 1L
 07468                        },
 07469                        new
 07470                        {
 07471                            Id = 2L,
 07472                            Code = "InQueue",
 07473                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07474                            Description = "",
 07475                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07476                            IsDeleted = false,
 07477                            MovementTypeId = 1L,
 07478                            Name = "В очереди на обработку",
 07479                            StatusOwnerId = 3L
 07480                        },
 07481                        new
 07482                        {
 07483                            Id = 3L,
 07484                            Code = "InProgress",
 07485                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07486                            Description = "",
 07487                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07488                            IsDeleted = false,
 07489                            MovementTypeId = 1L,
 07490                            Name = "В обработке",
 07491                            StatusOwnerId = 2L
 07492                        },
 07493                        new
 07494                        {
 07495                            Id = 4L,
 07496                            Code = "Reject",
 07497                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07498                            Description = "",
 07499                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07500                            IsDeleted = false,
 07501                            MovementTypeId = 1L,
 07502                            Name = "Отказ",
 07503                            StatusOwnerId = 3L
 07504                        },
 07505                        new
 07506                        {
 07507                            Id = 5L,
 07508                            Code = "Finished",
 07509                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07510                            Description = "",
 07511                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07512                            IsDeleted = false,
 07513                            MovementTypeId = 1L,
 07514                            Name = "Обработано",
 07515                            StatusOwnerId = 2L
 07516                        },
 07517                        new
 07518                        {
 07519                            Id = 6L,
 07520                            Code = "Draft",
 07521                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07522                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07523                            IsDeleted = false,
 07524                            MovementTypeId = 2L,
 07525                            Name = "Черновик",
 07526                            StatusOwnerId = 2L
 07527                        },
 07528                        new
 07529                        {
 07530                            Id = 7L,
 07531                            Code = "Reject",
 07532                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07533                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07534                            IsDeleted = false,
 07535                            MovementTypeId = 2L,
 07536                            Name = "Отказ",
 07537                            StatusOwnerId = 1L
 07538                        },
 07539                        new
 07540                        {
 07541                            Id = 8L,
 07542                            Code = "PaymentAwaiting",
 07543                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07544                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07545                            IsDeleted = false,
 07546                            MovementTypeId = 2L,
 07547                            Name = "Ожидает оплаты",
 07548                            StatusOwnerId = 1L
 07549                        },
 07550                        new
 07551                        {
 07552                            Id = 9L,
 07553                            Code = "Picking",
 07554                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07555                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07556                            IsDeleted = false,
 07557                            MovementTypeId = 2L,
 07558                            Name = "Сборка заказа",
 07559                            StatusOwnerId = 2L
 07560                        },
 07561                        new
 07562                        {
 07563                            Id = 10L,
 07564                            Code = "ReadyForShipment",
 07565                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07566                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07567                            IsDeleted = false,
 07568                            MovementTypeId = 2L,
 07569                            Name = "Готово к выдаче",
 07570                            StatusOwnerId = 2L
 07571                        },
 07572                        new
 07573                        {
 07574                            Id = 11L,
 07575                            Code = "Correction",
 07576                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07577                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07578                            IsDeleted = false,
 07579                            MovementTypeId = 2L,
 07580                            Name = "Корректировка",
 07581                            StatusOwnerId = 2L
 07582                        },
 07583                        new
 07584                        {
 07585                            Id = 12L,
 07586                            Code = "SupplierReject",
 07587                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07588                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07589                            IsDeleted = false,
 07590                            MovementTypeId = 2L,
 07591                            Name = "Отказ поставщика",
 07592                            StatusOwnerId = 2L
 07593                        },
 07594                        new
 07595                        {
 07596                            Id = 13L,
 07597                            Code = "Shipped",
 07598                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07599                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07600                            IsDeleted = false,
 07601                            MovementTypeId = 2L,
 07602                            Name = "Выдано",
 07603                            StatusOwnerId = 1L
 07604                        },
 07605                        new
 07606                        {
 07607                            Id = 14L,
 07608                            Code = "Received",
 07609                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07610                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07611                            IsDeleted = false,
 07612                            MovementTypeId = 2L,
 07613                            Name = "Принято",
 07614                            StatusOwnerId = 1L
 07615                        },
 07616                        new
 07617                        {
 07618                            Id = 15L,
 07619                            Code = "CustomerReject",
 07620                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07621                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07622                            IsDeleted = false,
 07623                            MovementTypeId = 2L,
 07624                            Name = "Отказ покупателя",
 07625                            StatusOwnerId = 1L
 07626                        },
 07627                        new
 07628                        {
 07629                            Id = 16L,
 07630                            Code = "ClaimInProgress",
 07631                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07632                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07633                            IsDeleted = false,
 07634                            MovementTypeId = 2L,
 07635                            Name = "Претензия разбор",
 07636                            StatusOwnerId = 3L
 07637                        },
 07638                        new
 07639                        {
 07640                            Id = 17L,
 07641                            Code = "ClaimDeclined",
 07642                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07643                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07644                            IsDeleted = false,
 07645                            MovementTypeId = 2L,
 07646                            Name = "Претензия отказано",
 07647                            StatusOwnerId = 3L
 07648                        },
 07649                        new
 07650                        {
 07651                            Id = 18L,
 07652                            Code = "ClaimAccepted",
 07653                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07654                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07655                            IsDeleted = false,
 07656                            MovementTypeId = 2L,
 07657                            Name = "Претензия подтверждено",
 07658                            StatusOwnerId = 3L
 07659                        });
 07660                });
 7661
 07662            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusJournal", b =>
 07663                {
 07664                    b.Property<long>("Id")
 07665                        .ValueGeneratedOnAdd()
 07666                        .HasColumnType("bigint")
 07667                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07668
 07669                    b.Property<long?>("CreatedByUserId")
 07670                        .HasColumnType("bigint");
 07671
 07672                    b.Property<DateTime>("CreationDateTime")
 07673                        .HasColumnType("timestamp without time zone");
 07674
 07675                    b.Property<Guid>("GUID")
 07676                        .ValueGeneratedOnAdd()
 07677                        .HasColumnType("uuid");
 07678
 07679                    b.Property<bool>("IsDeleted")
 07680                        .HasColumnType("boolean");
 07681
 07682                    b.Property<DateTime?>("ModificationDateTime")
 07683                        .HasColumnType("timestamp without time zone");
 07684
 07685                    b.Property<long?>("ModifiedByUserId")
 07686                        .HasColumnType("bigint");
 07687
 07688                    b.Property<long?>("MovementId")
 07689                        .HasColumnType("bigint");
 07690
 07691                    b.Property<long?>("RecStateId")
 07692                        .HasColumnType("bigint");
 07693
 07694                    b.Property<long?>("StatusCurrentId")
 07695                        .HasColumnType("bigint");
 07696
 07697                    b.HasKey("Id");
 07698
 07699                    b.HasIndex("CreatedByUserId");
 07700
 07701                    b.HasIndex("ModifiedByUserId");
 07702
 07703                    b.HasIndex("MovementId");
 07704
 07705                    b.HasIndex("RecStateId");
 07706
 07707                    b.HasIndex("StatusCurrentId");
 07708
 07709                    b.ToTable("MovementStatusJournals");
 07710                });
 7711
 07712            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusOwner", b =>
 07713                {
 07714                    b.Property<long>("Id")
 07715                        .ValueGeneratedOnAdd()
 07716                        .HasColumnType("bigint")
 07717                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07718
 07719                    b.Property<long?>("CreatedByUserId")
 07720                        .HasColumnType("bigint");
 07721
 07722                    b.Property<DateTime>("CreationDateTime")
 07723                        .HasColumnType("timestamp without time zone");
 07724
 07725                    b.Property<bool>("IsDeleted")
 07726                        .HasColumnType("boolean");
 07727
 07728                    b.Property<DateTime?>("ModificationDateTime")
 07729                        .HasColumnType("timestamp without time zone");
 07730
 07731                    b.Property<long?>("ModifiedByUserId")
 07732                        .HasColumnType("bigint");
 07733
 07734                    b.Property<string>("Name")
 07735                        .HasColumnType("text");
 07736
 07737                    b.Property<long?>("RecStateId")
 07738                        .HasColumnType("bigint");
 07739
 07740                    b.HasKey("Id");
 07741
 07742                    b.HasIndex("CreatedByUserId");
 07743
 07744                    b.HasIndex("ModifiedByUserId");
 07745
 07746                    b.HasIndex("RecStateId");
 07747
 07748                    b.ToTable("MovementStatusOwners");
 07749
 07750                    b.HasData(
 07751                        new
 07752                        {
 07753                            Id = 1L,
 07754                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07755                            IsDeleted = false,
 07756                            Name = "Customer"
 07757                        },
 07758                        new
 07759                        {
 07760                            Id = 2L,
 07761                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07762                            IsDeleted = false,
 07763                            Name = "Supplier"
 07764                        },
 07765                        new
 07766                        {
 07767                            Id = 3L,
 07768                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07769                            IsDeleted = false,
 07770                            Name = "Platform"
 07771                        });
 07772                });
 7773
 07774            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusRoute", b =>
 07775                {
 07776                    b.Property<long>("Id")
 07777                        .ValueGeneratedOnAdd()
 07778                        .HasColumnType("bigint")
 07779                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07780
 07781                    b.Property<long?>("CreatedByUserId")
 07782                        .HasColumnType("bigint");
 07783
 07784                    b.Property<DateTime>("CreationDateTime")
 07785                        .HasColumnType("timestamp without time zone");
 07786
 07787                    b.Property<Guid>("GUID")
 07788                        .ValueGeneratedOnAdd()
 07789                        .HasColumnType("uuid");
 07790
 07791                    b.Property<int>("Hour")
 07792                        .HasColumnType("integer");
 07793
 07794                    b.Property<bool>("IsDeleted")
 07795                        .HasColumnType("boolean");
 07796
 07797                    b.Property<DateTime?>("ModificationDateTime")
 07798                        .HasColumnType("timestamp without time zone");
 07799
 07800                    b.Property<long?>("ModifiedByUserId")
 07801                        .HasColumnType("bigint");
 07802
 07803                    b.Property<long?>("RecStateId")
 07804                        .HasColumnType("bigint");
 07805
 07806                    b.Property<string>("RouteKey")
 07807                        .HasColumnType("text");
 07808
 07809                    b.Property<long>("StatusCurrentId")
 07810                        .HasColumnType("bigint");
 07811
 07812                    b.Property<long>("StatusNextId")
 07813                        .HasColumnType("bigint");
 07814
 07815                    b.HasKey("Id");
 07816
 07817                    b.HasIndex("CreatedByUserId");
 07818
 07819                    b.HasIndex("ModifiedByUserId");
 07820
 07821                    b.HasIndex("RecStateId");
 07822
 07823                    b.HasIndex("StatusCurrentId");
 07824
 07825                    b.HasIndex("StatusNextId");
 07826
 07827                    b.ToTable("MovementStatusRoutes");
 07828
 07829                    b.HasData(
 07830                        new
 07831                        {
 07832                            Id = 1L,
 07833                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07834                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07835                            Hour = 0,
 07836                            IsDeleted = false,
 07837                            RouteKey = "Send",
 07838                            StatusCurrentId = 1L,
 07839                            StatusNextId = 2L
 07840                        },
 07841                        new
 07842                        {
 07843                            Id = 2L,
 07844                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07845                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07846                            Hour = 0,
 07847                            IsDeleted = false,
 07848                            RouteKey = "Confirm",
 07849                            StatusCurrentId = 2L,
 07850                            StatusNextId = 3L
 07851                        },
 07852                        new
 07853                        {
 07854                            Id = 3L,
 07855                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07856                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07857                            Hour = 8,
 07858                            IsDeleted = false,
 07859                            RouteKey = "Auto",
 07860                            StatusCurrentId = 2L,
 07861                            StatusNextId = 4L
 07862                        },
 07863                        new
 07864                        {
 07865                            Id = 4L,
 07866                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07867                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07868                            Hour = 0,
 07869                            IsDeleted = false,
 07870                            RouteKey = "RejectOrder",
 07871                            StatusCurrentId = 2L,
 07872                            StatusNextId = 4L
 07873                        },
 07874                        new
 07875                        {
 07876                            Id = 5L,
 07877                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07878                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07879                            Hour = 8,
 07880                            IsDeleted = false,
 07881                            RouteKey = "Auto",
 07882                            StatusCurrentId = 3L,
 07883                            StatusNextId = 4L
 07884                        },
 07885                        new
 07886                        {
 07887                            Id = 6L,
 07888                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07889                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07890                            Hour = 0,
 07891                            IsDeleted = false,
 07892                            RouteKey = "Finished",
 07893                            StatusCurrentId = 3L,
 07894                            StatusNextId = 5L
 07895                        },
 07896                        new
 07897                        {
 07898                            Id = 7L,
 07899                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07900                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07901                            Hour = 0,
 07902                            IsDeleted = false,
 07903                            RouteKey = "RejectOrder",
 07904                            StatusCurrentId = 3L,
 07905                            StatusNextId = 4L
 07906                        },
 07907                        new
 07908                        {
 07909                            Id = 8L,
 07910                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07911                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07912                            Hour = 0,
 07913                            IsDeleted = false,
 07914                            RouteKey = "SupplierReject",
 07915                            StatusCurrentId = 6L,
 07916                            StatusNextId = 12L
 07917                        },
 07918                        new
 07919                        {
 07920                            Id = 9L,
 07921                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07922                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07923                            Hour = 0,
 07924                            IsDeleted = false,
 07925                            RouteKey = "PaymentReserve",
 07926                            StatusCurrentId = 6L,
 07927                            StatusNextId = 8L
 07928                        },
 07929                        new
 07930                        {
 07931                            Id = 10L,
 07932                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07933                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07934                            Hour = 0,
 07935                            IsDeleted = false,
 07936                            RouteKey = "Payment",
 07937                            StatusCurrentId = 8L,
 07938                            StatusNextId = 9L
 07939                        },
 07940                        new
 07941                        {
 07942                            Id = 11L,
 07943                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07944                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07945                            Hour = 0,
 07946                            IsDeleted = false,
 07947                            RouteKey = "CustomerReject",
 07948                            StatusCurrentId = 8L,
 07949                            StatusNextId = 15L
 07950                        },
 07951                        new
 07952                        {
 07953                            Id = 12L,
 07954                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07955                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07956                            Hour = 24,
 07957                            IsDeleted = false,
 07958                            RouteKey = "Auto",
 07959                            StatusCurrentId = 8L,
 07960                            StatusNextId = 7L
 07961                        },
 07962                        new
 07963                        {
 07964                            Id = 13L,
 07965                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07966                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07967                            Hour = 0,
 07968                            IsDeleted = false,
 07969                            RouteKey = "SupplierReject",
 07970                            StatusCurrentId = 9L,
 07971                            StatusNextId = 12L
 07972                        },
 07973                        new
 07974                        {
 07975                            Id = 14L,
 07976                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07977                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07978                            Hour = 24,
 07979                            IsDeleted = false,
 07980                            RouteKey = "Auto",
 07981                            StatusCurrentId = 9L,
 07982                            StatusNextId = 7L
 07983                        },
 07984                        new
 07985                        {
 07986                            Id = 15L,
 07987                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07988                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07989                            Hour = 0,
 07990                            IsDeleted = false,
 07991                            RouteKey = "ReadyToShip",
 07992                            StatusCurrentId = 9L,
 07993                            StatusNextId = 10L
 07994                        },
 07995                        new
 07996                        {
 07997                            Id = 30L,
 07998                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07999                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08000                            Hour = 0,
 08001                            IsDeleted = false,
 08002                            RouteKey = "CustomerReject",
 08003                            StatusCurrentId = 9L,
 08004                            StatusNextId = 15L
 08005                        },
 08006                        new
 08007                        {
 08008                            Id = 16L,
 08009                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08010                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08011                            Hour = 0,
 08012                            IsDeleted = false,
 08013                            RouteKey = "Ship",
 08014                            StatusCurrentId = 10L,
 08015                            StatusNextId = 13L
 08016                        },
 08017                        new
 08018                        {
 08019                            Id = 17L,
 08020                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08021                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08022                            Hour = 24,
 08023                            IsDeleted = false,
 08024                            RouteKey = "Auto",
 08025                            StatusCurrentId = 10L,
 08026                            StatusNextId = 7L
 08027                        },
 08028                        new
 08029                        {
 08030                            Id = 18L,
 08031                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08032                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08033                            Hour = 0,
 08034                            IsDeleted = false,
 08035                            RouteKey = "SupplierReject",
 08036                            StatusCurrentId = 10L,
 08037                            StatusNextId = 12L
 08038                        },
 08039                        new
 08040                        {
 08041                            Id = 19L,
 08042                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08043                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08044                            Hour = 0,
 08045                            IsDeleted = false,
 08046                            RouteKey = "Correction",
 08047                            StatusCurrentId = 10L,
 08048                            StatusNextId = 11L
 08049                        },
 08050                        new
 08051                        {
 08052                            Id = 31L,
 08053                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08054                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08055                            Hour = 0,
 08056                            IsDeleted = false,
 08057                            RouteKey = "CustomerReject",
 08058                            StatusCurrentId = 10L,
 08059                            StatusNextId = 15L
 08060                        },
 08061                        new
 08062                        {
 08063                            Id = 20L,
 08064                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08065                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08066                            Hour = 8,
 08067                            IsDeleted = false,
 08068                            RouteKey = "Auto",
 08069                            StatusCurrentId = 11L,
 08070                            StatusNextId = 7L
 08071                        },
 08072                        new
 08073                        {
 08074                            Id = 21L,
 08075                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08076                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08077                            Hour = 0,
 08078                            IsDeleted = false,
 08079                            RouteKey = "SupplierReject",
 08080                            StatusCurrentId = 11L,
 08081                            StatusNextId = 12L
 08082                        },
 08083                        new
 08084                        {
 08085                            Id = 22L,
 08086                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08087                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08088                            Hour = 0,
 08089                            IsDeleted = false,
 08090                            RouteKey = "ReadyToShip",
 08091                            StatusCurrentId = 11L,
 08092                            StatusNextId = 10L
 08093                        },
 08094                        new
 08095                        {
 08096                            Id = 32L,
 08097                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08098                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08099                            Hour = 0,
 08100                            IsDeleted = false,
 08101                            RouteKey = "CustomerReject",
 08102                            StatusCurrentId = 11L,
 08103                            StatusNextId = 15L
 08104                        },
 08105                        new
 08106                        {
 08107                            Id = 23L,
 08108                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08109                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08110                            Hour = 0,
 08111                            IsDeleted = false,
 08112                            RouteKey = "Accept",
 08113                            StatusCurrentId = 13L,
 08114                            StatusNextId = 14L
 08115                        },
 08116                        new
 08117                        {
 08118                            Id = 24L,
 08119                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08120                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08121                            Hour = 0,
 08122                            IsDeleted = false,
 08123                            RouteKey = "CustomerReject",
 08124                            StatusCurrentId = 13L,
 08125                            StatusNextId = 15L
 08126                        },
 08127                        new
 08128                        {
 08129                            Id = 25L,
 08130                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08131                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08132                            Hour = 24,
 08133                            IsDeleted = false,
 08134                            RouteKey = "Auto",
 08135                            StatusCurrentId = 13L,
 08136                            StatusNextId = 7L
 08137                        },
 08138                        new
 08139                        {
 08140                            Id = 26L,
 08141                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08142                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08143                            Hour = 0,
 08144                            IsDeleted = false,
 08145                            RouteKey = "ClaimProcess",
 08146                            StatusCurrentId = 15L,
 08147                            StatusNextId = 16L
 08148                        },
 08149                        new
 08150                        {
 08151                            Id = 27L,
 08152                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08153                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08154                            Hour = 0,
 08155                            IsDeleted = false,
 08156                            RouteKey = "ClaimAccept",
 08157                            StatusCurrentId = 16L,
 08158                            StatusNextId = 18L
 08159                        },
 08160                        new
 08161                        {
 08162                            Id = 28L,
 08163                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08164                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08165                            Hour = 24,
 08166                            IsDeleted = false,
 08167                            RouteKey = "Auto",
 08168                            StatusCurrentId = 16L,
 08169                            StatusNextId = 18L
 08170                        },
 08171                        new
 08172                        {
 08173                            Id = 29L,
 08174                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08175                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08176                            Hour = 0,
 08177                            IsDeleted = false,
 08178                            RouteKey = "ClaimDecline",
 08179                            StatusCurrentId = 16L,
 08180                            StatusNextId = 17L
 08181                        });
 08182                });
 8183
 08184            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", b =>
 08185                {
 08186                    b.Property<long>("Id")
 08187                        .ValueGeneratedOnAdd()
 08188                        .HasColumnType("bigint")
 08189                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08190
 08191                    b.Property<string>("Code")
 08192                        .IsRequired()
 08193                        .HasColumnType("text");
 08194
 08195                    b.Property<long?>("CreatedByUserId")
 08196                        .HasColumnType("bigint");
 08197
 08198                    b.Property<DateTime>("CreationDateTime")
 08199                        .HasColumnType("timestamp without time zone");
 08200
 08201                    b.Property<string>("Description")
 08202                        .HasColumnType("text");
 08203
 08204                    b.Property<Guid>("GUID")
 08205                        .ValueGeneratedOnAdd()
 08206                        .HasColumnType("uuid");
 08207
 08208                    b.Property<bool>("IsDeleted")
 08209                        .HasColumnType("boolean");
 08210
 08211                    b.Property<DateTime?>("ModificationDateTime")
 08212                        .HasColumnType("timestamp without time zone");
 08213
 08214                    b.Property<long?>("ModifiedByUserId")
 08215                        .HasColumnType("bigint");
 08216
 08217                    b.Property<string>("Name")
 08218                        .IsRequired()
 08219                        .HasColumnType("text");
 08220
 08221                    b.Property<long?>("RecStateId")
 08222                        .HasColumnType("bigint");
 08223
 08224                    b.HasKey("Id");
 08225
 08226                    b.HasIndex("CreatedByUserId");
 08227
 08228                    b.HasIndex("ModifiedByUserId");
 08229
 08230                    b.HasIndex("RecStateId");
 08231
 08232                    b.ToTable("MovementType");
 08233
 08234                    b.HasData(
 08235                        new
 08236                        {
 08237                            Id = 1L,
 08238                            Code = "Order",
 08239                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08240                            Description = "",
 08241                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08242                            IsDeleted = false,
 08243                            Name = "Заказ"
 08244                        },
 08245                        new
 08246                        {
 08247                            Id = 2L,
 08248                            Code = "Shipment",
 08249                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08250                            Description = "",
 08251                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08252                            IsDeleted = false,
 08253                            Name = "Отгрузка"
 08254                        },
 08255                        new
 08256                        {
 08257                            Id = 3L,
 08258                            Code = "Arrival",
 08259                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08260                            Description = "",
 08261                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08262                            IsDeleted = false,
 08263                            Name = "Приход"
 08264                        },
 08265                        new
 08266                        {
 08267                            Id = 4L,
 08268                            Code = "Deny",
 08269                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08270                            Description = "",
 08271                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08272                            IsDeleted = false,
 08273                            Name = "Отказ"
 08274                        });
 08275                });
 8276
 08277            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Notification", b =>
 08278                {
 08279                    b.Property<long>("Id")
 08280                        .ValueGeneratedOnAdd()
 08281                        .HasColumnType("bigint")
 08282                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08283
 08284                    b.Property<string>("Body")
 08285                        .IsRequired()
 08286                        .HasColumnType("text");
 08287
 08288                    b.Property<long?>("CreatedByUserId")
 08289                        .HasColumnType("bigint");
 08290
 08291                    b.Property<DateTime>("CreationDateTime")
 08292                        .HasColumnType("timestamp without time zone");
 08293
 08294                    b.Property<Guid>("GUID")
 08295                        .ValueGeneratedOnAdd()
 08296                        .HasColumnType("uuid");
 08297
 08298                    b.Property<bool>("IsDeleted")
 08299                        .HasColumnType("boolean");
 08300
 08301                    b.Property<DateTime?>("ModificationDateTime")
 08302                        .HasColumnType("timestamp without time zone");
 08303
 08304                    b.Property<long?>("ModifiedByUserId")
 08305                        .HasColumnType("bigint");
 08306
 08307                    b.Property<long>("NotificationsTypeId")
 08308                        .HasColumnType("bigint");
 08309
 08310                    b.Property<long?>("RecStateId")
 08311                        .HasColumnType("bigint");
 08312
 08313                    b.Property<string>("Subject")
 08314                        .IsRequired()
 08315                        .HasColumnType("text");
 08316
 08317                    b.Property<DateTime>("TimeToTurnOff")
 08318                        .HasColumnType("timestamp without time zone");
 08319
 08320                    b.Property<long>("UserId")
 08321                        .HasColumnType("bigint");
 08322
 08323                    b.HasKey("Id");
 08324
 08325                    b.HasIndex("CreatedByUserId");
 08326
 08327                    b.HasIndex("ModifiedByUserId");
 08328
 08329                    b.HasIndex("NotificationsTypeId");
 08330
 08331                    b.HasIndex("RecStateId");
 08332
 08333                    b.HasIndex("UserId");
 08334
 08335                    b.ToTable("Notifications");
 08336                });
 8337
 08338            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationUsers", b =>
 08339                {
 08340                    b.Property<long>("Id")
 08341                        .ValueGeneratedOnAdd()
 08342                        .HasColumnType("bigint")
 08343                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08344
 08345                    b.Property<long?>("CreatedByUserId")
 08346                        .HasColumnType("bigint");
 08347
 08348                    b.Property<DateTime>("CreationDateTime")
 08349                        .HasColumnType("timestamp without time zone");
 08350
 08351                    b.Property<Guid>("GUID")
 08352                        .ValueGeneratedOnAdd()
 08353                        .HasColumnType("uuid");
 08354
 08355                    b.Property<bool>("IsDeleted")
 08356                        .HasColumnType("boolean");
 08357
 08358                    b.Property<DateTime?>("ModificationDateTime")
 08359                        .HasColumnType("timestamp without time zone");
 08360
 08361                    b.Property<long?>("ModifiedByUserId")
 08362                        .HasColumnType("bigint");
 08363
 08364                    b.Property<long>("NotificationId")
 08365                        .HasColumnType("bigint");
 08366
 08367                    b.Property<long?>("NotificationsStatusId")
 08368                        .HasColumnType("bigint");
 08369
 08370                    b.Property<long?>("RecStateId")
 08371                        .HasColumnType("bigint");
 08372
 08373                    b.Property<long?>("UserId")
 08374                        .HasColumnType("bigint");
 08375
 08376                    b.HasKey("Id");
 08377
 08378                    b.HasIndex("CreatedByUserId");
 08379
 08380                    b.HasIndex("ModifiedByUserId");
 08381
 08382                    b.HasIndex("NotificationId");
 08383
 08384                    b.HasIndex("NotificationsStatusId");
 08385
 08386                    b.HasIndex("RecStateId");
 08387
 08388                    b.HasIndex("UserId");
 08389
 08390                    b.ToTable("NotificationUsers");
 08391                });
 8392
 08393            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsStatus", b =>
 08394                {
 08395                    b.Property<long>("Id")
 08396                        .ValueGeneratedOnAdd()
 08397                        .HasColumnType("bigint")
 08398                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08399
 08400                    b.Property<string>("Code")
 08401                        .IsRequired()
 08402                        .HasColumnType("text");
 08403
 08404                    b.Property<long?>("CreatedByUserId")
 08405                        .HasColumnType("bigint");
 08406
 08407                    b.Property<DateTime>("CreationDateTime")
 08408                        .HasColumnType("timestamp without time zone");
 08409
 08410                    b.Property<string>("Description")
 08411                        .HasColumnType("text");
 08412
 08413                    b.Property<Guid>("GUID")
 08414                        .ValueGeneratedOnAdd()
 08415                        .HasColumnType("uuid");
 08416
 08417                    b.Property<bool>("IsDeleted")
 08418                        .HasColumnType("boolean");
 08419
 08420                    b.Property<DateTime?>("ModificationDateTime")
 08421                        .HasColumnType("timestamp without time zone");
 08422
 08423                    b.Property<long?>("ModifiedByUserId")
 08424                        .HasColumnType("bigint");
 08425
 08426                    b.Property<string>("Name")
 08427                        .IsRequired()
 08428                        .HasColumnType("text");
 08429
 08430                    b.Property<long?>("RecStateId")
 08431                        .HasColumnType("bigint");
 08432
 08433                    b.HasKey("Id");
 08434
 08435                    b.HasIndex("CreatedByUserId");
 08436
 08437                    b.HasIndex("ModifiedByUserId");
 08438
 08439                    b.HasIndex("RecStateId");
 08440
 08441                    b.ToTable("NotificationsStatus");
 08442
 08443                    b.HasData(
 08444                        new
 08445                        {
 08446                            Id = 1L,
 08447                            Code = "Unknown",
 08448                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08449                            Description = "",
 08450                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08451                            IsDeleted = false,
 08452                            Name = "Неизвестно"
 08453                        },
 08454                        new
 08455                        {
 08456                            Id = 2L,
 08457                            Code = "Created",
 08458                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08459                            Description = "",
 08460                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08461                            IsDeleted = false,
 08462                            Name = "Создано"
 08463                        },
 08464                        new
 08465                        {
 08466                            Id = 3L,
 08467                            Code = "Sent",
 08468                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08469                            Description = "",
 08470                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08471                            IsDeleted = false,
 08472                            Name = "Отправлено"
 08473                        },
 08474                        new
 08475                        {
 08476                            Id = 4L,
 08477                            Code = "Read",
 08478                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08479                            Description = "",
 08480                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08481                            IsDeleted = false,
 08482                            Name = "Прочитано"
 08483                        },
 08484                        new
 08485                        {
 08486                            Id = 5L,
 08487                            Code = "Deactivated",
 08488                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08489                            Description = "",
 08490                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08491                            IsDeleted = false,
 08492                            Name = "Отключено"
 08493                        });
 08494                });
 8495
 08496            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsType", b =>
 08497                {
 08498                    b.Property<long>("Id")
 08499                        .ValueGeneratedOnAdd()
 08500                        .HasColumnType("bigint")
 08501                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08502
 08503                    b.Property<string>("Code")
 08504                        .IsRequired()
 08505                        .HasColumnType("text");
 08506
 08507                    b.Property<long?>("CreatedByUserId")
 08508                        .HasColumnType("bigint");
 08509
 08510                    b.Property<DateTime>("CreationDateTime")
 08511                        .HasColumnType("timestamp without time zone");
 08512
 08513                    b.Property<string>("Description")
 08514                        .HasColumnType("text");
 08515
 08516                    b.Property<Guid>("GUID")
 08517                        .ValueGeneratedOnAdd()
 08518                        .HasColumnType("uuid");
 08519
 08520                    b.Property<bool>("IsDeleted")
 08521                        .HasColumnType("boolean");
 08522
 08523                    b.Property<DateTime?>("ModificationDateTime")
 08524                        .HasColumnType("timestamp without time zone");
 08525
 08526                    b.Property<long?>("ModifiedByUserId")
 08527                        .HasColumnType("bigint");
 08528
 08529                    b.Property<string>("Name")
 08530                        .IsRequired()
 08531                        .HasColumnType("text");
 08532
 08533                    b.Property<long?>("RecStateId")
 08534                        .HasColumnType("bigint");
 08535
 08536                    b.HasKey("Id");
 08537
 08538                    b.HasIndex("CreatedByUserId");
 08539
 08540                    b.HasIndex("ModifiedByUserId");
 08541
 08542                    b.HasIndex("RecStateId");
 08543
 08544                    b.ToTable("NotificationsType");
 08545
 08546                    b.HasData(
 08547                        new
 08548                        {
 08549                            Id = 1L,
 08550                            Code = "System",
 08551                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08552                            Description = "",
 08553                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08554                            IsDeleted = false,
 08555                            Name = "Системное"
 08556                        },
 08557                        new
 08558                        {
 08559                            Id = 2L,
 08560                            Code = "News",
 08561                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08562                            Description = "",
 08563                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08564                            IsDeleted = false,
 08565                            Name = "Новость"
 08566                        });
 08567                });
 8568
 08569            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Photo", b =>
 08570                {
 08571                    b.Property<long>("Id")
 08572                        .ValueGeneratedOnAdd()
 08573                        .HasColumnType("bigint")
 08574                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08575
 08576                    b.Property<long?>("CreatedByUserId")
 08577                        .HasColumnType("bigint");
 08578
 08579                    b.Property<DateTime>("CreationDateTime")
 08580                        .HasColumnType("timestamp without time zone");
 08581
 08582                    b.Property<int>("FullSizeHeight")
 08583                        .HasColumnType("integer");
 08584
 08585                    b.Property<string>("FullSizeUrl")
 08586                        .HasColumnType("text");
 08587
 08588                    b.Property<int>("FullSizeWidth")
 08589                        .HasColumnType("integer");
 08590
 08591                    b.Property<Guid>("GUID")
 08592                        .ValueGeneratedOnAdd()
 08593                        .HasColumnType("uuid");
 08594
 08595                    b.Property<long?>("GoodId")
 08596                        .HasColumnType("bigint");
 08597
 08598                    b.Property<bool>("IsDeleted")
 08599                        .HasColumnType("boolean");
 08600
 08601                    b.Property<DateTime?>("ModificationDateTime")
 08602                        .HasColumnType("timestamp without time zone");
 08603
 08604                    b.Property<long?>("ModifiedByUserId")
 08605                        .HasColumnType("bigint");
 08606
 08607                    b.Property<int>("PreviewHeight")
 08608                        .HasColumnType("integer");
 08609
 08610                    b.Property<string>("PreviewUrl")
 08611                        .HasColumnType("text");
 08612
 08613                    b.Property<int>("PreviewWidth")
 08614                        .HasColumnType("integer");
 08615
 08616                    b.Property<long?>("RecStateId")
 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.ToTable("Photos");
 08630                });
 8631
 08632            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceCurrent", b =>
 08633                {
 08634                    b.Property<long>("Id")
 08635                        .ValueGeneratedOnAdd()
 08636                        .HasColumnType("bigint")
 08637                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08638
 08639                    b.Property<long?>("CreatedByUserId")
 08640                        .HasColumnType("bigint");
 08641
 08642                    b.Property<DateTime>("CreationDateTime")
 08643                        .HasColumnType("timestamp without time zone");
 08644
 08645                    b.Property<Guid>("GUID")
 08646                        .ValueGeneratedOnAdd()
 08647                        .HasColumnType("uuid");
 08648
 08649                    b.Property<long>("GoodId")
 08650                        .HasColumnType("bigint");
 08651
 08652                    b.Property<bool>("IsDeleted")
 08653                        .HasColumnType("boolean");
 08654
 08655                    b.Property<DateTime?>("ModificationDateTime")
 08656                        .HasColumnType("timestamp without time zone");
 08657
 08658                    b.Property<long?>("ModifiedByUserId")
 08659                        .HasColumnType("bigint");
 08660
 08661                    b.Property<decimal>("Price")
 08662                        .HasColumnType("numeric");
 08663
 08664                    b.Property<long?>("RecStateId")
 08665                        .HasColumnType("bigint");
 08666
 08667                    b.Property<long>("SupplierDepartmentId")
 08668                        .HasColumnType("bigint");
 08669
 08670                    b.HasKey("Id");
 08671
 08672                    b.HasIndex("CreatedByUserId");
 08673
 08674                    b.HasIndex("GoodId");
 08675
 08676                    b.HasIndex("ModifiedByUserId");
 08677
 08678                    b.HasIndex("RecStateId");
 08679
 08680                    b.HasIndex("SupplierDepartmentId");
 08681
 08682                    b.ToTable("PricesCurrent");
 08683                });
 8684
 08685            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrend", b =>
 08686                {
 08687                    b.Property<long>("Id")
 08688                        .ValueGeneratedOnAdd()
 08689                        .HasColumnType("bigint")
 08690                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08691
 08692                    b.Property<DateTime>("BeginDate")
 08693                        .HasColumnType("timestamp without time zone");
 08694
 08695                    b.Property<long?>("CreatedByUserId")
 08696                        .HasColumnType("bigint");
 08697
 08698                    b.Property<DateTime>("CreationDateTime")
 08699                        .HasColumnType("timestamp without time zone");
 08700
 08701                    b.Property<string>("DocNumber")
 08702                        .IsRequired()
 08703                        .HasColumnType("text");
 08704
 08705                    b.Property<DateTime>("EndDate")
 08706                        .HasColumnType("timestamp without time zone");
 08707
 08708                    b.Property<Guid>("GUID")
 08709                        .ValueGeneratedOnAdd()
 08710                        .HasColumnType("uuid");
 08711
 08712                    b.Property<bool>("IsDeleted")
 08713                        .HasColumnType("boolean");
 08714
 08715                    b.Property<DateTime?>("ModificationDateTime")
 08716                        .HasColumnType("timestamp without time zone");
 08717
 08718                    b.Property<long?>("ModifiedByUserId")
 08719                        .HasColumnType("bigint");
 08720
 08721                    b.Property<long?>("RecStateId")
 08722                        .HasColumnType("bigint");
 08723
 08724                    b.Property<long>("SupplierDepartmentId")
 08725                        .HasColumnType("bigint");
 08726
 08727                    b.HasKey("Id");
 08728
 08729                    b.HasIndex("CreatedByUserId");
 08730
 08731                    b.HasIndex("ModifiedByUserId");
 08732
 08733                    b.HasIndex("RecStateId");
 08734
 08735                    b.HasIndex("SupplierDepartmentId");
 08736
 08737                    b.ToTable("PricesTrend");
 08738                });
 8739
 08740            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrendDetail", b =>
 08741                {
 08742                    b.Property<long>("Id")
 08743                        .ValueGeneratedOnAdd()
 08744                        .HasColumnType("bigint")
 08745                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08746
 08747                    b.Property<long?>("CreatedByUserId")
 08748                        .HasColumnType("bigint");
 08749
 08750                    b.Property<DateTime>("CreationDateTime")
 08751                        .HasColumnType("timestamp without time zone");
 08752
 08753                    b.Property<Guid>("GUID")
 08754                        .ValueGeneratedOnAdd()
 08755                        .HasColumnType("uuid");
 08756
 08757                    b.Property<long>("GoodId")
 08758                        .HasColumnType("bigint");
 08759
 08760                    b.Property<bool>("IsDeleted")
 08761                        .HasColumnType("boolean");
 08762
 08763                    b.Property<DateTime?>("ModificationDateTime")
 08764                        .HasColumnType("timestamp without time zone");
 08765
 08766                    b.Property<long?>("ModifiedByUserId")
 08767                        .HasColumnType("bigint");
 08768
 08769                    b.Property<decimal>("PriceNew")
 08770                        .HasColumnType("numeric");
 08771
 08772                    b.Property<decimal?>("PriceOld")
 08773                        .HasColumnType("numeric");
 08774
 08775                    b.Property<long>("PriceTrendId")
 08776                        .HasColumnType("bigint");
 08777
 08778                    b.Property<long?>("RecStateId")
 08779                        .HasColumnType("bigint");
 08780
 08781                    b.HasKey("Id");
 08782
 08783                    b.HasIndex("CreatedByUserId");
 08784
 08785                    b.HasIndex("ModifiedByUserId");
 08786
 08787                    b.HasIndex("PriceTrendId");
 08788
 08789                    b.HasIndex("RecStateId");
 08790
 08791                    b.HasIndex("GoodId", "PriceTrendId")
 08792                        .IsUnique();
 08793
 08794                    b.ToTable("PriceTrendDetails");
 08795                });
 8796
 08797            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoBid", b =>
 08798                {
 08799                    b.Property<long>("Id")
 08800                        .ValueGeneratedOnAdd()
 08801                        .HasColumnType("bigint")
 08802                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08803
 08804                    b.Property<long?>("CreatedByUserId")
 08805                        .HasColumnType("bigint");
 08806
 08807                    b.Property<DateTime>("CreationDate")
 08808                        .HasColumnType("timestamp without time zone");
 08809
 08810                    b.Property<DateTime>("CreationDateTime")
 08811                        .HasColumnType("timestamp without time zone");
 08812
 08813                    b.Property<long>("CustomerDepartmentId")
 08814                        .HasColumnType("bigint");
 08815
 08816                    b.Property<DateTime>("DateEnd")
 08817                        .HasColumnType("timestamp without time zone");
 08818
 08819                    b.Property<Guid>("GUID")
 08820                        .ValueGeneratedOnAdd()
 08821                        .HasColumnType("uuid");
 08822
 08823                    b.Property<long>("GoodId")
 08824                        .HasColumnType("bigint");
 08825
 08826                    b.Property<bool>("IsDeleted")
 08827                        .HasColumnType("boolean");
 08828
 08829                    b.Property<DateTime?>("ModificationDateTime")
 08830                        .HasColumnType("timestamp without time zone");
 08831
 08832                    b.Property<long?>("ModifiedByUserId")
 08833                        .HasColumnType("bigint");
 08834
 08835                    b.Property<decimal>("Price")
 08836                        .HasColumnType("numeric");
 08837
 08838                    b.Property<long>("PromoOfferId")
 08839                        .HasColumnType("bigint");
 08840
 08841                    b.Property<decimal>("Quantity")
 08842                        .HasColumnType("numeric");
 08843
 08844                    b.Property<long?>("RecStateId")
 08845                        .HasColumnType("bigint");
 08846
 08847                    b.Property<decimal>("Sum")
 08848                        .HasColumnType("numeric");
 08849
 08850                    b.HasKey("Id");
 08851
 08852                    b.HasIndex("CreatedByUserId");
 08853
 08854                    b.HasIndex("CustomerDepartmentId");
 08855
 08856                    b.HasIndex("GoodId");
 08857
 08858                    b.HasIndex("ModifiedByUserId");
 08859
 08860                    b.HasIndex("PromoOfferId");
 08861
 08862                    b.HasIndex("RecStateId");
 08863
 08864                    b.ToTable("PromoBids");
 08865                });
 8866
 08867            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoOffer", b =>
 08868                {
 08869                    b.Property<long>("Id")
 08870                        .ValueGeneratedOnAdd()
 08871                        .HasColumnType("bigint")
 08872                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08873
 08874                    b.Property<long?>("CreatedByUserId")
 08875                        .HasColumnType("bigint");
 08876
 08877                    b.Property<DateTime>("CreationDateTime")
 08878                        .HasColumnType("timestamp without time zone");
 08879
 08880                    b.Property<DateTime>("DateBegin")
 08881                        .HasColumnType("timestamp without time zone");
 08882
 08883                    b.Property<DateTime>("DateEnd")
 08884                        .HasColumnType("timestamp without time zone");
 08885
 08886                    b.Property<Guid>("GUID")
 08887                        .ValueGeneratedOnAdd()
 08888                        .HasColumnType("uuid");
 08889
 08890                    b.Property<long>("GoodId")
 08891                        .HasColumnType("bigint");
 08892
 08893                    b.Property<bool>("IsDeleted")
 08894                        .HasColumnType("boolean");
 08895
 08896                    b.Property<decimal?>("MaxQuantity")
 08897                        .HasColumnType("numeric");
 08898
 08899                    b.Property<decimal>("MinQuantity")
 08900                        .HasColumnType("numeric");
 08901
 08902                    b.Property<DateTime?>("ModificationDateTime")
 08903                        .HasColumnType("timestamp without time zone");
 08904
 08905                    b.Property<long?>("ModifiedByUserId")
 08906                        .HasColumnType("bigint");
 08907
 08908                    b.Property<decimal>("Price")
 08909                        .HasColumnType("numeric");
 08910
 08911                    b.Property<long?>("RecStateId")
 08912                        .HasColumnType("bigint");
 08913
 08914                    b.Property<long>("SupplierDepartmentId")
 08915                        .HasColumnType("bigint");
 08916
 08917                    b.HasKey("Id");
 08918
 08919                    b.HasIndex("CreatedByUserId");
 08920
 08921                    b.HasIndex("GoodId");
 08922
 08923                    b.HasIndex("ModifiedByUserId");
 08924
 08925                    b.HasIndex("RecStateId");
 08926
 08927                    b.HasIndex("SupplierDepartmentId");
 08928
 08929                    b.ToTable("PromoOffers");
 08930                });
 8931
 08932            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", b =>
 08933                {
 08934                    b.Property<long>("Id")
 08935                        .ValueGeneratedOnAdd()
 08936                        .HasColumnType("bigint")
 08937                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08938
 08939                    b.Property<string>("Code")
 08940                        .IsRequired()
 08941                        .HasColumnType("text");
 08942
 08943                    b.Property<long?>("CreatedByUserId")
 08944                        .HasColumnType("bigint");
 08945
 08946                    b.Property<DateTime>("CreationDateTime")
 08947                        .HasColumnType("timestamp without time zone");
 08948
 08949                    b.Property<string>("Description")
 08950                        .HasColumnType("text");
 08951
 08952                    b.Property<Guid>("GUID")
 08953                        .ValueGeneratedOnAdd()
 08954                        .HasColumnType("uuid");
 08955
 08956                    b.Property<bool>("IsDeleted")
 08957                        .HasColumnType("boolean");
 08958
 08959                    b.Property<DateTime?>("ModificationDateTime")
 08960                        .HasColumnType("timestamp without time zone");
 08961
 08962                    b.Property<long?>("ModifiedByUserId")
 08963                        .HasColumnType("bigint");
 08964
 08965                    b.Property<string>("Name")
 08966                        .IsRequired()
 08967                        .HasColumnType("text");
 08968
 08969                    b.Property<long?>("RecStateId")
 08970                        .HasColumnType("bigint");
 08971
 08972                    b.HasKey("Id");
 08973
 08974                    b.HasIndex("CreatedByUserId");
 08975
 08976                    b.HasIndex("ModifiedByUserId");
 08977
 08978                    b.HasIndex("RecStateId");
 08979
 08980                    b.ToTable("RecordsState");
 08981
 08982                    b.HasData(
 08983                        new
 08984                        {
 08985                            Id = 1L,
 08986                            Code = "Error",
 08987                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08988                            Description = "",
 08989                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08990                            IsDeleted = false,
 08991                            Name = "Ошибка"
 08992                        },
 08993                        new
 08994                        {
 08995                            Id = 2L,
 08996                            Code = "Active",
 08997                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08998                            Description = "",
 08999                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09000                            IsDeleted = false,
 09001                            Name = "Активно"
 09002                        },
 09003                        new
 09004                        {
 09005                            Id = 3L,
 09006                            Code = "Inactive",
 09007                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09008                            Description = "",
 09009                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09010                            IsDeleted = false,
 09011                            Name = "Неактивно"
 09012                        },
 09013                        new
 09014                        {
 09015                            Id = 4L,
 09016                            Code = "Deleted",
 09017                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09018                            Description = "",
 09019                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09020                            IsDeleted = false,
 09021                            Name = "Удалено"
 09022                        },
 09023                        new
 09024                        {
 09025                            Id = 5L,
 09026                            Code = "Empty",
 09027                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09028                            Description = "",
 09029                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09030                            IsDeleted = false,
 09031                            Name = "Пусто"
 09032                        });
 09033                });
 9034
 09035            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Rest", b =>
 09036                {
 09037                    b.Property<long>("Id")
 09038                        .ValueGeneratedOnAdd()
 09039                        .HasColumnType("bigint")
 09040                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09041
 09042                    b.Property<long?>("CreatedByUserId")
 09043                        .HasColumnType("bigint");
 09044
 09045                    b.Property<DateTime>("CreationDateTime")
 09046                        .HasColumnType("timestamp without time zone");
 09047
 09048                    b.Property<long>("DepartmentId")
 09049                        .HasColumnType("bigint");
 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<decimal>("Quantity")
 09068                        .HasColumnType("numeric");
 09069
 09070                    b.Property<long?>("RecStateId")
 09071                        .HasColumnType("bigint");
 09072
 09073                    b.HasKey("Id");
 09074
 09075                    b.HasIndex("CreatedByUserId");
 09076
 09077                    b.HasIndex("DepartmentId");
 09078
 09079                    b.HasIndex("ModifiedByUserId");
 09080
 09081                    b.HasIndex("RecStateId");
 09082
 09083                    b.HasIndex("GoodId", "DepartmentId")
 09084                        .IsUnique();
 09085
 09086                    b.ToTable("Rests");
 09087                });
 9088
 09089            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.RestHold", b =>
 09090                {
 09091                    b.Property<long>("Id")
 09092                        .ValueGeneratedOnAdd()
 09093                        .HasColumnType("bigint")
 09094                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09095
 09096                    b.Property<long?>("CreatedByUserId")
 09097                        .HasColumnType("bigint");
 09098
 09099                    b.Property<DateTime>("CreationDateTime")
 09100                        .HasColumnType("timestamp without time zone");
 09101
 09102                    b.Property<Guid>("GUID")
 09103                        .ValueGeneratedOnAdd()
 09104                        .HasColumnType("uuid");
 09105
 09106                    b.Property<long>("GoodId")
 09107                        .HasColumnType("bigint");
 09108
 09109                    b.Property<bool>("IsDeleted")
 09110                        .HasColumnType("boolean");
 09111
 09112                    b.Property<DateTime?>("ModificationDateTime")
 09113                        .HasColumnType("timestamp without time zone");
 09114
 09115                    b.Property<long?>("ModifiedByUserId")
 09116                        .HasColumnType("bigint");
 09117
 09118                    b.Property<long>("MovementId")
 09119                        .HasColumnType("bigint");
 09120
 09121                    b.Property<decimal>("Quantity")
 09122                        .HasColumnType("numeric");
 09123
 09124                    b.Property<long?>("RecStateId")
 09125                        .HasColumnType("bigint");
 09126
 09127                    b.HasKey("Id");
 09128
 09129                    b.HasIndex("CreatedByUserId");
 09130
 09131                    b.HasIndex("GoodId");
 09132
 09133                    b.HasIndex("ModifiedByUserId");
 09134
 09135                    b.HasIndex("MovementId");
 09136
 09137                    b.HasIndex("RecStateId");
 09138
 09139                    b.ToTable("RestHolds");
 09140                });
 9141
 09142            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", b =>
 09143                {
 09144                    b.Property<long>("Id")
 09145                        .ValueGeneratedOnAdd()
 09146                        .HasColumnType("bigint")
 09147                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09148
 09149                    b.Property<long?>("CreatedByUserId")
 09150                        .HasColumnType("bigint");
 09151
 09152                    b.Property<DateTime>("CreationDateTime")
 09153                        .HasColumnType("timestamp without time zone");
 09154
 09155                    b.Property<string>("Description")
 09156                        .HasColumnType("text");
 09157
 09158                    b.Property<Guid>("GUID")
 09159                        .ValueGeneratedOnAdd()
 09160                        .HasColumnType("uuid");
 09161
 09162                    b.Property<bool>("IsDeleted")
 09163                        .HasColumnType("boolean");
 09164
 09165                    b.Property<DateTime?>("ModificationDateTime")
 09166                        .HasColumnType("timestamp without time zone");
 09167
 09168                    b.Property<long?>("ModifiedByUserId")
 09169                        .HasColumnType("bigint");
 09170
 09171                    b.Property<string>("Name")
 09172                        .IsRequired()
 09173                        .HasColumnType("text");
 09174
 09175                    b.Property<long?>("RecStateId")
 09176                        .HasColumnType("bigint");
 09177
 09178                    b.HasKey("Id");
 09179
 09180                    b.HasIndex("CreatedByUserId");
 09181
 09182                    b.HasIndex("ModifiedByUserId");
 09183
 09184                    b.HasIndex("RecStateId");
 09185
 09186                    b.ToTable("Roles");
 09187
 09188                    b.HasData(
 09189                        new
 09190                        {
 09191                            Id = 1L,
 09192                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09193                            Description = "Администратор системы",
 09194                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09195                            IsDeleted = false,
 09196                            Name = "dd_sys_hi_level"
 09197                        },
 09198                        new
 09199                        {
 09200                            Id = 2L,
 09201                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09202                            Description = "Оператор системы",
 09203                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09204                            IsDeleted = false,
 09205                            Name = "dd_sys_low_level"
 09206                        },
 09207                        new
 09208                        {
 09209                            Id = 3L,
 09210                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09211                            Description = "Владелец магазина",
 09212                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09213                            IsDeleted = false,
 09214                            Name = "dd_cust_hi_level"
 09215                        },
 09216                        new
 09217                        {
 09218                            Id = 4L,
 09219                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09220                            Description = "Товаровед магазина",
 09221                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09222                            IsDeleted = false,
 09223                            Name = "dd_cust_mid_level"
 09224                        },
 09225                        new
 09226                        {
 09227                            Id = 5L,
 09228                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09229                            Description = "Продавец магазина",
 09230                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09231                            IsDeleted = false,
 09232                            Name = "dd_cust_low_level"
 09233                        },
 09234                        new
 09235                        {
 09236                            Id = 6L,
 09237                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09238                            Description = "Владелец поставщика (дистрибьютера)",
 09239                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09240                            IsDeleted = false,
 09241                            Name = "dd_supp_hi_level"
 09242                        },
 09243                        new
 09244                        {
 09245                            Id = 7L,
 09246                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09247                            Description = "Управляющий поставщика",
 09248                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09249                            IsDeleted = false,
 09250                            Name = "dd_supp_mid_level"
 09251                        },
 09252                        new
 09253                        {
 09254                            Id = 8L,
 09255                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09256                            Description = "Кладовщик поставщика",
 09257                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09258                            IsDeleted = false,
 09259                            Name = "dd_supp_low_level"
 09260                        },
 09261                        new
 09262                        {
 09263                            Id = 9L,
 09264                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09265                            Description = "Анонимный пользователь",
 09266                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09267                            IsDeleted = false,
 09268                            Name = "dd_anonym"
 09269                        });
 09270                });
 9271
 09272            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.SupplyContract", b =>
 09273                {
 09274                    b.Property<long>("Id")
 09275                        .ValueGeneratedOnAdd()
 09276                        .HasColumnType("bigint")
 09277                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09278
 09279                    b.Property<DateTime>("BeginDate")
 09280                        .HasColumnType("timestamp without time zone");
 09281
 09282                    b.Property<long>("BuyerId")
 09283                        .HasColumnType("bigint");
 09284
 09285                    b.Property<long?>("CreatedByUserId")
 09286                        .HasColumnType("bigint");
 09287
 09288                    b.Property<DateTime>("CreationDateTime")
 09289                        .HasColumnType("timestamp without time zone");
 09290
 09291                    b.Property<string>("DocumentNumber")
 09292                        .IsRequired()
 09293                        .HasColumnType("text");
 09294
 09295                    b.Property<DateTime>("EndDate")
 09296                        .HasColumnType("timestamp without time zone");
 09297
 09298                    b.Property<Guid>("GUID")
 09299                        .ValueGeneratedOnAdd()
 09300                        .HasColumnType("uuid");
 09301
 09302                    b.Property<bool>("IsDeleted")
 09303                        .HasColumnType("boolean");
 09304
 09305                    b.Property<DateTime?>("ModificationDateTime")
 09306                        .HasColumnType("timestamp without time zone");
 09307
 09308                    b.Property<long?>("ModifiedByUserId")
 09309                        .HasColumnType("bigint");
 09310
 09311                    b.Property<decimal>("PrepaimentPercent")
 09312                        .HasColumnType("numeric");
 09313
 09314                    b.Property<long?>("RecStateId")
 09315                        .HasColumnType("bigint");
 09316
 09317                    b.Property<long>("SellerId")
 09318                        .HasColumnType("bigint");
 09319
 09320                    b.Property<DateTime>("SignOffDate")
 09321                        .HasColumnType("timestamp without time zone");
 09322
 09323                    b.Property<decimal>("TradeRatio")
 09324                        .HasColumnType("numeric");
 09325
 09326                    b.HasKey("Id");
 09327
 09328                    b.HasIndex("BuyerId");
 09329
 09330                    b.HasIndex("CreatedByUserId");
 09331
 09332                    b.HasIndex("DocumentNumber");
 09333
 09334                    b.HasIndex("ModifiedByUserId");
 09335
 09336                    b.HasIndex("RecStateId");
 09337
 09338                    b.HasIndex("SellerId");
 09339
 09340                    b.ToTable("SupplyContract");
 09341                });
 9342
 09343            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.TaxSystem", b =>
 09344                {
 09345                    b.Property<long>("Id")
 09346                        .ValueGeneratedOnAdd()
 09347                        .HasColumnType("bigint")
 09348                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09349
 09350                    b.Property<string>("Code")
 09351                        .HasColumnType("text");
 09352
 09353                    b.Property<long?>("CreatedByUserId")
 09354                        .HasColumnType("bigint");
 09355
 09356                    b.Property<DateTime>("CreationDateTime")
 09357                        .HasColumnType("timestamp without time zone");
 09358
 09359                    b.Property<string>("Description")
 09360                        .HasColumnType("text");
 09361
 09362                    b.Property<Guid>("GUID")
 09363                        .ValueGeneratedOnAdd()
 09364                        .HasColumnType("uuid");
 09365
 09366                    b.Property<bool>("IsDeleted")
 09367                        .HasColumnType("boolean");
 09368
 09369                    b.Property<DateTime?>("ModificationDateTime")
 09370                        .HasColumnType("timestamp without time zone");
 09371
 09372                    b.Property<long?>("ModifiedByUserId")
 09373                        .HasColumnType("bigint");
 09374
 09375                    b.Property<string>("Name")
 09376                        .HasColumnType("text");
 09377
 09378                    b.Property<long?>("RecStateId")
 09379                        .HasColumnType("bigint");
 09380
 09381                    b.HasKey("Id");
 09382
 09383                    b.HasIndex("CreatedByUserId");
 09384
 09385                    b.HasIndex("ModifiedByUserId");
 09386
 09387                    b.HasIndex("RecStateId");
 09388
 09389                    b.ToTable("TaxSystems");
 09390
 09391                    b.HasData(
 09392                        new
 09393                        {
 09394                            Id = 1L,
 09395                            Code = "УСН",
 09396                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09397                            Description = "Упрощенка",
 09398                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09399                            IsDeleted = false,
 09400                            Name = "Упрощенная система налогообложения"
 09401                        },
 09402                        new
 09403                        {
 09404                            Id = 2L,
 09405                            Code = "ЕНВД",
 09406                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09407                            Description = "Вмененка",
 09408                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09409                            IsDeleted = false,
 09410                            Name = "Единый налог на вмененные доходы"
 09411                        },
 09412                        new
 09413                        {
 09414                            Id = 3L,
 09415                            Code = "ES",
 09416                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09417                            Description = "Единый сельскохозяйственный налог",
 09418                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09419                            IsDeleted = false,
 09420                            Name = "ЕСХН"
 09421                        },
 09422                        new
 09423                        {
 09424                            Id = 4L,
 09425                            Code = "ОСН",
 09426                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09427                            Description = "Стандартная",
 09428                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09429                            IsDeleted = false,
 09430                            Name = "Основная система налогообложения"
 09431                        });
 09432                });
 9433
 09434            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UnitsKind", b =>
 09435                {
 09436                    b.Property<long>("Id")
 09437                        .ValueGeneratedOnAdd()
 09438                        .HasColumnType("bigint")
 09439                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09440
 09441                    b.Property<string>("Code")
 09442                        .IsRequired()
 09443                        .HasColumnType("text");
 09444
 09445                    b.Property<long?>("CreatedByUserId")
 09446                        .HasColumnType("bigint");
 09447
 09448                    b.Property<DateTime>("CreationDateTime")
 09449                        .HasColumnType("timestamp without time zone");
 09450
 09451                    b.Property<string>("Description")
 09452                        .HasColumnType("text");
 09453
 09454                    b.Property<Guid>("GUID")
 09455                        .ValueGeneratedOnAdd()
 09456                        .HasColumnType("uuid");
 09457
 09458                    b.Property<bool>("IsDeleted")
 09459                        .HasColumnType("boolean");
 09460
 09461                    b.Property<DateTime?>("ModificationDateTime")
 09462                        .HasColumnType("timestamp without time zone");
 09463
 09464                    b.Property<long?>("ModifiedByUserId")
 09465                        .HasColumnType("bigint");
 09466
 09467                    b.Property<string>("Name")
 09468                        .IsRequired()
 09469                        .HasColumnType("text");
 09470
 09471                    b.Property<long?>("RecStateId")
 09472                        .HasColumnType("bigint");
 09473
 09474                    b.Property<string>("StrCode")
 09475                        .HasColumnType("text");
 09476
 09477                    b.HasKey("Id");
 09478
 09479                    b.HasIndex("CreatedByUserId");
 09480
 09481                    b.HasIndex("ModifiedByUserId");
 09482
 09483                    b.HasIndex("RecStateId");
 09484
 09485                    b.ToTable("UnitsKind");
 09486
 09487                    b.HasData(
 09488                        new
 09489                        {
 09490                            Id = 1L,
 09491                            Code = "1",
 09492                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09493                            Description = "",
 09494                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09495                            IsDeleted = false,
 09496                            Name = "Неизвестно",
 09497                            StrCode = "Unknown"
 09498                        },
 09499                        new
 09500                        {
 09501                            Id = 2L,
 09502                            Code = "166",
 09503                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09504                            Description = "Килограмм",
 09505                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09506                            IsDeleted = false,
 09507                            Name = "КГ",
 09508                            StrCode = "Kg"
 09509                        },
 09510                        new
 09511                        {
 09512                            Id = 3L,
 09513                            Code = "112",
 09514                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09515                            Description = "Литр",
 09516                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09517                            IsDeleted = false,
 09518                            Name = "Л",
 09519                            StrCode = "Litre"
 09520                        },
 09521                        new
 09522                        {
 09523                            Id = 4L,
 09524                            Code = "6",
 09525                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09526                            Description = "Метр",
 09527                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09528                            IsDeleted = false,
 09529                            Name = "М",
 09530                            StrCode = "Meter"
 09531                        },
 09532                        new
 09533                        {
 09534                            Id = 5L,
 09535                            Code = "796",
 09536                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09537                            Description = "Штука (1 единица товара)",
 09538                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09539                            IsDeleted = false,
 09540                            Name = "ШТ",
 09541                            StrCode = "Item"
 09542                        },
 09543                        new
 09544                        {
 09545                            Id = 6L,
 09546                            Code = "55",
 09547                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09548                            Description = "Квадратный метр",
 09549                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09550                            IsDeleted = false,
 09551                            Name = "М2",
 09552                            StrCode = "SquareMetre"
 09553                        },
 09554                        new
 09555                        {
 09556                            Id = 7L,
 09557                            Code = "113",
 09558                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09559                            Description = "Кубический метр",
 09560                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09561                            IsDeleted = false,
 09562                            Name = "М3",
 09563                            StrCode = "CubicMetre"
 09564                        });
 09565                });
 9566
 09567            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Upload", b =>
 09568                {
 09569                    b.Property<long>("Id")
 09570                        .ValueGeneratedOnAdd()
 09571                        .HasColumnType("bigint")
 09572                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09573
 09574                    b.Property<long?>("CreatedByUserId")
 09575                        .HasColumnType("bigint");
 09576
 09577                    b.Property<DateTime>("CreationDateTime")
 09578                        .HasColumnType("timestamp without time zone");
 09579
 09580                    b.Property<Guid>("GUID")
 09581                        .ValueGeneratedOnAdd()
 09582                        .HasColumnType("uuid");
 09583
 09584                    b.Property<bool>("IsDeleted")
 09585                        .HasColumnType("boolean");
 09586
 09587                    b.Property<DateTime?>("ModificationDateTime")
 09588                        .HasColumnType("timestamp without time zone");
 09589
 09590                    b.Property<long?>("ModifiedByUserId")
 09591                        .HasColumnType("bigint");
 09592
 09593                    b.Property<long?>("RecStateId")
 09594                        .HasColumnType("bigint");
 09595
 09596                    b.Property<byte[]>("ResultFile")
 09597                        .HasColumnType("bytea");
 09598
 09599                    b.Property<byte[]>("SourceFile")
 09600                        .HasColumnType("bytea");
 09601
 09602                    b.Property<int>("SourceRecordCount")
 09603                        .HasColumnType("integer");
 09604
 09605                    b.Property<int>("Status")
 09606                        .HasColumnType("integer");
 09607
 09608                    b.Property<int>("UploadedRecordCount")
 09609                        .HasColumnType("integer");
 09610
 09611                    b.HasKey("Id");
 09612
 09613                    b.HasIndex("CreatedByUserId");
 09614
 09615                    b.HasIndex("ModifiedByUserId");
 09616
 09617                    b.HasIndex("RecStateId");
 09618
 09619                    b.ToTable("Uploads");
 09620                });
 9621
 09622            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UploadItem", b =>
 09623                {
 09624                    b.Property<long>("Id")
 09625                        .ValueGeneratedOnAdd()
 09626                        .HasColumnType("bigint")
 09627                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09628
 09629                    b.Property<long?>("CreatedByUserId")
 09630                        .HasColumnType("bigint");
 09631
 09632                    b.Property<DateTime>("CreationDateTime")
 09633                        .HasColumnType("timestamp without time zone");
 09634
 09635                    b.Property<long>("EndityId")
 09636                        .HasColumnType("bigint");
 09637
 09638                    b.Property<string>("EntityName")
 09639                        .IsRequired()
 09640                        .HasColumnType("text");
 09641
 09642                    b.Property<Guid>("GUID")
 09643                        .ValueGeneratedOnAdd()
 09644                        .HasColumnType("uuid");
 09645
 09646                    b.Property<bool>("IsDeleted")
 09647                        .HasColumnType("boolean");
 09648
 09649                    b.Property<DateTime?>("ModificationDateTime")
 09650                        .HasColumnType("timestamp without time zone");
 09651
 09652                    b.Property<long?>("ModifiedByUserId")
 09653                        .HasColumnType("bigint");
 09654
 09655                    b.Property<long?>("RecStateId")
 09656                        .HasColumnType("bigint");
 09657
 09658                    b.Property<long>("UploadId")
 09659                        .HasColumnType("bigint");
 09660
 09661                    b.HasKey("Id");
 09662
 09663                    b.HasIndex("CreatedByUserId");
 09664
 09665                    b.HasIndex("ModifiedByUserId");
 09666
 09667                    b.HasIndex("RecStateId");
 09668
 09669                    b.HasIndex("UploadId");
 09670
 09671                    b.ToTable("UploadItems");
 09672                });
 9673
 09674            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", b =>
 09675                {
 09676                    b.Property<long>("Id")
 09677                        .ValueGeneratedOnAdd()
 09678                        .HasColumnType("bigint")
 09679                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09680
 09681                    b.Property<long?>("ContragentId")
 09682                        .HasColumnType("bigint");
 09683
 09684                    b.Property<long?>("CreatedByUserId")
 09685                        .HasColumnType("bigint");
 09686
 09687                    b.Property<DateTime>("CreationDateTime")
 09688                        .HasColumnType("timestamp without time zone");
 09689
 09690                    b.Property<string>("Email")
 09691                        .HasColumnType("text");
 09692
 09693                    b.Property<Guid>("ExternalKey")
 09694                        .ValueGeneratedOnAdd()
 09695                        .HasColumnType("uuid");
 09696
 09697                    b.Property<string>("FirstName")
 09698                        .IsRequired()
 09699                        .HasColumnType("text");
 09700
 09701                    b.Property<Guid>("GUID")
 09702                        .ValueGeneratedOnAdd()
 09703                        .HasColumnType("uuid");
 09704
 09705                    b.Property<bool>("IsBlocked")
 09706                        .HasColumnType("boolean");
 09707
 09708                    b.Property<bool>("IsContactPerson")
 09709                        .HasColumnType("boolean");
 09710
 09711                    b.Property<bool>("IsDeleted")
 09712                        .HasColumnType("boolean");
 09713
 09714                    b.Property<string>("LastName")
 09715                        .IsRequired()
 09716                        .HasColumnType("text");
 09717
 09718                    b.Property<string>("Login")
 09719                        .HasColumnType("text");
 09720
 09721                    b.Property<string>("MiddleName")
 09722                        .HasColumnType("text");
 09723
 09724                    b.Property<DateTime?>("ModificationDateTime")
 09725                        .HasColumnType("timestamp without time zone");
 09726
 09727                    b.Property<long?>("ModifiedByUserId")
 09728                        .HasColumnType("bigint");
 09729
 09730                    b.Property<string>("Phone")
 09731                        .HasColumnType("text");
 09732
 09733                    b.Property<string>("Position")
 09734                        .HasColumnType("text");
 09735
 09736                    b.Property<long?>("RecStateId")
 09737                        .HasColumnType("bigint");
 09738
 09739                    b.HasKey("Id");
 09740
 09741                    b.HasIndex("ContragentId");
 09742
 09743                    b.HasIndex("CreatedByUserId");
 09744
 09745                    b.HasIndex("Email");
 09746
 09747                    b.HasIndex("LastName");
 09748
 09749                    b.HasIndex("Login");
 09750
 09751                    b.HasIndex("ModifiedByUserId");
 09752
 09753                    b.HasIndex("Phone");
 09754
 09755                    b.HasIndex("RecStateId");
 09756
 09757                    b.ToTable("Users");
 09758
 09759                    b.HasData(
 09760                        new
 09761                        {
 09762                            Id = -1L,
 09763                            ContragentId = -2L,
 09764                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09765                            Email = "EmbeddedSvetaAdmin@dd.com",
 09766                            ExternalKey = new Guid("964c5734-ba34-43d0-8770-b22b665e9abd"),
 09767                            FirstName = "ServiceUser",
 09768                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09769                            IsBlocked = false,
 09770                            IsContactPerson = true,
 09771                            IsDeleted = false,
 09772                            LastName = "1",
 09773                            Login = "svetaAdmin",
 09774                            MiddleName = "1",
 09775                            Phone = "1",
 09776                            Position = "1"
 09777                        },
 09778                        new
 09779                        {
 09780                            Id = -2L,
 09781                            ContragentId = -1L,
 09782                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09783                            Email = "EmbeddedAnonymUser@dd.com",
 09784                            ExternalKey = new Guid("3ce2ae32-9028-46b6-afbe-ad4feec0a016"),
 09785                            FirstName = "Anonym User",
 09786                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09787                            IsBlocked = false,
 09788                            IsContactPerson = true,
 09789                            IsDeleted = false,
 09790                            LastName = "1",
 09791                            Login = "Anonym User",
 09792                            MiddleName = "Anonym User",
 09793                            Phone = "1",
 09794                            Position = "Анонимная УЗ, не удалять"
 09795                        });
 09796                });
 9797
 09798            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserDepartment", b =>
 09799                {
 09800                    b.Property<long>("UserId")
 09801                        .HasColumnType("bigint");
 09802
 09803                    b.Property<long>("DepartmentId")
 09804                        .HasColumnType("bigint");
 09805
 09806                    b.Property<long?>("CreatedByUserId")
 09807                        .HasColumnType("bigint");
 09808
 09809                    b.Property<DateTime>("CreationDateTime")
 09810                        .HasColumnType("timestamp without time zone");
 09811
 09812                    b.Property<Guid>("GUID")
 09813                        .ValueGeneratedOnAdd()
 09814                        .HasColumnType("uuid");
 09815
 09816                    b.HasKey("UserId", "DepartmentId");
 09817
 09818                    b.HasIndex("DepartmentId");
 09819
 09820                    b.ToTable("UserDepartment");
 09821
 09822                    b.HasData(
 09823                        new
 09824                        {
 09825                            UserId = -2L,
 09826                            DepartmentId = -1L,
 09827                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09828                            GUID = new Guid("00000000-0000-0000-0000-000000000000")
 09829                        });
 09830                });
 9831
 09832            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserRole", b =>
 09833                {
 09834                    b.Property<long>("UserId")
 09835                        .HasColumnType("bigint");
 09836
 09837                    b.Property<long>("RoleId")
 09838                        .HasColumnType("bigint");
 09839
 09840                    b.Property<long?>("CreatedByUserId")
 09841                        .HasColumnType("bigint");
 09842
 09843                    b.Property<DateTime>("CreationDateTime")
 09844                        .HasColumnType("timestamp without time zone");
 09845
 09846                    b.Property<Guid>("GUID")
 09847                        .ValueGeneratedOnAdd()
 09848                        .HasColumnType("uuid");
 09849
 09850                    b.HasKey("UserId", "RoleId");
 09851
 09852                    b.HasIndex("RoleId");
 09853
 09854                    b.ToTable("UserRole");
 09855                });
 9856
 09857            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.VatsKind", b =>
 09858                {
 09859                    b.Property<long>("Id")
 09860                        .ValueGeneratedOnAdd()
 09861                        .HasColumnType("bigint")
 09862                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09863
 09864                    b.Property<string>("Code")
 09865                        .IsRequired()
 09866                        .HasColumnType("text");
 09867
 09868                    b.Property<long?>("CreatedByUserId")
 09869                        .HasColumnType("bigint");
 09870
 09871                    b.Property<DateTime>("CreationDateTime")
 09872                        .HasColumnType("timestamp without time zone");
 09873
 09874                    b.Property<string>("Description")
 09875                        .HasColumnType("text");
 09876
 09877                    b.Property<Guid>("GUID")
 09878                        .ValueGeneratedOnAdd()
 09879                        .HasColumnType("uuid");
 09880
 09881                    b.Property<bool>("IsDeleted")
 09882                        .HasColumnType("boolean");
 09883
 09884                    b.Property<DateTime?>("ModificationDateTime")
 09885                        .HasColumnType("timestamp without time zone");
 09886
 09887                    b.Property<long?>("ModifiedByUserId")
 09888                        .HasColumnType("bigint");
 09889
 09890                    b.Property<string>("Name")
 09891                        .IsRequired()
 09892                        .HasColumnType("text");
 09893
 09894                    b.Property<long?>("RecStateId")
 09895                        .HasColumnType("bigint");
 09896
 09897                    b.Property<string>("StrCode")
 09898                        .HasColumnType("text");
 09899
 09900                    b.HasKey("Id");
 09901
 09902                    b.HasIndex("CreatedByUserId");
 09903
 09904                    b.HasIndex("ModifiedByUserId");
 09905
 09906                    b.HasIndex("RecStateId");
 09907
 09908                    b.ToTable("VatsKind");
 09909
 09910                    b.HasData(
 09911                        new
 09912                        {
 09913                            Id = 1L,
 09914                            Code = "1",
 09915                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09916                            Description = "",
 09917                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09918                            IsDeleted = false,
 09919                            Name = "0%",
 09920                            StrCode = "Zero"
 09921                        },
 09922                        new
 09923                        {
 09924                            Id = 2L,
 09925                            Code = "10",
 09926                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09927                            Description = "",
 09928                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09929                            IsDeleted = false,
 09930                            Name = "10%",
 09931                            StrCode = "Ten"
 09932                        },
 09933                        new
 09934                        {
 09935                            Id = 3L,
 09936                            Code = "20",
 09937                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 09938                            Description = "",
 09939                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09940                            IsDeleted = false,
 09941                            Name = "20%",
 09942                            StrCode = "Twenty"
 09943                        });
 09944                });
 9945
 09946            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransaction", b =>
 09947                {
 09948                    b.Property<long>("Id")
 09949                        .ValueGeneratedOnAdd()
 09950                        .HasColumnType("bigint")
 09951                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09952
 09953                    b.Property<long?>("CreatedByUserId")
 09954                        .HasColumnType("bigint");
 09955
 09956                    b.Property<DateTime>("CreationDateTime")
 09957                        .HasColumnType("timestamp without time zone");
 09958
 09959                    b.Property<Guid>("GUID")
 09960                        .ValueGeneratedOnAdd()
 09961                        .HasColumnType("uuid");
 09962
 09963                    b.Property<bool>("IsDeleted")
 09964                        .HasColumnType("boolean");
 09965
 09966                    b.Property<DateTime?>("ModificationDateTime")
 09967                        .HasColumnType("timestamp without time zone");
 09968
 09969                    b.Property<long?>("ModifiedByUserId")
 09970                        .HasColumnType("bigint");
 09971
 09972                    b.Property<long?>("MovementId")
 09973                        .HasColumnType("bigint");
 09974
 09975                    b.Property<long?>("RecStateId")
 09976                        .HasColumnType("bigint");
 09977
 09978                    b.Property<string>("SmsId")
 09979                        .HasColumnType("text");
 09980
 09981                    b.Property<long?>("StatusId")
 09982                        .HasColumnType("bigint");
 09983
 09984                    b.Property<decimal>("Sum")
 09985                        .HasColumnType("numeric");
 09986
 09987                    b.Property<string>("TransactionId")
 09988                        .HasColumnType("text");
 09989
 09990                    b.HasKey("Id");
 09991
 09992                    b.HasIndex("CreatedByUserId");
 09993
 09994                    b.HasIndex("ModifiedByUserId");
 09995
 09996                    b.HasIndex("MovementId");
 09997
 09998                    b.HasIndex("RecStateId");
 09999
 010000                    b.HasIndex("StatusId");
 010001
 010002                    b.ToTable("WalletTransactions");
 010003                });
 10004
 010005            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransactionStatus", b =>
 010006                {
 010007                    b.Property<long>("Id")
 010008                        .ValueGeneratedOnAdd()
 010009                        .HasColumnType("bigint")
 010010                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 010011
 010012                    b.Property<string>("Code")
 010013                        .IsRequired()
 010014                        .HasColumnType("text");
 010015
 010016                    b.Property<long?>("CreatedByUserId")
 010017                        .HasColumnType("bigint");
 010018
 010019                    b.Property<DateTime>("CreationDateTime")
 010020                        .HasColumnType("timestamp without time zone");
 010021
 010022                    b.Property<string>("Description")
 010023                        .HasColumnType("text");
 010024
 010025                    b.Property<Guid>("GUID")
 010026                        .ValueGeneratedOnAdd()
 010027                        .HasColumnType("uuid");
 010028
 010029                    b.Property<bool>("IsDeleted")
 010030                        .HasColumnType("boolean");
 010031
 010032                    b.Property<DateTime?>("ModificationDateTime")
 010033                        .HasColumnType("timestamp without time zone");
 010034
 010035                    b.Property<long?>("ModifiedByUserId")
 010036                        .HasColumnType("bigint");
 010037
 010038                    b.Property<string>("Name")
 010039                        .IsRequired()
 010040                        .HasColumnType("text");
 010041
 010042                    b.Property<long?>("RecStateId")
 010043                        .HasColumnType("bigint");
 010044
 010045                    b.HasKey("Id");
 010046
 010047                    b.HasIndex("CreatedByUserId");
 010048
 010049                    b.HasIndex("ModifiedByUserId");
 010050
 010051                    b.HasIndex("RecStateId");
 010052
 010053                    b.ToTable("WalletTransactionStatuses");
 010054
 010055                    b.HasData(
 010056                        new
 010057                        {
 010058                            Id = 1L,
 010059                            Code = "WaitSms",
 010060                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 010061                            Description = "",
 010062                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 010063                            IsDeleted = false,
 010064                            Name = "Ожидание смс подтверждения"
 010065                        },
 010066                        new
 010067                        {
 010068                            Id = 2L,
 010069                            Code = "Hold",
 010070                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 010071                            Description = "",
 010072                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 010073                            IsDeleted = false,
 010074                            Name = "Холдировано"
 010075                        },
 010076                        new
 010077                        {
 010078                            Id = 3L,
 010079                            Code = "Confirm",
 010080                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 010081                            Description = "",
 010082                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 010083                            IsDeleted = false,
 010084                            Name = "Подтверждено"
 010085                        },
 010086                        new
 010087                        {
 010088                            Id = 4L,
 010089                            Code = "Cancel",
 010090                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 010091                            Description = "",
 010092                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 010093                            IsDeleted = false,
 010094                            Name = "Отменено"
 010095                        });
 010096                });
 10097
 010098            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WorkSchedule", b =>
 010099                {
 010100                    b.Property<long>("Id")
 010101                        .ValueGeneratedOnAdd()
 010102                        .HasColumnType("bigint")
 010103                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 010104
 010105                    b.Property<DateTime>("BeginTime")
 010106                        .HasColumnType("timestamp without time zone");
 010107
 010108                    b.Property<long?>("CreatedByUserId")
 010109                        .HasColumnType("bigint");
 010110
 010111                    b.Property<DateTime>("CreationDateTime")
 010112                        .HasColumnType("timestamp without time zone");
 010113
 010114                    b.Property<DateTime>("EndTime")
 010115                        .HasColumnType("timestamp without time zone");
 010116
 010117                    b.Property<Guid>("GUID")
 010118                        .ValueGeneratedOnAdd()
 010119                        .HasColumnType("uuid");
 010120
 010121                    b.Property<bool>("IsDeleted")
 010122                        .HasColumnType("boolean");
 010123
 010124                    b.Property<bool>("IsWorkingDay")
 010125                        .HasColumnType("boolean");
 010126
 010127                    b.Property<DateTime?>("ModificationDateTime")
 010128                        .HasColumnType("timestamp without time zone");
 010129
 010130                    b.Property<long?>("ModifiedByUserId")
 010131                        .HasColumnType("bigint");
 010132
 010133                    b.Property<long?>("RecStateId")
 010134                        .HasColumnType("bigint");
 010135
 010136                    b.HasKey("Id");
 010137
 010138                    b.HasIndex("CreatedByUserId");
 010139
 010140                    b.HasIndex("ModifiedByUserId");
 010141
 010142                    b.HasIndex("RecStateId");
 010143
 010144                    b.ToTable("WorkScheduler");
 010145                });
 10146
 010147            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", b =>
 010148                {
 010149                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010150                        .WithMany()
 010151                        .HasForeignKey("CreatedByUserId");
 010152
 010153                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010154                        .WithMany()
 010155                        .HasForeignKey("ModifiedByUserId");
 010156
 010157                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010158                        .WithMany()
 010159                        .HasForeignKey("RecStateId");
 010160                });
 10161
 010162            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.BankAccount", b =>
 010163                {
 010164                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Contragent")
 010165                        .WithMany("BankAccounts")
 010166                        .HasForeignKey("ContragentId");
 010167
 010168                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010169                        .WithMany()
 010170                        .HasForeignKey("CreatedByUserId");
 010171
 010172                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010173                        .WithMany()
 010174                        .HasForeignKey("ModifiedByUserId");
 010175
 010176                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010177                        .WithMany()
 010178                        .HasForeignKey("RecStateId");
 010179                });
 10180
 010181            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.BarCode", b =>
 010182                {
 010183                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010184                        .WithMany()
 010185                        .HasForeignKey("CreatedByUserId");
 010186
 010187                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", null)
 010188                        .WithMany("Barcodes")
 010189                        .HasForeignKey("GoodId");
 010190
 010191                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010192                        .WithMany()
 010193                        .HasForeignKey("ModifiedByUserId");
 010194
 010195                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010196                        .WithMany()
 010197                        .HasForeignKey("RecStateId");
 010198                });
 10199
 010200            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", b =>
 010201                {
 010202                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010203                        .WithMany()
 010204                        .HasForeignKey("CreatedByUserId");
 010205
 010206                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010207                        .WithMany()
 010208                        .HasForeignKey("ModifiedByUserId");
 010209
 010210                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", "Parent")
 010211                        .WithMany()
 010212                        .HasForeignKey("ParentId");
 010213
 010214                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010215                        .WithMany()
 010216                        .HasForeignKey("RecStateId");
 010217                });
 10218
 010219            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", b =>
 010220                {
 010221                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010222                        .WithMany()
 010223                        .HasForeignKey("CreatedByUserId");
 010224
 010225                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010226                        .WithMany()
 010227                        .HasForeignKey("ModifiedByUserId");
 010228
 010229                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", "Parent")
 010230                        .WithMany()
 010231                        .HasForeignKey("ParentId");
 010232
 010233                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010234                        .WithMany()
 010235                        .HasForeignKey("RecStateId");
 010236                });
 10237
 010238            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Cluster", b =>
 010239                {
 010240                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010241                        .WithMany()
 010242                        .HasForeignKey("CreatedByUserId");
 010243
 010244                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010245                        .WithMany()
 010246                        .HasForeignKey("ModifiedByUserId");
 010247
 010248                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010249                        .WithMany()
 010250                        .HasForeignKey("RecStateId");
 010251
 010252                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Warehouse")
 010253                        .WithMany()
 010254                        .HasForeignKey("WarehouseId")
 010255                        .OnDelete(DeleteBehavior.Cascade)
 010256                        .IsRequired();
 010257                });
 10258
 010259            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", b =>
 010260                {
 010261                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.ContragentsKind", "ContragentsKind")
 010262                        .WithMany()
 010263                        .HasForeignKey("ContragentsKindId")
 010264                        .OnDelete(DeleteBehavior.Cascade)
 010265                        .IsRequired();
 010266
 010267                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010268                        .WithMany()
 010269                        .HasForeignKey("CreatedByUserId");
 010270
 010271                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", "JuridicAddress")
 010272                        .WithMany()
 010273                        .HasForeignKey("JuridicAddressId")
 010274                        .OnDelete(DeleteBehavior.Cascade)
 010275                        .IsRequired();
 010276
 010277                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010278                        .WithMany()
 010279                        .HasForeignKey("ModifiedByUserId");
 010280
 010281                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "Owner")
 010282                        .WithMany()
 010283                        .HasForeignKey("OwnerId")
 010284                        .OnDelete(DeleteBehavior.Cascade)
 010285                        .IsRequired();
 010286
 010287                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", "PhysicAddress")
 010288                        .WithMany()
 010289                        .HasForeignKey("PhysicAddressId")
 010290                        .OnDelete(DeleteBehavior.Cascade)
 010291                        .IsRequired();
 010292
 010293                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010294                        .WithMany()
 010295                        .HasForeignKey("RecStateId");
 010296
 010297                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.TaxSystem", "TaxSystem")
 010298                        .WithMany()
 010299                        .HasForeignKey("TaxSystemId");
 010300                });
 10301
 010302            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ContragentsKind", 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.ControlAccess", b =>
 010318                {
 010319                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010320                        .WithMany()
 010321                        .HasForeignKey("CreatedByUserId");
 010322
 010323                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010324                        .WithMany()
 010325                        .HasForeignKey("ModifiedByUserId");
 010326
 010327                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010328                        .WithMany()
 010329                        .HasForeignKey("RecStateId");
 010330
 010331                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", "Role")
 010332                        .WithMany("ControlsAccess")
 010333                        .HasForeignKey("RoleId")
 010334                        .OnDelete(DeleteBehavior.Cascade)
 010335                        .IsRequired();
 010336                });
 10337
 010338            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Country", b =>
 010339                {
 010340                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010341                        .WithMany()
 010342                        .HasForeignKey("CreatedByUserId");
 010343
 010344                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010345                        .WithMany()
 010346                        .HasForeignKey("ModifiedByUserId");
 010347
 010348                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010349                        .WithMany()
 010350                        .HasForeignKey("RecStateId");
 010351                });
 10352
 010353            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Currency", b =>
 010354                {
 010355                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010356                        .WithMany()
 010357                        .HasForeignKey("CreatedByUserId");
 010358
 010359                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010360                        .WithMany()
 010361                        .HasForeignKey("ModifiedByUserId");
 010362
 010363                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010364                        .WithMany()
 010365                        .HasForeignKey("RecStateId");
 010366                });
 10367
 010368            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", b =>
 010369                {
 010370                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", "ActualAddress")
 010371                        .WithMany()
 010372                        .HasForeignKey("ActualAddressId");
 010373
 010374                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Cluster", "Cluster")
 010375                        .WithMany("Departments")
 010376                        .HasForeignKey("ClusterId");
 010377
 010378                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Contragent")
 010379                        .WithMany("Departments")
 010380                        .HasForeignKey("ContragentId")
 010381                        .OnDelete(DeleteBehavior.Cascade)
 010382                        .IsRequired();
 010383
 010384                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010385                        .WithMany()
 010386                        .HasForeignKey("CreatedByUserId");
 010387
 010388                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsKind", "Kind")
 010389                        .WithMany()
 010390                        .HasForeignKey("KindId");
 010391
 010392                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010393                        .WithMany()
 010394                        .HasForeignKey("ModifiedByUserId");
 010395
 010396                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010397                        .WithMany()
 010398                        .HasForeignKey("RecStateId");
 010399
 010400                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsStatus", "Status")
 010401                        .WithMany()
 010402                        .HasForeignKey("StatusId");
 010403                });
 10404
 010405            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentCategoryRatio", b =>
 010406                {
 010407                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", "Category")
 010408                        .WithMany("DepartmentCategoryRatios")
 010409                        .HasForeignKey("CategoryId")
 010410                        .OnDelete(DeleteBehavior.Cascade)
 010411                        .IsRequired();
 010412
 010413                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010414                        .WithMany()
 010415                        .HasForeignKey("CreatedByUserId");
 010416
 010417                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 010418                        .WithMany()
 010419                        .HasForeignKey("DepartmentId")
 010420                        .OnDelete(DeleteBehavior.Cascade)
 010421                        .IsRequired();
 010422
 010423                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010424                        .WithMany()
 010425                        .HasForeignKey("ModifiedByUserId");
 010426
 010427                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010428                        .WithMany()
 010429                        .HasForeignKey("RecStateId");
 010430                });
 10431
 010432            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentGoodSetting", b =>
 010433                {
 010434                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010435                        .WithMany()
 010436                        .HasForeignKey("CreatedByUserId");
 010437
 010438                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 010439                        .WithMany()
 010440                        .HasForeignKey("DepartmentId")
 010441                        .OnDelete(DeleteBehavior.Cascade)
 010442                        .IsRequired();
 010443
 010444                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 010445                        .WithMany("DepartmentGoodSettings")
 010446                        .HasForeignKey("GoodId")
 010447                        .OnDelete(DeleteBehavior.Cascade)
 010448                        .IsRequired();
 010449
 010450                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010451                        .WithMany()
 010452                        .HasForeignKey("ModifiedByUserId");
 010453
 010454                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010455                        .WithMany()
 010456                        .HasForeignKey("RecStateId");
 010457                });
 10458
 010459            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsKind", b =>
 010460                {
 010461                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010462                        .WithMany()
 010463                        .HasForeignKey("CreatedByUserId");
 010464
 010465                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010466                        .WithMany()
 010467                        .HasForeignKey("ModifiedByUserId");
 010468
 010469                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010470                        .WithMany()
 010471                        .HasForeignKey("RecStateId");
 010472                });
 10473
 010474            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsStatus", b =>
 010475                {
 010476                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010477                        .WithMany()
 010478                        .HasForeignKey("CreatedByUserId");
 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                });
 10488
 010489            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DiscountColor", b =>
 010490                {
 010491                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010492                        .WithMany()
 010493                        .HasForeignKey("CreatedByUserId");
 010494
 010495                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010496                        .WithMany()
 010497                        .HasForeignKey("ModifiedByUserId");
 010498
 010499                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010500                        .WithMany()
 010501                        .HasForeignKey("RecStateId");
 010502                });
 10503
 010504            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Email", b =>
 010505                {
 010506                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010507                        .WithMany()
 010508                        .HasForeignKey("CreatedByUserId");
 010509
 010510                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010511                        .WithMany()
 010512                        .HasForeignKey("ModifiedByUserId");
 010513
 010514                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010515                        .WithMany()
 010516                        .HasForeignKey("RecStateId");
 010517                });
 10518
 010519            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Event", b =>
 010520                {
 010521                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010522                        .WithMany()
 010523                        .HasForeignKey("CreatedByUserId");
 010524
 010525                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.EventsKind", "EventsKind")
 010526                        .WithMany()
 010527                        .HasForeignKey("EventsKindId")
 010528                        .OnDelete(DeleteBehavior.Cascade)
 010529                        .IsRequired();
 010530
 010531                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010532                        .WithMany()
 010533                        .HasForeignKey("ModifiedByUserId");
 010534
 010535                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010536                        .WithMany()
 010537                        .HasForeignKey("RecStateId");
 010538
 010539                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 010540                        .WithMany()
 010541                        .HasForeignKey("UserId")
 010542                        .OnDelete(DeleteBehavior.Cascade)
 010543                        .IsRequired();
 010544                });
 10545
 010546            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.EventsKind", b =>
 010547                {
 010548                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010549                        .WithMany()
 010550                        .HasForeignKey("CreatedByUserId");
 010551
 010552                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010553                        .WithMany()
 010554                        .HasForeignKey("ModifiedByUserId");
 010555
 010556                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010557                        .WithMany()
 010558                        .HasForeignKey("RecStateId");
 010559                });
 10560
 010561            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ExchangeToken", b =>
 010562                {
 010563                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Contragent")
 010564                        .WithMany()
 010565                        .HasForeignKey("ContragentId")
 010566                        .OnDelete(DeleteBehavior.Cascade)
 010567                        .IsRequired();
 010568
 010569                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010570                        .WithMany()
 010571                        .HasForeignKey("CreatedByUserId");
 010572
 010573                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010574                        .WithMany()
 010575                        .HasForeignKey("ModifiedByUserId");
 010576
 010577                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010578                        .WithMany()
 010579                        .HasForeignKey("RecStateId");
 010580                });
 10581
 010582            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", b =>
 010583                {
 010584                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", "Brand")
 010585                        .WithMany()
 010586                        .HasForeignKey("BrandId");
 010587
 010588                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", "Category")
 010589                        .WithMany()
 010590                        .HasForeignKey("CategoryId")
 010591                        .OnDelete(DeleteBehavior.Cascade)
 010592                        .IsRequired();
 010593
 010594                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Country", "Country")
 010595                        .WithMany()
 010596                        .HasForeignKey("CountryId");
 010597
 010598                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010599                        .WithMany()
 010600                        .HasForeignKey("CreatedByUserId");
 010601
 010602                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.BarCode", "MainBarcode")
 010603                        .WithMany()
 010604                        .HasForeignKey("MainBarcodeId")
 010605                        .OnDelete(DeleteBehavior.Cascade)
 010606                        .IsRequired();
 010607
 010608                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Manufacturer")
 010609                        .WithMany()
 010610                        .HasForeignKey("ManufacturerId");
 010611
 010612                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010613                        .WithMany()
 010614                        .HasForeignKey("ModifiedByUserId");
 010615
 010616                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010617                        .WithMany()
 010618                        .HasForeignKey("RecStateId");
 010619
 010620                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", "SubBrand")
 010621                        .WithMany()
 010622                        .HasForeignKey("SubBrandId");
 010623
 010624                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Supplier")
 010625                        .WithMany()
 010626                        .HasForeignKey("SupplierId");
 010627
 010628                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.UnitsKind", "UnitsKind")
 010629                        .WithMany()
 010630                        .HasForeignKey("UnitsKindId")
 010631                        .OnDelete(DeleteBehavior.Cascade)
 010632                        .IsRequired();
 010633
 010634                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.VatsKind", "VatsKind")
 010635                        .WithMany()
 010636                        .HasForeignKey("VatsKindId")
 010637                        .OnDelete(DeleteBehavior.Cascade)
 010638                        .IsRequired();
 010639                });
 10640
 010641            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Incident", b =>
 010642                {
 010643                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010644                        .WithMany()
 010645                        .HasForeignKey("CreatedByUserId");
 010646
 010647                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsKind", "Kind")
 010648                        .WithMany()
 010649                        .HasForeignKey("KindId");
 010650
 010651                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010652                        .WithMany()
 010653                        .HasForeignKey("ModifiedByUserId");
 010654
 010655                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010656                        .WithMany()
 010657                        .HasForeignKey("RecStateId");
 010658
 010659                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsStatus", "Status")
 010660                        .WithMany()
 010661                        .HasForeignKey("StatusId");
 010662
 010663                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 010664                        .WithMany()
 010665                        .HasForeignKey("UserId")
 010666                        .OnDelete(DeleteBehavior.Cascade)
 010667                        .IsRequired();
 010668                });
 10669
 010670            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsKind", b =>
 010671                {
 010672                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010673                        .WithMany()
 010674                        .HasForeignKey("CreatedByUserId");
 010675
 010676                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010677                        .WithMany()
 010678                        .HasForeignKey("ModifiedByUserId");
 010679
 010680                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010681                        .WithMany()
 010682                        .HasForeignKey("RecStateId");
 010683                });
 10684
 010685            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsStatus", b =>
 010686                {
 010687                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010688                        .WithMany()
 010689                        .HasForeignKey("CreatedByUserId");
 010690
 010691                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010692                        .WithMany()
 010693                        .HasForeignKey("ModifiedByUserId");
 010694
 010695                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010696                        .WithMany()
 010697                        .HasForeignKey("RecStateId");
 010698                });
 10699
 010700            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.JobLogger", b =>
 010701                {
 010702                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010703                        .WithMany()
 010704                        .HasForeignKey("CreatedByUserId");
 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.RecordsState", "RecState")
 010711                        .WithMany()
 010712                        .HasForeignKey("RecStateId");
 010713                });
 10714
 010715            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MethodRole", b =>
 010716                {
 010717                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Methods", "Methods")
 010718                        .WithMany("MethodsRoles")
 010719                        .HasForeignKey("MethodId")
 010720                        .OnDelete(DeleteBehavior.Cascade)
 010721                        .IsRequired();
 010722
 010723                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", "Roles")
 010724                        .WithMany("MethodsRoles")
 010725                        .HasForeignKey("RoleId")
 010726                        .OnDelete(DeleteBehavior.Cascade)
 010727                        .IsRequired();
 010728                });
 10729
 010730            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Methods", b =>
 010731                {
 010732                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010733                        .WithMany()
 010734                        .HasForeignKey("CreatedByUserId");
 010735
 010736                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010737                        .WithMany()
 010738                        .HasForeignKey("ModifiedByUserId");
 010739
 010740                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010741                        .WithMany()
 010742                        .HasForeignKey("RecStateId");
 010743                });
 10744
 010745            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", b =>
 010746                {
 010747                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010748                        .WithMany()
 010749                        .HasForeignKey("CreatedByUserId");
 010750
 010751                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Customer")
 010752                        .WithMany()
 010753                        .HasForeignKey("CustomerId")
 010754                        .OnDelete(DeleteBehavior.Cascade)
 010755                        .IsRequired();
 010756
 010757                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010758                        .WithMany()
 010759                        .HasForeignKey("ModifiedByUserId");
 010760
 010761                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "MovementStatus")
 010762                        .WithMany()
 010763                        .HasForeignKey("MovementStatusId")
 010764                        .OnDelete(DeleteBehavior.Cascade)
 010765                        .IsRequired();
 010766
 010767                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", "MovementType")
 010768                        .WithMany()
 010769                        .HasForeignKey("MovementTypeId")
 010770                        .OnDelete(DeleteBehavior.Cascade)
 010771                        .IsRequired();
 010772
 010773                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", "Parent")
 010774                        .WithMany()
 010775                        .HasForeignKey("ParentId");
 010776
 010777                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010778                        .WithMany()
 010779                        .HasForeignKey("RecStateId");
 010780
 010781                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Receiver")
 010782                        .WithMany()
 010783                        .HasForeignKey("ReceiverId")
 010784                        .OnDelete(DeleteBehavior.Cascade)
 010785                        .IsRequired();
 010786
 010787                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Sender")
 010788                        .WithMany()
 010789                        .HasForeignKey("SenderId");
 010790
 010791                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Supplier")
 010792                        .WithMany()
 010793                        .HasForeignKey("SupplierId")
 010794                        .OnDelete(DeleteBehavior.Cascade)
 010795                        .IsRequired();
 010796                });
 10797
 010798            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementItem", b =>
 010799                {
 010800                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010801                        .WithMany()
 010802                        .HasForeignKey("CreatedByUserId");
 010803
 010804                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 010805                        .WithMany()
 010806                        .HasForeignKey("GoodId")
 010807                        .OnDelete(DeleteBehavior.Cascade)
 010808                        .IsRequired();
 010809
 010810                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010811                        .WithMany()
 010812                        .HasForeignKey("ModifiedByUserId");
 010813
 010814                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", null)
 010815                        .WithMany("Items")
 010816                        .HasForeignKey("MovementId");
 010817
 010818                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010819                        .WithMany()
 010820                        .HasForeignKey("RecStateId");
 010821                });
 10822
 010823            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementNote", b =>
 010824                {
 010825                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010826                        .WithMany()
 010827                        .HasForeignKey("CreatedByUserId");
 010828
 010829                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010830                        .WithMany()
 010831                        .HasForeignKey("ModifiedByUserId");
 010832
 010833                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", null)
 010834                        .WithMany("Notes")
 010835                        .HasForeignKey("MovementId");
 010836
 010837                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010838                        .WithMany()
 010839                        .HasForeignKey("RecStateId");
 010840                });
 10841
 010842            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementRouteAction", b =>
 010843                {
 010844                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010845                        .WithMany()
 010846                        .HasForeignKey("CreatedByUserId");
 010847
 010848                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010849                        .WithMany()
 010850                        .HasForeignKey("ModifiedByUserId");
 010851
 010852                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusOwner", "OwnerAction")
 010853                        .WithMany()
 010854                        .HasForeignKey("OwnerActionId")
 010855                        .OnDelete(DeleteBehavior.Cascade)
 010856                        .IsRequired();
 010857
 010858                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010859                        .WithMany()
 010860                        .HasForeignKey("RecStateId");
 010861
 010862                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "Status")
 010863                        .WithMany()
 010864                        .HasForeignKey("StatusId")
 010865                        .OnDelete(DeleteBehavior.Cascade)
 010866                        .IsRequired();
 010867                });
 10868
 010869            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", b =>
 010870                {
 010871                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010872                        .WithMany()
 010873                        .HasForeignKey("CreatedByUserId");
 010874
 010875                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010876                        .WithMany()
 010877                        .HasForeignKey("ModifiedByUserId");
 010878
 010879                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", "MovementType")
 010880                        .WithMany()
 010881                        .HasForeignKey("MovementTypeId")
 010882                        .OnDelete(DeleteBehavior.Cascade)
 010883                        .IsRequired();
 010884
 010885                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010886                        .WithMany()
 010887                        .HasForeignKey("RecStateId");
 010888
 010889                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusOwner", "StatusOwner")
 010890                        .WithMany()
 010891                        .HasForeignKey("StatusOwnerId")
 010892                        .OnDelete(DeleteBehavior.Cascade)
 010893                        .IsRequired();
 010894                });
 10895
 010896            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusJournal", b =>
 010897                {
 010898                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010899                        .WithMany()
 010900                        .HasForeignKey("CreatedByUserId");
 010901
 010902                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010903                        .WithMany()
 010904                        .HasForeignKey("ModifiedByUserId");
 010905
 010906                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", "Movement")
 010907                        .WithMany()
 010908                        .HasForeignKey("MovementId");
 010909
 010910                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010911                        .WithMany()
 010912                        .HasForeignKey("RecStateId");
 010913
 010914                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "StatusCurrent")
 010915                        .WithMany()
 010916                        .HasForeignKey("StatusCurrentId");
 010917                });
 10918
 010919            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusOwner", b =>
 010920                {
 010921                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010922                        .WithMany()
 010923                        .HasForeignKey("CreatedByUserId");
 010924
 010925                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010926                        .WithMany()
 010927                        .HasForeignKey("ModifiedByUserId");
 010928
 010929                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010930                        .WithMany()
 010931                        .HasForeignKey("RecStateId");
 010932                });
 10933
 010934            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusRoute", b =>
 010935                {
 010936                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010937                        .WithMany()
 010938                        .HasForeignKey("CreatedByUserId");
 010939
 010940                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010941                        .WithMany()
 010942                        .HasForeignKey("ModifiedByUserId");
 010943
 010944                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010945                        .WithMany()
 010946                        .HasForeignKey("RecStateId");
 010947
 010948                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "StatusCurrent")
 010949                        .WithMany()
 010950                        .HasForeignKey("StatusCurrentId")
 010951                        .OnDelete(DeleteBehavior.Cascade)
 010952                        .IsRequired();
 010953
 010954                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "StatusNext")
 010955                        .WithMany()
 010956                        .HasForeignKey("StatusNextId")
 010957                        .OnDelete(DeleteBehavior.Cascade)
 010958                        .IsRequired();
 010959                });
 10960
 010961            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", b =>
 010962                {
 010963                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010964                        .WithMany()
 010965                        .HasForeignKey("CreatedByUserId");
 010966
 010967                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010968                        .WithMany()
 010969                        .HasForeignKey("ModifiedByUserId");
 010970
 010971                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010972                        .WithMany()
 010973                        .HasForeignKey("RecStateId");
 010974                });
 10975
 010976            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Notification", b =>
 010977                {
 010978                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010979                        .WithMany()
 010980                        .HasForeignKey("CreatedByUserId");
 010981
 010982                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010983                        .WithMany()
 010984                        .HasForeignKey("ModifiedByUserId");
 010985
 010986                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsType", "NotificationsType")
 010987                        .WithMany()
 010988                        .HasForeignKey("NotificationsTypeId")
 010989                        .OnDelete(DeleteBehavior.Cascade)
 010990                        .IsRequired();
 010991
 010992                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010993                        .WithMany()
 010994                        .HasForeignKey("RecStateId");
 010995
 010996                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 010997                        .WithMany()
 010998                        .HasForeignKey("UserId")
 010999                        .OnDelete(DeleteBehavior.Cascade)
 011000                        .IsRequired();
 011001                });
 11002
 011003            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationUsers", b =>
 011004                {
 011005                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011006                        .WithMany()
 011007                        .HasForeignKey("CreatedByUserId");
 011008
 011009                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011010                        .WithMany()
 011011                        .HasForeignKey("ModifiedByUserId");
 011012
 011013                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Notification", "Notification")
 011014                        .WithMany()
 011015                        .HasForeignKey("NotificationId")
 011016                        .OnDelete(DeleteBehavior.Cascade)
 011017                        .IsRequired();
 011018
 011019                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsStatus", "NotificationsStat
 011020                        .WithMany()
 011021                        .HasForeignKey("NotificationsStatusId");
 011022
 011023                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011024                        .WithMany()
 011025                        .HasForeignKey("RecStateId");
 011026
 011027                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 011028                        .WithMany()
 011029                        .HasForeignKey("UserId");
 011030                });
 11031
 011032            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsStatus", b =>
 011033                {
 011034                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011035                        .WithMany()
 011036                        .HasForeignKey("CreatedByUserId");
 011037
 011038                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011039                        .WithMany()
 011040                        .HasForeignKey("ModifiedByUserId");
 011041
 011042                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011043                        .WithMany()
 011044                        .HasForeignKey("RecStateId");
 011045                });
 11046
 011047            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsType", b =>
 011048                {
 011049                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011050                        .WithMany()
 011051                        .HasForeignKey("CreatedByUserId");
 011052
 011053                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011054                        .WithMany()
 011055                        .HasForeignKey("ModifiedByUserId");
 011056
 011057                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011058                        .WithMany()
 011059                        .HasForeignKey("RecStateId");
 011060                });
 11061
 011062            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Photo", b =>
 011063                {
 011064                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011065                        .WithMany()
 011066                        .HasForeignKey("CreatedByUserId");
 011067
 011068                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", null)
 011069                        .WithMany("Photos")
 011070                        .HasForeignKey("GoodId");
 011071
 011072                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011073                        .WithMany()
 011074                        .HasForeignKey("ModifiedByUserId");
 011075
 011076                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011077                        .WithMany()
 011078                        .HasForeignKey("RecStateId");
 011079                });
 11080
 011081            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceCurrent", b =>
 011082                {
 011083                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011084                        .WithMany()
 011085                        .HasForeignKey("CreatedByUserId");
 011086
 011087                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 011088                        .WithMany()
 011089                        .HasForeignKey("GoodId")
 011090                        .OnDelete(DeleteBehavior.Cascade)
 011091                        .IsRequired();
 011092
 011093                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011094                        .WithMany()
 011095                        .HasForeignKey("ModifiedByUserId");
 011096
 011097                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011098                        .WithMany()
 011099                        .HasForeignKey("RecStateId");
 011100
 011101                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "SupplierDepartment")
 011102                        .WithMany()
 011103                        .HasForeignKey("SupplierDepartmentId")
 011104                        .OnDelete(DeleteBehavior.Cascade)
 011105                        .IsRequired();
 011106                });
 11107
 011108            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrend", b =>
 011109                {
 011110                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011111                        .WithMany()
 011112                        .HasForeignKey("CreatedByUserId");
 011113
 011114                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011115                        .WithMany()
 011116                        .HasForeignKey("ModifiedByUserId");
 011117
 011118                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011119                        .WithMany()
 011120                        .HasForeignKey("RecStateId");
 011121
 011122                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "SupplierDepartment")
 011123                        .WithMany()
 011124                        .HasForeignKey("SupplierDepartmentId")
 011125                        .OnDelete(DeleteBehavior.Cascade)
 011126                        .IsRequired();
 011127                });
 11128
 011129            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrendDetail", b =>
 011130                {
 011131                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011132                        .WithMany()
 011133                        .HasForeignKey("CreatedByUserId");
 011134
 011135                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 011136                        .WithMany("Prices")
 011137                        .HasForeignKey("GoodId")
 011138                        .OnDelete(DeleteBehavior.Cascade)
 011139                        .IsRequired();
 011140
 011141                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011142                        .WithMany()
 011143                        .HasForeignKey("ModifiedByUserId");
 011144
 011145                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrend", "PriceTrend")
 011146                        .WithMany("PriceTrendDetails")
 011147                        .HasForeignKey("PriceTrendId")
 011148                        .OnDelete(DeleteBehavior.Cascade)
 011149                        .IsRequired();
 011150
 011151                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011152                        .WithMany()
 011153                        .HasForeignKey("RecStateId");
 011154                });
 11155
 011156            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoBid", b =>
 011157                {
 011158                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011159                        .WithMany()
 011160                        .HasForeignKey("CreatedByUserId");
 011161
 011162                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "CustomerDepartment")
 011163                        .WithMany()
 011164                        .HasForeignKey("CustomerDepartmentId")
 011165                        .OnDelete(DeleteBehavior.Cascade)
 011166                        .IsRequired();
 011167
 011168                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 011169                        .WithMany()
 011170                        .HasForeignKey("GoodId")
 011171                        .OnDelete(DeleteBehavior.Cascade)
 011172                        .IsRequired();
 011173
 011174                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011175                        .WithMany()
 011176                        .HasForeignKey("ModifiedByUserId");
 011177
 011178                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoOffer", "PromoOffer")
 011179                        .WithMany("Bids")
 011180                        .HasForeignKey("PromoOfferId")
 011181                        .OnDelete(DeleteBehavior.Cascade)
 011182                        .IsRequired();
 011183
 011184                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011185                        .WithMany()
 011186                        .HasForeignKey("RecStateId");
 011187                });
 11188
 011189            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoOffer", b =>
 011190                {
 011191                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011192                        .WithMany()
 011193                        .HasForeignKey("CreatedByUserId");
 011194
 011195                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 011196                        .WithMany()
 011197                        .HasForeignKey("GoodId")
 011198                        .OnDelete(DeleteBehavior.Cascade)
 011199                        .IsRequired();
 011200
 011201                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011202                        .WithMany()
 011203                        .HasForeignKey("ModifiedByUserId");
 011204
 011205                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011206                        .WithMany()
 011207                        .HasForeignKey("RecStateId");
 011208
 011209                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "SupplierDepartment")
 011210                        .WithMany()
 011211                        .HasForeignKey("SupplierDepartmentId")
 011212                        .OnDelete(DeleteBehavior.Cascade)
 011213                        .IsRequired();
 011214                });
 11215
 011216            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", b =>
 011217                {
 011218                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011219                        .WithMany()
 011220                        .HasForeignKey("CreatedByUserId");
 011221
 011222                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011223                        .WithMany()
 011224                        .HasForeignKey("ModifiedByUserId");
 011225
 011226                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011227                        .WithMany()
 011228                        .HasForeignKey("RecStateId");
 011229                });
 11230
 011231            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Rest", b =>
 011232                {
 011233                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011234                        .WithMany()
 011235                        .HasForeignKey("CreatedByUserId");
 011236
 011237                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 011238                        .WithMany()
 011239                        .HasForeignKey("DepartmentId")
 011240                        .OnDelete(DeleteBehavior.Cascade)
 011241                        .IsRequired();
 011242
 011243                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 011244                        .WithMany("Rests")
 011245                        .HasForeignKey("GoodId")
 011246                        .OnDelete(DeleteBehavior.Cascade)
 011247                        .IsRequired();
 011248
 011249                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011250                        .WithMany()
 011251                        .HasForeignKey("ModifiedByUserId");
 011252
 011253                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011254                        .WithMany()
 011255                        .HasForeignKey("RecStateId");
 011256                });
 11257
 011258            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.RestHold", b =>
 011259                {
 011260                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011261                        .WithMany()
 011262                        .HasForeignKey("CreatedByUserId");
 011263
 011264                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 011265                        .WithMany()
 011266                        .HasForeignKey("GoodId")
 011267                        .OnDelete(DeleteBehavior.Cascade)
 011268                        .IsRequired();
 011269
 011270                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011271                        .WithMany()
 011272                        .HasForeignKey("ModifiedByUserId");
 011273
 011274                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", "Movement")
 011275                        .WithMany()
 011276                        .HasForeignKey("MovementId")
 011277                        .OnDelete(DeleteBehavior.Cascade)
 011278                        .IsRequired();
 011279
 011280                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011281                        .WithMany()
 011282                        .HasForeignKey("RecStateId");
 011283                });
 11284
 011285            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", b =>
 011286                {
 011287                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011288                        .WithMany()
 011289                        .HasForeignKey("CreatedByUserId");
 011290
 011291                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011292                        .WithMany()
 011293                        .HasForeignKey("ModifiedByUserId");
 011294
 011295                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011296                        .WithMany()
 011297                        .HasForeignKey("RecStateId");
 011298                });
 11299
 011300            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.SupplyContract", b =>
 011301                {
 011302                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Buyer")
 011303                        .WithMany("ContractsAsBuyer")
 011304                        .HasForeignKey("BuyerId")
 011305                        .OnDelete(DeleteBehavior.Cascade)
 011306                        .IsRequired();
 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
 011320                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Seller")
 011321                        .WithMany("ContractsAsSeller")
 011322                        .HasForeignKey("SellerId")
 011323                        .OnDelete(DeleteBehavior.Cascade)
 011324                        .IsRequired();
 011325                });
 11326
 011327            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.TaxSystem", b =>
 011328                {
 011329                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011330                        .WithMany()
 011331                        .HasForeignKey("CreatedByUserId");
 011332
 011333                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011334                        .WithMany()
 011335                        .HasForeignKey("ModifiedByUserId");
 011336
 011337                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011338                        .WithMany()
 011339                        .HasForeignKey("RecStateId");
 011340                });
 11341
 011342            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UnitsKind", b =>
 011343                {
 011344                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011345                        .WithMany()
 011346                        .HasForeignKey("CreatedByUserId");
 011347
 011348                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011349                        .WithMany()
 011350                        .HasForeignKey("ModifiedByUserId");
 011351
 011352                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011353                        .WithMany()
 011354                        .HasForeignKey("RecStateId");
 011355                });
 11356
 011357            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Upload", b =>
 011358                {
 011359                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011360                        .WithMany()
 011361                        .HasForeignKey("CreatedByUserId");
 011362
 011363                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011364                        .WithMany()
 011365                        .HasForeignKey("ModifiedByUserId");
 011366
 011367                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011368                        .WithMany()
 011369                        .HasForeignKey("RecStateId");
 011370                });
 11371
 011372            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UploadItem", b =>
 011373                {
 011374                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011375                        .WithMany()
 011376                        .HasForeignKey("CreatedByUserId");
 011377
 011378                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011379                        .WithMany()
 011380                        .HasForeignKey("ModifiedByUserId");
 011381
 011382                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011383                        .WithMany()
 011384                        .HasForeignKey("RecStateId");
 011385
 011386                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Upload", null)
 011387                        .WithMany("Items")
 011388                        .HasForeignKey("UploadId")
 011389                        .OnDelete(DeleteBehavior.Cascade)
 011390                        .IsRequired();
 011391                });
 11392
 011393            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", b =>
 011394                {
 011395                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Contragent")
 011396                        .WithMany("User")
 011397                        .HasForeignKey("ContragentId");
 011398
 011399                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011400                        .WithMany()
 011401                        .HasForeignKey("CreatedByUserId");
 011402
 011403                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011404                        .WithMany()
 011405                        .HasForeignKey("ModifiedByUserId");
 011406
 011407                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011408                        .WithMany()
 011409                        .HasForeignKey("RecStateId");
 011410                });
 11411
 011412            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserDepartment", b =>
 011413                {
 011414                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 011415                        .WithMany("UsersDepartments")
 011416                        .HasForeignKey("DepartmentId")
 011417                        .OnDelete(DeleteBehavior.Cascade)
 011418                        .IsRequired();
 011419
 011420                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 011421                        .WithMany("UsersDepartments")
 011422                        .HasForeignKey("UserId")
 011423                        .OnDelete(DeleteBehavior.Cascade)
 011424                        .IsRequired();
 011425                });
 11426
 011427            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserRole", b =>
 011428                {
 011429                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", "Roles")
 011430                        .WithMany("UsersRoles")
 011431                        .HasForeignKey("RoleId")
 011432                        .OnDelete(DeleteBehavior.Cascade)
 011433                        .IsRequired();
 011434
 011435                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 011436                        .WithMany("UsersRoles")
 011437                        .HasForeignKey("UserId")
 011438                        .OnDelete(DeleteBehavior.Cascade)
 011439                        .IsRequired();
 011440                });
 11441
 011442            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.VatsKind", b =>
 011443                {
 011444                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011445                        .WithMany()
 011446                        .HasForeignKey("CreatedByUserId");
 011447
 011448                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011449                        .WithMany()
 011450                        .HasForeignKey("ModifiedByUserId");
 011451
 011452                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011453                        .WithMany()
 011454                        .HasForeignKey("RecStateId");
 011455                });
 11456
 011457            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransaction", b =>
 011458                {
 011459                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011460                        .WithMany()
 011461                        .HasForeignKey("CreatedByUserId");
 011462
 011463                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011464                        .WithMany()
 011465                        .HasForeignKey("ModifiedByUserId");
 011466
 011467                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", "Movement")
 011468                        .WithMany()
 011469                        .HasForeignKey("MovementId");
 011470
 011471                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011472                        .WithMany()
 011473                        .HasForeignKey("RecStateId");
 011474
 011475                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransactionStatus", "Status")
 011476                        .WithMany()
 011477                        .HasForeignKey("StatusId");
 011478                });
 11479
 011480            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransactionStatus", b =>
 011481                {
 011482                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011483                        .WithMany()
 011484                        .HasForeignKey("CreatedByUserId");
 011485
 011486                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011487                        .WithMany()
 011488                        .HasForeignKey("ModifiedByUserId");
 011489
 011490                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011491                        .WithMany()
 011492                        .HasForeignKey("RecStateId");
 011493                });
 11494
 011495            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WorkSchedule", b =>
 011496                {
 011497                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 011498                        .WithMany()
 011499                        .HasForeignKey("CreatedByUserId");
 011500
 011501                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 011502                        .WithMany()
 011503                        .HasForeignKey("ModifiedByUserId");
 011504
 011505                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 011506                        .WithMany()
 011507                        .HasForeignKey("RecStateId");
 011508                });
 11509#pragma warning restore 612, 618
 011510        }
 11511    }
 11512}