< Summary

Class:SVETA.Api.Migrations.AddNewAddress
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200428094904_AddNewAddress.cs
/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200428094904_AddNewAddress.Designer.cs
Covered lines:0
Uncovered lines:10452
Coverable lines:10452
Total lines:10616
Line coverage:0% (0 of 10452)
Covered branches:0
Total branches:248
Branch coverage:0% (0 of 248)

Metrics

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

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200428094904_AddNewAddress.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3
 4namespace SVETA.Api.Migrations
 5{
 6    public partial class AddNewAddress : Migration
 7    {
 8        protected override void Up(MigrationBuilder migrationBuilder)
 09        {
 010            migrationBuilder.InsertData(
 011                table: "Address",
 012                columns: new[] { "Id", "Building", "City", "CreatedByUserId", "CreationDateTime", "District", "FullAddre
 013                values: new object[] { -1L, "1", "Краснодар", null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Un
 14
 015            migrationBuilder.UpdateData(
 016                table: "ContragentsKind",
 017                keyColumn: "Id",
 018                keyValue: 2L,
 019                column: "ExternalKey",
 020                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 21
 022            migrationBuilder.UpdateData(
 023                table: "ContragentsKind",
 024                keyColumn: "Id",
 025                keyValue: 3L,
 026                column: "ExternalKey",
 027                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 28
 029            migrationBuilder.UpdateData(
 030                table: "ContragentsKind",
 031                keyColumn: "Id",
 032                keyValue: 4L,
 033                column: "ExternalKey",
 034                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 35
 036            migrationBuilder.UpdateData(
 037                table: "ContragentsKind",
 038                keyColumn: "Id",
 039                keyValue: 6L,
 040                column: "ExternalKey",
 041                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 042        }
 43
 44        protected override void Down(MigrationBuilder migrationBuilder)
 045        {
 046            migrationBuilder.DeleteData(
 047                table: "Address",
 048                keyColumn: "Id",
 049                keyValue: -1L);
 50
 051            migrationBuilder.UpdateData(
 052                table: "ContragentsKind",
 053                keyColumn: "Id",
 054                keyValue: 2L,
 055                column: "ExternalKey",
 056                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 57
 058            migrationBuilder.UpdateData(
 059                table: "ContragentsKind",
 060                keyColumn: "Id",
 061                keyValue: 3L,
 062                column: "ExternalKey",
 063                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 64
 065            migrationBuilder.UpdateData(
 066                table: "ContragentsKind",
 067                keyColumn: "Id",
 068                keyValue: 4L,
 069                column: "ExternalKey",
 070                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 71
 072            migrationBuilder.UpdateData(
 073                table: "ContragentsKind",
 074                keyColumn: "Id",
 075                keyValue: 6L,
 076                column: "ExternalKey",
 077                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 078        }
 79    }
 80}

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