< Summary

Class:SVETA.Api.Migrations.AddTableConfiguration
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200511073723_AddTableConfiguration.cs
/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200511073723_AddTableConfiguration.Designer.cs
Covered lines:0
Uncovered lines:11574
Coverable lines:11574
Total lines:11752
Line coverage:0% (0 of 11574)
Covered branches:0
Total branches:260
Branch coverage:0% (0 of 260)

Metrics

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

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200511073723_AddTableConfiguration.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 4
 5namespace SVETA.Api.Migrations
 6{
 7    public partial class AddTableConfiguration : Migration
 8    {
 9        protected override void Up(MigrationBuilder migrationBuilder)
 010        {
 011            migrationBuilder.CreateTable(
 012                name: "Configurations",
 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                    Section = table.Column<string>(nullable: true),
 025                    Key = table.Column<string>(nullable: false),
 026                    Encrypted = table.Column<bool>(nullable: false),
 027                    Value = table.Column<string>(nullable: false)
 028                },
 029                constraints: table =>
 030                {
 031                    table.PrimaryKey("PK_Configurations", x => x.Id);
 032                    table.ForeignKey(
 033                        name: "FK_Configurations_Users_CreatedByUserId",
 034                        column: x => x.CreatedByUserId,
 035                        principalTable: "Users",
 036                        principalColumn: "Id",
 037                        onDelete: ReferentialAction.Restrict);
 038                    table.ForeignKey(
 039                        name: "FK_Configurations_Users_ModifiedByUserId",
 040                        column: x => x.ModifiedByUserId,
 041                        principalTable: "Users",
 042                        principalColumn: "Id",
 043                        onDelete: ReferentialAction.Restrict);
 044                    table.ForeignKey(
 045                        name: "FK_Configurations_RecordsState_RecStateId",
 046                        column: x => x.RecStateId,
 047                        principalTable: "RecordsState",
 048                        principalColumn: "Id",
 049                        onDelete: ReferentialAction.Restrict);
 050                });
 51
 052            migrationBuilder.UpdateData(
 053                table: "ContragentsKind",
 054                keyColumn: "Id",
 055                keyValue: 2L,
 056                column: "ExternalKey",
 057                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 58
 059            migrationBuilder.UpdateData(
 060                table: "ContragentsKind",
 061                keyColumn: "Id",
 062                keyValue: 3L,
 063                column: "ExternalKey",
 064                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 65
 066            migrationBuilder.UpdateData(
 067                table: "ContragentsKind",
 068                keyColumn: "Id",
 069                keyValue: 4L,
 070                column: "ExternalKey",
 071                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 72
 073            migrationBuilder.UpdateData(
 074                table: "ContragentsKind",
 075                keyColumn: "Id",
 076                keyValue: 6L,
 077                column: "ExternalKey",
 078                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 79
 080            migrationBuilder.UpdateData(
 081                table: "ExchangeTokens",
 082                keyColumn: "Id",
 083                keyValue: 1L,
 084                column: "GUID",
 085                value: new Guid("8eea3bee-1f37-4654-a22f-f0b18b0c4588"));
 86
 087            migrationBuilder.UpdateData(
 088                table: "Users",
 089                keyColumn: "Id",
 090                keyValue: -2L,
 091                column: "ExternalKey",
 092                value: new Guid("3ce2ae32-9028-46b6-afbe-ad4feec0a016"));
 93
 094            migrationBuilder.UpdateData(
 095                table: "Users",
 096                keyColumn: "Id",
 097                keyValue: -1L,
 098                column: "ExternalKey",
 099                value: new Guid("964c5734-ba34-43d0-8770-b22b665e9abd"));
 100
 0101            migrationBuilder.CreateIndex(
 0102                name: "IX_Configurations_CreatedByUserId",
 0103                table: "Configurations",
 0104                column: "CreatedByUserId");
 105
 0106            migrationBuilder.CreateIndex(
 0107                name: "IX_Configurations_ModifiedByUserId",
 0108                table: "Configurations",
 0109                column: "ModifiedByUserId");
 110
 0111            migrationBuilder.CreateIndex(
 0112                name: "IX_Configurations_RecStateId",
 0113                table: "Configurations",
 0114                column: "RecStateId");
 0115        }
 116
 117        protected override void Down(MigrationBuilder migrationBuilder)
 0118        {
 0119            migrationBuilder.DropTable(
 0120                name: "Configurations");
 121
 0122            migrationBuilder.UpdateData(
 0123                table: "ContragentsKind",
 0124                keyColumn: "Id",
 0125                keyValue: 2L,
 0126                column: "ExternalKey",
 0127                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 128
 0129            migrationBuilder.UpdateData(
 0130                table: "ContragentsKind",
 0131                keyColumn: "Id",
 0132                keyValue: 3L,
 0133                column: "ExternalKey",
 0134                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 135
 0136            migrationBuilder.UpdateData(
 0137                table: "ContragentsKind",
 0138                keyColumn: "Id",
 0139                keyValue: 4L,
 0140                column: "ExternalKey",
 0141                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 142
 0143            migrationBuilder.UpdateData(
 0144                table: "ContragentsKind",
 0145                keyColumn: "Id",
 0146                keyValue: 6L,
 0147                column: "ExternalKey",
 0148                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 149
 0150            migrationBuilder.UpdateData(
 0151                table: "ExchangeTokens",
 0152                keyColumn: "Id",
 0153                keyValue: 1L,
 0154                column: "GUID",
 0155                value: new Guid("8eea3bee-1f37-4654-a22f-f0b18b0c4588"));
 156
 0157            migrationBuilder.UpdateData(
 0158                table: "Users",
 0159                keyColumn: "Id",
 0160                keyValue: -2L,
 0161                column: "ExternalKey",
 0162                value: new Guid("3ce2ae32-9028-46b6-afbe-ad4feec0a016"));
 163
 0164            migrationBuilder.UpdateData(
 0165                table: "Users",
 0166                keyColumn: "Id",
 0167                keyValue: -1L,
 0168                column: "ExternalKey",
 0169                value: new Guid("964c5734-ba34-43d0-8770-b22b665e9abd"));
 0170        }
 171    }
 172}

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