< Summary

Class:SVETA.Api.Migrations.ABEfixcustomerreject
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200423092913_ABE-fixcustomerreject.cs
/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200423092913_ABE-fixcustomerreject.Designer.cs
Covered lines:0
Uncovered lines:10312
Coverable lines:10312
Total lines:10476
Line coverage:0% (0 of 10312)
Covered branches:0
Total branches:244
Branch coverage:0% (0 of 244)

Metrics

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

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200423092913_ABE-fixcustomerreject.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3
 4namespace SVETA.Api.Migrations
 5{
 6    public partial class ABEfixcustomerreject : Migration
 7    {
 8        protected override void Up(MigrationBuilder migrationBuilder)
 09        {
 010            migrationBuilder.UpdateData(
 011                table: "ContragentsKind",
 012                keyColumn: "Id",
 013                keyValue: 2L,
 014                column: "ExternalKey",
 015                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 16
 017            migrationBuilder.UpdateData(
 018                table: "ContragentsKind",
 019                keyColumn: "Id",
 020                keyValue: 3L,
 021                column: "ExternalKey",
 022                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 23
 024            migrationBuilder.UpdateData(
 025                table: "ContragentsKind",
 026                keyColumn: "Id",
 027                keyValue: 4L,
 028                column: "ExternalKey",
 029                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 30
 031            migrationBuilder.UpdateData(
 032                table: "ContragentsKind",
 033                keyColumn: "Id",
 034                keyValue: 6L,
 035                column: "ExternalKey",
 036                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 37
 038            migrationBuilder.InsertData(
 039                table: "MovementStatusRoutes",
 040                columns: new[] { "Id", "CreatedByUserId", "CreationDateTime", "Hour", "IsDeleted", "ModificationDateTime
 041                values: new object[,]
 042                {
 043                    { 30L, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 0, false, null, null, n
 044                    { 31L, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 0, false, null, null, n
 045                    { 32L, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 0, false, null, null, n
 046                });
 047        }
 48
 49        protected override void Down(MigrationBuilder migrationBuilder)
 050        {
 051            migrationBuilder.DeleteData(
 052                table: "MovementStatusRoutes",
 053                keyColumn: "Id",
 054                keyValue: 30L);
 55
 056            migrationBuilder.DeleteData(
 057                table: "MovementStatusRoutes",
 058                keyColumn: "Id",
 059                keyValue: 31L);
 60
 061            migrationBuilder.DeleteData(
 062                table: "MovementStatusRoutes",
 063                keyColumn: "Id",
 064                keyValue: 32L);
 65
 066            migrationBuilder.UpdateData(
 067                table: "ContragentsKind",
 068                keyColumn: "Id",
 069                keyValue: 2L,
 070                column: "ExternalKey",
 071                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 72
 073            migrationBuilder.UpdateData(
 074                table: "ContragentsKind",
 075                keyColumn: "Id",
 076                keyValue: 3L,
 077                column: "ExternalKey",
 078                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 79
 080            migrationBuilder.UpdateData(
 081                table: "ContragentsKind",
 082                keyColumn: "Id",
 083                keyValue: 4L,
 084                column: "ExternalKey",
 085                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 86
 087            migrationBuilder.UpdateData(
 088                table: "ContragentsKind",
 089                keyColumn: "Id",
 090                keyValue: 6L,
 091                column: "ExternalKey",
 092                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 093        }
 94    }
 95}

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