< Summary

Class:SVETA.Api.Migrations.AddEmailTable
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200427195824_AddEmailTable.cs
/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200427195824_AddEmailTable.Designer.cs
Covered lines:0
Uncovered lines:10481
Coverable lines:10481
Total lines:10649
Line coverage:0% (0 of 10481)
Covered branches:0
Total branches:252
Branch coverage:0% (0 of 252)

Metrics

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

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200427195824_AddEmailTable.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 4
 5namespace SVETA.Api.Migrations
 6{
 7    public partial class AddEmailTable : Migration
 8    {
 9        protected override void Up(MigrationBuilder migrationBuilder)
 010        {
 011            migrationBuilder.CreateTable(
 012                name: "Emails",
 013                columns: table => new
 014                {
 015                    Id = table.Column<long>(nullable: false)
 016                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 017                    RecStateId = table.Column<long>(nullable: true),
 018                    CreationDateTime = table.Column<DateTime>(nullable: false),
 019                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 020                    CreatedByUserId = table.Column<long>(nullable: true),
 021                    ModifiedByUserId = table.Column<long>(nullable: true),
 022                    IsDeleted = table.Column<bool>(nullable: false),
 023                    GUID = table.Column<Guid>(nullable: false),
 024                    Subject = table.Column<string>(nullable: false),
 025                    Body = table.Column<string>(nullable: false),
 026                    Receiver = table.Column<string>(nullable: false),
 027                    Attachment = table.Column<string>(nullable: true),
 028                    Sent = table.Column<bool>(nullable: false),
 029                    Error = table.Column<string>(nullable: true)
 030                },
 031                constraints: table =>
 032                {
 033                    table.PrimaryKey("PK_Emails", x => x.Id);
 034                    table.ForeignKey(
 035                        name: "FK_Emails_Users_CreatedByUserId",
 036                        column: x => x.CreatedByUserId,
 037                        principalTable: "Users",
 038                        principalColumn: "Id",
 039                        onDelete: ReferentialAction.Restrict);
 040                    table.ForeignKey(
 041                        name: "FK_Emails_Users_ModifiedByUserId",
 042                        column: x => x.ModifiedByUserId,
 043                        principalTable: "Users",
 044                        principalColumn: "Id",
 045                        onDelete: ReferentialAction.Restrict);
 046                    table.ForeignKey(
 047                        name: "FK_Emails_RecordsState_RecStateId",
 048                        column: x => x.RecStateId,
 049                        principalTable: "RecordsState",
 050                        principalColumn: "Id",
 051                        onDelete: ReferentialAction.Restrict);
 052                });
 53
 054            migrationBuilder.UpdateData(
 055                table: "ContragentsKind",
 056                keyColumn: "Id",
 057                keyValue: 2L,
 058                column: "ExternalKey",
 059                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 60
 061            migrationBuilder.UpdateData(
 062                table: "ContragentsKind",
 063                keyColumn: "Id",
 064                keyValue: 3L,
 065                column: "ExternalKey",
 066                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 67
 068            migrationBuilder.UpdateData(
 069                table: "ContragentsKind",
 070                keyColumn: "Id",
 071                keyValue: 4L,
 072                column: "ExternalKey",
 073                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 74
 075            migrationBuilder.UpdateData(
 076                table: "ContragentsKind",
 077                keyColumn: "Id",
 078                keyValue: 6L,
 079                column: "ExternalKey",
 080                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 81
 082            migrationBuilder.CreateIndex(
 083                name: "IX_Emails_CreatedByUserId",
 084                table: "Emails",
 085                column: "CreatedByUserId");
 86
 087            migrationBuilder.CreateIndex(
 088                name: "IX_Emails_ModifiedByUserId",
 089                table: "Emails",
 090                column: "ModifiedByUserId");
 91
 092            migrationBuilder.CreateIndex(
 093                name: "IX_Emails_RecStateId",
 094                table: "Emails",
 095                column: "RecStateId");
 096        }
 97
 98        protected override void Down(MigrationBuilder migrationBuilder)
 099        {
 0100            migrationBuilder.DropTable(
 0101                name: "Emails");
 102
 0103            migrationBuilder.UpdateData(
 0104                table: "ContragentsKind",
 0105                keyColumn: "Id",
 0106                keyValue: 2L,
 0107                column: "ExternalKey",
 0108                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 109
 0110            migrationBuilder.UpdateData(
 0111                table: "ContragentsKind",
 0112                keyColumn: "Id",
 0113                keyValue: 3L,
 0114                column: "ExternalKey",
 0115                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 116
 0117            migrationBuilder.UpdateData(
 0118                table: "ContragentsKind",
 0119                keyColumn: "Id",
 0120                keyValue: 4L,
 0121                column: "ExternalKey",
 0122                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 123
 0124            migrationBuilder.UpdateData(
 0125                table: "ContragentsKind",
 0126                keyColumn: "Id",
 0127                keyValue: 6L,
 0128                column: "ExternalKey",
 0129                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 0130        }
 131    }
 132}

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