< Summary

Class:SVETA.Api.Migrations.DepartmentGoodSettingUniqueIndex
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200426132543_DepartmentGoodSettingUniqueIndex.cs
/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200426132543_DepartmentGoodSettingUniqueIndex.Designer.cs
Covered lines:0
Uncovered lines:10307
Coverable lines:10307
Total lines:10471
Line coverage:0% (0 of 10307)
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/20200426132543_DepartmentGoodSettingUniqueIndex.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3
 4namespace SVETA.Api.Migrations
 5{
 6    public partial class DepartmentGoodSettingUniqueIndex : Migration
 7    {
 8        protected override void Up(MigrationBuilder migrationBuilder)
 09        {
 010            migrationBuilder.DropIndex(
 011                name: "IX_DepartmentGoodSetting_GoodId",
 012                table: "DepartmentGoodSetting");
 13
 014            migrationBuilder.UpdateData(
 015                table: "ContragentsKind",
 016                keyColumn: "Id",
 017                keyValue: 2L,
 018                column: "ExternalKey",
 019                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 20
 021            migrationBuilder.UpdateData(
 022                table: "ContragentsKind",
 023                keyColumn: "Id",
 024                keyValue: 3L,
 025                column: "ExternalKey",
 026                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 27
 028            migrationBuilder.UpdateData(
 029                table: "ContragentsKind",
 030                keyColumn: "Id",
 031                keyValue: 4L,
 032                column: "ExternalKey",
 033                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 34
 035            migrationBuilder.UpdateData(
 036                table: "ContragentsKind",
 037                keyColumn: "Id",
 038                keyValue: 6L,
 039                column: "ExternalKey",
 040                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 41
 042            migrationBuilder.CreateIndex(
 043                name: "IX_DepartmentGoodSetting_GoodId_DepartmentId",
 044                table: "DepartmentGoodSetting",
 045                columns: new[] { "GoodId", "DepartmentId" },
 046                unique: true);
 047        }
 48
 49        protected override void Down(MigrationBuilder migrationBuilder)
 050        {
 051            migrationBuilder.DropIndex(
 052                name: "IX_DepartmentGoodSetting_GoodId_DepartmentId",
 053                table: "DepartmentGoodSetting");
 54
 055            migrationBuilder.UpdateData(
 056                table: "ContragentsKind",
 057                keyColumn: "Id",
 058                keyValue: 2L,
 059                column: "ExternalKey",
 060                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 61
 062            migrationBuilder.UpdateData(
 063                table: "ContragentsKind",
 064                keyColumn: "Id",
 065                keyValue: 3L,
 066                column: "ExternalKey",
 067                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 68
 069            migrationBuilder.UpdateData(
 070                table: "ContragentsKind",
 071                keyColumn: "Id",
 072                keyValue: 4L,
 073                column: "ExternalKey",
 074                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 75
 076            migrationBuilder.UpdateData(
 077                table: "ContragentsKind",
 078                keyColumn: "Id",
 079                keyValue: 6L,
 080                column: "ExternalKey",
 081                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 82
 083            migrationBuilder.CreateIndex(
 084                name: "IX_DepartmentGoodSetting_GoodId",
 085                table: "DepartmentGoodSetting",
 086                column: "GoodId");
 087        }
 88    }
 89}

/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200426132543_DepartmentGoodSettingUniqueIndex.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("20200426132543_DepartmentGoodSettingUniqueIndex")]
 14    partial class DepartmentGoodSettingUniqueIndex
 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("ModifiedByUserId");
 03870
 03871                    b.HasIndex("RecStateId");
 03872
 03873                    b.HasIndex("GoodId", "DepartmentId")
 03874                        .IsUnique();
 03875
 03876                    b.ToTable("DepartmentGoodSetting");
 03877                });
 3878
 03879            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsKind", b =>
 03880                {
 03881                    b.Property<long>("Id")
 03882                        .ValueGeneratedOnAdd()
 03883                        .HasColumnType("bigint")
 03884                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 03885
 03886                    b.Property<string>("Code")
 03887                        .IsRequired()
 03888                        .HasColumnType("text");
 03889
 03890                    b.Property<long?>("CreatedByUserId")
 03891                        .HasColumnType("bigint");
 03892
 03893                    b.Property<DateTime>("CreationDateTime")
 03894                        .HasColumnType("timestamp without time zone");
 03895
 03896                    b.Property<string>("Description")
 03897                        .HasColumnType("text");
 03898
 03899                    b.Property<Guid>("GUID")
 03900                        .ValueGeneratedOnAdd()
 03901                        .HasColumnType("uuid");
 03902
 03903                    b.Property<bool>("IsDeleted")
 03904                        .HasColumnType("boolean");
 03905
 03906                    b.Property<DateTime?>("ModificationDateTime")
 03907                        .HasColumnType("timestamp without time zone");
 03908
 03909                    b.Property<long?>("ModifiedByUserId")
 03910                        .HasColumnType("bigint");
 03911
 03912                    b.Property<string>("Name")
 03913                        .IsRequired()
 03914                        .HasColumnType("text");
 03915
 03916                    b.Property<long?>("RecStateId")
 03917                        .HasColumnType("bigint");
 03918
 03919                    b.HasKey("Id");
 03920
 03921                    b.HasIndex("CreatedByUserId");
 03922
 03923                    b.HasIndex("ModifiedByUserId");
 03924
 03925                    b.HasIndex("RecStateId");
 03926
 03927                    b.ToTable("DepartmentsKind");
 03928
 03929                    b.HasData(
 03930                        new
 03931                        {
 03932                            Id = 1L,
 03933                            Code = "Warehouse",
 03934                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03935                            Description = "",
 03936                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03937                            IsDeleted = false,
 03938                            Name = "Склад"
 03939                        },
 03940                        new
 03941                        {
 03942                            Id = 2L,
 03943                            Code = "Shop",
 03944                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03945                            Description = "",
 03946                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03947                            IsDeleted = false,
 03948                            Name = "Магазин"
 03949                        },
 03950                        new
 03951                        {
 03952                            Id = 3L,
 03953                            Code = "Plant",
 03954                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 03955                            Description = "",
 03956                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 03957                            IsDeleted = false,
 03958                            Name = "Завод"
 03959                        });
 03960                });
 3961
 03962            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsStatus", b =>
 03963                {
 03964                    b.Property<long>("Id")
 03965                        .ValueGeneratedOnAdd()
 03966                        .HasColumnType("bigint")
 03967                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 03968
 03969                    b.Property<string>("Code")
 03970                        .IsRequired()
 03971                        .HasColumnType("text");
 03972
 03973                    b.Property<long?>("CreatedByUserId")
 03974                        .HasColumnType("bigint");
 03975
 03976                    b.Property<DateTime>("CreationDateTime")
 03977                        .HasColumnType("timestamp without time zone");
 03978
 03979                    b.Property<string>("Description")
 03980                        .HasColumnType("text");
 03981
 03982                    b.Property<Guid>("GUID")
 03983                        .ValueGeneratedOnAdd()
 03984                        .HasColumnType("uuid");
 03985
 03986                    b.Property<bool>("IsDeleted")
 03987                        .HasColumnType("boolean");
 03988
 03989                    b.Property<DateTime?>("ModificationDateTime")
 03990                        .HasColumnType("timestamp without time zone");
 03991
 03992                    b.Property<long?>("ModifiedByUserId")
 03993                        .HasColumnType("bigint");
 03994
 03995                    b.Property<string>("Name")
 03996                        .IsRequired()
 03997                        .HasColumnType("text");
 03998
 03999                    b.Property<long?>("RecStateId")
 04000                        .HasColumnType("bigint");
 04001
 04002                    b.HasKey("Id");
 04003
 04004                    b.HasIndex("CreatedByUserId");
 04005
 04006                    b.HasIndex("ModifiedByUserId");
 04007
 04008                    b.HasIndex("RecStateId");
 04009
 04010                    b.ToTable("DepartmentsStatus");
 04011
 04012                    b.HasData(
 04013                        new
 04014                        {
 04015                            Id = 1L,
 04016                            Code = "New",
 04017                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04018                            Description = "",
 04019                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04020                            IsDeleted = false,
 04021                            Name = "Новый"
 04022                        },
 04023                        new
 04024                        {
 04025                            Id = 2L,
 04026                            Code = "Active",
 04027                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04028                            Description = "",
 04029                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04030                            IsDeleted = false,
 04031                            Name = "Активный"
 04032                        },
 04033                        new
 04034                        {
 04035                            Id = 3L,
 04036                            Code = "Inactive",
 04037                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04038                            Description = "",
 04039                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04040                            IsDeleted = false,
 04041                            Name = "Неактивный"
 04042                        },
 04043                        new
 04044                        {
 04045                            Id = 4L,
 04046                            Code = "Paused",
 04047                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04048                            Description = "",
 04049                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04050                            IsDeleted = false,
 04051                            Name = "На паузе"
 04052                        });
 04053                });
 4054
 04055            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DiscountColor", b =>
 04056                {
 04057                    b.Property<long>("Id")
 04058                        .ValueGeneratedOnAdd()
 04059                        .HasColumnType("bigint")
 04060                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04061
 04062                    b.Property<long?>("CreatedByUserId")
 04063                        .HasColumnType("bigint");
 04064
 04065                    b.Property<DateTime>("CreationDateTime")
 04066                        .HasColumnType("timestamp without time zone");
 04067
 04068                    b.Property<int>("DiscountLevel")
 04069                        .HasColumnType("integer");
 04070
 04071                    b.Property<Guid>("GUID")
 04072                        .ValueGeneratedOnAdd()
 04073                        .HasColumnType("uuid");
 04074
 04075                    b.Property<bool>("IsDeleted")
 04076                        .HasColumnType("boolean");
 04077
 04078                    b.Property<string>("LabelColor")
 04079                        .IsRequired()
 04080                        .HasColumnType("text");
 04081
 04082                    b.Property<DateTime?>("ModificationDateTime")
 04083                        .HasColumnType("timestamp without time zone");
 04084
 04085                    b.Property<long?>("ModifiedByUserId")
 04086                        .HasColumnType("bigint");
 04087
 04088                    b.Property<long?>("RecStateId")
 04089                        .HasColumnType("bigint");
 04090
 04091                    b.HasKey("Id");
 04092
 04093                    b.HasIndex("CreatedByUserId");
 04094
 04095                    b.HasIndex("ModifiedByUserId");
 04096
 04097                    b.HasIndex("RecStateId");
 04098
 04099                    b.HasIndex("DiscountLevel", "LabelColor")
 04100                        .IsUnique();
 04101
 04102                    b.ToTable("DiscountColors");
 04103                });
 4104
 04105            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Event", b =>
 04106                {
 04107                    b.Property<long>("Id")
 04108                        .ValueGeneratedOnAdd()
 04109                        .HasColumnType("bigint")
 04110                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04111
 04112                    b.Property<long?>("CreatedByUserId")
 04113                        .HasColumnType("bigint");
 04114
 04115                    b.Property<DateTime>("CreationDateTime")
 04116                        .HasColumnType("timestamp without time zone");
 04117
 04118                    b.Property<DateTime>("DtCreated")
 04119                        .HasColumnType("timestamp without time zone");
 04120
 04121                    b.Property<string>("Entity")
 04122                        .IsRequired()
 04123                        .HasColumnType("text");
 04124
 04125                    b.Property<long>("EventsKindId")
 04126                        .HasColumnType("bigint");
 04127
 04128                    b.Property<Guid>("GUID")
 04129                        .ValueGeneratedOnAdd()
 04130                        .HasColumnType("uuid");
 04131
 04132                    b.Property<bool>("IsDeleted")
 04133                        .HasColumnType("boolean");
 04134
 04135                    b.Property<DateTime?>("ModificationDateTime")
 04136                        .HasColumnType("timestamp without time zone");
 04137
 04138                    b.Property<long?>("ModifiedByUserId")
 04139                        .HasColumnType("bigint");
 04140
 04141                    b.Property<string>("ReasonJson")
 04142                        .HasColumnType("jsonb");
 04143
 04144                    b.Property<long?>("RecStateId")
 04145                        .HasColumnType("bigint");
 04146
 04147                    b.Property<Guid>("RecordGuid")
 04148                        .HasColumnType("uuid");
 04149
 04150                    b.Property<long>("UserId")
 04151                        .HasColumnType("bigint");
 04152
 04153                    b.HasKey("Id");
 04154
 04155                    b.HasIndex("CreatedByUserId");
 04156
 04157                    b.HasIndex("Entity");
 04158
 04159                    b.HasIndex("EventsKindId");
 04160
 04161                    b.HasIndex("ModifiedByUserId");
 04162
 04163                    b.HasIndex("ReasonJson");
 04164
 04165                    b.HasIndex("RecStateId");
 04166
 04167                    b.HasIndex("UserId");
 04168
 04169                    b.ToTable("Events");
 04170                });
 4171
 04172            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.EventsKind", b =>
 04173                {
 04174                    b.Property<long>("Id")
 04175                        .ValueGeneratedOnAdd()
 04176                        .HasColumnType("bigint")
 04177                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04178
 04179                    b.Property<string>("Code")
 04180                        .IsRequired()
 04181                        .HasColumnType("text");
 04182
 04183                    b.Property<long?>("CreatedByUserId")
 04184                        .HasColumnType("bigint");
 04185
 04186                    b.Property<DateTime>("CreationDateTime")
 04187                        .HasColumnType("timestamp without time zone");
 04188
 04189                    b.Property<string>("Description")
 04190                        .HasColumnType("text");
 04191
 04192                    b.Property<Guid>("GUID")
 04193                        .ValueGeneratedOnAdd()
 04194                        .HasColumnType("uuid");
 04195
 04196                    b.Property<bool>("IsDeleted")
 04197                        .HasColumnType("boolean");
 04198
 04199                    b.Property<DateTime?>("ModificationDateTime")
 04200                        .HasColumnType("timestamp without time zone");
 04201
 04202                    b.Property<long?>("ModifiedByUserId")
 04203                        .HasColumnType("bigint");
 04204
 04205                    b.Property<string>("Name")
 04206                        .IsRequired()
 04207                        .HasColumnType("text");
 04208
 04209                    b.Property<long?>("RecStateId")
 04210                        .HasColumnType("bigint");
 04211
 04212                    b.HasKey("Id");
 04213
 04214                    b.HasIndex("CreatedByUserId");
 04215
 04216                    b.HasIndex("ModifiedByUserId");
 04217
 04218                    b.HasIndex("RecStateId");
 04219
 04220                    b.ToTable("EventsKind");
 04221
 04222                    b.HasData(
 04223                        new
 04224                        {
 04225                            Id = 1L,
 04226                            Code = "Unknown",
 04227                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04228                            Description = "",
 04229                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04230                            IsDeleted = false,
 04231                            Name = "Неизвестно"
 04232                        },
 04233                        new
 04234                        {
 04235                            Id = 2L,
 04236                            Code = "Create",
 04237                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04238                            Description = "",
 04239                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04240                            IsDeleted = false,
 04241                            Name = "Создание"
 04242                        },
 04243                        new
 04244                        {
 04245                            Id = 3L,
 04246                            Code = "Update",
 04247                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04248                            Description = "",
 04249                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04250                            IsDeleted = false,
 04251                            Name = "Обновление"
 04252                        },
 04253                        new
 04254                        {
 04255                            Id = 4L,
 04256                            Code = "Delete",
 04257                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04258                            Description = "",
 04259                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04260                            IsDeleted = false,
 04261                            Name = "Удаление"
 04262                        });
 04263                });
 4264
 04265            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ExchangeToken", b =>
 04266                {
 04267                    b.Property<long>("Id")
 04268                        .ValueGeneratedOnAdd()
 04269                        .HasColumnType("bigint")
 04270                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04271
 04272                    b.Property<long>("ContragentId")
 04273                        .HasColumnType("bigint");
 04274
 04275                    b.Property<long?>("CreatedByUserId")
 04276                        .HasColumnType("bigint");
 04277
 04278                    b.Property<DateTime>("CreationDateTime")
 04279                        .HasColumnType("timestamp without time zone");
 04280
 04281                    b.Property<Guid>("GUID")
 04282                        .ValueGeneratedOnAdd()
 04283                        .HasColumnType("uuid");
 04284
 04285                    b.Property<bool>("IsDeleted")
 04286                        .HasColumnType("boolean");
 04287
 04288                    b.Property<DateTime?>("ModificationDateTime")
 04289                        .HasColumnType("timestamp without time zone");
 04290
 04291                    b.Property<long?>("ModifiedByUserId")
 04292                        .HasColumnType("bigint");
 04293
 04294                    b.Property<long?>("RecStateId")
 04295                        .HasColumnType("bigint");
 04296
 04297                    b.HasKey("Id");
 04298
 04299                    b.HasIndex("ContragentId");
 04300
 04301                    b.HasIndex("CreatedByUserId");
 04302
 04303                    b.HasIndex("ModifiedByUserId");
 04304
 04305                    b.HasIndex("RecStateId");
 04306
 04307                    b.ToTable("ExchangeTokens");
 04308                });
 4309
 04310            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", b =>
 04311                {
 04312                    b.Property<long>("Id")
 04313                        .ValueGeneratedOnAdd()
 04314                        .HasColumnType("bigint")
 04315                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04316
 04317                    b.Property<long?>("BrandId")
 04318                        .HasColumnType("bigint");
 04319
 04320                    b.Property<long>("CategoryId")
 04321                        .HasColumnType("bigint");
 04322
 04323                    b.Property<string>("ConformityCertNumber")
 04324                        .IsRequired()
 04325                        .HasColumnType("text");
 04326
 04327                    b.Property<long?>("CountryId")
 04328                        .HasColumnType("bigint");
 04329
 04330                    b.Property<long?>("CreatedByUserId")
 04331                        .HasColumnType("bigint");
 04332
 04333                    b.Property<DateTime>("CreationDateTime")
 04334                        .HasColumnType("timestamp without time zone");
 04335
 04336                    b.Property<string>("CustomDeclarationNumber")
 04337                        .IsRequired()
 04338                        .HasColumnType("text");
 04339
 04340                    b.Property<int>("ExpirationDays")
 04341                        .HasColumnType("integer");
 04342
 04343                    b.Property<Guid>("GUID")
 04344                        .ValueGeneratedOnAdd()
 04345                        .HasColumnType("uuid");
 04346
 04347                    b.Property<int>("GroupPackHeight")
 04348                        .HasColumnType("integer");
 04349
 04350                    b.Property<int>("GroupPackNesting")
 04351                        .HasColumnType("integer");
 04352
 04353                    b.Property<int>("GroupPackThickness")
 04354                        .HasColumnType("integer");
 04355
 04356                    b.Property<int>("GroupPackWidth")
 04357                        .HasColumnType("integer");
 04358
 04359                    b.Property<int>("Height")
 04360                        .HasColumnType("integer");
 04361
 04362                    b.Property<bool>("IsDeleted")
 04363                        .HasColumnType("boolean");
 04364
 04365                    b.Property<long>("MainBarcodeId")
 04366                        .HasColumnType("bigint");
 04367
 04368                    b.Property<long?>("ManufacturerId")
 04369                        .HasColumnType("bigint");
 04370
 04371                    b.Property<decimal>("MinDeliveryLot")
 04372                        .HasColumnType("numeric");
 04373
 04374                    b.Property<DateTime?>("ModificationDateTime")
 04375                        .HasColumnType("timestamp without time zone");
 04376
 04377                    b.Property<long?>("ModifiedByUserId")
 04378                        .HasColumnType("bigint");
 04379
 04380                    b.Property<string>("Name")
 04381                        .IsRequired()
 04382                        .HasColumnType("text");
 04383
 04384                    b.Property<int>("PalletNesting")
 04385                        .HasColumnType("integer");
 04386
 04387                    b.Property<long?>("RecStateId")
 04388                        .HasColumnType("bigint");
 04389
 04390                    b.Property<long?>("SubBrandId")
 04391                        .HasColumnType("bigint");
 04392
 04393                    b.Property<long?>("SupplierId")
 04394                        .HasColumnType("bigint");
 04395
 04396                    b.Property<int>("Thickness")
 04397                        .HasColumnType("integer");
 04398
 04399                    b.Property<long>("UnitsKindId")
 04400                        .HasColumnType("bigint");
 04401
 04402                    b.Property<long>("VatsKindId")
 04403                        .HasColumnType("bigint");
 04404
 04405                    b.Property<string>("VendorCode")
 04406                        .IsRequired()
 04407                        .HasColumnType("text");
 04408
 04409                    b.Property<decimal>("Weight")
 04410                        .HasColumnType("numeric");
 04411
 04412                    b.Property<int>("Width")
 04413                        .HasColumnType("integer");
 04414
 04415                    b.HasKey("Id");
 04416
 04417                    b.HasIndex("BrandId");
 04418
 04419                    b.HasIndex("CategoryId");
 04420
 04421                    b.HasIndex("CountryId");
 04422
 04423                    b.HasIndex("CreatedByUserId");
 04424
 04425                    b.HasIndex("MainBarcodeId");
 04426
 04427                    b.HasIndex("ManufacturerId");
 04428
 04429                    b.HasIndex("ModifiedByUserId");
 04430
 04431                    b.HasIndex("Name");
 04432
 04433                    b.HasIndex("RecStateId");
 04434
 04435                    b.HasIndex("SubBrandId");
 04436
 04437                    b.HasIndex("SupplierId");
 04438
 04439                    b.HasIndex("UnitsKindId");
 04440
 04441                    b.HasIndex("VatsKindId");
 04442
 04443                    b.ToTable("Goods");
 04444                });
 4445
 04446            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Incident", b =>
 04447                {
 04448                    b.Property<long>("Id")
 04449                        .ValueGeneratedOnAdd()
 04450                        .HasColumnType("bigint")
 04451                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04452
 04453                    b.Property<string>("Body")
 04454                        .HasColumnType("text");
 04455
 04456                    b.Property<long?>("CreatedByUserId")
 04457                        .HasColumnType("bigint");
 04458
 04459                    b.Property<DateTime>("CreationDateTime")
 04460                        .HasColumnType("timestamp without time zone");
 04461
 04462                    b.Property<DateTime>("DtCreated")
 04463                        .HasColumnType("timestamp without time zone");
 04464
 04465                    b.Property<Guid>("GUID")
 04466                        .ValueGeneratedOnAdd()
 04467                        .HasColumnType("uuid");
 04468
 04469                    b.Property<bool>("IsDeleted")
 04470                        .HasColumnType("boolean");
 04471
 04472                    b.Property<long?>("KindId")
 04473                        .HasColumnType("bigint");
 04474
 04475                    b.Property<DateTime?>("ModificationDateTime")
 04476                        .HasColumnType("timestamp without time zone");
 04477
 04478                    b.Property<long?>("ModifiedByUserId")
 04479                        .HasColumnType("bigint");
 04480
 04481                    b.Property<long?>("RecStateId")
 04482                        .HasColumnType("bigint");
 04483
 04484                    b.Property<long?>("StatusId")
 04485                        .HasColumnType("bigint");
 04486
 04487                    b.Property<string>("Subject")
 04488                        .HasColumnType("text");
 04489
 04490                    b.Property<string>("Ticket")
 04491                        .HasColumnType("text");
 04492
 04493                    b.Property<long>("UserId")
 04494                        .HasColumnType("bigint");
 04495
 04496                    b.HasKey("Id");
 04497
 04498                    b.HasIndex("CreatedByUserId");
 04499
 04500                    b.HasIndex("KindId");
 04501
 04502                    b.HasIndex("ModifiedByUserId");
 04503
 04504                    b.HasIndex("RecStateId");
 04505
 04506                    b.HasIndex("StatusId");
 04507
 04508                    b.HasIndex("UserId");
 04509
 04510                    b.ToTable("Incidents");
 04511                });
 4512
 04513            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsKind", b =>
 04514                {
 04515                    b.Property<long>("Id")
 04516                        .ValueGeneratedOnAdd()
 04517                        .HasColumnType("bigint")
 04518                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04519
 04520                    b.Property<string>("Code")
 04521                        .IsRequired()
 04522                        .HasColumnType("text");
 04523
 04524                    b.Property<long?>("CreatedByUserId")
 04525                        .HasColumnType("bigint");
 04526
 04527                    b.Property<DateTime>("CreationDateTime")
 04528                        .HasColumnType("timestamp without time zone");
 04529
 04530                    b.Property<string>("Description")
 04531                        .HasColumnType("text");
 04532
 04533                    b.Property<Guid>("GUID")
 04534                        .ValueGeneratedOnAdd()
 04535                        .HasColumnType("uuid");
 04536
 04537                    b.Property<bool>("IsDeleted")
 04538                        .HasColumnType("boolean");
 04539
 04540                    b.Property<DateTime?>("ModificationDateTime")
 04541                        .HasColumnType("timestamp without time zone");
 04542
 04543                    b.Property<long?>("ModifiedByUserId")
 04544                        .HasColumnType("bigint");
 04545
 04546                    b.Property<string>("Name")
 04547                        .IsRequired()
 04548                        .HasColumnType("text");
 04549
 04550                    b.Property<long?>("RecStateId")
 04551                        .HasColumnType("bigint");
 04552
 04553                    b.HasKey("Id");
 04554
 04555                    b.HasIndex("CreatedByUserId");
 04556
 04557                    b.HasIndex("ModifiedByUserId");
 04558
 04559                    b.HasIndex("RecStateId");
 04560
 04561                    b.ToTable("IncidentsKind");
 04562
 04563                    b.HasData(
 04564                        new
 04565                        {
 04566                            Id = 1L,
 04567                            Code = "Unknown",
 04568                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04569                            Description = "",
 04570                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04571                            IsDeleted = false,
 04572                            Name = "Неизвестно"
 04573                        },
 04574                        new
 04575                        {
 04576                            Id = 2L,
 04577                            Code = "Error",
 04578                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04579                            Description = "",
 04580                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04581                            IsDeleted = false,
 04582                            Name = "Ошибка"
 04583                        },
 04584                        new
 04585                        {
 04586                            Id = 3L,
 04587                            Code = "Question",
 04588                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04589                            Description = "",
 04590                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04591                            IsDeleted = false,
 04592                            Name = "Вопрос"
 04593                        },
 04594                        new
 04595                        {
 04596                            Id = 4L,
 04597                            Code = "Suggestion",
 04598                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04599                            Description = "",
 04600                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04601                            IsDeleted = false,
 04602                            Name = "Предложение"
 04603                        });
 04604                });
 4605
 04606            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsStatus", b =>
 04607                {
 04608                    b.Property<long>("Id")
 04609                        .ValueGeneratedOnAdd()
 04610                        .HasColumnType("bigint")
 04611                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04612
 04613                    b.Property<string>("Code")
 04614                        .IsRequired()
 04615                        .HasColumnType("text");
 04616
 04617                    b.Property<long?>("CreatedByUserId")
 04618                        .HasColumnType("bigint");
 04619
 04620                    b.Property<DateTime>("CreationDateTime")
 04621                        .HasColumnType("timestamp without time zone");
 04622
 04623                    b.Property<string>("Description")
 04624                        .HasColumnType("text");
 04625
 04626                    b.Property<Guid>("GUID")
 04627                        .ValueGeneratedOnAdd()
 04628                        .HasColumnType("uuid");
 04629
 04630                    b.Property<bool>("IsDeleted")
 04631                        .HasColumnType("boolean");
 04632
 04633                    b.Property<DateTime?>("ModificationDateTime")
 04634                        .HasColumnType("timestamp without time zone");
 04635
 04636                    b.Property<long?>("ModifiedByUserId")
 04637                        .HasColumnType("bigint");
 04638
 04639                    b.Property<string>("Name")
 04640                        .IsRequired()
 04641                        .HasColumnType("text");
 04642
 04643                    b.Property<long?>("RecStateId")
 04644                        .HasColumnType("bigint");
 04645
 04646                    b.HasKey("Id");
 04647
 04648                    b.HasIndex("CreatedByUserId");
 04649
 04650                    b.HasIndex("ModifiedByUserId");
 04651
 04652                    b.HasIndex("RecStateId");
 04653
 04654                    b.ToTable("IncidentsStatus");
 04655
 04656                    b.HasData(
 04657                        new
 04658                        {
 04659                            Id = 1L,
 04660                            Code = "Open",
 04661                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04662                            Description = "",
 04663                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04664                            IsDeleted = false,
 04665                            Name = "Открыт"
 04666                        },
 04667                        new
 04668                        {
 04669                            Id = 2L,
 04670                            Code = "InWork",
 04671                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04672                            Description = "",
 04673                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04674                            IsDeleted = false,
 04675                            Name = "В работе"
 04676                        },
 04677                        new
 04678                        {
 04679                            Id = 3L,
 04680                            Code = "Resolved",
 04681                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04682                            Description = "",
 04683                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04684                            IsDeleted = false,
 04685                            Name = "Решен"
 04686                        },
 04687                        new
 04688                        {
 04689                            Id = 4L,
 04690                            Code = "Canceled",
 04691                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04692                            Description = "",
 04693                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04694                            IsDeleted = false,
 04695                            Name = "Отменен"
 04696                        },
 04697                        new
 04698                        {
 04699                            Id = 5L,
 04700                            Code = "Closed",
 04701                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 04702                            Description = "",
 04703                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 04704                            IsDeleted = false,
 04705                            Name = "Закрыт"
 04706                        });
 04707                });
 4708
 04709            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.JobLogger", b =>
 04710                {
 04711                    b.Property<long>("Id")
 04712                        .ValueGeneratedOnAdd()
 04713                        .HasColumnType("bigint")
 04714                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04715
 04716                    b.Property<long?>("CreatedByUserId")
 04717                        .HasColumnType("bigint");
 04718
 04719                    b.Property<DateTime>("CreationDateTime")
 04720                        .HasColumnType("timestamp without time zone");
 04721
 04722                    b.Property<Guid>("GUID")
 04723                        .ValueGeneratedOnAdd()
 04724                        .HasColumnType("uuid");
 04725
 04726                    b.Property<bool>("IsDeleted")
 04727                        .HasColumnType("boolean");
 04728
 04729                    b.Property<string>("JobName")
 04730                        .HasColumnType("text");
 04731
 04732                    b.Property<string>("Log")
 04733                        .HasColumnType("text");
 04734
 04735                    b.Property<string>("LogLevel")
 04736                        .HasColumnType("text");
 04737
 04738                    b.Property<DateTime?>("ModificationDateTime")
 04739                        .HasColumnType("timestamp without time zone");
 04740
 04741                    b.Property<long?>("ModifiedByUserId")
 04742                        .HasColumnType("bigint");
 04743
 04744                    b.Property<long?>("RecStateId")
 04745                        .HasColumnType("bigint");
 04746
 04747                    b.HasKey("Id");
 04748
 04749                    b.HasIndex("CreatedByUserId");
 04750
 04751                    b.HasIndex("ModifiedByUserId");
 04752
 04753                    b.HasIndex("RecStateId");
 04754
 04755                    b.ToTable("JobLoggers");
 04756                });
 4757
 04758            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MethodRole", b =>
 04759                {
 04760                    b.Property<long>("RoleId")
 04761                        .HasColumnType("bigint");
 04762
 04763                    b.Property<long>("MethodId")
 04764                        .HasColumnType("bigint");
 04765
 04766                    b.Property<long?>("CreatedByUserId")
 04767                        .HasColumnType("bigint");
 04768
 04769                    b.Property<DateTime>("CreationDateTime")
 04770                        .HasColumnType("timestamp without time zone");
 04771
 04772                    b.Property<Guid>("GUID")
 04773                        .ValueGeneratedOnAdd()
 04774                        .HasColumnType("uuid");
 04775
 04776                    b.HasKey("RoleId", "MethodId");
 04777
 04778                    b.HasIndex("MethodId");
 04779
 04780                    b.ToTable("MethodRole");
 04781                });
 4782
 04783            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Methods", b =>
 04784                {
 04785                    b.Property<long>("Id")
 04786                        .ValueGeneratedOnAdd()
 04787                        .HasColumnType("bigint")
 04788                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04789
 04790                    b.Property<long?>("CreatedByUserId")
 04791                        .HasColumnType("bigint");
 04792
 04793                    b.Property<DateTime>("CreationDateTime")
 04794                        .HasColumnType("timestamp without time zone");
 04795
 04796                    b.Property<string>("Description")
 04797                        .HasColumnType("text");
 04798
 04799                    b.Property<Guid>("GUID")
 04800                        .ValueGeneratedOnAdd()
 04801                        .HasColumnType("uuid");
 04802
 04803                    b.Property<bool>("IsDeleted")
 04804                        .HasColumnType("boolean");
 04805
 04806                    b.Property<string>("MethodName")
 04807                        .IsRequired()
 04808                        .HasColumnType("text");
 04809
 04810                    b.Property<DateTime?>("ModificationDateTime")
 04811                        .HasColumnType("timestamp without time zone");
 04812
 04813                    b.Property<long?>("ModifiedByUserId")
 04814                        .HasColumnType("bigint");
 04815
 04816                    b.Property<long?>("RecStateId")
 04817                        .HasColumnType("bigint");
 04818
 04819                    b.HasKey("Id");
 04820
 04821                    b.HasIndex("CreatedByUserId");
 04822
 04823                    b.HasIndex("ModifiedByUserId");
 04824
 04825                    b.HasIndex("RecStateId");
 04826
 04827                    b.ToTable("Methods");
 04828                });
 4829
 04830            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", b =>
 04831                {
 04832                    b.Property<long>("Id")
 04833                        .ValueGeneratedOnAdd()
 04834                        .HasColumnType("bigint")
 04835                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04836
 04837                    b.Property<long?>("CreatedByUserId")
 04838                        .HasColumnType("bigint");
 04839
 04840                    b.Property<DateTime>("CreationDateTime")
 04841                        .HasColumnType("timestamp without time zone");
 04842
 04843                    b.Property<long>("CustomerId")
 04844                        .HasColumnType("bigint");
 04845
 04846                    b.Property<string>("DocumentNumber")
 04847                        .IsRequired()
 04848                        .HasColumnType("text");
 04849
 04850                    b.Property<DateTime>("DtCreated")
 04851                        .HasColumnType("timestamp without time zone");
 04852
 04853                    b.Property<Guid>("GUID")
 04854                        .ValueGeneratedOnAdd()
 04855                        .HasColumnType("uuid");
 04856
 04857                    b.Property<bool>("IsDeleted")
 04858                        .HasColumnType("boolean");
 04859
 04860                    b.Property<DateTime?>("ModificationDateTime")
 04861                        .HasColumnType("timestamp without time zone");
 04862
 04863                    b.Property<long?>("ModifiedByUserId")
 04864                        .HasColumnType("bigint");
 04865
 04866                    b.Property<long>("MovementStatusId")
 04867                        .HasColumnType("bigint");
 04868
 04869                    b.Property<long>("MovementTypeId")
 04870                        .HasColumnType("bigint");
 04871
 04872                    b.Property<long?>("ParentId")
 04873                        .HasColumnType("bigint");
 04874
 04875                    b.Property<decimal>("PrepaimentPercent")
 04876                        .HasColumnType("numeric");
 04877
 04878                    b.Property<decimal>("PrepaimentSum")
 04879                        .HasColumnType("numeric");
 04880
 04881                    b.Property<long?>("RecStateId")
 04882                        .HasColumnType("bigint");
 04883
 04884                    b.Property<long>("ReceiverId")
 04885                        .HasColumnType("bigint");
 04886
 04887                    b.Property<long?>("SenderId")
 04888                        .HasColumnType("bigint");
 04889
 04890                    b.Property<long>("SupplierId")
 04891                        .HasColumnType("bigint");
 04892
 04893                    b.Property<DateTime?>("SupplierTransferDate")
 04894                        .HasColumnType("timestamp without time zone");
 04895
 04896                    b.HasKey("Id");
 04897
 04898                    b.HasIndex("CreatedByUserId");
 04899
 04900                    b.HasIndex("CustomerId");
 04901
 04902                    b.HasIndex("ModifiedByUserId");
 04903
 04904                    b.HasIndex("MovementStatusId");
 04905
 04906                    b.HasIndex("MovementTypeId");
 04907
 04908                    b.HasIndex("ParentId");
 04909
 04910                    b.HasIndex("RecStateId");
 04911
 04912                    b.HasIndex("ReceiverId");
 04913
 04914                    b.HasIndex("SenderId");
 04915
 04916                    b.HasIndex("SupplierId");
 04917
 04918                    b.ToTable("Movements");
 04919                });
 4920
 04921            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementItem", b =>
 04922                {
 04923                    b.Property<long>("Id")
 04924                        .ValueGeneratedOnAdd()
 04925                        .HasColumnType("bigint")
 04926                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04927
 04928                    b.Property<string>("Comment")
 04929                        .HasColumnType("text");
 04930
 04931                    b.Property<long?>("CreatedByUserId")
 04932                        .HasColumnType("bigint");
 04933
 04934                    b.Property<DateTime>("CreationDateTime")
 04935                        .HasColumnType("timestamp without time zone");
 04936
 04937                    b.Property<Guid>("GUID")
 04938                        .ValueGeneratedOnAdd()
 04939                        .HasColumnType("uuid");
 04940
 04941                    b.Property<long>("GoodId")
 04942                        .HasColumnType("bigint");
 04943
 04944                    b.Property<bool>("IsDeleted")
 04945                        .HasColumnType("boolean");
 04946
 04947                    b.Property<DateTime?>("ModificationDateTime")
 04948                        .HasColumnType("timestamp without time zone");
 04949
 04950                    b.Property<long?>("ModifiedByUserId")
 04951                        .HasColumnType("bigint");
 04952
 04953                    b.Property<long?>("MovementId")
 04954                        .HasColumnType("bigint");
 04955
 04956                    b.Property<decimal>("Price")
 04957                        .HasColumnType("numeric");
 04958
 04959                    b.Property<decimal>("Quantity")
 04960                        .HasColumnType("numeric");
 04961
 04962                    b.Property<long?>("RecStateId")
 04963                        .HasColumnType("bigint");
 04964
 04965                    b.HasKey("Id");
 04966
 04967                    b.HasIndex("CreatedByUserId");
 04968
 04969                    b.HasIndex("GoodId");
 04970
 04971                    b.HasIndex("ModifiedByUserId");
 04972
 04973                    b.HasIndex("MovementId");
 04974
 04975                    b.HasIndex("RecStateId");
 04976
 04977                    b.ToTable("MovementItems");
 04978                });
 4979
 04980            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementNote", b =>
 04981                {
 04982                    b.Property<long>("Id")
 04983                        .ValueGeneratedOnAdd()
 04984                        .HasColumnType("bigint")
 04985                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04986
 04987                    b.Property<string>("Body")
 04988                        .IsRequired()
 04989                        .HasColumnType("text");
 04990
 04991                    b.Property<long?>("CreatedByUserId")
 04992                        .HasColumnType("bigint");
 04993
 04994                    b.Property<DateTime>("CreationDateTime")
 04995                        .HasColumnType("timestamp without time zone");
 04996
 04997                    b.Property<Guid>("GUID")
 04998                        .ValueGeneratedOnAdd()
 04999                        .HasColumnType("uuid");
 05000
 05001                    b.Property<bool>("IsDeleted")
 05002                        .HasColumnType("boolean");
 05003
 05004                    b.Property<DateTime?>("ModificationDateTime")
 05005                        .HasColumnType("timestamp without time zone");
 05006
 05007                    b.Property<long?>("ModifiedByUserId")
 05008                        .HasColumnType("bigint");
 05009
 05010                    b.Property<long?>("MovementId")
 05011                        .HasColumnType("bigint");
 05012
 05013                    b.Property<long?>("RecStateId")
 05014                        .HasColumnType("bigint");
 05015
 05016                    b.HasKey("Id");
 05017
 05018                    b.HasIndex("CreatedByUserId");
 05019
 05020                    b.HasIndex("ModifiedByUserId");
 05021
 05022                    b.HasIndex("MovementId");
 05023
 05024                    b.HasIndex("RecStateId");
 05025
 05026                    b.ToTable("MovementNotes");
 05027                });
 5028
 05029            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementRouteAction", b =>
 05030                {
 05031                    b.Property<long>("Id")
 05032                        .ValueGeneratedOnAdd()
 05033                        .HasColumnType("bigint")
 05034                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05035
 05036                    b.Property<string>("Action")
 05037                        .HasColumnType("text");
 05038
 05039                    b.Property<string>("Caption")
 05040                        .HasColumnType("text");
 05041
 05042                    b.Property<string>("Code")
 05043                        .HasColumnType("text");
 05044
 05045                    b.Property<long?>("CreatedByUserId")
 05046                        .HasColumnType("bigint");
 05047
 05048                    b.Property<DateTime>("CreationDateTime")
 05049                        .HasColumnType("timestamp without time zone");
 05050
 05051                    b.Property<Guid>("GUID")
 05052                        .ValueGeneratedOnAdd()
 05053                        .HasColumnType("uuid");
 05054
 05055                    b.Property<bool>("IsDeleted")
 05056                        .HasColumnType("boolean");
 05057
 05058                    b.Property<DateTime?>("ModificationDateTime")
 05059                        .HasColumnType("timestamp without time zone");
 05060
 05061                    b.Property<long?>("ModifiedByUserId")
 05062                        .HasColumnType("bigint");
 05063
 05064                    b.Property<long>("OwnerActionId")
 05065                        .HasColumnType("bigint");
 05066
 05067                    b.Property<long?>("RecStateId")
 05068                        .HasColumnType("bigint");
 05069
 05070                    b.Property<long>("StatusId")
 05071                        .HasColumnType("bigint");
 05072
 05073                    b.Property<string>("Type")
 05074                        .HasColumnType("text");
 05075
 05076                    b.HasKey("Id");
 05077
 05078                    b.HasIndex("CreatedByUserId");
 05079
 05080                    b.HasIndex("ModifiedByUserId");
 05081
 05082                    b.HasIndex("OwnerActionId");
 05083
 05084                    b.HasIndex("RecStateId");
 05085
 05086                    b.HasIndex("StatusId");
 05087
 05088                    b.ToTable("MovementRouteActions");
 05089
 05090                    b.HasData(
 05091                        new
 05092                        {
 05093                            Id = 1L,
 05094                            Action = "Orders/{id}/DownloadOrderToFile",
 05095                            Caption = "Скачать CSV",
 05096                            Code = "Csv",
 05097                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05098                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05099                            IsDeleted = false,
 05100                            OwnerActionId = 1L,
 05101                            StatusId = 1L,
 05102                            Type = "GET"
 05103                        },
 05104                        new
 05105                        {
 05106                            Id = 2L,
 05107                            Action = "Orders/{id}",
 05108                            Caption = "Изменить",
 05109                            Code = "Edit",
 05110                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05111                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05112                            IsDeleted = false,
 05113                            OwnerActionId = 1L,
 05114                            StatusId = 1L,
 05115                            Type = "GET"
 05116                        },
 05117                        new
 05118                        {
 05119                            Id = 3L,
 05120                            Action = "Orders/{id}",
 05121                            Caption = "Удалить",
 05122                            Code = "Delete",
 05123                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05124                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05125                            IsDeleted = false,
 05126                            OwnerActionId = 1L,
 05127                            StatusId = 1L,
 05128                            Type = "DELETE"
 05129                        },
 05130                        new
 05131                        {
 05132                            Id = 4L,
 05133                            Action = "Orders/{id}/Send",
 05134                            Caption = "Отправить заявку",
 05135                            Code = "Send",
 05136                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05137                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05138                            IsDeleted = false,
 05139                            OwnerActionId = 1L,
 05140                            StatusId = 1L,
 05141                            Type = "POST"
 05142                        },
 05143                        new
 05144                        {
 05145                            Id = 5L,
 05146                            Action = "Orders/{id}/DownloadOrderToFile",
 05147                            Caption = "Скачать CSV",
 05148                            Code = "Csv",
 05149                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05150                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05151                            IsDeleted = false,
 05152                            OwnerActionId = 1L,
 05153                            StatusId = 2L,
 05154                            Type = "GET"
 05155                        },
 05156                        new
 05157                        {
 05158                            Id = 6L,
 05159                            Action = "Orders/{id}/Clone",
 05160                            Caption = "Создать копию",
 05161                            Code = "Clone",
 05162                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05163                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05164                            IsDeleted = false,
 05165                            OwnerActionId = 1L,
 05166                            StatusId = 2L,
 05167                            Type = "POST"
 05168                        },
 05169                        new
 05170                        {
 05171                            Id = 7L,
 05172                            Action = "Orders/{id}/Reject",
 05173                            Caption = "Отказаться",
 05174                            Code = "Reject",
 05175                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05176                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05177                            IsDeleted = false,
 05178                            OwnerActionId = 1L,
 05179                            StatusId = 2L,
 05180                            Type = "POST"
 05181                        },
 05182                        new
 05183                        {
 05184                            Id = 8L,
 05185                            Action = "Shipments/{id}",
 05186                            Caption = "Принять",
 05187                            Code = "Confirm",
 05188                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05189                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05190                            IsDeleted = false,
 05191                            OwnerActionId = 3L,
 05192                            StatusId = 2L,
 05193                            Type = "POST"
 05194                        },
 05195                        new
 05196                        {
 05197                            Id = 85L,
 05198                            Action = "Orders/{id}/PlatformReject",
 05199                            Caption = "Отказать",
 05200                            Code = "RejectByPlatform",
 05201                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05202                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05203                            IsDeleted = false,
 05204                            OwnerActionId = 3L,
 05205                            StatusId = 2L,
 05206                            Type = "POST"
 05207                        },
 05208                        new
 05209                        {
 05210                            Id = 9L,
 05211                            Action = "Orders/{id}/DownloadOrderToFile",
 05212                            Caption = "Скачать CSV",
 05213                            Code = "Csv",
 05214                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05215                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05216                            IsDeleted = false,
 05217                            OwnerActionId = 3L,
 05218                            StatusId = 2L,
 05219                            Type = "GET"
 05220                        },
 05221                        new
 05222                        {
 05223                            Id = 10L,
 05224                            Action = "Orders/{id}/DownloadOrderToFile",
 05225                            Caption = "Скачать CSV",
 05226                            Code = "Csv",
 05227                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05228                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05229                            IsDeleted = false,
 05230                            OwnerActionId = 1L,
 05231                            StatusId = 3L,
 05232                            Type = "GET"
 05233                        },
 05234                        new
 05235                        {
 05236                            Id = 11L,
 05237                            Action = "Orders/{id}/Clone",
 05238                            Caption = "Создать копию",
 05239                            Code = "Clone",
 05240                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05241                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05242                            IsDeleted = false,
 05243                            OwnerActionId = 1L,
 05244                            StatusId = 3L,
 05245                            Type = "POST"
 05246                        },
 05247                        new
 05248                        {
 05249                            Id = 86L,
 05250                            Action = "Orders/{id}/Reject",
 05251                            Caption = "Отказаться",
 05252                            Code = "Reject",
 05253                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05254                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05255                            IsDeleted = false,
 05256                            OwnerActionId = 1L,
 05257                            StatusId = 3L,
 05258                            Type = "POST"
 05259                        },
 05260                        new
 05261                        {
 05262                            Id = 12L,
 05263                            Action = "Orders/{id}/DownloadOrderToFile",
 05264                            Caption = "Скачать CSV",
 05265                            Code = "Csv",
 05266                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05267                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05268                            IsDeleted = false,
 05269                            OwnerActionId = 1L,
 05270                            StatusId = 4L,
 05271                            Type = "GET"
 05272                        },
 05273                        new
 05274                        {
 05275                            Id = 13L,
 05276                            Action = "Orders/{id}/Clone",
 05277                            Caption = "Создать копию",
 05278                            Code = "Clone",
 05279                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05280                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05281                            IsDeleted = false,
 05282                            OwnerActionId = 1L,
 05283                            StatusId = 4L,
 05284                            Type = "POST"
 05285                        },
 05286                        new
 05287                        {
 05288                            Id = 87L,
 05289                            Action = "Orders/{id}/DownloadOrderToFile",
 05290                            Caption = "Скачать CSV",
 05291                            Code = "Csv",
 05292                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05293                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05294                            IsDeleted = false,
 05295                            OwnerActionId = 3L,
 05296                            StatusId = 4L,
 05297                            Type = "GET"
 05298                        },
 05299                        new
 05300                        {
 05301                            Id = 14L,
 05302                            Action = "Orders/{id}/DownloadOrderToFile",
 05303                            Caption = "Скачать CSV",
 05304                            Code = "Csv",
 05305                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05306                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05307                            IsDeleted = false,
 05308                            OwnerActionId = 1L,
 05309                            StatusId = 5L,
 05310                            Type = "GET"
 05311                        },
 05312                        new
 05313                        {
 05314                            Id = 15L,
 05315                            Action = "Orders/{id}/Clone",
 05316                            Caption = "Создать копию",
 05317                            Code = "Clone",
 05318                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05319                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05320                            IsDeleted = false,
 05321                            OwnerActionId = 1L,
 05322                            StatusId = 5L,
 05323                            Type = "POST"
 05324                        },
 05325                        new
 05326                        {
 05327                            Id = 16L,
 05328                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05329                            Caption = "Скачать CSV",
 05330                            Code = "Csv",
 05331                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05332                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05333                            IsDeleted = false,
 05334                            OwnerActionId = 2L,
 05335                            StatusId = 6L,
 05336                            Type = "GET"
 05337                        },
 05338                        new
 05339                        {
 05340                            Id = 17L,
 05341                            Action = "Shipments/{id}/PaymentReserve",
 05342                            Caption = "Принять",
 05343                            Code = "PaymentReserve",
 05344                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05345                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05346                            IsDeleted = false,
 05347                            OwnerActionId = 2L,
 05348                            StatusId = 6L,
 05349                            Type = "POST"
 05350                        },
 05351                        new
 05352                        {
 05353                            Id = 83L,
 05354                            Action = "Shipments/{id}/SupplierReject",
 05355                            Caption = "Отказать",
 05356                            Code = "RejectBySupplier",
 05357                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05358                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05359                            IsDeleted = false,
 05360                            OwnerActionId = 2L,
 05361                            StatusId = 6L,
 05362                            Type = "POST"
 05363                        },
 05364                        new
 05365                        {
 05366                            Id = 18L,
 05367                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05368                            Caption = "Скачать CSV",
 05369                            Code = "Csv",
 05370                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05371                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05372                            IsDeleted = false,
 05373                            OwnerActionId = 3L,
 05374                            StatusId = 6L,
 05375                            Type = "GET"
 05376                        },
 05377                        new
 05378                        {
 05379                            Id = 19L,
 05380                            Action = "Shipments/{id}/Payment",
 05381                            Caption = "Оплатить",
 05382                            Code = "Payment",
 05383                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05384                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05385                            IsDeleted = false,
 05386                            OwnerActionId = 1L,
 05387                            StatusId = 8L,
 05388                            Type = "POST"
 05389                        },
 05390                        new
 05391                        {
 05392                            Id = 45L,
 05393                            Action = "Shipments/{id}/CustomerReject",
 05394                            Caption = "Отказаться",
 05395                            Code = "RejectByCustomer",
 05396                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05397                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05398                            IsDeleted = false,
 05399                            OwnerActionId = 1L,
 05400                            StatusId = 8L,
 05401                            Type = "POST"
 05402                        },
 05403                        new
 05404                        {
 05405                            Id = 20L,
 05406                            Action = "Orders/CreateOnBase",
 05407                            Caption = "Создать заявку на основе",
 05408                            Code = "CreateOnBase",
 05409                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05410                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05411                            IsDeleted = false,
 05412                            OwnerActionId = 1L,
 05413                            StatusId = 8L,
 05414                            Type = "POST"
 05415                        },
 05416                        new
 05417                        {
 05418                            Id = 21L,
 05419                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05420                            Caption = "Скачать CSV",
 05421                            Code = "Csv",
 05422                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05423                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05424                            IsDeleted = false,
 05425                            OwnerActionId = 1L,
 05426                            StatusId = 8L,
 05427                            Type = "GET"
 05428                        },
 05429                        new
 05430                        {
 05431                            Id = 22L,
 05432                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05433                            Caption = "Скачать CSV",
 05434                            Code = "Csv",
 05435                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05436                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05437                            IsDeleted = false,
 05438                            OwnerActionId = 2L,
 05439                            StatusId = 8L,
 05440                            Type = "GET"
 05441                        },
 05442                        new
 05443                        {
 05444                            Id = 23L,
 05445                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05446                            Caption = "Скачать CSV",
 05447                            Code = "Csv",
 05448                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05449                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05450                            IsDeleted = false,
 05451                            OwnerActionId = 3L,
 05452                            StatusId = 8L,
 05453                            Type = "GET"
 05454                        },
 05455                        new
 05456                        {
 05457                            Id = 24L,
 05458                            Action = "Orders/CreateOnBase",
 05459                            Caption = "Создать заявку на основе",
 05460                            Code = "CreateOnBase",
 05461                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05462                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05463                            IsDeleted = false,
 05464                            OwnerActionId = 1L,
 05465                            StatusId = 9L,
 05466                            Type = "POST"
 05467                        },
 05468                        new
 05469                        {
 05470                            Id = 25L,
 05471                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05472                            Caption = "Скачать CSV",
 05473                            Code = "Csv",
 05474                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05475                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05476                            IsDeleted = false,
 05477                            OwnerActionId = 1L,
 05478                            StatusId = 9L,
 05479                            Type = "GET"
 05480                        },
 05481                        new
 05482                        {
 05483                            Id = 88L,
 05484                            Action = "Shipments/{id}/CustomerReject",
 05485                            Caption = "Отказаться",
 05486                            Code = "RejectByCustomer",
 05487                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05488                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05489                            IsDeleted = false,
 05490                            OwnerActionId = 1L,
 05491                            StatusId = 9L,
 05492                            Type = "POST"
 05493                        },
 05494                        new
 05495                        {
 05496                            Id = 26L,
 05497                            Action = "Shipments/{id}/ReadyToShip",
 05498                            Caption = "Подготовить к выдаче",
 05499                            Code = "ReadyToShip",
 05500                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05501                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05502                            IsDeleted = false,
 05503                            OwnerActionId = 2L,
 05504                            StatusId = 9L,
 05505                            Type = "POST"
 05506                        },
 05507                        new
 05508                        {
 05509                            Id = 27L,
 05510                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05511                            Caption = "Скачать CSV",
 05512                            Code = "Csv",
 05513                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05514                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05515                            IsDeleted = false,
 05516                            OwnerActionId = 2L,
 05517                            StatusId = 9L,
 05518                            Type = "GET"
 05519                        },
 05520                        new
 05521                        {
 05522                            Id = 43L,
 05523                            Action = "Shipments/{id}/SupplierReject",
 05524                            Caption = "Отказать",
 05525                            Code = "RejectBySupplier",
 05526                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05527                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05528                            IsDeleted = false,
 05529                            OwnerActionId = 2L,
 05530                            StatusId = 9L,
 05531                            Type = "POST"
 05532                        },
 05533                        new
 05534                        {
 05535                            Id = 28L,
 05536                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05537                            Caption = "Скачать CSV",
 05538                            Code = "Csv",
 05539                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05540                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05541                            IsDeleted = false,
 05542                            OwnerActionId = 3L,
 05543                            StatusId = 9L,
 05544                            Type = "GET"
 05545                        },
 05546                        new
 05547                        {
 05548                            Id = 29L,
 05549                            Action = "Orders/CreateOnBase",
 05550                            Caption = "Создать заявку на основе",
 05551                            Code = "CreateOnBase",
 05552                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05553                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05554                            IsDeleted = false,
 05555                            OwnerActionId = 1L,
 05556                            StatusId = 10L,
 05557                            Type = "POST"
 05558                        },
 05559                        new
 05560                        {
 05561                            Id = 30L,
 05562                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05563                            Caption = "Скачать CSV",
 05564                            Code = "Csv",
 05565                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05566                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05567                            IsDeleted = false,
 05568                            OwnerActionId = 1L,
 05569                            StatusId = 10L,
 05570                            Type = "GET"
 05571                        },
 05572                        new
 05573                        {
 05574                            Id = 34L,
 05575                            Action = "Shipments/{id}/Print",
 05576                            Caption = "Распечатать УПД",
 05577                            Code = "Pdf",
 05578                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05579                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05580                            IsDeleted = false,
 05581                            OwnerActionId = 1L,
 05582                            StatusId = 10L,
 05583                            Type = "GET"
 05584                        },
 05585                        new
 05586                        {
 05587                            Id = 89L,
 05588                            Action = "Shipments/{id}/CustomerReject",
 05589                            Caption = "Отказаться",
 05590                            Code = "RejectByCustomer",
 05591                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05592                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05593                            IsDeleted = false,
 05594                            OwnerActionId = 1L,
 05595                            StatusId = 10L,
 05596                            Type = "POST"
 05597                        },
 05598                        new
 05599                        {
 05600                            Id = 31L,
 05601                            Action = "Shipments/{id}/Ship",
 05602                            Caption = "Выдать",
 05603                            Code = "Ship",
 05604                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05605                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05606                            IsDeleted = false,
 05607                            OwnerActionId = 2L,
 05608                            StatusId = 10L,
 05609                            Type = "POST"
 05610                        },
 05611                        new
 05612                        {
 05613                            Id = 35L,
 05614                            Action = "Shipments/{id}/Correction",
 05615                            Caption = "Редактировать",
 05616                            Code = "Edit",
 05617                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05618                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05619                            IsDeleted = false,
 05620                            OwnerActionId = 2L,
 05621                            StatusId = 10L,
 05622                            Type = "PUT"
 05623                        },
 05624                        new
 05625                        {
 05626                            Id = 44L,
 05627                            Action = "Shipments/{id}/SupplierReject",
 05628                            Caption = "Отказать",
 05629                            Code = "RejectBySupplier",
 05630                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05631                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05632                            IsDeleted = false,
 05633                            OwnerActionId = 2L,
 05634                            StatusId = 10L,
 05635                            Type = "POST"
 05636                        },
 05637                        new
 05638                        {
 05639                            Id = 32L,
 05640                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05641                            Caption = "Скачать CSV",
 05642                            Code = "Csv",
 05643                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05644                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05645                            IsDeleted = false,
 05646                            OwnerActionId = 2L,
 05647                            StatusId = 10L,
 05648                            Type = "GET"
 05649                        },
 05650                        new
 05651                        {
 05652                            Id = 33L,
 05653                            Action = "Shipments/{id}/Print",
 05654                            Caption = "Распечатать УПД",
 05655                            Code = "Pdf",
 05656                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05657                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05658                            IsDeleted = false,
 05659                            OwnerActionId = 2L,
 05660                            StatusId = 10L,
 05661                            Type = "GET"
 05662                        },
 05663                        new
 05664                        {
 05665                            Id = 98L,
 05666                            Action = "Shipments/{id}/Print",
 05667                            Caption = "Распечатать УПД",
 05668                            Code = "Pdf",
 05669                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05670                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05671                            IsDeleted = false,
 05672                            OwnerActionId = 3L,
 05673                            StatusId = 10L,
 05674                            Type = "GET"
 05675                        },
 05676                        new
 05677                        {
 05678                            Id = 97L,
 05679                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05680                            Caption = "Скачать CSV",
 05681                            Code = "Csv",
 05682                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05683                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05684                            IsDeleted = false,
 05685                            OwnerActionId = 3L,
 05686                            StatusId = 10L,
 05687                            Type = "GET"
 05688                        },
 05689                        new
 05690                        {
 05691                            Id = 36L,
 05692                            Action = "Orders/CreateOnBase",
 05693                            Caption = "Создать заявку на основе",
 05694                            Code = "CreateOnBase",
 05695                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05696                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05697                            IsDeleted = false,
 05698                            OwnerActionId = 1L,
 05699                            StatusId = 11L,
 05700                            Type = "POST"
 05701                        },
 05702                        new
 05703                        {
 05704                            Id = 37L,
 05705                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05706                            Caption = "Скачать CSV",
 05707                            Code = "Csv",
 05708                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05709                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05710                            IsDeleted = false,
 05711                            OwnerActionId = 1L,
 05712                            StatusId = 11L,
 05713                            Type = "GET"
 05714                        },
 05715                        new
 05716                        {
 05717                            Id = 90L,
 05718                            Action = "Shipments/{id}/CustomerReject",
 05719                            Caption = "Отказаться",
 05720                            Code = "RejectByCustomer",
 05721                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05722                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05723                            IsDeleted = false,
 05724                            OwnerActionId = 1L,
 05725                            StatusId = 11L,
 05726                            Type = "POST"
 05727                        },
 05728                        new
 05729                        {
 05730                            Id = 38L,
 05731                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05732                            Caption = "Скачать CSV",
 05733                            Code = "Csv",
 05734                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05735                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05736                            IsDeleted = false,
 05737                            OwnerActionId = 2L,
 05738                            StatusId = 11L,
 05739                            Type = "GET"
 05740                        },
 05741                        new
 05742                        {
 05743                            Id = 39L,
 05744                            Action = "Shipments/{id}/ReadyToShip",
 05745                            Caption = "Подготовить к выдаче",
 05746                            Code = "ReadyToShip",
 05747                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05748                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05749                            IsDeleted = false,
 05750                            OwnerActionId = 2L,
 05751                            StatusId = 11L,
 05752                            Type = "PUT"
 05753                        },
 05754                        new
 05755                        {
 05756                            Id = 81L,
 05757                            Action = "Shipments/{id}/SupplierReject",
 05758                            Caption = "Отказать",
 05759                            Code = "RejectBySupplier",
 05760                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05761                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05762                            IsDeleted = false,
 05763                            OwnerActionId = 2L,
 05764                            StatusId = 11L,
 05765                            Type = "PUT"
 05766                        },
 05767                        new
 05768                        {
 05769                            Id = 40L,
 05770                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05771                            Caption = "Скачать CSV",
 05772                            Code = "Csv",
 05773                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05774                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05775                            IsDeleted = false,
 05776                            OwnerActionId = 3L,
 05777                            StatusId = 11L,
 05778                            Type = "GET"
 05779                        },
 05780                        new
 05781                        {
 05782                            Id = 41L,
 05783                            Action = "Orders/CreateOnBase",
 05784                            Caption = "Создать заявку на основе",
 05785                            Code = "CreateOnBase",
 05786                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05787                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05788                            IsDeleted = false,
 05789                            OwnerActionId = 1L,
 05790                            StatusId = 12L,
 05791                            Type = "POST"
 05792                        },
 05793                        new
 05794                        {
 05795                            Id = 42L,
 05796                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05797                            Caption = "Скачать CSV",
 05798                            Code = "Csv",
 05799                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05800                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05801                            IsDeleted = false,
 05802                            OwnerActionId = 1L,
 05803                            StatusId = 12L,
 05804                            Type = "GET"
 05805                        },
 05806                        new
 05807                        {
 05808                            Id = 46L,
 05809                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05810                            Caption = "Скачать CSV",
 05811                            Code = "Csv",
 05812                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05813                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05814                            IsDeleted = false,
 05815                            OwnerActionId = 2L,
 05816                            StatusId = 12L,
 05817                            Type = "GET"
 05818                        },
 05819                        new
 05820                        {
 05821                            Id = 47L,
 05822                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05823                            Caption = "Скачать CSV",
 05824                            Code = "Csv",
 05825                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05826                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05827                            IsDeleted = false,
 05828                            OwnerActionId = 3L,
 05829                            StatusId = 12L,
 05830                            Type = "GET"
 05831                        },
 05832                        new
 05833                        {
 05834                            Id = 48L,
 05835                            Action = "Orders/CreateOnBase",
 05836                            Caption = "Создать заявку на основе",
 05837                            Code = "CreateOnBase",
 05838                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05839                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05840                            IsDeleted = false,
 05841                            OwnerActionId = 1L,
 05842                            StatusId = 13L,
 05843                            Type = "POST"
 05844                        },
 05845                        new
 05846                        {
 05847                            Id = 49L,
 05848                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05849                            Caption = "Скачать CSV",
 05850                            Code = "Csv",
 05851                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05852                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05853                            IsDeleted = false,
 05854                            OwnerActionId = 1L,
 05855                            StatusId = 13L,
 05856                            Type = "GET"
 05857                        },
 05858                        new
 05859                        {
 05860                            Id = 91L,
 05861                            Action = "Shipments/{id}/Print",
 05862                            Caption = "Распечатать УПД",
 05863                            Code = "Pdf",
 05864                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05865                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05866                            IsDeleted = false,
 05867                            OwnerActionId = 1L,
 05868                            StatusId = 13L,
 05869                            Type = "GET"
 05870                        },
 05871                        new
 05872                        {
 05873                            Id = 82L,
 05874                            Action = "Shipments/{id}/Accept",
 05875                            Caption = "Принять",
 05876                            Code = "Accept",
 05877                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05878                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05879                            IsDeleted = false,
 05880                            OwnerActionId = 1L,
 05881                            StatusId = 13L,
 05882                            Type = "PUT"
 05883                        },
 05884                        new
 05885                        {
 05886                            Id = 84L,
 05887                            Action = "Shipments/{id}/CustomerReject",
 05888                            Caption = "Отказаться",
 05889                            Code = "RejectByCustomer",
 05890                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05891                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05892                            IsDeleted = false,
 05893                            OwnerActionId = 1L,
 05894                            StatusId = 13L,
 05895                            Type = "PUT"
 05896                        },
 05897                        new
 05898                        {
 05899                            Id = 50L,
 05900                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05901                            Caption = "Скачать CSV",
 05902                            Code = "Csv",
 05903                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05904                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05905                            IsDeleted = false,
 05906                            OwnerActionId = 2L,
 05907                            StatusId = 13L,
 05908                            Type = "GET"
 05909                        },
 05910                        new
 05911                        {
 05912                            Id = 51L,
 05913                            Action = "Shipments/{id}/Print",
 05914                            Caption = "Распечатать УПД",
 05915                            Code = "Pdf",
 05916                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05917                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05918                            IsDeleted = false,
 05919                            OwnerActionId = 2L,
 05920                            StatusId = 13L,
 05921                            Type = "GET"
 05922                        },
 05923                        new
 05924                        {
 05925                            Id = 52L,
 05926                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05927                            Caption = "Скачать CSV",
 05928                            Code = "Csv",
 05929                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05930                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05931                            IsDeleted = false,
 05932                            OwnerActionId = 3L,
 05933                            StatusId = 13L,
 05934                            Type = "GET"
 05935                        },
 05936                        new
 05937                        {
 05938                            Id = 53L,
 05939                            Action = "Shipments/{id}/Print",
 05940                            Caption = "Распечатать УПД",
 05941                            Code = "Pdf",
 05942                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05943                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05944                            IsDeleted = false,
 05945                            OwnerActionId = 3L,
 05946                            StatusId = 13L,
 05947                            Type = "GET"
 05948                        },
 05949                        new
 05950                        {
 05951                            Id = 54L,
 05952                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05953                            Caption = "Скачать CSV",
 05954                            Code = "Csv",
 05955                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05956                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05957                            IsDeleted = false,
 05958                            OwnerActionId = 1L,
 05959                            StatusId = 14L,
 05960                            Type = "GET"
 05961                        },
 05962                        new
 05963                        {
 05964                            Id = 55L,
 05965                            Action = "Shipments/{id}/Print",
 05966                            Caption = "Распечатать УПД",
 05967                            Code = "Pdf",
 05968                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05969                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05970                            IsDeleted = false,
 05971                            OwnerActionId = 1L,
 05972                            StatusId = 14L,
 05973                            Type = "GET"
 05974                        },
 05975                        new
 05976                        {
 05977                            Id = 56L,
 05978                            Action = "Shipments/{id}/DownloadShipmentToFile",
 05979                            Caption = "Скачать CSV",
 05980                            Code = "Csv",
 05981                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05982                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05983                            IsDeleted = false,
 05984                            OwnerActionId = 2L,
 05985                            StatusId = 14L,
 05986                            Type = "GET"
 05987                        },
 05988                        new
 05989                        {
 05990                            Id = 57L,
 05991                            Action = "Shipments/{id}/Print",
 05992                            Caption = "Распечатать УПД",
 05993                            Code = "Pdf",
 05994                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 05995                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 05996                            IsDeleted = false,
 05997                            OwnerActionId = 2L,
 05998                            StatusId = 14L,
 05999                            Type = "GET"
 06000                        },
 06001                        new
 06002                        {
 06003                            Id = 58L,
 06004                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06005                            Caption = "Скачать CSV",
 06006                            Code = "Csv",
 06007                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06008                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06009                            IsDeleted = false,
 06010                            OwnerActionId = 3L,
 06011                            StatusId = 14L,
 06012                            Type = "GET"
 06013                        },
 06014                        new
 06015                        {
 06016                            Id = 92L,
 06017                            Action = "Shipments/{id}/Print",
 06018                            Caption = "Распечатать УПД",
 06019                            Code = "Pdf",
 06020                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06021                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06022                            IsDeleted = false,
 06023                            OwnerActionId = 3L,
 06024                            StatusId = 14L,
 06025                            Type = "GET"
 06026                        },
 06027                        new
 06028                        {
 06029                            Id = 59L,
 06030                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06031                            Caption = "Скачать CSV",
 06032                            Code = "Csv",
 06033                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06034                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06035                            IsDeleted = false,
 06036                            OwnerActionId = 1L,
 06037                            StatusId = 15L,
 06038                            Type = "GET"
 06039                        },
 06040                        new
 06041                        {
 06042                            Id = 60L,
 06043                            Action = "Shipments/{id}/Print",
 06044                            Caption = "Распечатать УПД",
 06045                            Code = "Pdf",
 06046                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06047                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06048                            IsDeleted = false,
 06049                            OwnerActionId = 1L,
 06050                            StatusId = 15L,
 06051                            Type = "GET"
 06052                        },
 06053                        new
 06054                        {
 06055                            Id = 61L,
 06056                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06057                            Caption = "Скачать CSV",
 06058                            Code = "Csv",
 06059                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06060                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06061                            IsDeleted = false,
 06062                            OwnerActionId = 2L,
 06063                            StatusId = 15L,
 06064                            Type = "GET"
 06065                        },
 06066                        new
 06067                        {
 06068                            Id = 62L,
 06069                            Action = "Shipments/{id}/Print",
 06070                            Caption = "Распечатать УПД",
 06071                            Code = "Pdf",
 06072                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06073                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06074                            IsDeleted = false,
 06075                            OwnerActionId = 2L,
 06076                            StatusId = 15L,
 06077                            Type = "GET"
 06078                        },
 06079                        new
 06080                        {
 06081                            Id = 63L,
 06082                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06083                            Caption = "Скачать CSV",
 06084                            Code = "Csv",
 06085                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06086                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06087                            IsDeleted = false,
 06088                            OwnerActionId = 3L,
 06089                            StatusId = 15L,
 06090                            Type = "GET"
 06091                        },
 06092                        new
 06093                        {
 06094                            Id = 93L,
 06095                            Action = "Shipments/{id}/Print",
 06096                            Caption = "Распечатать УПД",
 06097                            Code = "Pdf",
 06098                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06099                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06100                            IsDeleted = false,
 06101                            OwnerActionId = 3L,
 06102                            StatusId = 15L,
 06103                            Type = "GET"
 06104                        },
 06105                        new
 06106                        {
 06107                            Id = 64L,
 06108                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06109                            Caption = "Скачать CSV",
 06110                            Code = "Csv",
 06111                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06112                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06113                            IsDeleted = false,
 06114                            OwnerActionId = 1L,
 06115                            StatusId = 16L,
 06116                            Type = "GET"
 06117                        },
 06118                        new
 06119                        {
 06120                            Id = 65L,
 06121                            Action = "Shipments/{id}/Print",
 06122                            Caption = "Распечатать УПД",
 06123                            Code = "Pdf",
 06124                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06125                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06126                            IsDeleted = false,
 06127                            OwnerActionId = 1L,
 06128                            StatusId = 16L,
 06129                            Type = "GET"
 06130                        },
 06131                        new
 06132                        {
 06133                            Id = 66L,
 06134                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06135                            Caption = "Скачать CSV",
 06136                            Code = "Csv",
 06137                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06138                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06139                            IsDeleted = false,
 06140                            OwnerActionId = 2L,
 06141                            StatusId = 16L,
 06142                            Type = "GET"
 06143                        },
 06144                        new
 06145                        {
 06146                            Id = 67L,
 06147                            Action = "Shipments/{id}/Print",
 06148                            Caption = "Распечатать УПД",
 06149                            Code = "Pdf",
 06150                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06151                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06152                            IsDeleted = false,
 06153                            OwnerActionId = 2L,
 06154                            StatusId = 16L,
 06155                            Type = "GET"
 06156                        },
 06157                        new
 06158                        {
 06159                            Id = 68L,
 06160                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06161                            Caption = "Скачать CSV",
 06162                            Code = "Csv",
 06163                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06164                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06165                            IsDeleted = false,
 06166                            OwnerActionId = 3L,
 06167                            StatusId = 16L,
 06168                            Type = "GET"
 06169                        },
 06170                        new
 06171                        {
 06172                            Id = 94L,
 06173                            Action = "Shipments/{id}/Print",
 06174                            Caption = "Распечатать УПД",
 06175                            Code = "Pdf",
 06176                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06177                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06178                            IsDeleted = false,
 06179                            OwnerActionId = 3L,
 06180                            StatusId = 16L,
 06181                            Type = "GET"
 06182                        },
 06183                        new
 06184                        {
 06185                            Id = 69L,
 06186                            Action = "Shipments/{id}/AcceptClaim",
 06187                            Caption = "Принять",
 06188                            Code = "AcceptClaim",
 06189                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06190                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06191                            IsDeleted = false,
 06192                            OwnerActionId = 3L,
 06193                            StatusId = 16L,
 06194                            Type = "PUT"
 06195                        },
 06196                        new
 06197                        {
 06198                            Id = 70L,
 06199                            Action = "Shipments/{id}/DeclineClaim",
 06200                            Caption = "Отказать",
 06201                            Code = "DeclineClaim",
 06202                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06203                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06204                            IsDeleted = false,
 06205                            OwnerActionId = 3L,
 06206                            StatusId = 16L,
 06207                            Type = "PUT"
 06208                        },
 06209                        new
 06210                        {
 06211                            Id = 71L,
 06212                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06213                            Caption = "Скачать CSV",
 06214                            Code = "Csv",
 06215                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06216                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06217                            IsDeleted = false,
 06218                            OwnerActionId = 1L,
 06219                            StatusId = 17L,
 06220                            Type = "GET"
 06221                        },
 06222                        new
 06223                        {
 06224                            Id = 72L,
 06225                            Action = "Shipments/{id}/Print",
 06226                            Caption = "Распечатать УПД",
 06227                            Code = "Pdf",
 06228                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06229                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06230                            IsDeleted = false,
 06231                            OwnerActionId = 1L,
 06232                            StatusId = 17L,
 06233                            Type = "GET"
 06234                        },
 06235                        new
 06236                        {
 06237                            Id = 73L,
 06238                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06239                            Caption = "Скачать CSV",
 06240                            Code = "Csv",
 06241                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06242                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06243                            IsDeleted = false,
 06244                            OwnerActionId = 2L,
 06245                            StatusId = 17L,
 06246                            Type = "GET"
 06247                        },
 06248                        new
 06249                        {
 06250                            Id = 74L,
 06251                            Action = "Shipments/{id}/Print",
 06252                            Caption = "Распечатать УПД",
 06253                            Code = "Pdf",
 06254                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06255                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06256                            IsDeleted = false,
 06257                            OwnerActionId = 2L,
 06258                            StatusId = 17L,
 06259                            Type = "GET"
 06260                        },
 06261                        new
 06262                        {
 06263                            Id = 75L,
 06264                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06265                            Caption = "Скачать CSV",
 06266                            Code = "Csv",
 06267                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06268                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06269                            IsDeleted = false,
 06270                            OwnerActionId = 3L,
 06271                            StatusId = 17L,
 06272                            Type = "GET"
 06273                        },
 06274                        new
 06275                        {
 06276                            Id = 95L,
 06277                            Action = "Shipments/{id}/Print",
 06278                            Caption = "Распечатать УПД",
 06279                            Code = "Pdf",
 06280                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06281                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06282                            IsDeleted = false,
 06283                            OwnerActionId = 3L,
 06284                            StatusId = 17L,
 06285                            Type = "GET"
 06286                        },
 06287                        new
 06288                        {
 06289                            Id = 76L,
 06290                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06291                            Caption = "Скачать CSV",
 06292                            Code = "Csv",
 06293                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06294                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06295                            IsDeleted = false,
 06296                            OwnerActionId = 1L,
 06297                            StatusId = 18L,
 06298                            Type = "GET"
 06299                        },
 06300                        new
 06301                        {
 06302                            Id = 77L,
 06303                            Action = "Shipments/{id}/Print",
 06304                            Caption = "Распечатать УПД",
 06305                            Code = "Pdf",
 06306                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06307                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06308                            IsDeleted = false,
 06309                            OwnerActionId = 1L,
 06310                            StatusId = 18L,
 06311                            Type = "GET"
 06312                        },
 06313                        new
 06314                        {
 06315                            Id = 78L,
 06316                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06317                            Caption = "Скачать CSV",
 06318                            Code = "Csv",
 06319                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06320                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06321                            IsDeleted = false,
 06322                            OwnerActionId = 2L,
 06323                            StatusId = 18L,
 06324                            Type = "GET"
 06325                        },
 06326                        new
 06327                        {
 06328                            Id = 79L,
 06329                            Action = "Shipments/{id}/Print",
 06330                            Caption = "Распечатать УПД",
 06331                            Code = "Pdf",
 06332                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06333                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06334                            IsDeleted = false,
 06335                            OwnerActionId = 2L,
 06336                            StatusId = 18L,
 06337                            Type = "GET"
 06338                        },
 06339                        new
 06340                        {
 06341                            Id = 80L,
 06342                            Action = "Shipments/{id}/DownloadShipmentToFile",
 06343                            Caption = "Скачать CSV",
 06344                            Code = "Csv",
 06345                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06346                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06347                            IsDeleted = false,
 06348                            OwnerActionId = 3L,
 06349                            StatusId = 18L,
 06350                            Type = "GET"
 06351                        },
 06352                        new
 06353                        {
 06354                            Id = 96L,
 06355                            Action = "Shipments/{id}/Print",
 06356                            Caption = "Распечатать УПД",
 06357                            Code = "Pdf",
 06358                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06359                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06360                            IsDeleted = false,
 06361                            OwnerActionId = 3L,
 06362                            StatusId = 18L,
 06363                            Type = "GET"
 06364                        });
 06365                });
 6366
 06367            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", b =>
 06368                {
 06369                    b.Property<long>("Id")
 06370                        .ValueGeneratedOnAdd()
 06371                        .HasColumnType("bigint")
 06372                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 06373
 06374                    b.Property<string>("Code")
 06375                        .IsRequired()
 06376                        .HasColumnType("text");
 06377
 06378                    b.Property<long?>("CreatedByUserId")
 06379                        .HasColumnType("bigint");
 06380
 06381                    b.Property<DateTime>("CreationDateTime")
 06382                        .HasColumnType("timestamp without time zone");
 06383
 06384                    b.Property<string>("Description")
 06385                        .HasColumnType("text");
 06386
 06387                    b.Property<Guid>("GUID")
 06388                        .ValueGeneratedOnAdd()
 06389                        .HasColumnType("uuid");
 06390
 06391                    b.Property<bool>("IsDeleted")
 06392                        .HasColumnType("boolean");
 06393
 06394                    b.Property<DateTime?>("ModificationDateTime")
 06395                        .HasColumnType("timestamp without time zone");
 06396
 06397                    b.Property<long?>("ModifiedByUserId")
 06398                        .HasColumnType("bigint");
 06399
 06400                    b.Property<long>("MovementTypeId")
 06401                        .HasColumnType("bigint");
 06402
 06403                    b.Property<string>("Name")
 06404                        .IsRequired()
 06405                        .HasColumnType("text");
 06406
 06407                    b.Property<long?>("RecStateId")
 06408                        .HasColumnType("bigint");
 06409
 06410                    b.Property<long>("StatusOwnerId")
 06411                        .HasColumnType("bigint");
 06412
 06413                    b.HasKey("Id");
 06414
 06415                    b.HasIndex("CreatedByUserId");
 06416
 06417                    b.HasIndex("ModifiedByUserId");
 06418
 06419                    b.HasIndex("MovementTypeId");
 06420
 06421                    b.HasIndex("RecStateId");
 06422
 06423                    b.HasIndex("StatusOwnerId");
 06424
 06425                    b.ToTable("MovementStatus");
 06426
 06427                    b.HasData(
 06428                        new
 06429                        {
 06430                            Id = 1L,
 06431                            Code = "Draft",
 06432                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06433                            Description = "",
 06434                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06435                            IsDeleted = false,
 06436                            MovementTypeId = 1L,
 06437                            Name = "Черновик",
 06438                            StatusOwnerId = 1L
 06439                        },
 06440                        new
 06441                        {
 06442                            Id = 2L,
 06443                            Code = "InQueue",
 06444                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06445                            Description = "",
 06446                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06447                            IsDeleted = false,
 06448                            MovementTypeId = 1L,
 06449                            Name = "В очереди на обработку",
 06450                            StatusOwnerId = 3L
 06451                        },
 06452                        new
 06453                        {
 06454                            Id = 3L,
 06455                            Code = "InProgress",
 06456                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06457                            Description = "",
 06458                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06459                            IsDeleted = false,
 06460                            MovementTypeId = 1L,
 06461                            Name = "В обработке",
 06462                            StatusOwnerId = 2L
 06463                        },
 06464                        new
 06465                        {
 06466                            Id = 4L,
 06467                            Code = "Reject",
 06468                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06469                            Description = "",
 06470                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06471                            IsDeleted = false,
 06472                            MovementTypeId = 1L,
 06473                            Name = "Отказ",
 06474                            StatusOwnerId = 3L
 06475                        },
 06476                        new
 06477                        {
 06478                            Id = 5L,
 06479                            Code = "Finished",
 06480                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06481                            Description = "",
 06482                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06483                            IsDeleted = false,
 06484                            MovementTypeId = 1L,
 06485                            Name = "Обработано",
 06486                            StatusOwnerId = 2L
 06487                        },
 06488                        new
 06489                        {
 06490                            Id = 6L,
 06491                            Code = "Draft",
 06492                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06493                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06494                            IsDeleted = false,
 06495                            MovementTypeId = 2L,
 06496                            Name = "Черновик",
 06497                            StatusOwnerId = 2L
 06498                        },
 06499                        new
 06500                        {
 06501                            Id = 7L,
 06502                            Code = "Reject",
 06503                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06504                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06505                            IsDeleted = false,
 06506                            MovementTypeId = 2L,
 06507                            Name = "Отказ",
 06508                            StatusOwnerId = 1L
 06509                        },
 06510                        new
 06511                        {
 06512                            Id = 8L,
 06513                            Code = "PaymentAwaiting",
 06514                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06515                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06516                            IsDeleted = false,
 06517                            MovementTypeId = 2L,
 06518                            Name = "Ожидает оплаты",
 06519                            StatusOwnerId = 1L
 06520                        },
 06521                        new
 06522                        {
 06523                            Id = 9L,
 06524                            Code = "Picking",
 06525                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06526                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06527                            IsDeleted = false,
 06528                            MovementTypeId = 2L,
 06529                            Name = "Сборка заказа",
 06530                            StatusOwnerId = 2L
 06531                        },
 06532                        new
 06533                        {
 06534                            Id = 10L,
 06535                            Code = "ReadyForShipment",
 06536                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06537                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06538                            IsDeleted = false,
 06539                            MovementTypeId = 2L,
 06540                            Name = "Готово к выдаче",
 06541                            StatusOwnerId = 2L
 06542                        },
 06543                        new
 06544                        {
 06545                            Id = 11L,
 06546                            Code = "Correction",
 06547                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06548                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06549                            IsDeleted = false,
 06550                            MovementTypeId = 2L,
 06551                            Name = "Корректировка",
 06552                            StatusOwnerId = 2L
 06553                        },
 06554                        new
 06555                        {
 06556                            Id = 12L,
 06557                            Code = "SupplierReject",
 06558                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06559                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06560                            IsDeleted = false,
 06561                            MovementTypeId = 2L,
 06562                            Name = "Отказ поставщика",
 06563                            StatusOwnerId = 2L
 06564                        },
 06565                        new
 06566                        {
 06567                            Id = 13L,
 06568                            Code = "Shipped",
 06569                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06570                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06571                            IsDeleted = false,
 06572                            MovementTypeId = 2L,
 06573                            Name = "Выдано",
 06574                            StatusOwnerId = 1L
 06575                        },
 06576                        new
 06577                        {
 06578                            Id = 14L,
 06579                            Code = "Received",
 06580                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06581                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06582                            IsDeleted = false,
 06583                            MovementTypeId = 2L,
 06584                            Name = "Принято",
 06585                            StatusOwnerId = 1L
 06586                        },
 06587                        new
 06588                        {
 06589                            Id = 15L,
 06590                            Code = "CustomerReject",
 06591                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06592                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06593                            IsDeleted = false,
 06594                            MovementTypeId = 2L,
 06595                            Name = "Отказ покупателя",
 06596                            StatusOwnerId = 1L
 06597                        },
 06598                        new
 06599                        {
 06600                            Id = 16L,
 06601                            Code = "ClaimInProgress",
 06602                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06603                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06604                            IsDeleted = false,
 06605                            MovementTypeId = 2L,
 06606                            Name = "Претензия разбор",
 06607                            StatusOwnerId = 3L
 06608                        },
 06609                        new
 06610                        {
 06611                            Id = 17L,
 06612                            Code = "ClaimDeclined",
 06613                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06614                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06615                            IsDeleted = false,
 06616                            MovementTypeId = 2L,
 06617                            Name = "Претензия отказано",
 06618                            StatusOwnerId = 3L
 06619                        },
 06620                        new
 06621                        {
 06622                            Id = 18L,
 06623                            Code = "ClaimAccepted",
 06624                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06625                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06626                            IsDeleted = false,
 06627                            MovementTypeId = 2L,
 06628                            Name = "Претензия подтверждено",
 06629                            StatusOwnerId = 3L
 06630                        });
 06631                });
 6632
 06633            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusJournal", b =>
 06634                {
 06635                    b.Property<long>("Id")
 06636                        .ValueGeneratedOnAdd()
 06637                        .HasColumnType("bigint")
 06638                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 06639
 06640                    b.Property<long?>("CreatedByUserId")
 06641                        .HasColumnType("bigint");
 06642
 06643                    b.Property<DateTime>("CreationDateTime")
 06644                        .HasColumnType("timestamp without time zone");
 06645
 06646                    b.Property<Guid>("GUID")
 06647                        .ValueGeneratedOnAdd()
 06648                        .HasColumnType("uuid");
 06649
 06650                    b.Property<bool>("IsDeleted")
 06651                        .HasColumnType("boolean");
 06652
 06653                    b.Property<DateTime?>("ModificationDateTime")
 06654                        .HasColumnType("timestamp without time zone");
 06655
 06656                    b.Property<long?>("ModifiedByUserId")
 06657                        .HasColumnType("bigint");
 06658
 06659                    b.Property<long?>("MovementId")
 06660                        .HasColumnType("bigint");
 06661
 06662                    b.Property<long?>("RecStateId")
 06663                        .HasColumnType("bigint");
 06664
 06665                    b.Property<long?>("StatusCurrentId")
 06666                        .HasColumnType("bigint");
 06667
 06668                    b.HasKey("Id");
 06669
 06670                    b.HasIndex("CreatedByUserId");
 06671
 06672                    b.HasIndex("ModifiedByUserId");
 06673
 06674                    b.HasIndex("MovementId");
 06675
 06676                    b.HasIndex("RecStateId");
 06677
 06678                    b.HasIndex("StatusCurrentId");
 06679
 06680                    b.ToTable("MovementStatusJournals");
 06681                });
 6682
 06683            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusOwner", b =>
 06684                {
 06685                    b.Property<long>("Id")
 06686                        .ValueGeneratedOnAdd()
 06687                        .HasColumnType("bigint")
 06688                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 06689
 06690                    b.Property<long?>("CreatedByUserId")
 06691                        .HasColumnType("bigint");
 06692
 06693                    b.Property<DateTime>("CreationDateTime")
 06694                        .HasColumnType("timestamp without time zone");
 06695
 06696                    b.Property<bool>("IsDeleted")
 06697                        .HasColumnType("boolean");
 06698
 06699                    b.Property<DateTime?>("ModificationDateTime")
 06700                        .HasColumnType("timestamp without time zone");
 06701
 06702                    b.Property<long?>("ModifiedByUserId")
 06703                        .HasColumnType("bigint");
 06704
 06705                    b.Property<string>("Name")
 06706                        .HasColumnType("text");
 06707
 06708                    b.Property<long?>("RecStateId")
 06709                        .HasColumnType("bigint");
 06710
 06711                    b.HasKey("Id");
 06712
 06713                    b.HasIndex("CreatedByUserId");
 06714
 06715                    b.HasIndex("ModifiedByUserId");
 06716
 06717                    b.HasIndex("RecStateId");
 06718
 06719                    b.ToTable("MovementStatusOwners");
 06720
 06721                    b.HasData(
 06722                        new
 06723                        {
 06724                            Id = 1L,
 06725                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06726                            IsDeleted = false,
 06727                            Name = "Customer"
 06728                        },
 06729                        new
 06730                        {
 06731                            Id = 2L,
 06732                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06733                            IsDeleted = false,
 06734                            Name = "Supplier"
 06735                        },
 06736                        new
 06737                        {
 06738                            Id = 3L,
 06739                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06740                            IsDeleted = false,
 06741                            Name = "Platform"
 06742                        });
 06743                });
 6744
 06745            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusRoute", b =>
 06746                {
 06747                    b.Property<long>("Id")
 06748                        .ValueGeneratedOnAdd()
 06749                        .HasColumnType("bigint")
 06750                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 06751
 06752                    b.Property<long?>("CreatedByUserId")
 06753                        .HasColumnType("bigint");
 06754
 06755                    b.Property<DateTime>("CreationDateTime")
 06756                        .HasColumnType("timestamp without time zone");
 06757
 06758                    b.Property<Guid>("GUID")
 06759                        .ValueGeneratedOnAdd()
 06760                        .HasColumnType("uuid");
 06761
 06762                    b.Property<int>("Hour")
 06763                        .HasColumnType("integer");
 06764
 06765                    b.Property<bool>("IsDeleted")
 06766                        .HasColumnType("boolean");
 06767
 06768                    b.Property<DateTime?>("ModificationDateTime")
 06769                        .HasColumnType("timestamp without time zone");
 06770
 06771                    b.Property<long?>("ModifiedByUserId")
 06772                        .HasColumnType("bigint");
 06773
 06774                    b.Property<long?>("RecStateId")
 06775                        .HasColumnType("bigint");
 06776
 06777                    b.Property<string>("RouteKey")
 06778                        .HasColumnType("text");
 06779
 06780                    b.Property<long>("StatusCurrentId")
 06781                        .HasColumnType("bigint");
 06782
 06783                    b.Property<long>("StatusNextId")
 06784                        .HasColumnType("bigint");
 06785
 06786                    b.HasKey("Id");
 06787
 06788                    b.HasIndex("CreatedByUserId");
 06789
 06790                    b.HasIndex("ModifiedByUserId");
 06791
 06792                    b.HasIndex("RecStateId");
 06793
 06794                    b.HasIndex("StatusCurrentId");
 06795
 06796                    b.HasIndex("StatusNextId");
 06797
 06798                    b.ToTable("MovementStatusRoutes");
 06799
 06800                    b.HasData(
 06801                        new
 06802                        {
 06803                            Id = 1L,
 06804                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06805                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06806                            Hour = 0,
 06807                            IsDeleted = false,
 06808                            RouteKey = "Send",
 06809                            StatusCurrentId = 1L,
 06810                            StatusNextId = 2L
 06811                        },
 06812                        new
 06813                        {
 06814                            Id = 2L,
 06815                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06816                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06817                            Hour = 0,
 06818                            IsDeleted = false,
 06819                            RouteKey = "Confirm",
 06820                            StatusCurrentId = 2L,
 06821                            StatusNextId = 3L
 06822                        },
 06823                        new
 06824                        {
 06825                            Id = 3L,
 06826                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06827                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06828                            Hour = 8,
 06829                            IsDeleted = false,
 06830                            RouteKey = "Auto",
 06831                            StatusCurrentId = 2L,
 06832                            StatusNextId = 4L
 06833                        },
 06834                        new
 06835                        {
 06836                            Id = 4L,
 06837                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06838                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06839                            Hour = 0,
 06840                            IsDeleted = false,
 06841                            RouteKey = "RejectOrder",
 06842                            StatusCurrentId = 2L,
 06843                            StatusNextId = 4L
 06844                        },
 06845                        new
 06846                        {
 06847                            Id = 5L,
 06848                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06849                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06850                            Hour = 8,
 06851                            IsDeleted = false,
 06852                            RouteKey = "Auto",
 06853                            StatusCurrentId = 3L,
 06854                            StatusNextId = 4L
 06855                        },
 06856                        new
 06857                        {
 06858                            Id = 6L,
 06859                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06860                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06861                            Hour = 0,
 06862                            IsDeleted = false,
 06863                            RouteKey = "Finished",
 06864                            StatusCurrentId = 3L,
 06865                            StatusNextId = 5L
 06866                        },
 06867                        new
 06868                        {
 06869                            Id = 7L,
 06870                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06871                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06872                            Hour = 0,
 06873                            IsDeleted = false,
 06874                            RouteKey = "RejectOrder",
 06875                            StatusCurrentId = 3L,
 06876                            StatusNextId = 4L
 06877                        },
 06878                        new
 06879                        {
 06880                            Id = 8L,
 06881                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06882                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06883                            Hour = 0,
 06884                            IsDeleted = false,
 06885                            RouteKey = "SupplierReject",
 06886                            StatusCurrentId = 6L,
 06887                            StatusNextId = 12L
 06888                        },
 06889                        new
 06890                        {
 06891                            Id = 9L,
 06892                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06893                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06894                            Hour = 0,
 06895                            IsDeleted = false,
 06896                            RouteKey = "PaymentReserve",
 06897                            StatusCurrentId = 6L,
 06898                            StatusNextId = 8L
 06899                        },
 06900                        new
 06901                        {
 06902                            Id = 10L,
 06903                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06904                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06905                            Hour = 0,
 06906                            IsDeleted = false,
 06907                            RouteKey = "Payment",
 06908                            StatusCurrentId = 8L,
 06909                            StatusNextId = 9L
 06910                        },
 06911                        new
 06912                        {
 06913                            Id = 11L,
 06914                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06915                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06916                            Hour = 0,
 06917                            IsDeleted = false,
 06918                            RouteKey = "CustomerReject",
 06919                            StatusCurrentId = 8L,
 06920                            StatusNextId = 15L
 06921                        },
 06922                        new
 06923                        {
 06924                            Id = 12L,
 06925                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06926                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06927                            Hour = 24,
 06928                            IsDeleted = false,
 06929                            RouteKey = "Auto",
 06930                            StatusCurrentId = 8L,
 06931                            StatusNextId = 7L
 06932                        },
 06933                        new
 06934                        {
 06935                            Id = 13L,
 06936                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06937                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06938                            Hour = 0,
 06939                            IsDeleted = false,
 06940                            RouteKey = "SupplierReject",
 06941                            StatusCurrentId = 9L,
 06942                            StatusNextId = 12L
 06943                        },
 06944                        new
 06945                        {
 06946                            Id = 14L,
 06947                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06948                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06949                            Hour = 24,
 06950                            IsDeleted = false,
 06951                            RouteKey = "Auto",
 06952                            StatusCurrentId = 9L,
 06953                            StatusNextId = 7L
 06954                        },
 06955                        new
 06956                        {
 06957                            Id = 15L,
 06958                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06959                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06960                            Hour = 0,
 06961                            IsDeleted = false,
 06962                            RouteKey = "ReadyToShip",
 06963                            StatusCurrentId = 9L,
 06964                            StatusNextId = 10L
 06965                        },
 06966                        new
 06967                        {
 06968                            Id = 30L,
 06969                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06970                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06971                            Hour = 0,
 06972                            IsDeleted = false,
 06973                            RouteKey = "CustomerReject",
 06974                            StatusCurrentId = 9L,
 06975                            StatusNextId = 15L
 06976                        },
 06977                        new
 06978                        {
 06979                            Id = 16L,
 06980                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06981                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06982                            Hour = 0,
 06983                            IsDeleted = false,
 06984                            RouteKey = "Ship",
 06985                            StatusCurrentId = 10L,
 06986                            StatusNextId = 13L
 06987                        },
 06988                        new
 06989                        {
 06990                            Id = 17L,
 06991                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 06992                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 06993                            Hour = 24,
 06994                            IsDeleted = false,
 06995                            RouteKey = "Auto",
 06996                            StatusCurrentId = 10L,
 06997                            StatusNextId = 7L
 06998                        },
 06999                        new
 07000                        {
 07001                            Id = 18L,
 07002                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07003                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07004                            Hour = 0,
 07005                            IsDeleted = false,
 07006                            RouteKey = "SupplierReject",
 07007                            StatusCurrentId = 10L,
 07008                            StatusNextId = 12L
 07009                        },
 07010                        new
 07011                        {
 07012                            Id = 19L,
 07013                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07014                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07015                            Hour = 0,
 07016                            IsDeleted = false,
 07017                            RouteKey = "Correction",
 07018                            StatusCurrentId = 10L,
 07019                            StatusNextId = 11L
 07020                        },
 07021                        new
 07022                        {
 07023                            Id = 31L,
 07024                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07025                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07026                            Hour = 0,
 07027                            IsDeleted = false,
 07028                            RouteKey = "CustomerReject",
 07029                            StatusCurrentId = 10L,
 07030                            StatusNextId = 15L
 07031                        },
 07032                        new
 07033                        {
 07034                            Id = 20L,
 07035                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07036                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07037                            Hour = 8,
 07038                            IsDeleted = false,
 07039                            RouteKey = "Auto",
 07040                            StatusCurrentId = 11L,
 07041                            StatusNextId = 7L
 07042                        },
 07043                        new
 07044                        {
 07045                            Id = 21L,
 07046                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07047                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07048                            Hour = 0,
 07049                            IsDeleted = false,
 07050                            RouteKey = "SupplierReject",
 07051                            StatusCurrentId = 11L,
 07052                            StatusNextId = 12L
 07053                        },
 07054                        new
 07055                        {
 07056                            Id = 22L,
 07057                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07058                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07059                            Hour = 0,
 07060                            IsDeleted = false,
 07061                            RouteKey = "ReadyToShip",
 07062                            StatusCurrentId = 11L,
 07063                            StatusNextId = 10L
 07064                        },
 07065                        new
 07066                        {
 07067                            Id = 32L,
 07068                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07069                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07070                            Hour = 0,
 07071                            IsDeleted = false,
 07072                            RouteKey = "CustomerReject",
 07073                            StatusCurrentId = 11L,
 07074                            StatusNextId = 15L
 07075                        },
 07076                        new
 07077                        {
 07078                            Id = 23L,
 07079                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07080                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07081                            Hour = 0,
 07082                            IsDeleted = false,
 07083                            RouteKey = "Accept",
 07084                            StatusCurrentId = 13L,
 07085                            StatusNextId = 14L
 07086                        },
 07087                        new
 07088                        {
 07089                            Id = 24L,
 07090                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07091                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07092                            Hour = 0,
 07093                            IsDeleted = false,
 07094                            RouteKey = "CustomerReject",
 07095                            StatusCurrentId = 13L,
 07096                            StatusNextId = 15L
 07097                        },
 07098                        new
 07099                        {
 07100                            Id = 25L,
 07101                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07102                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07103                            Hour = 24,
 07104                            IsDeleted = false,
 07105                            RouteKey = "Auto",
 07106                            StatusCurrentId = 13L,
 07107                            StatusNextId = 7L
 07108                        },
 07109                        new
 07110                        {
 07111                            Id = 26L,
 07112                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07113                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07114                            Hour = 0,
 07115                            IsDeleted = false,
 07116                            RouteKey = "ClaimProcess",
 07117                            StatusCurrentId = 15L,
 07118                            StatusNextId = 16L
 07119                        },
 07120                        new
 07121                        {
 07122                            Id = 27L,
 07123                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07124                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07125                            Hour = 0,
 07126                            IsDeleted = false,
 07127                            RouteKey = "ClaimAccept",
 07128                            StatusCurrentId = 16L,
 07129                            StatusNextId = 18L
 07130                        },
 07131                        new
 07132                        {
 07133                            Id = 28L,
 07134                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07135                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07136                            Hour = 24,
 07137                            IsDeleted = false,
 07138                            RouteKey = "Auto",
 07139                            StatusCurrentId = 16L,
 07140                            StatusNextId = 18L
 07141                        },
 07142                        new
 07143                        {
 07144                            Id = 29L,
 07145                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07146                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07147                            Hour = 0,
 07148                            IsDeleted = false,
 07149                            RouteKey = "ClaimDecline",
 07150                            StatusCurrentId = 16L,
 07151                            StatusNextId = 17L
 07152                        });
 07153                });
 7154
 07155            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", b =>
 07156                {
 07157                    b.Property<long>("Id")
 07158                        .ValueGeneratedOnAdd()
 07159                        .HasColumnType("bigint")
 07160                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07161
 07162                    b.Property<string>("Code")
 07163                        .IsRequired()
 07164                        .HasColumnType("text");
 07165
 07166                    b.Property<long?>("CreatedByUserId")
 07167                        .HasColumnType("bigint");
 07168
 07169                    b.Property<DateTime>("CreationDateTime")
 07170                        .HasColumnType("timestamp without time zone");
 07171
 07172                    b.Property<string>("Description")
 07173                        .HasColumnType("text");
 07174
 07175                    b.Property<Guid>("GUID")
 07176                        .ValueGeneratedOnAdd()
 07177                        .HasColumnType("uuid");
 07178
 07179                    b.Property<bool>("IsDeleted")
 07180                        .HasColumnType("boolean");
 07181
 07182                    b.Property<DateTime?>("ModificationDateTime")
 07183                        .HasColumnType("timestamp without time zone");
 07184
 07185                    b.Property<long?>("ModifiedByUserId")
 07186                        .HasColumnType("bigint");
 07187
 07188                    b.Property<string>("Name")
 07189                        .IsRequired()
 07190                        .HasColumnType("text");
 07191
 07192                    b.Property<long?>("RecStateId")
 07193                        .HasColumnType("bigint");
 07194
 07195                    b.HasKey("Id");
 07196
 07197                    b.HasIndex("CreatedByUserId");
 07198
 07199                    b.HasIndex("ModifiedByUserId");
 07200
 07201                    b.HasIndex("RecStateId");
 07202
 07203                    b.ToTable("MovementType");
 07204
 07205                    b.HasData(
 07206                        new
 07207                        {
 07208                            Id = 1L,
 07209                            Code = "Order",
 07210                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07211                            Description = "",
 07212                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07213                            IsDeleted = false,
 07214                            Name = "Заказ"
 07215                        },
 07216                        new
 07217                        {
 07218                            Id = 2L,
 07219                            Code = "Shipment",
 07220                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07221                            Description = "",
 07222                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07223                            IsDeleted = false,
 07224                            Name = "Отгрузка"
 07225                        },
 07226                        new
 07227                        {
 07228                            Id = 3L,
 07229                            Code = "Arrival",
 07230                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07231                            Description = "",
 07232                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07233                            IsDeleted = false,
 07234                            Name = "Приход"
 07235                        },
 07236                        new
 07237                        {
 07238                            Id = 4L,
 07239                            Code = "Deny",
 07240                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07241                            Description = "",
 07242                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07243                            IsDeleted = false,
 07244                            Name = "Отказ"
 07245                        });
 07246                });
 7247
 07248            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Notification", b =>
 07249                {
 07250                    b.Property<long>("Id")
 07251                        .ValueGeneratedOnAdd()
 07252                        .HasColumnType("bigint")
 07253                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07254
 07255                    b.Property<string>("Body")
 07256                        .IsRequired()
 07257                        .HasColumnType("text");
 07258
 07259                    b.Property<long?>("CreatedByUserId")
 07260                        .HasColumnType("bigint");
 07261
 07262                    b.Property<DateTime>("CreationDateTime")
 07263                        .HasColumnType("timestamp without time zone");
 07264
 07265                    b.Property<Guid>("GUID")
 07266                        .ValueGeneratedOnAdd()
 07267                        .HasColumnType("uuid");
 07268
 07269                    b.Property<bool>("IsDeleted")
 07270                        .HasColumnType("boolean");
 07271
 07272                    b.Property<DateTime?>("ModificationDateTime")
 07273                        .HasColumnType("timestamp without time zone");
 07274
 07275                    b.Property<long?>("ModifiedByUserId")
 07276                        .HasColumnType("bigint");
 07277
 07278                    b.Property<long>("NotificationsTypeId")
 07279                        .HasColumnType("bigint");
 07280
 07281                    b.Property<long?>("RecStateId")
 07282                        .HasColumnType("bigint");
 07283
 07284                    b.Property<string>("Subject")
 07285                        .IsRequired()
 07286                        .HasColumnType("text");
 07287
 07288                    b.Property<DateTime>("TimeToTurnOff")
 07289                        .HasColumnType("timestamp without time zone");
 07290
 07291                    b.Property<long>("UserId")
 07292                        .HasColumnType("bigint");
 07293
 07294                    b.HasKey("Id");
 07295
 07296                    b.HasIndex("CreatedByUserId");
 07297
 07298                    b.HasIndex("ModifiedByUserId");
 07299
 07300                    b.HasIndex("NotificationsTypeId");
 07301
 07302                    b.HasIndex("RecStateId");
 07303
 07304                    b.HasIndex("UserId");
 07305
 07306                    b.ToTable("Notifications");
 07307                });
 7308
 07309            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationUsers", b =>
 07310                {
 07311                    b.Property<long>("Id")
 07312                        .ValueGeneratedOnAdd()
 07313                        .HasColumnType("bigint")
 07314                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07315
 07316                    b.Property<long?>("CreatedByUserId")
 07317                        .HasColumnType("bigint");
 07318
 07319                    b.Property<DateTime>("CreationDateTime")
 07320                        .HasColumnType("timestamp without time zone");
 07321
 07322                    b.Property<Guid>("GUID")
 07323                        .ValueGeneratedOnAdd()
 07324                        .HasColumnType("uuid");
 07325
 07326                    b.Property<bool>("IsDeleted")
 07327                        .HasColumnType("boolean");
 07328
 07329                    b.Property<DateTime?>("ModificationDateTime")
 07330                        .HasColumnType("timestamp without time zone");
 07331
 07332                    b.Property<long?>("ModifiedByUserId")
 07333                        .HasColumnType("bigint");
 07334
 07335                    b.Property<long>("NotificationId")
 07336                        .HasColumnType("bigint");
 07337
 07338                    b.Property<long?>("NotificationsStatusId")
 07339                        .HasColumnType("bigint");
 07340
 07341                    b.Property<long?>("RecStateId")
 07342                        .HasColumnType("bigint");
 07343
 07344                    b.Property<long?>("UserId")
 07345                        .HasColumnType("bigint");
 07346
 07347                    b.HasKey("Id");
 07348
 07349                    b.HasIndex("CreatedByUserId");
 07350
 07351                    b.HasIndex("ModifiedByUserId");
 07352
 07353                    b.HasIndex("NotificationId");
 07354
 07355                    b.HasIndex("NotificationsStatusId");
 07356
 07357                    b.HasIndex("RecStateId");
 07358
 07359                    b.HasIndex("UserId");
 07360
 07361                    b.ToTable("NotificationUsers");
 07362                });
 7363
 07364            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsStatus", b =>
 07365                {
 07366                    b.Property<long>("Id")
 07367                        .ValueGeneratedOnAdd()
 07368                        .HasColumnType("bigint")
 07369                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07370
 07371                    b.Property<string>("Code")
 07372                        .IsRequired()
 07373                        .HasColumnType("text");
 07374
 07375                    b.Property<long?>("CreatedByUserId")
 07376                        .HasColumnType("bigint");
 07377
 07378                    b.Property<DateTime>("CreationDateTime")
 07379                        .HasColumnType("timestamp without time zone");
 07380
 07381                    b.Property<string>("Description")
 07382                        .HasColumnType("text");
 07383
 07384                    b.Property<Guid>("GUID")
 07385                        .ValueGeneratedOnAdd()
 07386                        .HasColumnType("uuid");
 07387
 07388                    b.Property<bool>("IsDeleted")
 07389                        .HasColumnType("boolean");
 07390
 07391                    b.Property<DateTime?>("ModificationDateTime")
 07392                        .HasColumnType("timestamp without time zone");
 07393
 07394                    b.Property<long?>("ModifiedByUserId")
 07395                        .HasColumnType("bigint");
 07396
 07397                    b.Property<string>("Name")
 07398                        .IsRequired()
 07399                        .HasColumnType("text");
 07400
 07401                    b.Property<long?>("RecStateId")
 07402                        .HasColumnType("bigint");
 07403
 07404                    b.HasKey("Id");
 07405
 07406                    b.HasIndex("CreatedByUserId");
 07407
 07408                    b.HasIndex("ModifiedByUserId");
 07409
 07410                    b.HasIndex("RecStateId");
 07411
 07412                    b.ToTable("NotificationsStatus");
 07413
 07414                    b.HasData(
 07415                        new
 07416                        {
 07417                            Id = 1L,
 07418                            Code = "Unknown",
 07419                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07420                            Description = "",
 07421                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07422                            IsDeleted = false,
 07423                            Name = "Неизвестно"
 07424                        },
 07425                        new
 07426                        {
 07427                            Id = 2L,
 07428                            Code = "Created",
 07429                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07430                            Description = "",
 07431                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07432                            IsDeleted = false,
 07433                            Name = "Создано"
 07434                        },
 07435                        new
 07436                        {
 07437                            Id = 3L,
 07438                            Code = "Sent",
 07439                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07440                            Description = "",
 07441                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07442                            IsDeleted = false,
 07443                            Name = "Отправлено"
 07444                        },
 07445                        new
 07446                        {
 07447                            Id = 4L,
 07448                            Code = "Read",
 07449                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07450                            Description = "",
 07451                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07452                            IsDeleted = false,
 07453                            Name = "Прочитано"
 07454                        },
 07455                        new
 07456                        {
 07457                            Id = 5L,
 07458                            Code = "Deactivated",
 07459                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07460                            Description = "",
 07461                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07462                            IsDeleted = false,
 07463                            Name = "Отключено"
 07464                        });
 07465                });
 7466
 07467            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsType", b =>
 07468                {
 07469                    b.Property<long>("Id")
 07470                        .ValueGeneratedOnAdd()
 07471                        .HasColumnType("bigint")
 07472                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07473
 07474                    b.Property<string>("Code")
 07475                        .IsRequired()
 07476                        .HasColumnType("text");
 07477
 07478                    b.Property<long?>("CreatedByUserId")
 07479                        .HasColumnType("bigint");
 07480
 07481                    b.Property<DateTime>("CreationDateTime")
 07482                        .HasColumnType("timestamp without time zone");
 07483
 07484                    b.Property<string>("Description")
 07485                        .HasColumnType("text");
 07486
 07487                    b.Property<Guid>("GUID")
 07488                        .ValueGeneratedOnAdd()
 07489                        .HasColumnType("uuid");
 07490
 07491                    b.Property<bool>("IsDeleted")
 07492                        .HasColumnType("boolean");
 07493
 07494                    b.Property<DateTime?>("ModificationDateTime")
 07495                        .HasColumnType("timestamp without time zone");
 07496
 07497                    b.Property<long?>("ModifiedByUserId")
 07498                        .HasColumnType("bigint");
 07499
 07500                    b.Property<string>("Name")
 07501                        .IsRequired()
 07502                        .HasColumnType("text");
 07503
 07504                    b.Property<long?>("RecStateId")
 07505                        .HasColumnType("bigint");
 07506
 07507                    b.HasKey("Id");
 07508
 07509                    b.HasIndex("CreatedByUserId");
 07510
 07511                    b.HasIndex("ModifiedByUserId");
 07512
 07513                    b.HasIndex("RecStateId");
 07514
 07515                    b.ToTable("NotificationsType");
 07516
 07517                    b.HasData(
 07518                        new
 07519                        {
 07520                            Id = 1L,
 07521                            Code = "System",
 07522                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07523                            Description = "",
 07524                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07525                            IsDeleted = false,
 07526                            Name = "Системное"
 07527                        },
 07528                        new
 07529                        {
 07530                            Id = 2L,
 07531                            Code = "News",
 07532                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07533                            Description = "",
 07534                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07535                            IsDeleted = false,
 07536                            Name = "Новость"
 07537                        });
 07538                });
 7539
 07540            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Photo", b =>
 07541                {
 07542                    b.Property<long>("Id")
 07543                        .ValueGeneratedOnAdd()
 07544                        .HasColumnType("bigint")
 07545                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07546
 07547                    b.Property<long?>("CreatedByUserId")
 07548                        .HasColumnType("bigint");
 07549
 07550                    b.Property<DateTime>("CreationDateTime")
 07551                        .HasColumnType("timestamp without time zone");
 07552
 07553                    b.Property<int>("FullSizeHeight")
 07554                        .HasColumnType("integer");
 07555
 07556                    b.Property<string>("FullSizeUrl")
 07557                        .HasColumnType("text");
 07558
 07559                    b.Property<int>("FullSizeWidth")
 07560                        .HasColumnType("integer");
 07561
 07562                    b.Property<Guid>("GUID")
 07563                        .ValueGeneratedOnAdd()
 07564                        .HasColumnType("uuid");
 07565
 07566                    b.Property<long?>("GoodId")
 07567                        .HasColumnType("bigint");
 07568
 07569                    b.Property<bool>("IsDeleted")
 07570                        .HasColumnType("boolean");
 07571
 07572                    b.Property<DateTime?>("ModificationDateTime")
 07573                        .HasColumnType("timestamp without time zone");
 07574
 07575                    b.Property<long?>("ModifiedByUserId")
 07576                        .HasColumnType("bigint");
 07577
 07578                    b.Property<int>("PreviewHeight")
 07579                        .HasColumnType("integer");
 07580
 07581                    b.Property<string>("PreviewUrl")
 07582                        .HasColumnType("text");
 07583
 07584                    b.Property<int>("PreviewWidth")
 07585                        .HasColumnType("integer");
 07586
 07587                    b.Property<long?>("RecStateId")
 07588                        .HasColumnType("bigint");
 07589
 07590                    b.HasKey("Id");
 07591
 07592                    b.HasIndex("CreatedByUserId");
 07593
 07594                    b.HasIndex("GoodId");
 07595
 07596                    b.HasIndex("ModifiedByUserId");
 07597
 07598                    b.HasIndex("RecStateId");
 07599
 07600                    b.ToTable("Photos");
 07601                });
 7602
 07603            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceCurrent", b =>
 07604                {
 07605                    b.Property<long>("Id")
 07606                        .ValueGeneratedOnAdd()
 07607                        .HasColumnType("bigint")
 07608                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07609
 07610                    b.Property<long?>("CreatedByUserId")
 07611                        .HasColumnType("bigint");
 07612
 07613                    b.Property<DateTime>("CreationDateTime")
 07614                        .HasColumnType("timestamp without time zone");
 07615
 07616                    b.Property<Guid>("GUID")
 07617                        .ValueGeneratedOnAdd()
 07618                        .HasColumnType("uuid");
 07619
 07620                    b.Property<long>("GoodId")
 07621                        .HasColumnType("bigint");
 07622
 07623                    b.Property<bool>("IsDeleted")
 07624                        .HasColumnType("boolean");
 07625
 07626                    b.Property<DateTime?>("ModificationDateTime")
 07627                        .HasColumnType("timestamp without time zone");
 07628
 07629                    b.Property<long?>("ModifiedByUserId")
 07630                        .HasColumnType("bigint");
 07631
 07632                    b.Property<decimal>("Price")
 07633                        .HasColumnType("numeric");
 07634
 07635                    b.Property<long?>("RecStateId")
 07636                        .HasColumnType("bigint");
 07637
 07638                    b.Property<long>("SupplierDepartmentId")
 07639                        .HasColumnType("bigint");
 07640
 07641                    b.HasKey("Id");
 07642
 07643                    b.HasIndex("CreatedByUserId");
 07644
 07645                    b.HasIndex("GoodId");
 07646
 07647                    b.HasIndex("ModifiedByUserId");
 07648
 07649                    b.HasIndex("RecStateId");
 07650
 07651                    b.HasIndex("SupplierDepartmentId");
 07652
 07653                    b.ToTable("PricesCurrent");
 07654                });
 7655
 07656            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrend", b =>
 07657                {
 07658                    b.Property<long>("Id")
 07659                        .ValueGeneratedOnAdd()
 07660                        .HasColumnType("bigint")
 07661                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07662
 07663                    b.Property<DateTime>("BeginDate")
 07664                        .HasColumnType("timestamp without time zone");
 07665
 07666                    b.Property<long?>("CreatedByUserId")
 07667                        .HasColumnType("bigint");
 07668
 07669                    b.Property<DateTime>("CreationDateTime")
 07670                        .HasColumnType("timestamp without time zone");
 07671
 07672                    b.Property<string>("DocNumber")
 07673                        .IsRequired()
 07674                        .HasColumnType("text");
 07675
 07676                    b.Property<DateTime>("EndDate")
 07677                        .HasColumnType("timestamp without time zone");
 07678
 07679                    b.Property<Guid>("GUID")
 07680                        .ValueGeneratedOnAdd()
 07681                        .HasColumnType("uuid");
 07682
 07683                    b.Property<bool>("IsDeleted")
 07684                        .HasColumnType("boolean");
 07685
 07686                    b.Property<DateTime?>("ModificationDateTime")
 07687                        .HasColumnType("timestamp without time zone");
 07688
 07689                    b.Property<long?>("ModifiedByUserId")
 07690                        .HasColumnType("bigint");
 07691
 07692                    b.Property<long?>("RecStateId")
 07693                        .HasColumnType("bigint");
 07694
 07695                    b.Property<long>("SupplierDepartmentId")
 07696                        .HasColumnType("bigint");
 07697
 07698                    b.HasKey("Id");
 07699
 07700                    b.HasIndex("CreatedByUserId");
 07701
 07702                    b.HasIndex("ModifiedByUserId");
 07703
 07704                    b.HasIndex("RecStateId");
 07705
 07706                    b.HasIndex("SupplierDepartmentId");
 07707
 07708                    b.ToTable("PricesTrend");
 07709                });
 7710
 07711            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrendDetail", b =>
 07712                {
 07713                    b.Property<long>("Id")
 07714                        .ValueGeneratedOnAdd()
 07715                        .HasColumnType("bigint")
 07716                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07717
 07718                    b.Property<long?>("CreatedByUserId")
 07719                        .HasColumnType("bigint");
 07720
 07721                    b.Property<DateTime>("CreationDateTime")
 07722                        .HasColumnType("timestamp without time zone");
 07723
 07724                    b.Property<Guid>("GUID")
 07725                        .ValueGeneratedOnAdd()
 07726                        .HasColumnType("uuid");
 07727
 07728                    b.Property<long>("GoodId")
 07729                        .HasColumnType("bigint");
 07730
 07731                    b.Property<bool>("IsDeleted")
 07732                        .HasColumnType("boolean");
 07733
 07734                    b.Property<DateTime?>("ModificationDateTime")
 07735                        .HasColumnType("timestamp without time zone");
 07736
 07737                    b.Property<long?>("ModifiedByUserId")
 07738                        .HasColumnType("bigint");
 07739
 07740                    b.Property<decimal>("PriceNew")
 07741                        .HasColumnType("numeric");
 07742
 07743                    b.Property<decimal?>("PriceOld")
 07744                        .HasColumnType("numeric");
 07745
 07746                    b.Property<long>("PriceTrendId")
 07747                        .HasColumnType("bigint");
 07748
 07749                    b.Property<long?>("RecStateId")
 07750                        .HasColumnType("bigint");
 07751
 07752                    b.HasKey("Id");
 07753
 07754                    b.HasIndex("CreatedByUserId");
 07755
 07756                    b.HasIndex("ModifiedByUserId");
 07757
 07758                    b.HasIndex("PriceTrendId");
 07759
 07760                    b.HasIndex("RecStateId");
 07761
 07762                    b.HasIndex("GoodId", "PriceTrendId")
 07763                        .IsUnique();
 07764
 07765                    b.ToTable("PriceTrendDetails");
 07766                });
 7767
 07768            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoBid", b =>
 07769                {
 07770                    b.Property<long>("Id")
 07771                        .ValueGeneratedOnAdd()
 07772                        .HasColumnType("bigint")
 07773                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07774
 07775                    b.Property<long?>("CreatedByUserId")
 07776                        .HasColumnType("bigint");
 07777
 07778                    b.Property<DateTime>("CreationDate")
 07779                        .HasColumnType("timestamp without time zone");
 07780
 07781                    b.Property<DateTime>("CreationDateTime")
 07782                        .HasColumnType("timestamp without time zone");
 07783
 07784                    b.Property<long>("CustomerDepartmentId")
 07785                        .HasColumnType("bigint");
 07786
 07787                    b.Property<DateTime>("DateEnd")
 07788                        .HasColumnType("timestamp without time zone");
 07789
 07790                    b.Property<Guid>("GUID")
 07791                        .ValueGeneratedOnAdd()
 07792                        .HasColumnType("uuid");
 07793
 07794                    b.Property<long>("GoodId")
 07795                        .HasColumnType("bigint");
 07796
 07797                    b.Property<bool>("IsDeleted")
 07798                        .HasColumnType("boolean");
 07799
 07800                    b.Property<DateTime?>("ModificationDateTime")
 07801                        .HasColumnType("timestamp without time zone");
 07802
 07803                    b.Property<long?>("ModifiedByUserId")
 07804                        .HasColumnType("bigint");
 07805
 07806                    b.Property<decimal>("Price")
 07807                        .HasColumnType("numeric");
 07808
 07809                    b.Property<long>("PromoOfferId")
 07810                        .HasColumnType("bigint");
 07811
 07812                    b.Property<decimal>("Quantity")
 07813                        .HasColumnType("numeric");
 07814
 07815                    b.Property<long?>("RecStateId")
 07816                        .HasColumnType("bigint");
 07817
 07818                    b.Property<decimal>("Sum")
 07819                        .HasColumnType("numeric");
 07820
 07821                    b.HasKey("Id");
 07822
 07823                    b.HasIndex("CreatedByUserId");
 07824
 07825                    b.HasIndex("CustomerDepartmentId");
 07826
 07827                    b.HasIndex("GoodId");
 07828
 07829                    b.HasIndex("ModifiedByUserId");
 07830
 07831                    b.HasIndex("PromoOfferId");
 07832
 07833                    b.HasIndex("RecStateId");
 07834
 07835                    b.ToTable("PromoBids");
 07836                });
 7837
 07838            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoOffer", b =>
 07839                {
 07840                    b.Property<long>("Id")
 07841                        .ValueGeneratedOnAdd()
 07842                        .HasColumnType("bigint")
 07843                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07844
 07845                    b.Property<long?>("CreatedByUserId")
 07846                        .HasColumnType("bigint");
 07847
 07848                    b.Property<DateTime>("CreationDateTime")
 07849                        .HasColumnType("timestamp without time zone");
 07850
 07851                    b.Property<DateTime>("DateBegin")
 07852                        .HasColumnType("timestamp without time zone");
 07853
 07854                    b.Property<DateTime>("DateEnd")
 07855                        .HasColumnType("timestamp without time zone");
 07856
 07857                    b.Property<Guid>("GUID")
 07858                        .ValueGeneratedOnAdd()
 07859                        .HasColumnType("uuid");
 07860
 07861                    b.Property<long>("GoodId")
 07862                        .HasColumnType("bigint");
 07863
 07864                    b.Property<bool>("IsDeleted")
 07865                        .HasColumnType("boolean");
 07866
 07867                    b.Property<decimal?>("MaxQuantity")
 07868                        .HasColumnType("numeric");
 07869
 07870                    b.Property<decimal>("MinQuantity")
 07871                        .HasColumnType("numeric");
 07872
 07873                    b.Property<DateTime?>("ModificationDateTime")
 07874                        .HasColumnType("timestamp without time zone");
 07875
 07876                    b.Property<long?>("ModifiedByUserId")
 07877                        .HasColumnType("bigint");
 07878
 07879                    b.Property<decimal>("Price")
 07880                        .HasColumnType("numeric");
 07881
 07882                    b.Property<long?>("RecStateId")
 07883                        .HasColumnType("bigint");
 07884
 07885                    b.Property<long>("SupplierDepartmentId")
 07886                        .HasColumnType("bigint");
 07887
 07888                    b.HasKey("Id");
 07889
 07890                    b.HasIndex("CreatedByUserId");
 07891
 07892                    b.HasIndex("GoodId");
 07893
 07894                    b.HasIndex("ModifiedByUserId");
 07895
 07896                    b.HasIndex("RecStateId");
 07897
 07898                    b.HasIndex("SupplierDepartmentId");
 07899
 07900                    b.ToTable("PromoOffers");
 07901                });
 7902
 07903            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", b =>
 07904                {
 07905                    b.Property<long>("Id")
 07906                        .ValueGeneratedOnAdd()
 07907                        .HasColumnType("bigint")
 07908                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 07909
 07910                    b.Property<string>("Code")
 07911                        .IsRequired()
 07912                        .HasColumnType("text");
 07913
 07914                    b.Property<long?>("CreatedByUserId")
 07915                        .HasColumnType("bigint");
 07916
 07917                    b.Property<DateTime>("CreationDateTime")
 07918                        .HasColumnType("timestamp without time zone");
 07919
 07920                    b.Property<string>("Description")
 07921                        .HasColumnType("text");
 07922
 07923                    b.Property<Guid>("GUID")
 07924                        .ValueGeneratedOnAdd()
 07925                        .HasColumnType("uuid");
 07926
 07927                    b.Property<bool>("IsDeleted")
 07928                        .HasColumnType("boolean");
 07929
 07930                    b.Property<DateTime?>("ModificationDateTime")
 07931                        .HasColumnType("timestamp without time zone");
 07932
 07933                    b.Property<long?>("ModifiedByUserId")
 07934                        .HasColumnType("bigint");
 07935
 07936                    b.Property<string>("Name")
 07937                        .IsRequired()
 07938                        .HasColumnType("text");
 07939
 07940                    b.Property<long?>("RecStateId")
 07941                        .HasColumnType("bigint");
 07942
 07943                    b.HasKey("Id");
 07944
 07945                    b.HasIndex("CreatedByUserId");
 07946
 07947                    b.HasIndex("ModifiedByUserId");
 07948
 07949                    b.HasIndex("RecStateId");
 07950
 07951                    b.ToTable("RecordsState");
 07952
 07953                    b.HasData(
 07954                        new
 07955                        {
 07956                            Id = 1L,
 07957                            Code = "Error",
 07958                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07959                            Description = "",
 07960                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07961                            IsDeleted = false,
 07962                            Name = "Ошибка"
 07963                        },
 07964                        new
 07965                        {
 07966                            Id = 2L,
 07967                            Code = "Active",
 07968                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07969                            Description = "",
 07970                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07971                            IsDeleted = false,
 07972                            Name = "Активно"
 07973                        },
 07974                        new
 07975                        {
 07976                            Id = 3L,
 07977                            Code = "Inactive",
 07978                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07979                            Description = "",
 07980                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07981                            IsDeleted = false,
 07982                            Name = "Неактивно"
 07983                        },
 07984                        new
 07985                        {
 07986                            Id = 4L,
 07987                            Code = "Deleted",
 07988                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07989                            Description = "",
 07990                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 07991                            IsDeleted = false,
 07992                            Name = "Удалено"
 07993                        },
 07994                        new
 07995                        {
 07996                            Id = 5L,
 07997                            Code = "Empty",
 07998                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 07999                            Description = "",
 08000                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08001                            IsDeleted = false,
 08002                            Name = "Пусто"
 08003                        });
 08004                });
 8005
 08006            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Rest", b =>
 08007                {
 08008                    b.Property<long>("Id")
 08009                        .ValueGeneratedOnAdd()
 08010                        .HasColumnType("bigint")
 08011                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08012
 08013                    b.Property<long?>("CreatedByUserId")
 08014                        .HasColumnType("bigint");
 08015
 08016                    b.Property<DateTime>("CreationDateTime")
 08017                        .HasColumnType("timestamp without time zone");
 08018
 08019                    b.Property<long>("DepartmentId")
 08020                        .HasColumnType("bigint");
 08021
 08022                    b.Property<Guid>("GUID")
 08023                        .ValueGeneratedOnAdd()
 08024                        .HasColumnType("uuid");
 08025
 08026                    b.Property<long>("GoodId")
 08027                        .HasColumnType("bigint");
 08028
 08029                    b.Property<bool>("IsDeleted")
 08030                        .HasColumnType("boolean");
 08031
 08032                    b.Property<DateTime?>("ModificationDateTime")
 08033                        .HasColumnType("timestamp without time zone");
 08034
 08035                    b.Property<long?>("ModifiedByUserId")
 08036                        .HasColumnType("bigint");
 08037
 08038                    b.Property<decimal>("Quantity")
 08039                        .HasColumnType("numeric");
 08040
 08041                    b.Property<long?>("RecStateId")
 08042                        .HasColumnType("bigint");
 08043
 08044                    b.HasKey("Id");
 08045
 08046                    b.HasIndex("CreatedByUserId");
 08047
 08048                    b.HasIndex("DepartmentId");
 08049
 08050                    b.HasIndex("GoodId");
 08051
 08052                    b.HasIndex("ModifiedByUserId");
 08053
 08054                    b.HasIndex("RecStateId");
 08055
 08056                    b.ToTable("Rests");
 08057                });
 8058
 08059            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", b =>
 08060                {
 08061                    b.Property<long>("Id")
 08062                        .ValueGeneratedOnAdd()
 08063                        .HasColumnType("bigint")
 08064                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08065
 08066                    b.Property<long?>("CreatedByUserId")
 08067                        .HasColumnType("bigint");
 08068
 08069                    b.Property<DateTime>("CreationDateTime")
 08070                        .HasColumnType("timestamp without time zone");
 08071
 08072                    b.Property<string>("Description")
 08073                        .HasColumnType("text");
 08074
 08075                    b.Property<Guid>("GUID")
 08076                        .ValueGeneratedOnAdd()
 08077                        .HasColumnType("uuid");
 08078
 08079                    b.Property<bool>("IsDeleted")
 08080                        .HasColumnType("boolean");
 08081
 08082                    b.Property<DateTime?>("ModificationDateTime")
 08083                        .HasColumnType("timestamp without time zone");
 08084
 08085                    b.Property<long?>("ModifiedByUserId")
 08086                        .HasColumnType("bigint");
 08087
 08088                    b.Property<string>("Name")
 08089                        .IsRequired()
 08090                        .HasColumnType("text");
 08091
 08092                    b.Property<long?>("RecStateId")
 08093                        .HasColumnType("bigint");
 08094
 08095                    b.HasKey("Id");
 08096
 08097                    b.HasIndex("CreatedByUserId");
 08098
 08099                    b.HasIndex("ModifiedByUserId");
 08100
 08101                    b.HasIndex("RecStateId");
 08102
 08103                    b.ToTable("Roles");
 08104
 08105                    b.HasData(
 08106                        new
 08107                        {
 08108                            Id = 1L,
 08109                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08110                            Description = "Администратор системы",
 08111                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08112                            IsDeleted = false,
 08113                            Name = "dd_sys_hi_level"
 08114                        },
 08115                        new
 08116                        {
 08117                            Id = 2L,
 08118                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08119                            Description = "Оператор системы",
 08120                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08121                            IsDeleted = false,
 08122                            Name = "dd_sys_low_level"
 08123                        },
 08124                        new
 08125                        {
 08126                            Id = 3L,
 08127                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08128                            Description = "Владелец магазина",
 08129                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08130                            IsDeleted = false,
 08131                            Name = "dd_cust_hi_level"
 08132                        },
 08133                        new
 08134                        {
 08135                            Id = 4L,
 08136                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08137                            Description = "Товаровед магазина",
 08138                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08139                            IsDeleted = false,
 08140                            Name = "dd_cust_mid_level"
 08141                        },
 08142                        new
 08143                        {
 08144                            Id = 5L,
 08145                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08146                            Description = "Продавец магазина",
 08147                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08148                            IsDeleted = false,
 08149                            Name = "dd_cust_low_level"
 08150                        },
 08151                        new
 08152                        {
 08153                            Id = 6L,
 08154                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08155                            Description = "Владелец поставщика (дистрибьютера)",
 08156                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08157                            IsDeleted = false,
 08158                            Name = "dd_supp_hi_level"
 08159                        },
 08160                        new
 08161                        {
 08162                            Id = 7L,
 08163                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08164                            Description = "Управляющий поставщика",
 08165                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08166                            IsDeleted = false,
 08167                            Name = "dd_supp_mid_level"
 08168                        },
 08169                        new
 08170                        {
 08171                            Id = 8L,
 08172                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08173                            Description = "Кладовщик поставщика",
 08174                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08175                            IsDeleted = false,
 08176                            Name = "dd_supp_low_level"
 08177                        },
 08178                        new
 08179                        {
 08180                            Id = 9L,
 08181                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08182                            Description = "Анонимный пользователь",
 08183                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08184                            IsDeleted = false,
 08185                            Name = "dd_anonym"
 08186                        });
 08187                });
 8188
 08189            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.SupplyContract", b =>
 08190                {
 08191                    b.Property<long>("Id")
 08192                        .ValueGeneratedOnAdd()
 08193                        .HasColumnType("bigint")
 08194                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08195
 08196                    b.Property<DateTime>("BeginDate")
 08197                        .HasColumnType("timestamp without time zone");
 08198
 08199                    b.Property<long>("BuyerId")
 08200                        .HasColumnType("bigint");
 08201
 08202                    b.Property<long?>("CreatedByUserId")
 08203                        .HasColumnType("bigint");
 08204
 08205                    b.Property<DateTime>("CreationDateTime")
 08206                        .HasColumnType("timestamp without time zone");
 08207
 08208                    b.Property<string>("DocumentNumber")
 08209                        .IsRequired()
 08210                        .HasColumnType("text");
 08211
 08212                    b.Property<DateTime>("EndDate")
 08213                        .HasColumnType("timestamp without time zone");
 08214
 08215                    b.Property<Guid>("GUID")
 08216                        .ValueGeneratedOnAdd()
 08217                        .HasColumnType("uuid");
 08218
 08219                    b.Property<bool>("IsDeleted")
 08220                        .HasColumnType("boolean");
 08221
 08222                    b.Property<DateTime?>("ModificationDateTime")
 08223                        .HasColumnType("timestamp without time zone");
 08224
 08225                    b.Property<long?>("ModifiedByUserId")
 08226                        .HasColumnType("bigint");
 08227
 08228                    b.Property<decimal>("PrepaimentPercent")
 08229                        .HasColumnType("numeric");
 08230
 08231                    b.Property<long?>("RecStateId")
 08232                        .HasColumnType("bigint");
 08233
 08234                    b.Property<long>("SellerId")
 08235                        .HasColumnType("bigint");
 08236
 08237                    b.Property<DateTime>("SignOffDate")
 08238                        .HasColumnType("timestamp without time zone");
 08239
 08240                    b.Property<decimal>("TradeRatio")
 08241                        .HasColumnType("numeric");
 08242
 08243                    b.HasKey("Id");
 08244
 08245                    b.HasIndex("BuyerId");
 08246
 08247                    b.HasIndex("CreatedByUserId");
 08248
 08249                    b.HasIndex("DocumentNumber");
 08250
 08251                    b.HasIndex("ModifiedByUserId");
 08252
 08253                    b.HasIndex("RecStateId");
 08254
 08255                    b.HasIndex("SellerId");
 08256
 08257                    b.ToTable("SupplyContract");
 08258                });
 8259
 08260            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.TaxSystem", b =>
 08261                {
 08262                    b.Property<long>("Id")
 08263                        .ValueGeneratedOnAdd()
 08264                        .HasColumnType("bigint")
 08265                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08266
 08267                    b.Property<string>("Code")
 08268                        .HasColumnType("text");
 08269
 08270                    b.Property<long?>("CreatedByUserId")
 08271                        .HasColumnType("bigint");
 08272
 08273                    b.Property<DateTime>("CreationDateTime")
 08274                        .HasColumnType("timestamp without time zone");
 08275
 08276                    b.Property<string>("Description")
 08277                        .HasColumnType("text");
 08278
 08279                    b.Property<Guid>("GUID")
 08280                        .ValueGeneratedOnAdd()
 08281                        .HasColumnType("uuid");
 08282
 08283                    b.Property<bool>("IsDeleted")
 08284                        .HasColumnType("boolean");
 08285
 08286                    b.Property<DateTime?>("ModificationDateTime")
 08287                        .HasColumnType("timestamp without time zone");
 08288
 08289                    b.Property<long?>("ModifiedByUserId")
 08290                        .HasColumnType("bigint");
 08291
 08292                    b.Property<string>("Name")
 08293                        .HasColumnType("text");
 08294
 08295                    b.Property<long?>("RecStateId")
 08296                        .HasColumnType("bigint");
 08297
 08298                    b.HasKey("Id");
 08299
 08300                    b.HasIndex("CreatedByUserId");
 08301
 08302                    b.HasIndex("ModifiedByUserId");
 08303
 08304                    b.HasIndex("RecStateId");
 08305
 08306                    b.ToTable("TaxSystems");
 08307
 08308                    b.HasData(
 08309                        new
 08310                        {
 08311                            Id = 1L,
 08312                            Code = "УСН",
 08313                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08314                            Description = "Упрощенка",
 08315                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08316                            IsDeleted = false,
 08317                            Name = "Упрощенная система налогообложения"
 08318                        },
 08319                        new
 08320                        {
 08321                            Id = 2L,
 08322                            Code = "ЕНВД",
 08323                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08324                            Description = "Вмененка",
 08325                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08326                            IsDeleted = false,
 08327                            Name = "Единый налог на вмененные доходы"
 08328                        },
 08329                        new
 08330                        {
 08331                            Id = 3L,
 08332                            Code = "ES",
 08333                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08334                            Description = "Единый сельскохозяйственный налог",
 08335                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08336                            IsDeleted = false,
 08337                            Name = "ЕСХН"
 08338                        },
 08339                        new
 08340                        {
 08341                            Id = 4L,
 08342                            Code = "ОСН",
 08343                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08344                            Description = "Стандартная",
 08345                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08346                            IsDeleted = false,
 08347                            Name = "Основная система налогообложения"
 08348                        });
 08349                });
 8350
 08351            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UnitsKind", b =>
 08352                {
 08353                    b.Property<long>("Id")
 08354                        .ValueGeneratedOnAdd()
 08355                        .HasColumnType("bigint")
 08356                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08357
 08358                    b.Property<string>("Code")
 08359                        .IsRequired()
 08360                        .HasColumnType("text");
 08361
 08362                    b.Property<long?>("CreatedByUserId")
 08363                        .HasColumnType("bigint");
 08364
 08365                    b.Property<DateTime>("CreationDateTime")
 08366                        .HasColumnType("timestamp without time zone");
 08367
 08368                    b.Property<string>("Description")
 08369                        .HasColumnType("text");
 08370
 08371                    b.Property<Guid>("GUID")
 08372                        .ValueGeneratedOnAdd()
 08373                        .HasColumnType("uuid");
 08374
 08375                    b.Property<bool>("IsDeleted")
 08376                        .HasColumnType("boolean");
 08377
 08378                    b.Property<DateTime?>("ModificationDateTime")
 08379                        .HasColumnType("timestamp without time zone");
 08380
 08381                    b.Property<long?>("ModifiedByUserId")
 08382                        .HasColumnType("bigint");
 08383
 08384                    b.Property<string>("Name")
 08385                        .IsRequired()
 08386                        .HasColumnType("text");
 08387
 08388                    b.Property<long?>("RecStateId")
 08389                        .HasColumnType("bigint");
 08390
 08391                    b.Property<string>("StrCode")
 08392                        .HasColumnType("text");
 08393
 08394                    b.HasKey("Id");
 08395
 08396                    b.HasIndex("CreatedByUserId");
 08397
 08398                    b.HasIndex("ModifiedByUserId");
 08399
 08400                    b.HasIndex("RecStateId");
 08401
 08402                    b.ToTable("UnitsKind");
 08403
 08404                    b.HasData(
 08405                        new
 08406                        {
 08407                            Id = 1L,
 08408                            Code = "1",
 08409                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08410                            Description = "",
 08411                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08412                            IsDeleted = false,
 08413                            Name = "Неизвестно",
 08414                            StrCode = "Unknown"
 08415                        },
 08416                        new
 08417                        {
 08418                            Id = 2L,
 08419                            Code = "166",
 08420                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08421                            Description = "Килограмм",
 08422                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08423                            IsDeleted = false,
 08424                            Name = "КГ",
 08425                            StrCode = "Kg"
 08426                        },
 08427                        new
 08428                        {
 08429                            Id = 3L,
 08430                            Code = "112",
 08431                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08432                            Description = "Литр",
 08433                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08434                            IsDeleted = false,
 08435                            Name = "Л",
 08436                            StrCode = "Litre"
 08437                        },
 08438                        new
 08439                        {
 08440                            Id = 4L,
 08441                            Code = "6",
 08442                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08443                            Description = "Метр",
 08444                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08445                            IsDeleted = false,
 08446                            Name = "М",
 08447                            StrCode = "Meter"
 08448                        },
 08449                        new
 08450                        {
 08451                            Id = 5L,
 08452                            Code = "796",
 08453                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08454                            Description = "Штука (1 единица товара)",
 08455                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08456                            IsDeleted = false,
 08457                            Name = "ШТ",
 08458                            StrCode = "Item"
 08459                        },
 08460                        new
 08461                        {
 08462                            Id = 6L,
 08463                            Code = "55",
 08464                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08465                            Description = "Квадратный метр",
 08466                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08467                            IsDeleted = false,
 08468                            Name = "М2",
 08469                            StrCode = "SquareMetre"
 08470                        },
 08471                        new
 08472                        {
 08473                            Id = 7L,
 08474                            Code = "113",
 08475                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08476                            Description = "Кубический метр",
 08477                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08478                            IsDeleted = false,
 08479                            Name = "М3",
 08480                            StrCode = "CubicMetre"
 08481                        });
 08482                });
 8483
 08484            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Upload", b =>
 08485                {
 08486                    b.Property<long>("Id")
 08487                        .ValueGeneratedOnAdd()
 08488                        .HasColumnType("bigint")
 08489                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08490
 08491                    b.Property<long?>("CreatedByUserId")
 08492                        .HasColumnType("bigint");
 08493
 08494                    b.Property<DateTime>("CreationDateTime")
 08495                        .HasColumnType("timestamp without time zone");
 08496
 08497                    b.Property<Guid>("GUID")
 08498                        .ValueGeneratedOnAdd()
 08499                        .HasColumnType("uuid");
 08500
 08501                    b.Property<bool>("IsDeleted")
 08502                        .HasColumnType("boolean");
 08503
 08504                    b.Property<DateTime?>("ModificationDateTime")
 08505                        .HasColumnType("timestamp without time zone");
 08506
 08507                    b.Property<long?>("ModifiedByUserId")
 08508                        .HasColumnType("bigint");
 08509
 08510                    b.Property<long?>("RecStateId")
 08511                        .HasColumnType("bigint");
 08512
 08513                    b.Property<byte[]>("ResultFile")
 08514                        .HasColumnType("bytea");
 08515
 08516                    b.Property<byte[]>("SourceFile")
 08517                        .HasColumnType("bytea");
 08518
 08519                    b.Property<int>("SourceRecordCount")
 08520                        .HasColumnType("integer");
 08521
 08522                    b.Property<int>("Status")
 08523                        .HasColumnType("integer");
 08524
 08525                    b.Property<int>("UploadedRecordCount")
 08526                        .HasColumnType("integer");
 08527
 08528                    b.HasKey("Id");
 08529
 08530                    b.HasIndex("CreatedByUserId");
 08531
 08532                    b.HasIndex("ModifiedByUserId");
 08533
 08534                    b.HasIndex("RecStateId");
 08535
 08536                    b.ToTable("Uploads");
 08537                });
 8538
 08539            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UploadItem", b =>
 08540                {
 08541                    b.Property<long>("Id")
 08542                        .ValueGeneratedOnAdd()
 08543                        .HasColumnType("bigint")
 08544                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08545
 08546                    b.Property<long?>("CreatedByUserId")
 08547                        .HasColumnType("bigint");
 08548
 08549                    b.Property<DateTime>("CreationDateTime")
 08550                        .HasColumnType("timestamp without time zone");
 08551
 08552                    b.Property<long>("EndityId")
 08553                        .HasColumnType("bigint");
 08554
 08555                    b.Property<string>("EntityName")
 08556                        .IsRequired()
 08557                        .HasColumnType("text");
 08558
 08559                    b.Property<Guid>("GUID")
 08560                        .ValueGeneratedOnAdd()
 08561                        .HasColumnType("uuid");
 08562
 08563                    b.Property<bool>("IsDeleted")
 08564                        .HasColumnType("boolean");
 08565
 08566                    b.Property<DateTime?>("ModificationDateTime")
 08567                        .HasColumnType("timestamp without time zone");
 08568
 08569                    b.Property<long?>("ModifiedByUserId")
 08570                        .HasColumnType("bigint");
 08571
 08572                    b.Property<long?>("RecStateId")
 08573                        .HasColumnType("bigint");
 08574
 08575                    b.Property<long>("UploadId")
 08576                        .HasColumnType("bigint");
 08577
 08578                    b.HasKey("Id");
 08579
 08580                    b.HasIndex("CreatedByUserId");
 08581
 08582                    b.HasIndex("ModifiedByUserId");
 08583
 08584                    b.HasIndex("RecStateId");
 08585
 08586                    b.HasIndex("UploadId");
 08587
 08588                    b.ToTable("UploadItems");
 08589                });
 8590
 08591            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", b =>
 08592                {
 08593                    b.Property<long>("Id")
 08594                        .ValueGeneratedOnAdd()
 08595                        .HasColumnType("bigint")
 08596                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08597
 08598                    b.Property<long?>("ContragentId")
 08599                        .HasColumnType("bigint");
 08600
 08601                    b.Property<long?>("CreatedByUserId")
 08602                        .HasColumnType("bigint");
 08603
 08604                    b.Property<DateTime>("CreationDateTime")
 08605                        .HasColumnType("timestamp without time zone");
 08606
 08607                    b.Property<string>("Email")
 08608                        .IsRequired()
 08609                        .HasColumnType("text");
 08610
 08611                    b.Property<Guid>("ExternalKey")
 08612                        .ValueGeneratedOnAdd()
 08613                        .HasColumnType("uuid");
 08614
 08615                    b.Property<string>("FirstName")
 08616                        .IsRequired()
 08617                        .HasColumnType("text");
 08618
 08619                    b.Property<Guid>("GUID")
 08620                        .ValueGeneratedOnAdd()
 08621                        .HasColumnType("uuid");
 08622
 08623                    b.Property<bool>("IsBlocked")
 08624                        .HasColumnType("boolean");
 08625
 08626                    b.Property<bool>("IsContactPerson")
 08627                        .HasColumnType("boolean");
 08628
 08629                    b.Property<bool>("IsDeleted")
 08630                        .HasColumnType("boolean");
 08631
 08632                    b.Property<string>("LastName")
 08633                        .IsRequired()
 08634                        .HasColumnType("text");
 08635
 08636                    b.Property<string>("Login")
 08637                        .HasColumnType("text");
 08638
 08639                    b.Property<string>("MiddleName")
 08640                        .HasColumnType("text");
 08641
 08642                    b.Property<DateTime?>("ModificationDateTime")
 08643                        .HasColumnType("timestamp without time zone");
 08644
 08645                    b.Property<long?>("ModifiedByUserId")
 08646                        .HasColumnType("bigint");
 08647
 08648                    b.Property<string>("Phone")
 08649                        .HasColumnType("text");
 08650
 08651                    b.Property<string>("Position")
 08652                        .IsRequired()
 08653                        .HasColumnType("text");
 08654
 08655                    b.Property<long?>("RecStateId")
 08656                        .HasColumnType("bigint");
 08657
 08658                    b.HasKey("Id");
 08659
 08660                    b.HasIndex("ContragentId");
 08661
 08662                    b.HasIndex("CreatedByUserId");
 08663
 08664                    b.HasIndex("Email");
 08665
 08666                    b.HasIndex("LastName");
 08667
 08668                    b.HasIndex("Login");
 08669
 08670                    b.HasIndex("ModifiedByUserId");
 08671
 08672                    b.HasIndex("Phone");
 08673
 08674                    b.HasIndex("RecStateId");
 08675
 08676                    b.ToTable("Users");
 08677
 08678                    b.HasData(
 08679                        new
 08680                        {
 08681                            Id = -1L,
 08682                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08683                            Email = "EmbeddedSvetaAdmin@dd.com",
 08684                            ExternalKey = new Guid("00000000-0000-0000-0000-000000000000"),
 08685                            FirstName = "1",
 08686                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08687                            IsBlocked = false,
 08688                            IsContactPerson = true,
 08689                            IsDeleted = false,
 08690                            LastName = "1",
 08691                            Login = "svetaAdmin",
 08692                            MiddleName = "1",
 08693                            Phone = "1",
 08694                            Position = "1"
 08695                        },
 08696                        new
 08697                        {
 08698                            Id = -2L,
 08699                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08700                            Email = "EmbeddedAnonymUser@dd.com",
 08701                            ExternalKey = new Guid("00000000-0000-0000-0000-000000000000"),
 08702                            FirstName = "Anonym User",
 08703                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08704                            IsBlocked = false,
 08705                            IsContactPerson = true,
 08706                            IsDeleted = false,
 08707                            LastName = "1",
 08708                            Login = "Anonym User",
 08709                            MiddleName = "Anonym User",
 08710                            Phone = "1",
 08711                            Position = "Анонимная УЗ, не удалять"
 08712                        });
 08713                });
 8714
 08715            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserDepartment", b =>
 08716                {
 08717                    b.Property<long>("UserId")
 08718                        .HasColumnType("bigint");
 08719
 08720                    b.Property<long>("DepartmentId")
 08721                        .HasColumnType("bigint");
 08722
 08723                    b.Property<long?>("CreatedByUserId")
 08724                        .HasColumnType("bigint");
 08725
 08726                    b.Property<DateTime>("CreationDateTime")
 08727                        .HasColumnType("timestamp without time zone");
 08728
 08729                    b.Property<Guid>("GUID")
 08730                        .ValueGeneratedOnAdd()
 08731                        .HasColumnType("uuid");
 08732
 08733                    b.HasKey("UserId", "DepartmentId");
 08734
 08735                    b.HasIndex("DepartmentId");
 08736
 08737                    b.ToTable("UserDepartment");
 08738                });
 8739
 08740            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserRole", b =>
 08741                {
 08742                    b.Property<long>("UserId")
 08743                        .HasColumnType("bigint");
 08744
 08745                    b.Property<long>("RoleId")
 08746                        .HasColumnType("bigint");
 08747
 08748                    b.Property<long?>("CreatedByUserId")
 08749                        .HasColumnType("bigint");
 08750
 08751                    b.Property<DateTime>("CreationDateTime")
 08752                        .HasColumnType("timestamp without time zone");
 08753
 08754                    b.Property<Guid>("GUID")
 08755                        .ValueGeneratedOnAdd()
 08756                        .HasColumnType("uuid");
 08757
 08758                    b.HasKey("UserId", "RoleId");
 08759
 08760                    b.HasIndex("RoleId");
 08761
 08762                    b.ToTable("UserRole");
 08763                });
 8764
 08765            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.VatsKind", b =>
 08766                {
 08767                    b.Property<long>("Id")
 08768                        .ValueGeneratedOnAdd()
 08769                        .HasColumnType("bigint")
 08770                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08771
 08772                    b.Property<string>("Code")
 08773                        .IsRequired()
 08774                        .HasColumnType("text");
 08775
 08776                    b.Property<long?>("CreatedByUserId")
 08777                        .HasColumnType("bigint");
 08778
 08779                    b.Property<DateTime>("CreationDateTime")
 08780                        .HasColumnType("timestamp without time zone");
 08781
 08782                    b.Property<string>("Description")
 08783                        .HasColumnType("text");
 08784
 08785                    b.Property<Guid>("GUID")
 08786                        .ValueGeneratedOnAdd()
 08787                        .HasColumnType("uuid");
 08788
 08789                    b.Property<bool>("IsDeleted")
 08790                        .HasColumnType("boolean");
 08791
 08792                    b.Property<DateTime?>("ModificationDateTime")
 08793                        .HasColumnType("timestamp without time zone");
 08794
 08795                    b.Property<long?>("ModifiedByUserId")
 08796                        .HasColumnType("bigint");
 08797
 08798                    b.Property<string>("Name")
 08799                        .IsRequired()
 08800                        .HasColumnType("text");
 08801
 08802                    b.Property<long?>("RecStateId")
 08803                        .HasColumnType("bigint");
 08804
 08805                    b.Property<string>("StrCode")
 08806                        .HasColumnType("text");
 08807
 08808                    b.HasKey("Id");
 08809
 08810                    b.HasIndex("CreatedByUserId");
 08811
 08812                    b.HasIndex("ModifiedByUserId");
 08813
 08814                    b.HasIndex("RecStateId");
 08815
 08816                    b.ToTable("VatsKind");
 08817
 08818                    b.HasData(
 08819                        new
 08820                        {
 08821                            Id = 1L,
 08822                            Code = "1",
 08823                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08824                            Description = "",
 08825                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08826                            IsDeleted = false,
 08827                            Name = "0%",
 08828                            StrCode = "Zero"
 08829                        },
 08830                        new
 08831                        {
 08832                            Id = 2L,
 08833                            Code = "10",
 08834                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08835                            Description = "",
 08836                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08837                            IsDeleted = false,
 08838                            Name = "10%",
 08839                            StrCode = "Ten"
 08840                        },
 08841                        new
 08842                        {
 08843                            Id = 3L,
 08844                            Code = "20",
 08845                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08846                            Description = "",
 08847                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08848                            IsDeleted = false,
 08849                            Name = "20%",
 08850                            StrCode = "Twenty"
 08851                        });
 08852                });
 8853
 08854            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransaction", b =>
 08855                {
 08856                    b.Property<long>("Id")
 08857                        .ValueGeneratedOnAdd()
 08858                        .HasColumnType("bigint")
 08859                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08860
 08861                    b.Property<long?>("CreatedByUserId")
 08862                        .HasColumnType("bigint");
 08863
 08864                    b.Property<DateTime>("CreationDateTime")
 08865                        .HasColumnType("timestamp without time zone");
 08866
 08867                    b.Property<Guid>("GUID")
 08868                        .ValueGeneratedOnAdd()
 08869                        .HasColumnType("uuid");
 08870
 08871                    b.Property<bool>("IsDeleted")
 08872                        .HasColumnType("boolean");
 08873
 08874                    b.Property<DateTime?>("ModificationDateTime")
 08875                        .HasColumnType("timestamp without time zone");
 08876
 08877                    b.Property<long?>("ModifiedByUserId")
 08878                        .HasColumnType("bigint");
 08879
 08880                    b.Property<long?>("MovementId")
 08881                        .HasColumnType("bigint");
 08882
 08883                    b.Property<long?>("RecStateId")
 08884                        .HasColumnType("bigint");
 08885
 08886                    b.Property<string>("SmsId")
 08887                        .HasColumnType("text");
 08888
 08889                    b.Property<long?>("StatusId")
 08890                        .HasColumnType("bigint");
 08891
 08892                    b.Property<decimal>("Sum")
 08893                        .HasColumnType("numeric");
 08894
 08895                    b.Property<string>("TransactionId")
 08896                        .HasColumnType("text");
 08897
 08898                    b.HasKey("Id");
 08899
 08900                    b.HasIndex("CreatedByUserId");
 08901
 08902                    b.HasIndex("ModifiedByUserId");
 08903
 08904                    b.HasIndex("MovementId");
 08905
 08906                    b.HasIndex("RecStateId");
 08907
 08908                    b.HasIndex("StatusId");
 08909
 08910                    b.ToTable("WalletTransactions");
 08911                });
 8912
 08913            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransactionStatus", b =>
 08914                {
 08915                    b.Property<long>("Id")
 08916                        .ValueGeneratedOnAdd()
 08917                        .HasColumnType("bigint")
 08918                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 08919
 08920                    b.Property<string>("Code")
 08921                        .IsRequired()
 08922                        .HasColumnType("text");
 08923
 08924                    b.Property<long?>("CreatedByUserId")
 08925                        .HasColumnType("bigint");
 08926
 08927                    b.Property<DateTime>("CreationDateTime")
 08928                        .HasColumnType("timestamp without time zone");
 08929
 08930                    b.Property<string>("Description")
 08931                        .HasColumnType("text");
 08932
 08933                    b.Property<Guid>("GUID")
 08934                        .ValueGeneratedOnAdd()
 08935                        .HasColumnType("uuid");
 08936
 08937                    b.Property<bool>("IsDeleted")
 08938                        .HasColumnType("boolean");
 08939
 08940                    b.Property<DateTime?>("ModificationDateTime")
 08941                        .HasColumnType("timestamp without time zone");
 08942
 08943                    b.Property<long?>("ModifiedByUserId")
 08944                        .HasColumnType("bigint");
 08945
 08946                    b.Property<string>("Name")
 08947                        .IsRequired()
 08948                        .HasColumnType("text");
 08949
 08950                    b.Property<long?>("RecStateId")
 08951                        .HasColumnType("bigint");
 08952
 08953                    b.HasKey("Id");
 08954
 08955                    b.HasIndex("CreatedByUserId");
 08956
 08957                    b.HasIndex("ModifiedByUserId");
 08958
 08959                    b.HasIndex("RecStateId");
 08960
 08961                    b.ToTable("WalletTransactionStatuses");
 08962
 08963                    b.HasData(
 08964                        new
 08965                        {
 08966                            Id = 1L,
 08967                            Code = "WaitSms",
 08968                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08969                            Description = "",
 08970                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08971                            IsDeleted = false,
 08972                            Name = "Ожидание смс подтверждения"
 08973                        },
 08974                        new
 08975                        {
 08976                            Id = 2L,
 08977                            Code = "Hold",
 08978                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08979                            Description = "",
 08980                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08981                            IsDeleted = false,
 08982                            Name = "Холдировано"
 08983                        },
 08984                        new
 08985                        {
 08986                            Id = 3L,
 08987                            Code = "Confirm",
 08988                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08989                            Description = "",
 08990                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 08991                            IsDeleted = false,
 08992                            Name = "Подтверждено"
 08993                        },
 08994                        new
 08995                        {
 08996                            Id = 4L,
 08997                            Code = "Cancel",
 08998                            CreationDateTime = new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
 08999                            Description = "",
 09000                            GUID = new Guid("00000000-0000-0000-0000-000000000000"),
 09001                            IsDeleted = false,
 09002                            Name = "Отменено"
 09003                        });
 09004                });
 9005
 09006            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WorkSchedule", b =>
 09007                {
 09008                    b.Property<long>("Id")
 09009                        .ValueGeneratedOnAdd()
 09010                        .HasColumnType("bigint")
 09011                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 09012
 09013                    b.Property<DateTime>("BeginTime")
 09014                        .HasColumnType("timestamp without time zone");
 09015
 09016                    b.Property<long?>("CreatedByUserId")
 09017                        .HasColumnType("bigint");
 09018
 09019                    b.Property<DateTime>("CreationDateTime")
 09020                        .HasColumnType("timestamp without time zone");
 09021
 09022                    b.Property<DateTime>("EndTime")
 09023                        .HasColumnType("timestamp without time zone");
 09024
 09025                    b.Property<Guid>("GUID")
 09026                        .ValueGeneratedOnAdd()
 09027                        .HasColumnType("uuid");
 09028
 09029                    b.Property<bool>("IsDeleted")
 09030                        .HasColumnType("boolean");
 09031
 09032                    b.Property<bool>("IsWorkingDay")
 09033                        .HasColumnType("boolean");
 09034
 09035                    b.Property<DateTime?>("ModificationDateTime")
 09036                        .HasColumnType("timestamp without time zone");
 09037
 09038                    b.Property<long?>("ModifiedByUserId")
 09039                        .HasColumnType("bigint");
 09040
 09041                    b.Property<long?>("RecStateId")
 09042                        .HasColumnType("bigint");
 09043
 09044                    b.HasKey("Id");
 09045
 09046                    b.HasIndex("CreatedByUserId");
 09047
 09048                    b.HasIndex("ModifiedByUserId");
 09049
 09050                    b.HasIndex("RecStateId");
 09051
 09052                    b.ToTable("WorkScheduler");
 09053                });
 9054
 09055            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", b =>
 09056                {
 09057                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09058                        .WithMany()
 09059                        .HasForeignKey("CreatedByUserId");
 09060
 09061                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09062                        .WithMany()
 09063                        .HasForeignKey("ModifiedByUserId");
 09064
 09065                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09066                        .WithMany()
 09067                        .HasForeignKey("RecStateId");
 09068                });
 9069
 09070            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.BankAccount", b =>
 09071                {
 09072                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Contragent")
 09073                        .WithMany("BankAccounts")
 09074                        .HasForeignKey("ContragentId");
 09075
 09076                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09077                        .WithMany()
 09078                        .HasForeignKey("CreatedByUserId");
 09079
 09080                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09081                        .WithMany()
 09082                        .HasForeignKey("ModifiedByUserId");
 09083
 09084                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09085                        .WithMany()
 09086                        .HasForeignKey("RecStateId");
 09087                });
 9088
 09089            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.BarCode", b =>
 09090                {
 09091                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09092                        .WithMany()
 09093                        .HasForeignKey("CreatedByUserId");
 09094
 09095                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", null)
 09096                        .WithMany("Barcodes")
 09097                        .HasForeignKey("GoodId");
 09098
 09099                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09100                        .WithMany()
 09101                        .HasForeignKey("ModifiedByUserId");
 09102
 09103                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09104                        .WithMany()
 09105                        .HasForeignKey("RecStateId");
 09106                });
 9107
 09108            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", b =>
 09109                {
 09110                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09111                        .WithMany()
 09112                        .HasForeignKey("CreatedByUserId");
 09113
 09114                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09115                        .WithMany()
 09116                        .HasForeignKey("ModifiedByUserId");
 09117
 09118                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", "Parent")
 09119                        .WithMany()
 09120                        .HasForeignKey("ParentId");
 09121
 09122                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09123                        .WithMany()
 09124                        .HasForeignKey("RecStateId");
 09125                });
 9126
 09127            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", b =>
 09128                {
 09129                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09130                        .WithMany()
 09131                        .HasForeignKey("CreatedByUserId");
 09132
 09133                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09134                        .WithMany()
 09135                        .HasForeignKey("ModifiedByUserId");
 09136
 09137                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", "Parent")
 09138                        .WithMany()
 09139                        .HasForeignKey("ParentId");
 09140
 09141                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09142                        .WithMany()
 09143                        .HasForeignKey("RecStateId");
 09144                });
 9145
 09146            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Cluster", b =>
 09147                {
 09148                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09149                        .WithMany()
 09150                        .HasForeignKey("CreatedByUserId");
 09151
 09152                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09153                        .WithMany()
 09154                        .HasForeignKey("ModifiedByUserId");
 09155
 09156                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09157                        .WithMany()
 09158                        .HasForeignKey("RecStateId");
 09159
 09160                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Warehouse")
 09161                        .WithMany()
 09162                        .HasForeignKey("WarehouseId")
 09163                        .OnDelete(DeleteBehavior.Cascade)
 09164                        .IsRequired();
 09165                });
 9166
 09167            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", b =>
 09168                {
 09169                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.ContragentsKind", "ContragentsKind")
 09170                        .WithMany()
 09171                        .HasForeignKey("ContragentsKindId")
 09172                        .OnDelete(DeleteBehavior.Cascade)
 09173                        .IsRequired();
 09174
 09175                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09176                        .WithMany()
 09177                        .HasForeignKey("CreatedByUserId");
 09178
 09179                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", "JuridicAddress")
 09180                        .WithMany()
 09181                        .HasForeignKey("JuridicAddressId")
 09182                        .OnDelete(DeleteBehavior.Cascade)
 09183                        .IsRequired();
 09184
 09185                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09186                        .WithMany()
 09187                        .HasForeignKey("ModifiedByUserId");
 09188
 09189                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "Owner")
 09190                        .WithMany()
 09191                        .HasForeignKey("OwnerId")
 09192                        .OnDelete(DeleteBehavior.Cascade)
 09193                        .IsRequired();
 09194
 09195                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", "PhysicAddress")
 09196                        .WithMany()
 09197                        .HasForeignKey("PhysicAddressId")
 09198                        .OnDelete(DeleteBehavior.Cascade)
 09199                        .IsRequired();
 09200
 09201                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09202                        .WithMany()
 09203                        .HasForeignKey("RecStateId");
 09204
 09205                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.TaxSystem", "TaxSystem")
 09206                        .WithMany()
 09207                        .HasForeignKey("TaxSystemId");
 09208                });
 9209
 09210            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ContragentsKind", b =>
 09211                {
 09212                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09213                        .WithMany()
 09214                        .HasForeignKey("CreatedByUserId");
 09215
 09216                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09217                        .WithMany()
 09218                        .HasForeignKey("ModifiedByUserId");
 09219
 09220                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09221                        .WithMany()
 09222                        .HasForeignKey("RecStateId");
 09223                });
 9224
 09225            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ControlAccess", b =>
 09226                {
 09227                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09228                        .WithMany()
 09229                        .HasForeignKey("CreatedByUserId");
 09230
 09231                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09232                        .WithMany()
 09233                        .HasForeignKey("ModifiedByUserId");
 09234
 09235                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09236                        .WithMany()
 09237                        .HasForeignKey("RecStateId");
 09238
 09239                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", "Role")
 09240                        .WithMany("ControlsAccess")
 09241                        .HasForeignKey("RoleId")
 09242                        .OnDelete(DeleteBehavior.Cascade)
 09243                        .IsRequired();
 09244                });
 9245
 09246            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Country", b =>
 09247                {
 09248                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09249                        .WithMany()
 09250                        .HasForeignKey("CreatedByUserId");
 09251
 09252                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09253                        .WithMany()
 09254                        .HasForeignKey("ModifiedByUserId");
 09255
 09256                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09257                        .WithMany()
 09258                        .HasForeignKey("RecStateId");
 09259                });
 9260
 09261            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Currency", b =>
 09262                {
 09263                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09264                        .WithMany()
 09265                        .HasForeignKey("CreatedByUserId");
 09266
 09267                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09268                        .WithMany()
 09269                        .HasForeignKey("ModifiedByUserId");
 09270
 09271                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09272                        .WithMany()
 09273                        .HasForeignKey("RecStateId");
 09274                });
 9275
 09276            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", b =>
 09277                {
 09278                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", "ActualAddress")
 09279                        .WithMany()
 09280                        .HasForeignKey("ActualAddressId");
 09281
 09282                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Cluster", "Cluster")
 09283                        .WithMany("Departments")
 09284                        .HasForeignKey("ClusterId");
 09285
 09286                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Contragent")
 09287                        .WithMany("Departments")
 09288                        .HasForeignKey("ContragentId")
 09289                        .OnDelete(DeleteBehavior.Cascade)
 09290                        .IsRequired();
 09291
 09292                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09293                        .WithMany()
 09294                        .HasForeignKey("CreatedByUserId");
 09295
 09296                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsKind", "Kind")
 09297                        .WithMany()
 09298                        .HasForeignKey("KindId");
 09299
 09300                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09301                        .WithMany()
 09302                        .HasForeignKey("ModifiedByUserId");
 09303
 09304                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", "PostalAddress")
 09305                        .WithMany()
 09306                        .HasForeignKey("PostalAddressId");
 09307
 09308                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09309                        .WithMany()
 09310                        .HasForeignKey("RecStateId");
 09311
 09312                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsStatus", "Status")
 09313                        .WithMany()
 09314                        .HasForeignKey("StatusId");
 09315                });
 9316
 09317            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentCategoryRatio", b =>
 09318                {
 09319                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", "Category")
 09320                        .WithMany("DepartmentCategoryRatios")
 09321                        .HasForeignKey("CategoryId")
 09322                        .OnDelete(DeleteBehavior.Cascade)
 09323                        .IsRequired();
 09324
 09325                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09326                        .WithMany()
 09327                        .HasForeignKey("CreatedByUserId");
 09328
 09329                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 09330                        .WithMany()
 09331                        .HasForeignKey("DepartmentId")
 09332                        .OnDelete(DeleteBehavior.Cascade)
 09333                        .IsRequired();
 09334
 09335                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09336                        .WithMany()
 09337                        .HasForeignKey("ModifiedByUserId");
 09338
 09339                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09340                        .WithMany()
 09341                        .HasForeignKey("RecStateId");
 09342                });
 9343
 09344            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentGoodSetting", b =>
 09345                {
 09346                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09347                        .WithMany()
 09348                        .HasForeignKey("CreatedByUserId");
 09349
 09350                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 09351                        .WithMany()
 09352                        .HasForeignKey("DepartmentId")
 09353                        .OnDelete(DeleteBehavior.Cascade)
 09354                        .IsRequired();
 09355
 09356                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 09357                        .WithMany("DepartmentGoodSettings")
 09358                        .HasForeignKey("GoodId")
 09359                        .OnDelete(DeleteBehavior.Cascade)
 09360                        .IsRequired();
 09361
 09362                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09363                        .WithMany()
 09364                        .HasForeignKey("ModifiedByUserId");
 09365
 09366                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09367                        .WithMany()
 09368                        .HasForeignKey("RecStateId");
 09369                });
 9370
 09371            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsKind", b =>
 09372                {
 09373                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09374                        .WithMany()
 09375                        .HasForeignKey("CreatedByUserId");
 09376
 09377                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09378                        .WithMany()
 09379                        .HasForeignKey("ModifiedByUserId");
 09380
 09381                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09382                        .WithMany()
 09383                        .HasForeignKey("RecStateId");
 09384                });
 9385
 09386            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsStatus", b =>
 09387                {
 09388                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09389                        .WithMany()
 09390                        .HasForeignKey("CreatedByUserId");
 09391
 09392                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09393                        .WithMany()
 09394                        .HasForeignKey("ModifiedByUserId");
 09395
 09396                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09397                        .WithMany()
 09398                        .HasForeignKey("RecStateId");
 09399                });
 9400
 09401            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DiscountColor", b =>
 09402                {
 09403                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09404                        .WithMany()
 09405                        .HasForeignKey("CreatedByUserId");
 09406
 09407                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09408                        .WithMany()
 09409                        .HasForeignKey("ModifiedByUserId");
 09410
 09411                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09412                        .WithMany()
 09413                        .HasForeignKey("RecStateId");
 09414                });
 9415
 09416            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Event", b =>
 09417                {
 09418                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09419                        .WithMany()
 09420                        .HasForeignKey("CreatedByUserId");
 09421
 09422                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.EventsKind", "EventsKind")
 09423                        .WithMany()
 09424                        .HasForeignKey("EventsKindId")
 09425                        .OnDelete(DeleteBehavior.Cascade)
 09426                        .IsRequired();
 09427
 09428                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09429                        .WithMany()
 09430                        .HasForeignKey("ModifiedByUserId");
 09431
 09432                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09433                        .WithMany()
 09434                        .HasForeignKey("RecStateId");
 09435
 09436                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 09437                        .WithMany()
 09438                        .HasForeignKey("UserId")
 09439                        .OnDelete(DeleteBehavior.Cascade)
 09440                        .IsRequired();
 09441                });
 9442
 09443            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.EventsKind", b =>
 09444                {
 09445                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09446                        .WithMany()
 09447                        .HasForeignKey("CreatedByUserId");
 09448
 09449                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09450                        .WithMany()
 09451                        .HasForeignKey("ModifiedByUserId");
 09452
 09453                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09454                        .WithMany()
 09455                        .HasForeignKey("RecStateId");
 09456                });
 9457
 09458            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ExchangeToken", b =>
 09459                {
 09460                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Contragent")
 09461                        .WithMany()
 09462                        .HasForeignKey("ContragentId")
 09463                        .OnDelete(DeleteBehavior.Cascade)
 09464                        .IsRequired();
 09465
 09466                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09467                        .WithMany()
 09468                        .HasForeignKey("CreatedByUserId");
 09469
 09470                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09471                        .WithMany()
 09472                        .HasForeignKey("ModifiedByUserId");
 09473
 09474                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09475                        .WithMany()
 09476                        .HasForeignKey("RecStateId");
 09477                });
 9478
 09479            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", b =>
 09480                {
 09481                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", "Brand")
 09482                        .WithMany()
 09483                        .HasForeignKey("BrandId");
 09484
 09485                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", "Category")
 09486                        .WithMany()
 09487                        .HasForeignKey("CategoryId")
 09488                        .OnDelete(DeleteBehavior.Cascade)
 09489                        .IsRequired();
 09490
 09491                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Country", "Country")
 09492                        .WithMany()
 09493                        .HasForeignKey("CountryId");
 09494
 09495                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09496                        .WithMany()
 09497                        .HasForeignKey("CreatedByUserId");
 09498
 09499                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.BarCode", "MainBarcode")
 09500                        .WithMany()
 09501                        .HasForeignKey("MainBarcodeId")
 09502                        .OnDelete(DeleteBehavior.Cascade)
 09503                        .IsRequired();
 09504
 09505                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Manufacturer")
 09506                        .WithMany()
 09507                        .HasForeignKey("ManufacturerId");
 09508
 09509                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09510                        .WithMany()
 09511                        .HasForeignKey("ModifiedByUserId");
 09512
 09513                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09514                        .WithMany()
 09515                        .HasForeignKey("RecStateId");
 09516
 09517                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", "SubBrand")
 09518                        .WithMany()
 09519                        .HasForeignKey("SubBrandId");
 09520
 09521                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Supplier")
 09522                        .WithMany()
 09523                        .HasForeignKey("SupplierId");
 09524
 09525                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.UnitsKind", "UnitsKind")
 09526                        .WithMany()
 09527                        .HasForeignKey("UnitsKindId")
 09528                        .OnDelete(DeleteBehavior.Cascade)
 09529                        .IsRequired();
 09530
 09531                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.VatsKind", "VatsKind")
 09532                        .WithMany()
 09533                        .HasForeignKey("VatsKindId")
 09534                        .OnDelete(DeleteBehavior.Cascade)
 09535                        .IsRequired();
 09536                });
 9537
 09538            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Incident", b =>
 09539                {
 09540                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09541                        .WithMany()
 09542                        .HasForeignKey("CreatedByUserId");
 09543
 09544                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsKind", "Kind")
 09545                        .WithMany()
 09546                        .HasForeignKey("KindId");
 09547
 09548                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09549                        .WithMany()
 09550                        .HasForeignKey("ModifiedByUserId");
 09551
 09552                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09553                        .WithMany()
 09554                        .HasForeignKey("RecStateId");
 09555
 09556                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsStatus", "Status")
 09557                        .WithMany()
 09558                        .HasForeignKey("StatusId");
 09559
 09560                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 09561                        .WithMany()
 09562                        .HasForeignKey("UserId")
 09563                        .OnDelete(DeleteBehavior.Cascade)
 09564                        .IsRequired();
 09565                });
 9566
 09567            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsKind", b =>
 09568                {
 09569                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09570                        .WithMany()
 09571                        .HasForeignKey("CreatedByUserId");
 09572
 09573                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09574                        .WithMany()
 09575                        .HasForeignKey("ModifiedByUserId");
 09576
 09577                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09578                        .WithMany()
 09579                        .HasForeignKey("RecStateId");
 09580                });
 9581
 09582            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsStatus", b =>
 09583                {
 09584                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09585                        .WithMany()
 09586                        .HasForeignKey("CreatedByUserId");
 09587
 09588                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09589                        .WithMany()
 09590                        .HasForeignKey("ModifiedByUserId");
 09591
 09592                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09593                        .WithMany()
 09594                        .HasForeignKey("RecStateId");
 09595                });
 9596
 09597            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.JobLogger", b =>
 09598                {
 09599                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09600                        .WithMany()
 09601                        .HasForeignKey("CreatedByUserId");
 09602
 09603                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09604                        .WithMany()
 09605                        .HasForeignKey("ModifiedByUserId");
 09606
 09607                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09608                        .WithMany()
 09609                        .HasForeignKey("RecStateId");
 09610                });
 9611
 09612            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MethodRole", b =>
 09613                {
 09614                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Methods", "Methods")
 09615                        .WithMany("MethodsRoles")
 09616                        .HasForeignKey("MethodId")
 09617                        .OnDelete(DeleteBehavior.Cascade)
 09618                        .IsRequired();
 09619
 09620                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", "Roles")
 09621                        .WithMany("MethodsRoles")
 09622                        .HasForeignKey("RoleId")
 09623                        .OnDelete(DeleteBehavior.Cascade)
 09624                        .IsRequired();
 09625                });
 9626
 09627            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Methods", b =>
 09628                {
 09629                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09630                        .WithMany()
 09631                        .HasForeignKey("CreatedByUserId");
 09632
 09633                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09634                        .WithMany()
 09635                        .HasForeignKey("ModifiedByUserId");
 09636
 09637                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09638                        .WithMany()
 09639                        .HasForeignKey("RecStateId");
 09640                });
 9641
 09642            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", b =>
 09643                {
 09644                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09645                        .WithMany()
 09646                        .HasForeignKey("CreatedByUserId");
 09647
 09648                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Customer")
 09649                        .WithMany()
 09650                        .HasForeignKey("CustomerId")
 09651                        .OnDelete(DeleteBehavior.Cascade)
 09652                        .IsRequired();
 09653
 09654                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09655                        .WithMany()
 09656                        .HasForeignKey("ModifiedByUserId");
 09657
 09658                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "MovementStatus")
 09659                        .WithMany()
 09660                        .HasForeignKey("MovementStatusId")
 09661                        .OnDelete(DeleteBehavior.Cascade)
 09662                        .IsRequired();
 09663
 09664                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", "MovementType")
 09665                        .WithMany()
 09666                        .HasForeignKey("MovementTypeId")
 09667                        .OnDelete(DeleteBehavior.Cascade)
 09668                        .IsRequired();
 09669
 09670                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", "Parent")
 09671                        .WithMany()
 09672                        .HasForeignKey("ParentId");
 09673
 09674                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09675                        .WithMany()
 09676                        .HasForeignKey("RecStateId");
 09677
 09678                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Receiver")
 09679                        .WithMany()
 09680                        .HasForeignKey("ReceiverId")
 09681                        .OnDelete(DeleteBehavior.Cascade)
 09682                        .IsRequired();
 09683
 09684                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Sender")
 09685                        .WithMany()
 09686                        .HasForeignKey("SenderId");
 09687
 09688                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Supplier")
 09689                        .WithMany()
 09690                        .HasForeignKey("SupplierId")
 09691                        .OnDelete(DeleteBehavior.Cascade)
 09692                        .IsRequired();
 09693                });
 9694
 09695            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementItem", b =>
 09696                {
 09697                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09698                        .WithMany()
 09699                        .HasForeignKey("CreatedByUserId");
 09700
 09701                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 09702                        .WithMany()
 09703                        .HasForeignKey("GoodId")
 09704                        .OnDelete(DeleteBehavior.Cascade)
 09705                        .IsRequired();
 09706
 09707                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09708                        .WithMany()
 09709                        .HasForeignKey("ModifiedByUserId");
 09710
 09711                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", null)
 09712                        .WithMany("Items")
 09713                        .HasForeignKey("MovementId");
 09714
 09715                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09716                        .WithMany()
 09717                        .HasForeignKey("RecStateId");
 09718                });
 9719
 09720            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementNote", b =>
 09721                {
 09722                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09723                        .WithMany()
 09724                        .HasForeignKey("CreatedByUserId");
 09725
 09726                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09727                        .WithMany()
 09728                        .HasForeignKey("ModifiedByUserId");
 09729
 09730                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", null)
 09731                        .WithMany("Notes")
 09732                        .HasForeignKey("MovementId");
 09733
 09734                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09735                        .WithMany()
 09736                        .HasForeignKey("RecStateId");
 09737                });
 9738
 09739            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementRouteAction", b =>
 09740                {
 09741                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09742                        .WithMany()
 09743                        .HasForeignKey("CreatedByUserId");
 09744
 09745                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09746                        .WithMany()
 09747                        .HasForeignKey("ModifiedByUserId");
 09748
 09749                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusOwner", "OwnerAction")
 09750                        .WithMany()
 09751                        .HasForeignKey("OwnerActionId")
 09752                        .OnDelete(DeleteBehavior.Cascade)
 09753                        .IsRequired();
 09754
 09755                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09756                        .WithMany()
 09757                        .HasForeignKey("RecStateId");
 09758
 09759                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "Status")
 09760                        .WithMany()
 09761                        .HasForeignKey("StatusId")
 09762                        .OnDelete(DeleteBehavior.Cascade)
 09763                        .IsRequired();
 09764                });
 9765
 09766            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", b =>
 09767                {
 09768                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09769                        .WithMany()
 09770                        .HasForeignKey("CreatedByUserId");
 09771
 09772                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09773                        .WithMany()
 09774                        .HasForeignKey("ModifiedByUserId");
 09775
 09776                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", "MovementType")
 09777                        .WithMany()
 09778                        .HasForeignKey("MovementTypeId")
 09779                        .OnDelete(DeleteBehavior.Cascade)
 09780                        .IsRequired();
 09781
 09782                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09783                        .WithMany()
 09784                        .HasForeignKey("RecStateId");
 09785
 09786                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusOwner", "StatusOwner")
 09787                        .WithMany()
 09788                        .HasForeignKey("StatusOwnerId")
 09789                        .OnDelete(DeleteBehavior.Cascade)
 09790                        .IsRequired();
 09791                });
 9792
 09793            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusJournal", b =>
 09794                {
 09795                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09796                        .WithMany()
 09797                        .HasForeignKey("CreatedByUserId");
 09798
 09799                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09800                        .WithMany()
 09801                        .HasForeignKey("ModifiedByUserId");
 09802
 09803                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", "Movement")
 09804                        .WithMany()
 09805                        .HasForeignKey("MovementId");
 09806
 09807                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09808                        .WithMany()
 09809                        .HasForeignKey("RecStateId");
 09810
 09811                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "StatusCurrent")
 09812                        .WithMany()
 09813                        .HasForeignKey("StatusCurrentId");
 09814                });
 9815
 09816            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusOwner", b =>
 09817                {
 09818                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09819                        .WithMany()
 09820                        .HasForeignKey("CreatedByUserId");
 09821
 09822                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09823                        .WithMany()
 09824                        .HasForeignKey("ModifiedByUserId");
 09825
 09826                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09827                        .WithMany()
 09828                        .HasForeignKey("RecStateId");
 09829                });
 9830
 09831            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusRoute", b =>
 09832                {
 09833                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09834                        .WithMany()
 09835                        .HasForeignKey("CreatedByUserId");
 09836
 09837                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09838                        .WithMany()
 09839                        .HasForeignKey("ModifiedByUserId");
 09840
 09841                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09842                        .WithMany()
 09843                        .HasForeignKey("RecStateId");
 09844
 09845                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "StatusCurrent")
 09846                        .WithMany()
 09847                        .HasForeignKey("StatusCurrentId")
 09848                        .OnDelete(DeleteBehavior.Cascade)
 09849                        .IsRequired();
 09850
 09851                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "StatusNext")
 09852                        .WithMany()
 09853                        .HasForeignKey("StatusNextId")
 09854                        .OnDelete(DeleteBehavior.Cascade)
 09855                        .IsRequired();
 09856                });
 9857
 09858            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", b =>
 09859                {
 09860                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09861                        .WithMany()
 09862                        .HasForeignKey("CreatedByUserId");
 09863
 09864                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09865                        .WithMany()
 09866                        .HasForeignKey("ModifiedByUserId");
 09867
 09868                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09869                        .WithMany()
 09870                        .HasForeignKey("RecStateId");
 09871                });
 9872
 09873            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Notification", b =>
 09874                {
 09875                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09876                        .WithMany()
 09877                        .HasForeignKey("CreatedByUserId");
 09878
 09879                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09880                        .WithMany()
 09881                        .HasForeignKey("ModifiedByUserId");
 09882
 09883                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsType", "NotificationsType")
 09884                        .WithMany()
 09885                        .HasForeignKey("NotificationsTypeId")
 09886                        .OnDelete(DeleteBehavior.Cascade)
 09887                        .IsRequired();
 09888
 09889                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09890                        .WithMany()
 09891                        .HasForeignKey("RecStateId");
 09892
 09893                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 09894                        .WithMany()
 09895                        .HasForeignKey("UserId")
 09896                        .OnDelete(DeleteBehavior.Cascade)
 09897                        .IsRequired();
 09898                });
 9899
 09900            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationUsers", b =>
 09901                {
 09902                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09903                        .WithMany()
 09904                        .HasForeignKey("CreatedByUserId");
 09905
 09906                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09907                        .WithMany()
 09908                        .HasForeignKey("ModifiedByUserId");
 09909
 09910                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Notification", "Notification")
 09911                        .WithMany()
 09912                        .HasForeignKey("NotificationId")
 09913                        .OnDelete(DeleteBehavior.Cascade)
 09914                        .IsRequired();
 09915
 09916                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsStatus", "NotificationsStat
 09917                        .WithMany()
 09918                        .HasForeignKey("NotificationsStatusId");
 09919
 09920                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09921                        .WithMany()
 09922                        .HasForeignKey("RecStateId");
 09923
 09924                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 09925                        .WithMany()
 09926                        .HasForeignKey("UserId");
 09927                });
 9928
 09929            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsStatus", b =>
 09930                {
 09931                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09932                        .WithMany()
 09933                        .HasForeignKey("CreatedByUserId");
 09934
 09935                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09936                        .WithMany()
 09937                        .HasForeignKey("ModifiedByUserId");
 09938
 09939                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09940                        .WithMany()
 09941                        .HasForeignKey("RecStateId");
 09942                });
 9943
 09944            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsType", b =>
 09945                {
 09946                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09947                        .WithMany()
 09948                        .HasForeignKey("CreatedByUserId");
 09949
 09950                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09951                        .WithMany()
 09952                        .HasForeignKey("ModifiedByUserId");
 09953
 09954                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09955                        .WithMany()
 09956                        .HasForeignKey("RecStateId");
 09957                });
 9958
 09959            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Photo", b =>
 09960                {
 09961                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09962                        .WithMany()
 09963                        .HasForeignKey("CreatedByUserId");
 09964
 09965                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", null)
 09966                        .WithMany("Photos")
 09967                        .HasForeignKey("GoodId");
 09968
 09969                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09970                        .WithMany()
 09971                        .HasForeignKey("ModifiedByUserId");
 09972
 09973                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09974                        .WithMany()
 09975                        .HasForeignKey("RecStateId");
 09976                });
 9977
 09978            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceCurrent", b =>
 09979                {
 09980                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 09981                        .WithMany()
 09982                        .HasForeignKey("CreatedByUserId");
 09983
 09984                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 09985                        .WithMany()
 09986                        .HasForeignKey("GoodId")
 09987                        .OnDelete(DeleteBehavior.Cascade)
 09988                        .IsRequired();
 09989
 09990                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 09991                        .WithMany()
 09992                        .HasForeignKey("ModifiedByUserId");
 09993
 09994                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 09995                        .WithMany()
 09996                        .HasForeignKey("RecStateId");
 09997
 09998                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "SupplierDepartment")
 09999                        .WithMany()
 010000                        .HasForeignKey("SupplierDepartmentId")
 010001                        .OnDelete(DeleteBehavior.Cascade)
 010002                        .IsRequired();
 010003                });
 10004
 010005            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrend", b =>
 010006                {
 010007                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010008                        .WithMany()
 010009                        .HasForeignKey("CreatedByUserId");
 010010
 010011                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010012                        .WithMany()
 010013                        .HasForeignKey("ModifiedByUserId");
 010014
 010015                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010016                        .WithMany()
 010017                        .HasForeignKey("RecStateId");
 010018
 010019                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "SupplierDepartment")
 010020                        .WithMany()
 010021                        .HasForeignKey("SupplierDepartmentId")
 010022                        .OnDelete(DeleteBehavior.Cascade)
 010023                        .IsRequired();
 010024                });
 10025
 010026            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrendDetail", b =>
 010027                {
 010028                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010029                        .WithMany()
 010030                        .HasForeignKey("CreatedByUserId");
 010031
 010032                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 010033                        .WithMany("Prices")
 010034                        .HasForeignKey("GoodId")
 010035                        .OnDelete(DeleteBehavior.Cascade)
 010036                        .IsRequired();
 010037
 010038                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010039                        .WithMany()
 010040                        .HasForeignKey("ModifiedByUserId");
 010041
 010042                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrend", "PriceTrend")
 010043                        .WithMany("PriceTrendDetails")
 010044                        .HasForeignKey("PriceTrendId")
 010045                        .OnDelete(DeleteBehavior.Cascade)
 010046                        .IsRequired();
 010047
 010048                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010049                        .WithMany()
 010050                        .HasForeignKey("RecStateId");
 010051                });
 10052
 010053            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoBid", b =>
 010054                {
 010055                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010056                        .WithMany()
 010057                        .HasForeignKey("CreatedByUserId");
 010058
 010059                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "CustomerDepartment")
 010060                        .WithMany()
 010061                        .HasForeignKey("CustomerDepartmentId")
 010062                        .OnDelete(DeleteBehavior.Cascade)
 010063                        .IsRequired();
 010064
 010065                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 010066                        .WithMany()
 010067                        .HasForeignKey("GoodId")
 010068                        .OnDelete(DeleteBehavior.Cascade)
 010069                        .IsRequired();
 010070
 010071                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010072                        .WithMany()
 010073                        .HasForeignKey("ModifiedByUserId");
 010074
 010075                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoOffer", "PromoOffer")
 010076                        .WithMany("Bids")
 010077                        .HasForeignKey("PromoOfferId")
 010078                        .OnDelete(DeleteBehavior.Cascade)
 010079                        .IsRequired();
 010080
 010081                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010082                        .WithMany()
 010083                        .HasForeignKey("RecStateId");
 010084                });
 10085
 010086            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoOffer", b =>
 010087                {
 010088                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010089                        .WithMany()
 010090                        .HasForeignKey("CreatedByUserId");
 010091
 010092                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 010093                        .WithMany()
 010094                        .HasForeignKey("GoodId")
 010095                        .OnDelete(DeleteBehavior.Cascade)
 010096                        .IsRequired();
 010097
 010098                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010099                        .WithMany()
 010100                        .HasForeignKey("ModifiedByUserId");
 010101
 010102                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010103                        .WithMany()
 010104                        .HasForeignKey("RecStateId");
 010105
 010106                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "SupplierDepartment")
 010107                        .WithMany()
 010108                        .HasForeignKey("SupplierDepartmentId")
 010109                        .OnDelete(DeleteBehavior.Cascade)
 010110                        .IsRequired();
 010111                });
 10112
 010113            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", b =>
 010114                {
 010115                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010116                        .WithMany()
 010117                        .HasForeignKey("CreatedByUserId");
 010118
 010119                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010120                        .WithMany()
 010121                        .HasForeignKey("ModifiedByUserId");
 010122
 010123                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010124                        .WithMany()
 010125                        .HasForeignKey("RecStateId");
 010126                });
 10127
 010128            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Rest", b =>
 010129                {
 010130                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010131                        .WithMany()
 010132                        .HasForeignKey("CreatedByUserId");
 010133
 010134                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 010135                        .WithMany()
 010136                        .HasForeignKey("DepartmentId")
 010137                        .OnDelete(DeleteBehavior.Cascade)
 010138                        .IsRequired();
 010139
 010140                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 010141                        .WithMany("Rests")
 010142                        .HasForeignKey("GoodId")
 010143                        .OnDelete(DeleteBehavior.Cascade)
 010144                        .IsRequired();
 010145
 010146                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010147                        .WithMany()
 010148                        .HasForeignKey("ModifiedByUserId");
 010149
 010150                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010151                        .WithMany()
 010152                        .HasForeignKey("RecStateId");
 010153                });
 10154
 010155            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", b =>
 010156                {
 010157                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010158                        .WithMany()
 010159                        .HasForeignKey("CreatedByUserId");
 010160
 010161                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010162                        .WithMany()
 010163                        .HasForeignKey("ModifiedByUserId");
 010164
 010165                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010166                        .WithMany()
 010167                        .HasForeignKey("RecStateId");
 010168                });
 10169
 010170            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.SupplyContract", b =>
 010171                {
 010172                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Buyer")
 010173                        .WithMany("ContractsAsBuyer")
 010174                        .HasForeignKey("BuyerId")
 010175                        .OnDelete(DeleteBehavior.Cascade)
 010176                        .IsRequired();
 010177
 010178                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010179                        .WithMany()
 010180                        .HasForeignKey("CreatedByUserId");
 010181
 010182                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010183                        .WithMany()
 010184                        .HasForeignKey("ModifiedByUserId");
 010185
 010186                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010187                        .WithMany()
 010188                        .HasForeignKey("RecStateId");
 010189
 010190                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Seller")
 010191                        .WithMany("ContractsAsSeller")
 010192                        .HasForeignKey("SellerId")
 010193                        .OnDelete(DeleteBehavior.Cascade)
 010194                        .IsRequired();
 010195                });
 10196
 010197            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.TaxSystem", b =>
 010198                {
 010199                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010200                        .WithMany()
 010201                        .HasForeignKey("CreatedByUserId");
 010202
 010203                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010204                        .WithMany()
 010205                        .HasForeignKey("ModifiedByUserId");
 010206
 010207                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010208                        .WithMany()
 010209                        .HasForeignKey("RecStateId");
 010210                });
 10211
 010212            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UnitsKind", b =>
 010213                {
 010214                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010215                        .WithMany()
 010216                        .HasForeignKey("CreatedByUserId");
 010217
 010218                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010219                        .WithMany()
 010220                        .HasForeignKey("ModifiedByUserId");
 010221
 010222                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010223                        .WithMany()
 010224                        .HasForeignKey("RecStateId");
 010225                });
 10226
 010227            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Upload", b =>
 010228                {
 010229                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010230                        .WithMany()
 010231                        .HasForeignKey("CreatedByUserId");
 010232
 010233                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010234                        .WithMany()
 010235                        .HasForeignKey("ModifiedByUserId");
 010236
 010237                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010238                        .WithMany()
 010239                        .HasForeignKey("RecStateId");
 010240                });
 10241
 010242            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UploadItem", b =>
 010243                {
 010244                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010245                        .WithMany()
 010246                        .HasForeignKey("CreatedByUserId");
 010247
 010248                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010249                        .WithMany()
 010250                        .HasForeignKey("ModifiedByUserId");
 010251
 010252                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010253                        .WithMany()
 010254                        .HasForeignKey("RecStateId");
 010255
 010256                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Upload", null)
 010257                        .WithMany("Items")
 010258                        .HasForeignKey("UploadId")
 010259                        .OnDelete(DeleteBehavior.Cascade)
 010260                        .IsRequired();
 010261                });
 10262
 010263            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", b =>
 010264                {
 010265                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Contragent")
 010266                        .WithMany("User")
 010267                        .HasForeignKey("ContragentId");
 010268
 010269                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010270                        .WithMany()
 010271                        .HasForeignKey("CreatedByUserId");
 010272
 010273                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010274                        .WithMany()
 010275                        .HasForeignKey("ModifiedByUserId");
 010276
 010277                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010278                        .WithMany()
 010279                        .HasForeignKey("RecStateId");
 010280                });
 10281
 010282            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserDepartment", b =>
 010283                {
 010284                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 010285                        .WithMany("UsersDepartments")
 010286                        .HasForeignKey("DepartmentId")
 010287                        .OnDelete(DeleteBehavior.Cascade)
 010288                        .IsRequired();
 010289
 010290                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 010291                        .WithMany("UsersDepartments")
 010292                        .HasForeignKey("UserId")
 010293                        .OnDelete(DeleteBehavior.Cascade)
 010294                        .IsRequired();
 010295                });
 10296
 010297            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserRole", b =>
 010298                {
 010299                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", "Roles")
 010300                        .WithMany("UsersRoles")
 010301                        .HasForeignKey("RoleId")
 010302                        .OnDelete(DeleteBehavior.Cascade)
 010303                        .IsRequired();
 010304
 010305                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 010306                        .WithMany("UsersRoles")
 010307                        .HasForeignKey("UserId")
 010308                        .OnDelete(DeleteBehavior.Cascade)
 010309                        .IsRequired();
 010310                });
 10311
 010312            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.VatsKind", b =>
 010313                {
 010314                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010315                        .WithMany()
 010316                        .HasForeignKey("CreatedByUserId");
 010317
 010318                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010319                        .WithMany()
 010320                        .HasForeignKey("ModifiedByUserId");
 010321
 010322                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010323                        .WithMany()
 010324                        .HasForeignKey("RecStateId");
 010325                });
 10326
 010327            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransaction", b =>
 010328                {
 010329                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010330                        .WithMany()
 010331                        .HasForeignKey("CreatedByUserId");
 010332
 010333                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010334                        .WithMany()
 010335                        .HasForeignKey("ModifiedByUserId");
 010336
 010337                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", "Movement")
 010338                        .WithMany()
 010339                        .HasForeignKey("MovementId");
 010340
 010341                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010342                        .WithMany()
 010343                        .HasForeignKey("RecStateId");
 010344
 010345                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransactionStatus", "Status")
 010346                        .WithMany()
 010347                        .HasForeignKey("StatusId");
 010348                });
 10349
 010350            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransactionStatus", b =>
 010351                {
 010352                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010353                        .WithMany()
 010354                        .HasForeignKey("CreatedByUserId");
 010355
 010356                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010357                        .WithMany()
 010358                        .HasForeignKey("ModifiedByUserId");
 010359
 010360                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010361                        .WithMany()
 010362                        .HasForeignKey("RecStateId");
 010363                });
 10364
 010365            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WorkSchedule", b =>
 010366                {
 010367                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 010368                        .WithMany()
 010369                        .HasForeignKey("CreatedByUserId");
 010370
 010371                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 010372                        .WithMany()
 010373                        .HasForeignKey("ModifiedByUserId");
 010374
 010375                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 010376                        .WithMany()
 010377                        .HasForeignKey("RecStateId");
 010378                });
 10379#pragma warning restore 612, 618
 010380        }
 10381    }
 10382}