< Summary

Class:SVETA.Api.Migrations.Initial
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200405162524_Initial.cs
/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200405162524_Initial.Designer.cs
Covered lines:0
Uncovered lines:12168
Coverable lines:12168
Total lines:12783
Line coverage:0% (0 of 12168)
Covered branches:0
Total branches:432
Branch coverage:0% (0 of 432)

Metrics

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

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200405162524_Initial.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 4
 5namespace SVETA.Api.Migrations
 6{
 7    public partial class Initial : Migration
 8    {
 9        protected override void Up(MigrationBuilder migrationBuilder)
 010        {
 011            migrationBuilder.CreateTable(
 012                name: "Contragents",
 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                    FullName = table.Column<string>(nullable: false),
 025                    ShortName = table.Column<string>(nullable: false),
 026                    JuridicAddressId = table.Column<long>(nullable: false),
 027                    PhysicAddressId = table.Column<long>(nullable: false),
 028                    Inn = table.Column<string>(nullable: false),
 029                    Kpp = table.Column<string>(nullable: false),
 030                    Bik = table.Column<string>(nullable: true),
 031                    SettlementAccount = table.Column<string>(nullable: true),
 032                    BankName = table.Column<string>(nullable: true),
 033                    СorrespondentAccount = table.Column<string>(nullable: true),
 034                    Okpo = table.Column<string>(nullable: false),
 035                    Okato = table.Column<string>(nullable: false),
 036                    Okved = table.Column<string>(nullable: false),
 037                    Ogrn = table.Column<string>(nullable: false),
 038                    OwnerId = table.Column<long>(nullable: false),
 039                    TaxSystemId = table.Column<long>(nullable: true),
 040                    TaxSystemCRM = table.Column<string>(nullable: true),
 041                    ChiefAccountant = table.Column<string>(nullable: true),
 042                    Email = table.Column<string>(nullable: false),
 043                    PhoneNumber = table.Column<string>(nullable: false),
 044                    WebSite = table.Column<string>(nullable: true),
 045                    WalletId = table.Column<string>(nullable: true),
 046                    ContragentsKindId = table.Column<long>(nullable: false),
 047                    ExternalKey = table.Column<Guid>(nullable: false)
 048                },
 049                constraints: table =>
 050                {
 051                    table.PrimaryKey("PK_Contragents", x => x.Id);
 052                });
 53
 054            migrationBuilder.CreateTable(
 055                name: "Departments",
 056                columns: table => new
 057                {
 058                    Id = table.Column<long>(nullable: false)
 059                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 060                    RecStateId = table.Column<long>(nullable: true),
 061                    CreationDateTime = table.Column<DateTime>(nullable: false),
 062                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 063                    CreatedByUserId = table.Column<long>(nullable: true),
 064                    ModifiedByUserId = table.Column<long>(nullable: true),
 065                    IsDeleted = table.Column<bool>(nullable: false),
 066                    GUID = table.Column<Guid>(nullable: false),
 067                    Name = table.Column<string>(nullable: false),
 068                    ActualAddressId = table.Column<long>(nullable: true),
 069                    PostalAddressId = table.Column<long>(nullable: true),
 070                    PhoneNumber = table.Column<string>(nullable: false),
 071                    ContragentId = table.Column<long>(nullable: false),
 072                    Area = table.Column<decimal>(nullable: false),
 073                    Kpp = table.Column<string>(nullable: true),
 074                    KindId = table.Column<long>(nullable: true),
 075                    StatusId = table.Column<long>(nullable: true),
 076                    ClusterId = table.Column<long>(nullable: true)
 077                },
 078                constraints: table =>
 079                {
 080                    table.PrimaryKey("PK_Departments", x => x.Id);
 081                    table.ForeignKey(
 082                        name: "FK_Departments_Contragents_ContragentId",
 083                        column: x => x.ContragentId,
 084                        principalTable: "Contragents",
 085                        principalColumn: "Id",
 086                        onDelete: ReferentialAction.Cascade);
 087                });
 88
 089            migrationBuilder.CreateTable(
 090                name: "Goods",
 091                columns: table => new
 092                {
 093                    Id = table.Column<long>(nullable: false)
 094                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 095                    RecStateId = table.Column<long>(nullable: true),
 096                    CreationDateTime = table.Column<DateTime>(nullable: false),
 097                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 098                    CreatedByUserId = table.Column<long>(nullable: true),
 099                    ModifiedByUserId = table.Column<long>(nullable: true),
 0100                    IsDeleted = table.Column<bool>(nullable: false),
 0101                    GUID = table.Column<Guid>(nullable: false),
 0102                    CategoryId = table.Column<long>(nullable: false),
 0103                    MainBarcodeId = table.Column<long>(nullable: false),
 0104                    Name = table.Column<string>(nullable: false),
 0105                    VendorCode = table.Column<string>(nullable: false),
 0106                    ManufacturerId = table.Column<long>(nullable: true),
 0107                    SupplierId = table.Column<long>(nullable: true),
 0108                    MinDeliveryLot = table.Column<decimal>(nullable: false),
 0109                    ExpirationDays = table.Column<int>(nullable: false),
 0110                    Weight = table.Column<decimal>(nullable: false),
 0111                    Width = table.Column<int>(nullable: false),
 0112                    Height = table.Column<int>(nullable: false),
 0113                    Thickness = table.Column<int>(nullable: false),
 0114                    VatsKindId = table.Column<long>(nullable: false),
 0115                    CustomDeclarationNumber = table.Column<string>(nullable: false),
 0116                    UnitsKindId = table.Column<long>(nullable: false),
 0117                    CountryId = table.Column<long>(nullable: true),
 0118                    ConformityCertNumber = table.Column<string>(nullable: false),
 0119                    GroupPackNesting = table.Column<int>(nullable: false),
 0120                    GroupPackWidth = table.Column<int>(nullable: false),
 0121                    GroupPackHeight = table.Column<int>(nullable: false),
 0122                    GroupPackThickness = table.Column<int>(nullable: false),
 0123                    PalletNesting = table.Column<int>(nullable: false),
 0124                    BrandId = table.Column<long>(nullable: true),
 0125                    SubBrandId = table.Column<long>(nullable: true)
 0126                },
 0127                constraints: table =>
 0128                {
 0129                    table.PrimaryKey("PK_Goods", x => x.Id);
 0130                    table.ForeignKey(
 0131                        name: "FK_Goods_Contragents_ManufacturerId",
 0132                        column: x => x.ManufacturerId,
 0133                        principalTable: "Contragents",
 0134                        principalColumn: "Id",
 0135                        onDelete: ReferentialAction.Restrict);
 0136                    table.ForeignKey(
 0137                        name: "FK_Goods_Contragents_SupplierId",
 0138                        column: x => x.SupplierId,
 0139                        principalTable: "Contragents",
 0140                        principalColumn: "Id",
 0141                        onDelete: ReferentialAction.Restrict);
 0142                });
 143
 0144            migrationBuilder.CreateTable(
 0145                name: "DepartmentCategoryRatio",
 0146                columns: table => new
 0147                {
 0148                    Id = table.Column<long>(nullable: false)
 0149                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0150                    RecStateId = table.Column<long>(nullable: true),
 0151                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0152                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0153                    CreatedByUserId = table.Column<long>(nullable: true),
 0154                    ModifiedByUserId = table.Column<long>(nullable: true),
 0155                    IsDeleted = table.Column<bool>(nullable: false),
 0156                    GUID = table.Column<Guid>(nullable: false),
 0157                    CategoryId = table.Column<long>(nullable: false),
 0158                    DepartmentId = table.Column<long>(nullable: false),
 0159                    TradeRatio = table.Column<decimal>(nullable: false)
 0160                },
 0161                constraints: table =>
 0162                {
 0163                    table.PrimaryKey("PK_DepartmentCategoryRatio", x => x.Id);
 0164                    table.ForeignKey(
 0165                        name: "FK_DepartmentCategoryRatio_Departments_DepartmentId",
 0166                        column: x => x.DepartmentId,
 0167                        principalTable: "Departments",
 0168                        principalColumn: "Id",
 0169                        onDelete: ReferentialAction.Cascade);
 0170                });
 171
 0172            migrationBuilder.CreateTable(
 0173                name: "BankAccounts",
 0174                columns: table => new
 0175                {
 0176                    Id = table.Column<long>(nullable: false)
 0177                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0178                    RecStateId = table.Column<long>(nullable: true),
 0179                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0180                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0181                    CreatedByUserId = table.Column<long>(nullable: true),
 0182                    ModifiedByUserId = table.Column<long>(nullable: true),
 0183                    IsDeleted = table.Column<bool>(nullable: false),
 0184                    GUID = table.Column<Guid>(nullable: false),
 0185                    ContragentId = table.Column<long>(nullable: true),
 0186                    Bik = table.Column<string>(nullable: false),
 0187                    SettlementAccount = table.Column<string>(nullable: false),
 0188                    BankName = table.Column<string>(nullable: false),
 0189                    CorrespondentAccount = table.Column<string>(nullable: false)
 0190                },
 0191                constraints: table =>
 0192                {
 0193                    table.PrimaryKey("PK_BankAccounts", x => x.Id);
 0194                    table.ForeignKey(
 0195                        name: "FK_BankAccounts_Contragents_ContragentId",
 0196                        column: x => x.ContragentId,
 0197                        principalTable: "Contragents",
 0198                        principalColumn: "Id",
 0199                        onDelete: ReferentialAction.Restrict);
 0200                });
 201
 0202            migrationBuilder.CreateTable(
 0203                name: "Movements",
 0204                columns: table => new
 0205                {
 0206                    Id = table.Column<long>(nullable: false)
 0207                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0208                    RecStateId = table.Column<long>(nullable: true),
 0209                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0210                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0211                    CreatedByUserId = table.Column<long>(nullable: true),
 0212                    ModifiedByUserId = table.Column<long>(nullable: true),
 0213                    IsDeleted = table.Column<bool>(nullable: false),
 0214                    GUID = table.Column<Guid>(nullable: false),
 0215                    DtCreated = table.Column<DateTime>(nullable: false),
 0216                    ParentId = table.Column<long>(nullable: true),
 0217                    MovementTypeId = table.Column<long>(nullable: false),
 0218                    CustomerId = table.Column<long>(nullable: false),
 0219                    SupplierId = table.Column<long>(nullable: false),
 0220                    ReceiverId = table.Column<long>(nullable: false),
 0221                    SenderId = table.Column<long>(nullable: true),
 0222                    PrepaimentPercent = table.Column<decimal>(nullable: false),
 0223                    PrepaimentSum = table.Column<decimal>(nullable: false),
 0224                    Comment = table.Column<string>(nullable: true),
 0225                    SupplierTransferDate = table.Column<DateTime>(nullable: false),
 0226                    MovementStatusId = table.Column<long>(nullable: false)
 0227                },
 0228                constraints: table =>
 0229                {
 0230                    table.PrimaryKey("PK_Movements", x => x.Id);
 0231                    table.ForeignKey(
 0232                        name: "FK_Movements_Contragents_CustomerId",
 0233                        column: x => x.CustomerId,
 0234                        principalTable: "Contragents",
 0235                        principalColumn: "Id",
 0236                        onDelete: ReferentialAction.Cascade);
 0237                    table.ForeignKey(
 0238                        name: "FK_Movements_Movements_ParentId",
 0239                        column: x => x.ParentId,
 0240                        principalTable: "Movements",
 0241                        principalColumn: "Id",
 0242                        onDelete: ReferentialAction.Restrict);
 0243                    table.ForeignKey(
 0244                        name: "FK_Movements_Departments_ReceiverId",
 0245                        column: x => x.ReceiverId,
 0246                        principalTable: "Departments",
 0247                        principalColumn: "Id",
 0248                        onDelete: ReferentialAction.Cascade);
 0249                    table.ForeignKey(
 0250                        name: "FK_Movements_Departments_SenderId",
 0251                        column: x => x.SenderId,
 0252                        principalTable: "Departments",
 0253                        principalColumn: "Id",
 0254                        onDelete: ReferentialAction.Restrict);
 0255                    table.ForeignKey(
 0256                        name: "FK_Movements_Contragents_SupplierId",
 0257                        column: x => x.SupplierId,
 0258                        principalTable: "Contragents",
 0259                        principalColumn: "Id",
 0260                        onDelete: ReferentialAction.Cascade);
 0261                });
 262
 0263            migrationBuilder.CreateTable(
 0264                name: "SupplyContract",
 0265                columns: table => new
 0266                {
 0267                    Id = table.Column<long>(nullable: false)
 0268                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0269                    RecStateId = table.Column<long>(nullable: true),
 0270                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0271                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0272                    CreatedByUserId = table.Column<long>(nullable: true),
 0273                    ModifiedByUserId = table.Column<long>(nullable: true),
 0274                    IsDeleted = table.Column<bool>(nullable: false),
 0275                    GUID = table.Column<Guid>(nullable: false),
 0276                    DocumentNumber = table.Column<string>(nullable: false),
 0277                    SellerId = table.Column<long>(nullable: false),
 0278                    BuyerId = table.Column<long>(nullable: false),
 0279                    BeginDate = table.Column<DateTime>(nullable: false),
 0280                    EndDate = table.Column<DateTime>(nullable: false),
 0281                    SignOffDate = table.Column<DateTime>(nullable: false),
 0282                    PrepaimentPercent = table.Column<decimal>(nullable: false),
 0283                    TradeRatio = table.Column<decimal>(nullable: false)
 0284                },
 0285                constraints: table =>
 0286                {
 0287                    table.PrimaryKey("PK_SupplyContract", x => x.Id);
 0288                    table.ForeignKey(
 0289                        name: "FK_SupplyContract_Contragents_BuyerId",
 0290                        column: x => x.BuyerId,
 0291                        principalTable: "Contragents",
 0292                        principalColumn: "Id",
 0293                        onDelete: ReferentialAction.Cascade);
 0294                    table.ForeignKey(
 0295                        name: "FK_SupplyContract_Contragents_SellerId",
 0296                        column: x => x.SellerId,
 0297                        principalTable: "Contragents",
 0298                        principalColumn: "Id",
 0299                        onDelete: ReferentialAction.Cascade);
 0300                });
 301
 0302            migrationBuilder.CreateTable(
 0303                name: "Users",
 0304                columns: table => new
 0305                {
 0306                    Id = table.Column<long>(nullable: false)
 0307                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0308                    RecStateId = table.Column<long>(nullable: true),
 0309                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0310                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0311                    CreatedByUserId = table.Column<long>(nullable: true),
 0312                    ModifiedByUserId = table.Column<long>(nullable: true),
 0313                    IsDeleted = table.Column<bool>(nullable: false),
 0314                    GUID = table.Column<Guid>(nullable: false),
 0315                    Login = table.Column<string>(nullable: true),
 0316                    FirstName = table.Column<string>(nullable: false),
 0317                    MiddleName = table.Column<string>(nullable: true),
 0318                    LastName = table.Column<string>(nullable: false),
 0319                    Position = table.Column<string>(nullable: false),
 0320                    Email = table.Column<string>(nullable: false),
 0321                    Phone = table.Column<string>(nullable: true),
 0322                    ContragentId = table.Column<long>(nullable: true),
 0323                    IsContactPerson = table.Column<bool>(nullable: false),
 0324                    IsBlocked = table.Column<bool>(nullable: false),
 0325                    ExternalKey = table.Column<Guid>(nullable: false)
 0326                },
 0327                constraints: table =>
 0328                {
 0329                    table.PrimaryKey("PK_Users", x => x.Id);
 0330                    table.ForeignKey(
 0331                        name: "FK_Users_Contragents_ContragentId",
 0332                        column: x => x.ContragentId,
 0333                        principalTable: "Contragents",
 0334                        principalColumn: "Id",
 0335                        onDelete: ReferentialAction.Restrict);
 0336                    table.ForeignKey(
 0337                        name: "FK_Users_Users_CreatedByUserId",
 0338                        column: x => x.CreatedByUserId,
 0339                        principalTable: "Users",
 0340                        principalColumn: "Id",
 0341                        onDelete: ReferentialAction.Restrict);
 0342                    table.ForeignKey(
 0343                        name: "FK_Users_Users_ModifiedByUserId",
 0344                        column: x => x.ModifiedByUserId,
 0345                        principalTable: "Users",
 0346                        principalColumn: "Id",
 0347                        onDelete: ReferentialAction.Restrict);
 0348                });
 349
 0350            migrationBuilder.CreateTable(
 0351                name: "RecordsState",
 0352                columns: table => new
 0353                {
 0354                    Id = table.Column<long>(nullable: false)
 0355                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0356                    RecStateId = table.Column<long>(nullable: true),
 0357                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0358                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0359                    CreatedByUserId = table.Column<long>(nullable: true),
 0360                    ModifiedByUserId = table.Column<long>(nullable: true),
 0361                    IsDeleted = table.Column<bool>(nullable: false),
 0362                    GUID = table.Column<Guid>(nullable: false),
 0363                    Name = table.Column<string>(nullable: false),
 0364                    Code = table.Column<string>(nullable: false),
 0365                    Description = table.Column<string>(nullable: true)
 0366                },
 0367                constraints: table =>
 0368                {
 0369                    table.PrimaryKey("PK_RecordsState", x => x.Id);
 0370                    table.ForeignKey(
 0371                        name: "FK_RecordsState_Users_CreatedByUserId",
 0372                        column: x => x.CreatedByUserId,
 0373                        principalTable: "Users",
 0374                        principalColumn: "Id",
 0375                        onDelete: ReferentialAction.Restrict);
 0376                    table.ForeignKey(
 0377                        name: "FK_RecordsState_Users_ModifiedByUserId",
 0378                        column: x => x.ModifiedByUserId,
 0379                        principalTable: "Users",
 0380                        principalColumn: "Id",
 0381                        onDelete: ReferentialAction.Restrict);
 0382                    table.ForeignKey(
 0383                        name: "FK_RecordsState_RecordsState_RecStateId",
 0384                        column: x => x.RecStateId,
 0385                        principalTable: "RecordsState",
 0386                        principalColumn: "Id",
 0387                        onDelete: ReferentialAction.Restrict);
 0388                });
 389
 0390            migrationBuilder.CreateTable(
 0391                name: "UserDepartment",
 0392                columns: table => new
 0393                {
 0394                    UserId = table.Column<long>(nullable: false),
 0395                    DepartmentId = table.Column<long>(nullable: false),
 0396                    GUID = table.Column<Guid>(nullable: false),
 0397                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0398                    CreatedByUserId = table.Column<long>(nullable: true)
 0399                },
 0400                constraints: table =>
 0401                {
 0402                    table.PrimaryKey("PK_UserDepartment", x => new { x.UserId, x.DepartmentId });
 0403                    table.ForeignKey(
 0404                        name: "FK_UserDepartment_Departments_DepartmentId",
 0405                        column: x => x.DepartmentId,
 0406                        principalTable: "Departments",
 0407                        principalColumn: "Id",
 0408                        onDelete: ReferentialAction.Cascade);
 0409                    table.ForeignKey(
 0410                        name: "FK_UserDepartment_Users_UserId",
 0411                        column: x => x.UserId,
 0412                        principalTable: "Users",
 0413                        principalColumn: "Id",
 0414                        onDelete: ReferentialAction.Cascade);
 0415                });
 416
 0417            migrationBuilder.CreateTable(
 0418                name: "Address",
 0419                columns: table => new
 0420                {
 0421                    Id = table.Column<long>(nullable: false)
 0422                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0423                    RecStateId = table.Column<long>(nullable: true),
 0424                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0425                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0426                    CreatedByUserId = table.Column<long>(nullable: true),
 0427                    ModifiedByUserId = table.Column<long>(nullable: true),
 0428                    IsDeleted = table.Column<bool>(nullable: false),
 0429                    GUID = table.Column<Guid>(nullable: false),
 0430                    FullAddress = table.Column<string>(nullable: true),
 0431                    Region = table.Column<string>(nullable: true),
 0432                    Index = table.Column<string>(nullable: true),
 0433                    District = table.Column<string>(nullable: true),
 0434                    City = table.Column<string>(nullable: true),
 0435                    Locality = table.Column<string>(nullable: true),
 0436                    Street = table.Column<string>(nullable: true),
 0437                    House = table.Column<string>(nullable: true),
 0438                    Housing = table.Column<string>(nullable: true),
 0439                    Building = table.Column<string>(nullable: true),
 0440                    Office = table.Column<string>(nullable: true)
 0441                },
 0442                constraints: table =>
 0443                {
 0444                    table.PrimaryKey("PK_Address", x => x.Id);
 0445                    table.ForeignKey(
 0446                        name: "FK_Address_Users_CreatedByUserId",
 0447                        column: x => x.CreatedByUserId,
 0448                        principalTable: "Users",
 0449                        principalColumn: "Id",
 0450                        onDelete: ReferentialAction.Restrict);
 0451                    table.ForeignKey(
 0452                        name: "FK_Address_Users_ModifiedByUserId",
 0453                        column: x => x.ModifiedByUserId,
 0454                        principalTable: "Users",
 0455                        principalColumn: "Id",
 0456                        onDelete: ReferentialAction.Restrict);
 0457                    table.ForeignKey(
 0458                        name: "FK_Address_RecordsState_RecStateId",
 0459                        column: x => x.RecStateId,
 0460                        principalTable: "RecordsState",
 0461                        principalColumn: "Id",
 0462                        onDelete: ReferentialAction.Restrict);
 0463                });
 464
 0465            migrationBuilder.CreateTable(
 0466                name: "BarCodes",
 0467                columns: table => new
 0468                {
 0469                    Id = table.Column<long>(nullable: false)
 0470                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0471                    RecStateId = table.Column<long>(nullable: true),
 0472                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0473                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0474                    CreatedByUserId = table.Column<long>(nullable: true),
 0475                    ModifiedByUserId = table.Column<long>(nullable: true),
 0476                    IsDeleted = table.Column<bool>(nullable: false),
 0477                    GUID = table.Column<Guid>(nullable: false),
 0478                    Code = table.Column<string>(nullable: true),
 0479                    GoodId = table.Column<long>(nullable: true)
 0480                },
 0481                constraints: table =>
 0482                {
 0483                    table.PrimaryKey("PK_BarCodes", x => x.Id);
 0484                    table.ForeignKey(
 0485                        name: "FK_BarCodes_Users_CreatedByUserId",
 0486                        column: x => x.CreatedByUserId,
 0487                        principalTable: "Users",
 0488                        principalColumn: "Id",
 0489                        onDelete: ReferentialAction.Restrict);
 0490                    table.ForeignKey(
 0491                        name: "FK_BarCodes_Goods_GoodId",
 0492                        column: x => x.GoodId,
 0493                        principalTable: "Goods",
 0494                        principalColumn: "Id",
 0495                        onDelete: ReferentialAction.Restrict);
 0496                    table.ForeignKey(
 0497                        name: "FK_BarCodes_Users_ModifiedByUserId",
 0498                        column: x => x.ModifiedByUserId,
 0499                        principalTable: "Users",
 0500                        principalColumn: "Id",
 0501                        onDelete: ReferentialAction.Restrict);
 0502                    table.ForeignKey(
 0503                        name: "FK_BarCodes_RecordsState_RecStateId",
 0504                        column: x => x.RecStateId,
 0505                        principalTable: "RecordsState",
 0506                        principalColumn: "Id",
 0507                        onDelete: ReferentialAction.Restrict);
 0508                });
 509
 0510            migrationBuilder.CreateTable(
 0511                name: "Brands",
 0512                columns: table => new
 0513                {
 0514                    Id = table.Column<long>(nullable: false)
 0515                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0516                    RecStateId = table.Column<long>(nullable: true),
 0517                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0518                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0519                    CreatedByUserId = table.Column<long>(nullable: true),
 0520                    ModifiedByUserId = table.Column<long>(nullable: true),
 0521                    IsDeleted = table.Column<bool>(nullable: false),
 0522                    GUID = table.Column<Guid>(nullable: false),
 0523                    Name = table.Column<string>(nullable: true),
 0524                    ParentId = table.Column<long>(nullable: true)
 0525                },
 0526                constraints: table =>
 0527                {
 0528                    table.PrimaryKey("PK_Brands", x => x.Id);
 0529                    table.ForeignKey(
 0530                        name: "FK_Brands_Users_CreatedByUserId",
 0531                        column: x => x.CreatedByUserId,
 0532                        principalTable: "Users",
 0533                        principalColumn: "Id",
 0534                        onDelete: ReferentialAction.Restrict);
 0535                    table.ForeignKey(
 0536                        name: "FK_Brands_Users_ModifiedByUserId",
 0537                        column: x => x.ModifiedByUserId,
 0538                        principalTable: "Users",
 0539                        principalColumn: "Id",
 0540                        onDelete: ReferentialAction.Restrict);
 0541                    table.ForeignKey(
 0542                        name: "FK_Brands_Brands_ParentId",
 0543                        column: x => x.ParentId,
 0544                        principalTable: "Brands",
 0545                        principalColumn: "Id",
 0546                        onDelete: ReferentialAction.Restrict);
 0547                    table.ForeignKey(
 0548                        name: "FK_Brands_RecordsState_RecStateId",
 0549                        column: x => x.RecStateId,
 0550                        principalTable: "RecordsState",
 0551                        principalColumn: "Id",
 0552                        onDelete: ReferentialAction.Restrict);
 0553                });
 554
 0555            migrationBuilder.CreateTable(
 0556                name: "Categories",
 0557                columns: table => new
 0558                {
 0559                    Id = table.Column<long>(nullable: false)
 0560                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0561                    RecStateId = table.Column<long>(nullable: true),
 0562                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0563                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0564                    CreatedByUserId = table.Column<long>(nullable: true),
 0565                    ModifiedByUserId = table.Column<long>(nullable: true),
 0566                    IsDeleted = table.Column<bool>(nullable: false),
 0567                    GUID = table.Column<Guid>(nullable: false),
 0568                    ParentId = table.Column<long>(nullable: true),
 0569                    Name = table.Column<string>(nullable: true),
 0570                    Code = table.Column<string>(nullable: true)
 0571                },
 0572                constraints: table =>
 0573                {
 0574                    table.PrimaryKey("PK_Categories", x => x.Id);
 0575                    table.ForeignKey(
 0576                        name: "FK_Categories_Users_CreatedByUserId",
 0577                        column: x => x.CreatedByUserId,
 0578                        principalTable: "Users",
 0579                        principalColumn: "Id",
 0580                        onDelete: ReferentialAction.Restrict);
 0581                    table.ForeignKey(
 0582                        name: "FK_Categories_Users_ModifiedByUserId",
 0583                        column: x => x.ModifiedByUserId,
 0584                        principalTable: "Users",
 0585                        principalColumn: "Id",
 0586                        onDelete: ReferentialAction.Restrict);
 0587                    table.ForeignKey(
 0588                        name: "FK_Categories_Categories_ParentId",
 0589                        column: x => x.ParentId,
 0590                        principalTable: "Categories",
 0591                        principalColumn: "Id",
 0592                        onDelete: ReferentialAction.Restrict);
 0593                    table.ForeignKey(
 0594                        name: "FK_Categories_RecordsState_RecStateId",
 0595                        column: x => x.RecStateId,
 0596                        principalTable: "RecordsState",
 0597                        principalColumn: "Id",
 0598                        onDelete: ReferentialAction.Restrict);
 0599                });
 600
 0601            migrationBuilder.CreateTable(
 0602                name: "Clusters",
 0603                columns: table => new
 0604                {
 0605                    Id = table.Column<long>(nullable: false)
 0606                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0607                    RecStateId = table.Column<long>(nullable: true),
 0608                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0609                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0610                    CreatedByUserId = table.Column<long>(nullable: true),
 0611                    ModifiedByUserId = table.Column<long>(nullable: true),
 0612                    IsDeleted = table.Column<bool>(nullable: false),
 0613                    GUID = table.Column<Guid>(nullable: false),
 0614                    Name = table.Column<string>(nullable: false),
 0615                    TradeRatio = table.Column<decimal>(nullable: false),
 0616                    MinOrderSum = table.Column<decimal>(nullable: false),
 0617                    WarehouseId = table.Column<long>(nullable: false)
 0618                },
 0619                constraints: table =>
 0620                {
 0621                    table.PrimaryKey("PK_Clusters", x => x.Id);
 0622                    table.ForeignKey(
 0623                        name: "FK_Clusters_Users_CreatedByUserId",
 0624                        column: x => x.CreatedByUserId,
 0625                        principalTable: "Users",
 0626                        principalColumn: "Id",
 0627                        onDelete: ReferentialAction.Restrict);
 0628                    table.ForeignKey(
 0629                        name: "FK_Clusters_Users_ModifiedByUserId",
 0630                        column: x => x.ModifiedByUserId,
 0631                        principalTable: "Users",
 0632                        principalColumn: "Id",
 0633                        onDelete: ReferentialAction.Restrict);
 0634                    table.ForeignKey(
 0635                        name: "FK_Clusters_RecordsState_RecStateId",
 0636                        column: x => x.RecStateId,
 0637                        principalTable: "RecordsState",
 0638                        principalColumn: "Id",
 0639                        onDelete: ReferentialAction.Restrict);
 0640                    table.ForeignKey(
 0641                        name: "FK_Clusters_Departments_WarehouseId",
 0642                        column: x => x.WarehouseId,
 0643                        principalTable: "Departments",
 0644                        principalColumn: "Id",
 0645                        onDelete: ReferentialAction.Cascade);
 0646                });
 647
 0648            migrationBuilder.CreateTable(
 0649                name: "ContragentsKind",
 0650                columns: table => new
 0651                {
 0652                    Id = table.Column<long>(nullable: false)
 0653                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0654                    RecStateId = table.Column<long>(nullable: true),
 0655                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0656                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0657                    CreatedByUserId = table.Column<long>(nullable: true),
 0658                    ModifiedByUserId = table.Column<long>(nullable: true),
 0659                    IsDeleted = table.Column<bool>(nullable: false),
 0660                    GUID = table.Column<Guid>(nullable: false),
 0661                    Name = table.Column<string>(nullable: false),
 0662                    Code = table.Column<string>(nullable: false),
 0663                    Description = table.Column<string>(nullable: true)
 0664                },
 0665                constraints: table =>
 0666                {
 0667                    table.PrimaryKey("PK_ContragentsKind", x => x.Id);
 0668                    table.ForeignKey(
 0669                        name: "FK_ContragentsKind_Users_CreatedByUserId",
 0670                        column: x => x.CreatedByUserId,
 0671                        principalTable: "Users",
 0672                        principalColumn: "Id",
 0673                        onDelete: ReferentialAction.Restrict);
 0674                    table.ForeignKey(
 0675                        name: "FK_ContragentsKind_Users_ModifiedByUserId",
 0676                        column: x => x.ModifiedByUserId,
 0677                        principalTable: "Users",
 0678                        principalColumn: "Id",
 0679                        onDelete: ReferentialAction.Restrict);
 0680                    table.ForeignKey(
 0681                        name: "FK_ContragentsKind_RecordsState_RecStateId",
 0682                        column: x => x.RecStateId,
 0683                        principalTable: "RecordsState",
 0684                        principalColumn: "Id",
 0685                        onDelete: ReferentialAction.Restrict);
 0686                });
 687
 0688            migrationBuilder.CreateTable(
 0689                name: "Countries",
 0690                columns: table => new
 0691                {
 0692                    Id = table.Column<long>(nullable: false)
 0693                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0694                    RecStateId = table.Column<long>(nullable: true),
 0695                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0696                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0697                    CreatedByUserId = table.Column<long>(nullable: true),
 0698                    ModifiedByUserId = table.Column<long>(nullable: true),
 0699                    IsDeleted = table.Column<bool>(nullable: false),
 0700                    GUID = table.Column<Guid>(nullable: false),
 0701                    Code = table.Column<int>(nullable: false),
 0702                    Name = table.Column<string>(nullable: false)
 0703                },
 0704                constraints: table =>
 0705                {
 0706                    table.PrimaryKey("PK_Countries", x => x.Id);
 0707                    table.ForeignKey(
 0708                        name: "FK_Countries_Users_CreatedByUserId",
 0709                        column: x => x.CreatedByUserId,
 0710                        principalTable: "Users",
 0711                        principalColumn: "Id",
 0712                        onDelete: ReferentialAction.Restrict);
 0713                    table.ForeignKey(
 0714                        name: "FK_Countries_Users_ModifiedByUserId",
 0715                        column: x => x.ModifiedByUserId,
 0716                        principalTable: "Users",
 0717                        principalColumn: "Id",
 0718                        onDelete: ReferentialAction.Restrict);
 0719                    table.ForeignKey(
 0720                        name: "FK_Countries_RecordsState_RecStateId",
 0721                        column: x => x.RecStateId,
 0722                        principalTable: "RecordsState",
 0723                        principalColumn: "Id",
 0724                        onDelete: ReferentialAction.Restrict);
 0725                });
 726
 0727            migrationBuilder.CreateTable(
 0728                name: "Currency",
 0729                columns: table => new
 0730                {
 0731                    Id = table.Column<long>(nullable: false)
 0732                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0733                    RecStateId = table.Column<long>(nullable: true),
 0734                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0735                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0736                    CreatedByUserId = table.Column<long>(nullable: true),
 0737                    ModifiedByUserId = table.Column<long>(nullable: true),
 0738                    IsDeleted = table.Column<bool>(nullable: false),
 0739                    GUID = table.Column<Guid>(nullable: false),
 0740                    global_id = table.Column<string>(nullable: true),
 0741                    system_object_id = table.Column<string>(nullable: true),
 0742                    CODE = table.Column<string>(nullable: false),
 0743                    STRCODE = table.Column<string>(nullable: false),
 0744                    NAME = table.Column<string>(nullable: false),
 0745                    COUNTRY = table.Column<string>(nullable: false)
 0746                },
 0747                constraints: table =>
 0748                {
 0749                    table.PrimaryKey("PK_Currency", x => x.Id);
 0750                    table.ForeignKey(
 0751                        name: "FK_Currency_Users_CreatedByUserId",
 0752                        column: x => x.CreatedByUserId,
 0753                        principalTable: "Users",
 0754                        principalColumn: "Id",
 0755                        onDelete: ReferentialAction.Restrict);
 0756                    table.ForeignKey(
 0757                        name: "FK_Currency_Users_ModifiedByUserId",
 0758                        column: x => x.ModifiedByUserId,
 0759                        principalTable: "Users",
 0760                        principalColumn: "Id",
 0761                        onDelete: ReferentialAction.Restrict);
 0762                    table.ForeignKey(
 0763                        name: "FK_Currency_RecordsState_RecStateId",
 0764                        column: x => x.RecStateId,
 0765                        principalTable: "RecordsState",
 0766                        principalColumn: "Id",
 0767                        onDelete: ReferentialAction.Restrict);
 0768                });
 769
 0770            migrationBuilder.CreateTable(
 0771                name: "DepartmentGoodSetting",
 0772                columns: table => new
 0773                {
 0774                    Id = table.Column<long>(nullable: false)
 0775                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0776                    RecStateId = table.Column<long>(nullable: true),
 0777                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0778                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0779                    CreatedByUserId = table.Column<long>(nullable: true),
 0780                    ModifiedByUserId = table.Column<long>(nullable: true),
 0781                    IsDeleted = table.Column<bool>(nullable: false),
 0782                    GUID = table.Column<Guid>(nullable: false),
 0783                    GoodId = table.Column<long>(nullable: false),
 0784                    DepartmentId = table.Column<long>(nullable: false),
 0785                    MinQuantity = table.Column<decimal>(nullable: false),
 0786                    PickingQuantum = table.Column<decimal>(nullable: false)
 0787                },
 0788                constraints: table =>
 0789                {
 0790                    table.PrimaryKey("PK_DepartmentGoodSetting", x => x.Id);
 0791                    table.ForeignKey(
 0792                        name: "FK_DepartmentGoodSetting_Users_CreatedByUserId",
 0793                        column: x => x.CreatedByUserId,
 0794                        principalTable: "Users",
 0795                        principalColumn: "Id",
 0796                        onDelete: ReferentialAction.Restrict);
 0797                    table.ForeignKey(
 0798                        name: "FK_DepartmentGoodSetting_Departments_DepartmentId",
 0799                        column: x => x.DepartmentId,
 0800                        principalTable: "Departments",
 0801                        principalColumn: "Id",
 0802                        onDelete: ReferentialAction.Cascade);
 0803                    table.ForeignKey(
 0804                        name: "FK_DepartmentGoodSetting_Goods_GoodId",
 0805                        column: x => x.GoodId,
 0806                        principalTable: "Goods",
 0807                        principalColumn: "Id",
 0808                        onDelete: ReferentialAction.Cascade);
 0809                    table.ForeignKey(
 0810                        name: "FK_DepartmentGoodSetting_Users_ModifiedByUserId",
 0811                        column: x => x.ModifiedByUserId,
 0812                        principalTable: "Users",
 0813                        principalColumn: "Id",
 0814                        onDelete: ReferentialAction.Restrict);
 0815                    table.ForeignKey(
 0816                        name: "FK_DepartmentGoodSetting_RecordsState_RecStateId",
 0817                        column: x => x.RecStateId,
 0818                        principalTable: "RecordsState",
 0819                        principalColumn: "Id",
 0820                        onDelete: ReferentialAction.Restrict);
 0821                });
 822
 0823            migrationBuilder.CreateTable(
 0824                name: "DepartmentsKind",
 0825                columns: table => new
 0826                {
 0827                    Id = table.Column<long>(nullable: false)
 0828                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0829                    RecStateId = table.Column<long>(nullable: true),
 0830                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0831                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0832                    CreatedByUserId = table.Column<long>(nullable: true),
 0833                    ModifiedByUserId = table.Column<long>(nullable: true),
 0834                    IsDeleted = table.Column<bool>(nullable: false),
 0835                    GUID = table.Column<Guid>(nullable: false),
 0836                    Name = table.Column<string>(nullable: false),
 0837                    Code = table.Column<string>(nullable: false),
 0838                    Description = table.Column<string>(nullable: true)
 0839                },
 0840                constraints: table =>
 0841                {
 0842                    table.PrimaryKey("PK_DepartmentsKind", x => x.Id);
 0843                    table.ForeignKey(
 0844                        name: "FK_DepartmentsKind_Users_CreatedByUserId",
 0845                        column: x => x.CreatedByUserId,
 0846                        principalTable: "Users",
 0847                        principalColumn: "Id",
 0848                        onDelete: ReferentialAction.Restrict);
 0849                    table.ForeignKey(
 0850                        name: "FK_DepartmentsKind_Users_ModifiedByUserId",
 0851                        column: x => x.ModifiedByUserId,
 0852                        principalTable: "Users",
 0853                        principalColumn: "Id",
 0854                        onDelete: ReferentialAction.Restrict);
 0855                    table.ForeignKey(
 0856                        name: "FK_DepartmentsKind_RecordsState_RecStateId",
 0857                        column: x => x.RecStateId,
 0858                        principalTable: "RecordsState",
 0859                        principalColumn: "Id",
 0860                        onDelete: ReferentialAction.Restrict);
 0861                });
 862
 0863            migrationBuilder.CreateTable(
 0864                name: "DepartmentsStatus",
 0865                columns: table => new
 0866                {
 0867                    Id = table.Column<long>(nullable: false)
 0868                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0869                    RecStateId = table.Column<long>(nullable: true),
 0870                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0871                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0872                    CreatedByUserId = table.Column<long>(nullable: true),
 0873                    ModifiedByUserId = table.Column<long>(nullable: true),
 0874                    IsDeleted = table.Column<bool>(nullable: false),
 0875                    GUID = table.Column<Guid>(nullable: false),
 0876                    Name = table.Column<string>(nullable: false),
 0877                    Code = table.Column<string>(nullable: false),
 0878                    Description = table.Column<string>(nullable: true)
 0879                },
 0880                constraints: table =>
 0881                {
 0882                    table.PrimaryKey("PK_DepartmentsStatus", x => x.Id);
 0883                    table.ForeignKey(
 0884                        name: "FK_DepartmentsStatus_Users_CreatedByUserId",
 0885                        column: x => x.CreatedByUserId,
 0886                        principalTable: "Users",
 0887                        principalColumn: "Id",
 0888                        onDelete: ReferentialAction.Restrict);
 0889                    table.ForeignKey(
 0890                        name: "FK_DepartmentsStatus_Users_ModifiedByUserId",
 0891                        column: x => x.ModifiedByUserId,
 0892                        principalTable: "Users",
 0893                        principalColumn: "Id",
 0894                        onDelete: ReferentialAction.Restrict);
 0895                    table.ForeignKey(
 0896                        name: "FK_DepartmentsStatus_RecordsState_RecStateId",
 0897                        column: x => x.RecStateId,
 0898                        principalTable: "RecordsState",
 0899                        principalColumn: "Id",
 0900                        onDelete: ReferentialAction.Restrict);
 0901                });
 902
 0903            migrationBuilder.CreateTable(
 0904                name: "EventsKind",
 0905                columns: table => new
 0906                {
 0907                    Id = table.Column<long>(nullable: false)
 0908                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0909                    RecStateId = table.Column<long>(nullable: true),
 0910                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0911                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0912                    CreatedByUserId = table.Column<long>(nullable: true),
 0913                    ModifiedByUserId = table.Column<long>(nullable: true),
 0914                    IsDeleted = table.Column<bool>(nullable: false),
 0915                    GUID = table.Column<Guid>(nullable: false),
 0916                    Name = table.Column<string>(nullable: false),
 0917                    Code = table.Column<string>(nullable: false),
 0918                    Description = table.Column<string>(nullable: true)
 0919                },
 0920                constraints: table =>
 0921                {
 0922                    table.PrimaryKey("PK_EventsKind", x => x.Id);
 0923                    table.ForeignKey(
 0924                        name: "FK_EventsKind_Users_CreatedByUserId",
 0925                        column: x => x.CreatedByUserId,
 0926                        principalTable: "Users",
 0927                        principalColumn: "Id",
 0928                        onDelete: ReferentialAction.Restrict);
 0929                    table.ForeignKey(
 0930                        name: "FK_EventsKind_Users_ModifiedByUserId",
 0931                        column: x => x.ModifiedByUserId,
 0932                        principalTable: "Users",
 0933                        principalColumn: "Id",
 0934                        onDelete: ReferentialAction.Restrict);
 0935                    table.ForeignKey(
 0936                        name: "FK_EventsKind_RecordsState_RecStateId",
 0937                        column: x => x.RecStateId,
 0938                        principalTable: "RecordsState",
 0939                        principalColumn: "Id",
 0940                        onDelete: ReferentialAction.Restrict);
 0941                });
 942
 0943            migrationBuilder.CreateTable(
 0944                name: "IncidentsKind",
 0945                columns: table => new
 0946                {
 0947                    Id = table.Column<long>(nullable: false)
 0948                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0949                    RecStateId = table.Column<long>(nullable: true),
 0950                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0951                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0952                    CreatedByUserId = table.Column<long>(nullable: true),
 0953                    ModifiedByUserId = table.Column<long>(nullable: true),
 0954                    IsDeleted = table.Column<bool>(nullable: false),
 0955                    GUID = table.Column<Guid>(nullable: false),
 0956                    Name = table.Column<string>(nullable: false),
 0957                    Code = table.Column<string>(nullable: false),
 0958                    Description = table.Column<string>(nullable: true)
 0959                },
 0960                constraints: table =>
 0961                {
 0962                    table.PrimaryKey("PK_IncidentsKind", x => x.Id);
 0963                    table.ForeignKey(
 0964                        name: "FK_IncidentsKind_Users_CreatedByUserId",
 0965                        column: x => x.CreatedByUserId,
 0966                        principalTable: "Users",
 0967                        principalColumn: "Id",
 0968                        onDelete: ReferentialAction.Restrict);
 0969                    table.ForeignKey(
 0970                        name: "FK_IncidentsKind_Users_ModifiedByUserId",
 0971                        column: x => x.ModifiedByUserId,
 0972                        principalTable: "Users",
 0973                        principalColumn: "Id",
 0974                        onDelete: ReferentialAction.Restrict);
 0975                    table.ForeignKey(
 0976                        name: "FK_IncidentsKind_RecordsState_RecStateId",
 0977                        column: x => x.RecStateId,
 0978                        principalTable: "RecordsState",
 0979                        principalColumn: "Id",
 0980                        onDelete: ReferentialAction.Restrict);
 0981                });
 982
 0983            migrationBuilder.CreateTable(
 0984                name: "IncidentsStatus",
 0985                columns: table => new
 0986                {
 0987                    Id = table.Column<long>(nullable: false)
 0988                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 0989                    RecStateId = table.Column<long>(nullable: true),
 0990                    CreationDateTime = table.Column<DateTime>(nullable: false),
 0991                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 0992                    CreatedByUserId = table.Column<long>(nullable: true),
 0993                    ModifiedByUserId = table.Column<long>(nullable: true),
 0994                    IsDeleted = table.Column<bool>(nullable: false),
 0995                    GUID = table.Column<Guid>(nullable: false),
 0996                    Name = table.Column<string>(nullable: false),
 0997                    Code = table.Column<string>(nullable: false),
 0998                    Description = table.Column<string>(nullable: true)
 0999                },
 01000                constraints: table =>
 01001                {
 01002                    table.PrimaryKey("PK_IncidentsStatus", x => x.Id);
 01003                    table.ForeignKey(
 01004                        name: "FK_IncidentsStatus_Users_CreatedByUserId",
 01005                        column: x => x.CreatedByUserId,
 01006                        principalTable: "Users",
 01007                        principalColumn: "Id",
 01008                        onDelete: ReferentialAction.Restrict);
 01009                    table.ForeignKey(
 01010                        name: "FK_IncidentsStatus_Users_ModifiedByUserId",
 01011                        column: x => x.ModifiedByUserId,
 01012                        principalTable: "Users",
 01013                        principalColumn: "Id",
 01014                        onDelete: ReferentialAction.Restrict);
 01015                    table.ForeignKey(
 01016                        name: "FK_IncidentsStatus_RecordsState_RecStateId",
 01017                        column: x => x.RecStateId,
 01018                        principalTable: "RecordsState",
 01019                        principalColumn: "Id",
 01020                        onDelete: ReferentialAction.Restrict);
 01021                });
 1022
 01023            migrationBuilder.CreateTable(
 01024                name: "Methods",
 01025                columns: table => new
 01026                {
 01027                    Id = table.Column<long>(nullable: false)
 01028                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01029                    RecStateId = table.Column<long>(nullable: true),
 01030                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01031                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01032                    CreatedByUserId = table.Column<long>(nullable: true),
 01033                    ModifiedByUserId = table.Column<long>(nullable: true),
 01034                    IsDeleted = table.Column<bool>(nullable: false),
 01035                    GUID = table.Column<Guid>(nullable: false),
 01036                    MethodName = table.Column<string>(nullable: false),
 01037                    Description = table.Column<string>(nullable: true)
 01038                },
 01039                constraints: table =>
 01040                {
 01041                    table.PrimaryKey("PK_Methods", x => x.Id);
 01042                    table.ForeignKey(
 01043                        name: "FK_Methods_Users_CreatedByUserId",
 01044                        column: x => x.CreatedByUserId,
 01045                        principalTable: "Users",
 01046                        principalColumn: "Id",
 01047                        onDelete: ReferentialAction.Restrict);
 01048                    table.ForeignKey(
 01049                        name: "FK_Methods_Users_ModifiedByUserId",
 01050                        column: x => x.ModifiedByUserId,
 01051                        principalTable: "Users",
 01052                        principalColumn: "Id",
 01053                        onDelete: ReferentialAction.Restrict);
 01054                    table.ForeignKey(
 01055                        name: "FK_Methods_RecordsState_RecStateId",
 01056                        column: x => x.RecStateId,
 01057                        principalTable: "RecordsState",
 01058                        principalColumn: "Id",
 01059                        onDelete: ReferentialAction.Restrict);
 01060                });
 1061
 01062            migrationBuilder.CreateTable(
 01063                name: "MovementItems",
 01064                columns: table => new
 01065                {
 01066                    Id = table.Column<long>(nullable: false)
 01067                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01068                    RecStateId = table.Column<long>(nullable: true),
 01069                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01070                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01071                    CreatedByUserId = table.Column<long>(nullable: true),
 01072                    ModifiedByUserId = table.Column<long>(nullable: true),
 01073                    IsDeleted = table.Column<bool>(nullable: false),
 01074                    GUID = table.Column<Guid>(nullable: false),
 01075                    GoodId = table.Column<long>(nullable: false),
 01076                    Price = table.Column<decimal>(nullable: false),
 01077                    Quantity = table.Column<decimal>(nullable: false),
 01078                    Comment = table.Column<string>(nullable: true),
 01079                    MovementId = table.Column<long>(nullable: true)
 01080                },
 01081                constraints: table =>
 01082                {
 01083                    table.PrimaryKey("PK_MovementItems", x => x.Id);
 01084                    table.ForeignKey(
 01085                        name: "FK_MovementItems_Users_CreatedByUserId",
 01086                        column: x => x.CreatedByUserId,
 01087                        principalTable: "Users",
 01088                        principalColumn: "Id",
 01089                        onDelete: ReferentialAction.Restrict);
 01090                    table.ForeignKey(
 01091                        name: "FK_MovementItems_Goods_GoodId",
 01092                        column: x => x.GoodId,
 01093                        principalTable: "Goods",
 01094                        principalColumn: "Id",
 01095                        onDelete: ReferentialAction.Cascade);
 01096                    table.ForeignKey(
 01097                        name: "FK_MovementItems_Users_ModifiedByUserId",
 01098                        column: x => x.ModifiedByUserId,
 01099                        principalTable: "Users",
 01100                        principalColumn: "Id",
 01101                        onDelete: ReferentialAction.Restrict);
 01102                    table.ForeignKey(
 01103                        name: "FK_MovementItems_Movements_MovementId",
 01104                        column: x => x.MovementId,
 01105                        principalTable: "Movements",
 01106                        principalColumn: "Id",
 01107                        onDelete: ReferentialAction.Restrict);
 01108                    table.ForeignKey(
 01109                        name: "FK_MovementItems_RecordsState_RecStateId",
 01110                        column: x => x.RecStateId,
 01111                        principalTable: "RecordsState",
 01112                        principalColumn: "Id",
 01113                        onDelete: ReferentialAction.Restrict);
 01114                });
 1115
 01116            migrationBuilder.CreateTable(
 01117                name: "MovementNotes",
 01118                columns: table => new
 01119                {
 01120                    Id = table.Column<long>(nullable: false)
 01121                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01122                    RecStateId = table.Column<long>(nullable: true),
 01123                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01124                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01125                    CreatedByUserId = table.Column<long>(nullable: true),
 01126                    ModifiedByUserId = table.Column<long>(nullable: true),
 01127                    IsDeleted = table.Column<bool>(nullable: false),
 01128                    GUID = table.Column<Guid>(nullable: false),
 01129                    Body = table.Column<string>(nullable: false),
 01130                    MovementId = table.Column<long>(nullable: true)
 01131                },
 01132                constraints: table =>
 01133                {
 01134                    table.PrimaryKey("PK_MovementNotes", x => x.Id);
 01135                    table.ForeignKey(
 01136                        name: "FK_MovementNotes_Users_CreatedByUserId",
 01137                        column: x => x.CreatedByUserId,
 01138                        principalTable: "Users",
 01139                        principalColumn: "Id",
 01140                        onDelete: ReferentialAction.Restrict);
 01141                    table.ForeignKey(
 01142                        name: "FK_MovementNotes_Users_ModifiedByUserId",
 01143                        column: x => x.ModifiedByUserId,
 01144                        principalTable: "Users",
 01145                        principalColumn: "Id",
 01146                        onDelete: ReferentialAction.Restrict);
 01147                    table.ForeignKey(
 01148                        name: "FK_MovementNotes_Movements_MovementId",
 01149                        column: x => x.MovementId,
 01150                        principalTable: "Movements",
 01151                        principalColumn: "Id",
 01152                        onDelete: ReferentialAction.Restrict);
 01153                    table.ForeignKey(
 01154                        name: "FK_MovementNotes_RecordsState_RecStateId",
 01155                        column: x => x.RecStateId,
 01156                        principalTable: "RecordsState",
 01157                        principalColumn: "Id",
 01158                        onDelete: ReferentialAction.Restrict);
 01159                });
 1160
 01161            migrationBuilder.CreateTable(
 01162                name: "MovementStatus",
 01163                columns: table => new
 01164                {
 01165                    Id = table.Column<long>(nullable: false)
 01166                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01167                    RecStateId = table.Column<long>(nullable: true),
 01168                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01169                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01170                    CreatedByUserId = table.Column<long>(nullable: true),
 01171                    ModifiedByUserId = table.Column<long>(nullable: true),
 01172                    IsDeleted = table.Column<bool>(nullable: false),
 01173                    GUID = table.Column<Guid>(nullable: false),
 01174                    Name = table.Column<string>(nullable: false),
 01175                    Code = table.Column<string>(nullable: false),
 01176                    Description = table.Column<string>(nullable: true)
 01177                },
 01178                constraints: table =>
 01179                {
 01180                    table.PrimaryKey("PK_MovementStatus", x => x.Id);
 01181                    table.ForeignKey(
 01182                        name: "FK_MovementStatus_Users_CreatedByUserId",
 01183                        column: x => x.CreatedByUserId,
 01184                        principalTable: "Users",
 01185                        principalColumn: "Id",
 01186                        onDelete: ReferentialAction.Restrict);
 01187                    table.ForeignKey(
 01188                        name: "FK_MovementStatus_Users_ModifiedByUserId",
 01189                        column: x => x.ModifiedByUserId,
 01190                        principalTable: "Users",
 01191                        principalColumn: "Id",
 01192                        onDelete: ReferentialAction.Restrict);
 01193                    table.ForeignKey(
 01194                        name: "FK_MovementStatus_RecordsState_RecStateId",
 01195                        column: x => x.RecStateId,
 01196                        principalTable: "RecordsState",
 01197                        principalColumn: "Id",
 01198                        onDelete: ReferentialAction.Restrict);
 01199                });
 1200
 01201            migrationBuilder.CreateTable(
 01202                name: "MovementType",
 01203                columns: table => new
 01204                {
 01205                    Id = table.Column<long>(nullable: false)
 01206                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01207                    RecStateId = table.Column<long>(nullable: true),
 01208                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01209                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01210                    CreatedByUserId = table.Column<long>(nullable: true),
 01211                    ModifiedByUserId = table.Column<long>(nullable: true),
 01212                    IsDeleted = table.Column<bool>(nullable: false),
 01213                    GUID = table.Column<Guid>(nullable: false),
 01214                    Name = table.Column<string>(nullable: false),
 01215                    Code = table.Column<string>(nullable: false),
 01216                    Description = table.Column<string>(nullable: true)
 01217                },
 01218                constraints: table =>
 01219                {
 01220                    table.PrimaryKey("PK_MovementType", x => x.Id);
 01221                    table.ForeignKey(
 01222                        name: "FK_MovementType_Users_CreatedByUserId",
 01223                        column: x => x.CreatedByUserId,
 01224                        principalTable: "Users",
 01225                        principalColumn: "Id",
 01226                        onDelete: ReferentialAction.Restrict);
 01227                    table.ForeignKey(
 01228                        name: "FK_MovementType_Users_ModifiedByUserId",
 01229                        column: x => x.ModifiedByUserId,
 01230                        principalTable: "Users",
 01231                        principalColumn: "Id",
 01232                        onDelete: ReferentialAction.Restrict);
 01233                    table.ForeignKey(
 01234                        name: "FK_MovementType_RecordsState_RecStateId",
 01235                        column: x => x.RecStateId,
 01236                        principalTable: "RecordsState",
 01237                        principalColumn: "Id",
 01238                        onDelete: ReferentialAction.Restrict);
 01239                });
 1240
 01241            migrationBuilder.CreateTable(
 01242                name: "NotificationsStatus",
 01243                columns: table => new
 01244                {
 01245                    Id = table.Column<long>(nullable: false)
 01246                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01247                    RecStateId = table.Column<long>(nullable: true),
 01248                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01249                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01250                    CreatedByUserId = table.Column<long>(nullable: true),
 01251                    ModifiedByUserId = table.Column<long>(nullable: true),
 01252                    IsDeleted = table.Column<bool>(nullable: false),
 01253                    GUID = table.Column<Guid>(nullable: false),
 01254                    Name = table.Column<string>(nullable: false),
 01255                    Code = table.Column<string>(nullable: false),
 01256                    Description = table.Column<string>(nullable: true)
 01257                },
 01258                constraints: table =>
 01259                {
 01260                    table.PrimaryKey("PK_NotificationsStatus", x => x.Id);
 01261                    table.ForeignKey(
 01262                        name: "FK_NotificationsStatus_Users_CreatedByUserId",
 01263                        column: x => x.CreatedByUserId,
 01264                        principalTable: "Users",
 01265                        principalColumn: "Id",
 01266                        onDelete: ReferentialAction.Restrict);
 01267                    table.ForeignKey(
 01268                        name: "FK_NotificationsStatus_Users_ModifiedByUserId",
 01269                        column: x => x.ModifiedByUserId,
 01270                        principalTable: "Users",
 01271                        principalColumn: "Id",
 01272                        onDelete: ReferentialAction.Restrict);
 01273                    table.ForeignKey(
 01274                        name: "FK_NotificationsStatus_RecordsState_RecStateId",
 01275                        column: x => x.RecStateId,
 01276                        principalTable: "RecordsState",
 01277                        principalColumn: "Id",
 01278                        onDelete: ReferentialAction.Restrict);
 01279                });
 1280
 01281            migrationBuilder.CreateTable(
 01282                name: "NotificationsType",
 01283                columns: table => new
 01284                {
 01285                    Id = table.Column<long>(nullable: false)
 01286                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01287                    RecStateId = table.Column<long>(nullable: true),
 01288                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01289                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01290                    CreatedByUserId = table.Column<long>(nullable: true),
 01291                    ModifiedByUserId = table.Column<long>(nullable: true),
 01292                    IsDeleted = table.Column<bool>(nullable: false),
 01293                    GUID = table.Column<Guid>(nullable: false),
 01294                    Name = table.Column<string>(nullable: false),
 01295                    Code = table.Column<string>(nullable: false),
 01296                    Description = table.Column<string>(nullable: true)
 01297                },
 01298                constraints: table =>
 01299                {
 01300                    table.PrimaryKey("PK_NotificationsType", x => x.Id);
 01301                    table.ForeignKey(
 01302                        name: "FK_NotificationsType_Users_CreatedByUserId",
 01303                        column: x => x.CreatedByUserId,
 01304                        principalTable: "Users",
 01305                        principalColumn: "Id",
 01306                        onDelete: ReferentialAction.Restrict);
 01307                    table.ForeignKey(
 01308                        name: "FK_NotificationsType_Users_ModifiedByUserId",
 01309                        column: x => x.ModifiedByUserId,
 01310                        principalTable: "Users",
 01311                        principalColumn: "Id",
 01312                        onDelete: ReferentialAction.Restrict);
 01313                    table.ForeignKey(
 01314                        name: "FK_NotificationsType_RecordsState_RecStateId",
 01315                        column: x => x.RecStateId,
 01316                        principalTable: "RecordsState",
 01317                        principalColumn: "Id",
 01318                        onDelete: ReferentialAction.Restrict);
 01319                });
 1320
 01321            migrationBuilder.CreateTable(
 01322                name: "Photos",
 01323                columns: table => new
 01324                {
 01325                    Id = table.Column<long>(nullable: false)
 01326                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01327                    RecStateId = table.Column<long>(nullable: true),
 01328                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01329                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01330                    CreatedByUserId = table.Column<long>(nullable: true),
 01331                    ModifiedByUserId = table.Column<long>(nullable: true),
 01332                    IsDeleted = table.Column<bool>(nullable: false),
 01333                    GUID = table.Column<Guid>(nullable: false),
 01334                    PreviewUrl = table.Column<string>(nullable: true),
 01335                    FullSizeUrl = table.Column<string>(nullable: true),
 01336                    PreviewWidth = table.Column<int>(nullable: false),
 01337                    PreviewHeight = table.Column<int>(nullable: false),
 01338                    FullSizeWidth = table.Column<int>(nullable: false),
 01339                    FullSizeHeight = table.Column<int>(nullable: false),
 01340                    GoodId = table.Column<long>(nullable: true)
 01341                },
 01342                constraints: table =>
 01343                {
 01344                    table.PrimaryKey("PK_Photos", x => x.Id);
 01345                    table.ForeignKey(
 01346                        name: "FK_Photos_Users_CreatedByUserId",
 01347                        column: x => x.CreatedByUserId,
 01348                        principalTable: "Users",
 01349                        principalColumn: "Id",
 01350                        onDelete: ReferentialAction.Restrict);
 01351                    table.ForeignKey(
 01352                        name: "FK_Photos_Goods_GoodId",
 01353                        column: x => x.GoodId,
 01354                        principalTable: "Goods",
 01355                        principalColumn: "Id",
 01356                        onDelete: ReferentialAction.Restrict);
 01357                    table.ForeignKey(
 01358                        name: "FK_Photos_Users_ModifiedByUserId",
 01359                        column: x => x.ModifiedByUserId,
 01360                        principalTable: "Users",
 01361                        principalColumn: "Id",
 01362                        onDelete: ReferentialAction.Restrict);
 01363                    table.ForeignKey(
 01364                        name: "FK_Photos_RecordsState_RecStateId",
 01365                        column: x => x.RecStateId,
 01366                        principalTable: "RecordsState",
 01367                        principalColumn: "Id",
 01368                        onDelete: ReferentialAction.Restrict);
 01369                });
 1370
 01371            migrationBuilder.CreateTable(
 01372                name: "PricesCurrent",
 01373                columns: table => new
 01374                {
 01375                    Id = table.Column<long>(nullable: false)
 01376                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01377                    RecStateId = table.Column<long>(nullable: true),
 01378                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01379                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01380                    CreatedByUserId = table.Column<long>(nullable: true),
 01381                    ModifiedByUserId = table.Column<long>(nullable: true),
 01382                    IsDeleted = table.Column<bool>(nullable: false),
 01383                    GUID = table.Column<Guid>(nullable: false),
 01384                    SupplierDepartmentId = table.Column<long>(nullable: false),
 01385                    GoodId = table.Column<long>(nullable: false),
 01386                    Price = table.Column<decimal>(nullable: false)
 01387                },
 01388                constraints: table =>
 01389                {
 01390                    table.PrimaryKey("PK_PricesCurrent", x => x.Id);
 01391                    table.ForeignKey(
 01392                        name: "FK_PricesCurrent_Users_CreatedByUserId",
 01393                        column: x => x.CreatedByUserId,
 01394                        principalTable: "Users",
 01395                        principalColumn: "Id",
 01396                        onDelete: ReferentialAction.Restrict);
 01397                    table.ForeignKey(
 01398                        name: "FK_PricesCurrent_Goods_GoodId",
 01399                        column: x => x.GoodId,
 01400                        principalTable: "Goods",
 01401                        principalColumn: "Id",
 01402                        onDelete: ReferentialAction.Cascade);
 01403                    table.ForeignKey(
 01404                        name: "FK_PricesCurrent_Users_ModifiedByUserId",
 01405                        column: x => x.ModifiedByUserId,
 01406                        principalTable: "Users",
 01407                        principalColumn: "Id",
 01408                        onDelete: ReferentialAction.Restrict);
 01409                    table.ForeignKey(
 01410                        name: "FK_PricesCurrent_RecordsState_RecStateId",
 01411                        column: x => x.RecStateId,
 01412                        principalTable: "RecordsState",
 01413                        principalColumn: "Id",
 01414                        onDelete: ReferentialAction.Restrict);
 01415                    table.ForeignKey(
 01416                        name: "FK_PricesCurrent_Departments_SupplierDepartmentId",
 01417                        column: x => x.SupplierDepartmentId,
 01418                        principalTable: "Departments",
 01419                        principalColumn: "Id",
 01420                        onDelete: ReferentialAction.Cascade);
 01421                });
 1422
 01423            migrationBuilder.CreateTable(
 01424                name: "PricesTrend",
 01425                columns: table => new
 01426                {
 01427                    Id = table.Column<long>(nullable: false)
 01428                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01429                    RecStateId = table.Column<long>(nullable: true),
 01430                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01431                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01432                    CreatedByUserId = table.Column<long>(nullable: true),
 01433                    ModifiedByUserId = table.Column<long>(nullable: true),
 01434                    IsDeleted = table.Column<bool>(nullable: false),
 01435                    GUID = table.Column<Guid>(nullable: false),
 01436                    SupplierDepartmentId = table.Column<long>(nullable: false),
 01437                    GoodId = table.Column<long>(nullable: false),
 01438                    PriceOld = table.Column<decimal>(nullable: false),
 01439                    PriceNew = table.Column<decimal>(nullable: false)
 01440                },
 01441                constraints: table =>
 01442                {
 01443                    table.PrimaryKey("PK_PricesTrend", x => x.Id);
 01444                    table.ForeignKey(
 01445                        name: "FK_PricesTrend_Users_CreatedByUserId",
 01446                        column: x => x.CreatedByUserId,
 01447                        principalTable: "Users",
 01448                        principalColumn: "Id",
 01449                        onDelete: ReferentialAction.Restrict);
 01450                    table.ForeignKey(
 01451                        name: "FK_PricesTrend_Goods_GoodId",
 01452                        column: x => x.GoodId,
 01453                        principalTable: "Goods",
 01454                        principalColumn: "Id",
 01455                        onDelete: ReferentialAction.Cascade);
 01456                    table.ForeignKey(
 01457                        name: "FK_PricesTrend_Users_ModifiedByUserId",
 01458                        column: x => x.ModifiedByUserId,
 01459                        principalTable: "Users",
 01460                        principalColumn: "Id",
 01461                        onDelete: ReferentialAction.Restrict);
 01462                    table.ForeignKey(
 01463                        name: "FK_PricesTrend_RecordsState_RecStateId",
 01464                        column: x => x.RecStateId,
 01465                        principalTable: "RecordsState",
 01466                        principalColumn: "Id",
 01467                        onDelete: ReferentialAction.Restrict);
 01468                    table.ForeignKey(
 01469                        name: "FK_PricesTrend_Departments_SupplierDepartmentId",
 01470                        column: x => x.SupplierDepartmentId,
 01471                        principalTable: "Departments",
 01472                        principalColumn: "Id",
 01473                        onDelete: ReferentialAction.Cascade);
 01474                });
 1475
 01476            migrationBuilder.CreateTable(
 01477                name: "PromoOffers",
 01478                columns: table => new
 01479                {
 01480                    Id = table.Column<long>(nullable: false)
 01481                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01482                    RecStateId = table.Column<long>(nullable: true),
 01483                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01484                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01485                    CreatedByUserId = table.Column<long>(nullable: true),
 01486                    ModifiedByUserId = table.Column<long>(nullable: true),
 01487                    IsDeleted = table.Column<bool>(nullable: false),
 01488                    GUID = table.Column<Guid>(nullable: false),
 01489                    GoodId = table.Column<long>(nullable: false),
 01490                    Price = table.Column<decimal>(nullable: false),
 01491                    SupplierDepartmentId = table.Column<long>(nullable: false),
 01492                    MinQuantity = table.Column<decimal>(nullable: false),
 01493                    MaxQuantity = table.Column<decimal>(nullable: true),
 01494                    DateBegin = table.Column<DateTime>(nullable: false),
 01495                    DateEnd = table.Column<DateTime>(nullable: false)
 01496                },
 01497                constraints: table =>
 01498                {
 01499                    table.PrimaryKey("PK_PromoOffers", x => x.Id);
 01500                    table.ForeignKey(
 01501                        name: "FK_PromoOffers_Users_CreatedByUserId",
 01502                        column: x => x.CreatedByUserId,
 01503                        principalTable: "Users",
 01504                        principalColumn: "Id",
 01505                        onDelete: ReferentialAction.Restrict);
 01506                    table.ForeignKey(
 01507                        name: "FK_PromoOffers_Goods_GoodId",
 01508                        column: x => x.GoodId,
 01509                        principalTable: "Goods",
 01510                        principalColumn: "Id",
 01511                        onDelete: ReferentialAction.Cascade);
 01512                    table.ForeignKey(
 01513                        name: "FK_PromoOffers_Users_ModifiedByUserId",
 01514                        column: x => x.ModifiedByUserId,
 01515                        principalTable: "Users",
 01516                        principalColumn: "Id",
 01517                        onDelete: ReferentialAction.Restrict);
 01518                    table.ForeignKey(
 01519                        name: "FK_PromoOffers_RecordsState_RecStateId",
 01520                        column: x => x.RecStateId,
 01521                        principalTable: "RecordsState",
 01522                        principalColumn: "Id",
 01523                        onDelete: ReferentialAction.Restrict);
 01524                    table.ForeignKey(
 01525                        name: "FK_PromoOffers_Departments_SupplierDepartmentId",
 01526                        column: x => x.SupplierDepartmentId,
 01527                        principalTable: "Departments",
 01528                        principalColumn: "Id",
 01529                        onDelete: ReferentialAction.Cascade);
 01530                });
 1531
 01532            migrationBuilder.CreateTable(
 01533                name: "Rests",
 01534                columns: table => new
 01535                {
 01536                    Id = table.Column<long>(nullable: false)
 01537                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01538                    RecStateId = table.Column<long>(nullable: true),
 01539                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01540                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01541                    CreatedByUserId = table.Column<long>(nullable: true),
 01542                    ModifiedByUserId = table.Column<long>(nullable: true),
 01543                    IsDeleted = table.Column<bool>(nullable: false),
 01544                    GUID = table.Column<Guid>(nullable: false),
 01545                    GoodId = table.Column<long>(nullable: false),
 01546                    DepartmentId = table.Column<long>(nullable: false),
 01547                    Quantity = table.Column<decimal>(nullable: false)
 01548                },
 01549                constraints: table =>
 01550                {
 01551                    table.PrimaryKey("PK_Rests", x => x.Id);
 01552                    table.ForeignKey(
 01553                        name: "FK_Rests_Users_CreatedByUserId",
 01554                        column: x => x.CreatedByUserId,
 01555                        principalTable: "Users",
 01556                        principalColumn: "Id",
 01557                        onDelete: ReferentialAction.Restrict);
 01558                    table.ForeignKey(
 01559                        name: "FK_Rests_Departments_DepartmentId",
 01560                        column: x => x.DepartmentId,
 01561                        principalTable: "Departments",
 01562                        principalColumn: "Id",
 01563                        onDelete: ReferentialAction.Cascade);
 01564                    table.ForeignKey(
 01565                        name: "FK_Rests_Goods_GoodId",
 01566                        column: x => x.GoodId,
 01567                        principalTable: "Goods",
 01568                        principalColumn: "Id",
 01569                        onDelete: ReferentialAction.Cascade);
 01570                    table.ForeignKey(
 01571                        name: "FK_Rests_Users_ModifiedByUserId",
 01572                        column: x => x.ModifiedByUserId,
 01573                        principalTable: "Users",
 01574                        principalColumn: "Id",
 01575                        onDelete: ReferentialAction.Restrict);
 01576                    table.ForeignKey(
 01577                        name: "FK_Rests_RecordsState_RecStateId",
 01578                        column: x => x.RecStateId,
 01579                        principalTable: "RecordsState",
 01580                        principalColumn: "Id",
 01581                        onDelete: ReferentialAction.Restrict);
 01582                });
 1583
 01584            migrationBuilder.CreateTable(
 01585                name: "Roles",
 01586                columns: table => new
 01587                {
 01588                    Id = table.Column<long>(nullable: false)
 01589                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01590                    RecStateId = table.Column<long>(nullable: true),
 01591                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01592                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01593                    CreatedByUserId = table.Column<long>(nullable: true),
 01594                    ModifiedByUserId = table.Column<long>(nullable: true),
 01595                    IsDeleted = table.Column<bool>(nullable: false),
 01596                    GUID = table.Column<Guid>(nullable: false),
 01597                    Name = table.Column<string>(nullable: false),
 01598                    Description = table.Column<string>(nullable: true)
 01599                },
 01600                constraints: table =>
 01601                {
 01602                    table.PrimaryKey("PK_Roles", x => x.Id);
 01603                    table.ForeignKey(
 01604                        name: "FK_Roles_Users_CreatedByUserId",
 01605                        column: x => x.CreatedByUserId,
 01606                        principalTable: "Users",
 01607                        principalColumn: "Id",
 01608                        onDelete: ReferentialAction.Restrict);
 01609                    table.ForeignKey(
 01610                        name: "FK_Roles_Users_ModifiedByUserId",
 01611                        column: x => x.ModifiedByUserId,
 01612                        principalTable: "Users",
 01613                        principalColumn: "Id",
 01614                        onDelete: ReferentialAction.Restrict);
 01615                    table.ForeignKey(
 01616                        name: "FK_Roles_RecordsState_RecStateId",
 01617                        column: x => x.RecStateId,
 01618                        principalTable: "RecordsState",
 01619                        principalColumn: "Id",
 01620                        onDelete: ReferentialAction.Restrict);
 01621                });
 1622
 01623            migrationBuilder.CreateTable(
 01624                name: "TaxSystems",
 01625                columns: table => new
 01626                {
 01627                    Id = table.Column<long>(nullable: false)
 01628                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01629                    RecStateId = table.Column<long>(nullable: true),
 01630                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01631                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01632                    CreatedByUserId = table.Column<long>(nullable: true),
 01633                    ModifiedByUserId = table.Column<long>(nullable: true),
 01634                    IsDeleted = table.Column<bool>(nullable: false),
 01635                    GUID = table.Column<Guid>(nullable: false),
 01636                    Name = table.Column<string>(nullable: true),
 01637                    Code = table.Column<string>(nullable: true),
 01638                    Description = table.Column<string>(nullable: true)
 01639                },
 01640                constraints: table =>
 01641                {
 01642                    table.PrimaryKey("PK_TaxSystems", x => x.Id);
 01643                    table.ForeignKey(
 01644                        name: "FK_TaxSystems_Users_CreatedByUserId",
 01645                        column: x => x.CreatedByUserId,
 01646                        principalTable: "Users",
 01647                        principalColumn: "Id",
 01648                        onDelete: ReferentialAction.Restrict);
 01649                    table.ForeignKey(
 01650                        name: "FK_TaxSystems_Users_ModifiedByUserId",
 01651                        column: x => x.ModifiedByUserId,
 01652                        principalTable: "Users",
 01653                        principalColumn: "Id",
 01654                        onDelete: ReferentialAction.Restrict);
 01655                    table.ForeignKey(
 01656                        name: "FK_TaxSystems_RecordsState_RecStateId",
 01657                        column: x => x.RecStateId,
 01658                        principalTable: "RecordsState",
 01659                        principalColumn: "Id",
 01660                        onDelete: ReferentialAction.Restrict);
 01661                });
 1662
 01663            migrationBuilder.CreateTable(
 01664                name: "UnitsKind",
 01665                columns: table => new
 01666                {
 01667                    Id = table.Column<long>(nullable: false)
 01668                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01669                    RecStateId = table.Column<long>(nullable: true),
 01670                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01671                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01672                    CreatedByUserId = table.Column<long>(nullable: true),
 01673                    ModifiedByUserId = table.Column<long>(nullable: true),
 01674                    IsDeleted = table.Column<bool>(nullable: false),
 01675                    GUID = table.Column<Guid>(nullable: false),
 01676                    Name = table.Column<string>(nullable: false),
 01677                    Code = table.Column<string>(nullable: false),
 01678                    Description = table.Column<string>(nullable: true),
 01679                    StrCode = table.Column<string>(nullable: true)
 01680                },
 01681                constraints: table =>
 01682                {
 01683                    table.PrimaryKey("PK_UnitsKind", x => x.Id);
 01684                    table.ForeignKey(
 01685                        name: "FK_UnitsKind_Users_CreatedByUserId",
 01686                        column: x => x.CreatedByUserId,
 01687                        principalTable: "Users",
 01688                        principalColumn: "Id",
 01689                        onDelete: ReferentialAction.Restrict);
 01690                    table.ForeignKey(
 01691                        name: "FK_UnitsKind_Users_ModifiedByUserId",
 01692                        column: x => x.ModifiedByUserId,
 01693                        principalTable: "Users",
 01694                        principalColumn: "Id",
 01695                        onDelete: ReferentialAction.Restrict);
 01696                    table.ForeignKey(
 01697                        name: "FK_UnitsKind_RecordsState_RecStateId",
 01698                        column: x => x.RecStateId,
 01699                        principalTable: "RecordsState",
 01700                        principalColumn: "Id",
 01701                        onDelete: ReferentialAction.Restrict);
 01702                });
 1703
 01704            migrationBuilder.CreateTable(
 01705                name: "Uploads",
 01706                columns: table => new
 01707                {
 01708                    Id = table.Column<long>(nullable: false)
 01709                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01710                    RecStateId = table.Column<long>(nullable: true),
 01711                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01712                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01713                    CreatedByUserId = table.Column<long>(nullable: true),
 01714                    ModifiedByUserId = table.Column<long>(nullable: true),
 01715                    IsDeleted = table.Column<bool>(nullable: false),
 01716                    GUID = table.Column<Guid>(nullable: false),
 01717                    SourceRecordCount = table.Column<int>(nullable: false),
 01718                    UploadedRecordCount = table.Column<int>(nullable: false),
 01719                    SourceFile = table.Column<byte[]>(nullable: true),
 01720                    ResultFile = table.Column<byte[]>(nullable: true),
 01721                    Status = table.Column<int>(nullable: false)
 01722                },
 01723                constraints: table =>
 01724                {
 01725                    table.PrimaryKey("PK_Uploads", x => x.Id);
 01726                    table.ForeignKey(
 01727                        name: "FK_Uploads_Users_CreatedByUserId",
 01728                        column: x => x.CreatedByUserId,
 01729                        principalTable: "Users",
 01730                        principalColumn: "Id",
 01731                        onDelete: ReferentialAction.Restrict);
 01732                    table.ForeignKey(
 01733                        name: "FK_Uploads_Users_ModifiedByUserId",
 01734                        column: x => x.ModifiedByUserId,
 01735                        principalTable: "Users",
 01736                        principalColumn: "Id",
 01737                        onDelete: ReferentialAction.Restrict);
 01738                    table.ForeignKey(
 01739                        name: "FK_Uploads_RecordsState_RecStateId",
 01740                        column: x => x.RecStateId,
 01741                        principalTable: "RecordsState",
 01742                        principalColumn: "Id",
 01743                        onDelete: ReferentialAction.Restrict);
 01744                });
 1745
 01746            migrationBuilder.CreateTable(
 01747                name: "VatsKind",
 01748                columns: table => new
 01749                {
 01750                    Id = table.Column<long>(nullable: false)
 01751                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01752                    RecStateId = table.Column<long>(nullable: true),
 01753                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01754                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01755                    CreatedByUserId = table.Column<long>(nullable: true),
 01756                    ModifiedByUserId = table.Column<long>(nullable: true),
 01757                    IsDeleted = table.Column<bool>(nullable: false),
 01758                    GUID = table.Column<Guid>(nullable: false),
 01759                    Name = table.Column<string>(nullable: false),
 01760                    Code = table.Column<string>(nullable: false),
 01761                    Description = table.Column<string>(nullable: true),
 01762                    StrCode = table.Column<string>(nullable: true)
 01763                },
 01764                constraints: table =>
 01765                {
 01766                    table.PrimaryKey("PK_VatsKind", x => x.Id);
 01767                    table.ForeignKey(
 01768                        name: "FK_VatsKind_Users_CreatedByUserId",
 01769                        column: x => x.CreatedByUserId,
 01770                        principalTable: "Users",
 01771                        principalColumn: "Id",
 01772                        onDelete: ReferentialAction.Restrict);
 01773                    table.ForeignKey(
 01774                        name: "FK_VatsKind_Users_ModifiedByUserId",
 01775                        column: x => x.ModifiedByUserId,
 01776                        principalTable: "Users",
 01777                        principalColumn: "Id",
 01778                        onDelete: ReferentialAction.Restrict);
 01779                    table.ForeignKey(
 01780                        name: "FK_VatsKind_RecordsState_RecStateId",
 01781                        column: x => x.RecStateId,
 01782                        principalTable: "RecordsState",
 01783                        principalColumn: "Id",
 01784                        onDelete: ReferentialAction.Restrict);
 01785                });
 1786
 01787            migrationBuilder.CreateTable(
 01788                name: "WalletTransactionStatuses",
 01789                columns: table => new
 01790                {
 01791                    Id = table.Column<long>(nullable: false)
 01792                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01793                    RecStateId = table.Column<long>(nullable: true),
 01794                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01795                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01796                    CreatedByUserId = table.Column<long>(nullable: true),
 01797                    ModifiedByUserId = table.Column<long>(nullable: true),
 01798                    IsDeleted = table.Column<bool>(nullable: false),
 01799                    GUID = table.Column<Guid>(nullable: false),
 01800                    Name = table.Column<string>(nullable: false),
 01801                    Code = table.Column<string>(nullable: false),
 01802                    Description = table.Column<string>(nullable: true)
 01803                },
 01804                constraints: table =>
 01805                {
 01806                    table.PrimaryKey("PK_WalletTransactionStatuses", x => x.Id);
 01807                    table.ForeignKey(
 01808                        name: "FK_WalletTransactionStatuses_Users_CreatedByUserId",
 01809                        column: x => x.CreatedByUserId,
 01810                        principalTable: "Users",
 01811                        principalColumn: "Id",
 01812                        onDelete: ReferentialAction.Restrict);
 01813                    table.ForeignKey(
 01814                        name: "FK_WalletTransactionStatuses_Users_ModifiedByUserId",
 01815                        column: x => x.ModifiedByUserId,
 01816                        principalTable: "Users",
 01817                        principalColumn: "Id",
 01818                        onDelete: ReferentialAction.Restrict);
 01819                    table.ForeignKey(
 01820                        name: "FK_WalletTransactionStatuses_RecordsState_RecStateId",
 01821                        column: x => x.RecStateId,
 01822                        principalTable: "RecordsState",
 01823                        principalColumn: "Id",
 01824                        onDelete: ReferentialAction.Restrict);
 01825                });
 1826
 01827            migrationBuilder.CreateTable(
 01828                name: "WorkScheduler",
 01829                columns: table => new
 01830                {
 01831                    Id = table.Column<long>(nullable: false)
 01832                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01833                    RecStateId = table.Column<long>(nullable: true),
 01834                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01835                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01836                    CreatedByUserId = table.Column<long>(nullable: true),
 01837                    ModifiedByUserId = table.Column<long>(nullable: true),
 01838                    IsDeleted = table.Column<bool>(nullable: false),
 01839                    GUID = table.Column<Guid>(nullable: false),
 01840                    BeginTime = table.Column<DateTime>(nullable: false),
 01841                    EndTime = table.Column<DateTime>(nullable: false),
 01842                    IsWorkingDay = table.Column<bool>(nullable: false)
 01843                },
 01844                constraints: table =>
 01845                {
 01846                    table.PrimaryKey("PK_WorkScheduler", x => x.Id);
 01847                    table.ForeignKey(
 01848                        name: "FK_WorkScheduler_Users_CreatedByUserId",
 01849                        column: x => x.CreatedByUserId,
 01850                        principalTable: "Users",
 01851                        principalColumn: "Id",
 01852                        onDelete: ReferentialAction.Restrict);
 01853                    table.ForeignKey(
 01854                        name: "FK_WorkScheduler_Users_ModifiedByUserId",
 01855                        column: x => x.ModifiedByUserId,
 01856                        principalTable: "Users",
 01857                        principalColumn: "Id",
 01858                        onDelete: ReferentialAction.Restrict);
 01859                    table.ForeignKey(
 01860                        name: "FK_WorkScheduler_RecordsState_RecStateId",
 01861                        column: x => x.RecStateId,
 01862                        principalTable: "RecordsState",
 01863                        principalColumn: "Id",
 01864                        onDelete: ReferentialAction.Restrict);
 01865                });
 1866
 01867            migrationBuilder.CreateTable(
 01868                name: "Events",
 01869                columns: table => new
 01870                {
 01871                    Id = table.Column<long>(nullable: false)
 01872                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01873                    RecStateId = table.Column<long>(nullable: true),
 01874                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01875                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01876                    CreatedByUserId = table.Column<long>(nullable: true),
 01877                    ModifiedByUserId = table.Column<long>(nullable: true),
 01878                    IsDeleted = table.Column<bool>(nullable: false),
 01879                    GUID = table.Column<Guid>(nullable: false),
 01880                    DtCreated = table.Column<DateTime>(nullable: false),
 01881                    UserId = table.Column<long>(nullable: false),
 01882                    EventsKindId = table.Column<long>(nullable: false),
 01883                    Entity = table.Column<string>(nullable: false),
 01884                    RecordGuid = table.Column<Guid>(nullable: false),
 01885                    ReasonJson = table.Column<string>(type: "jsonb", nullable: true)
 01886                },
 01887                constraints: table =>
 01888                {
 01889                    table.PrimaryKey("PK_Events", x => x.Id);
 01890                    table.ForeignKey(
 01891                        name: "FK_Events_Users_CreatedByUserId",
 01892                        column: x => x.CreatedByUserId,
 01893                        principalTable: "Users",
 01894                        principalColumn: "Id",
 01895                        onDelete: ReferentialAction.Restrict);
 01896                    table.ForeignKey(
 01897                        name: "FK_Events_EventsKind_EventsKindId",
 01898                        column: x => x.EventsKindId,
 01899                        principalTable: "EventsKind",
 01900                        principalColumn: "Id",
 01901                        onDelete: ReferentialAction.Cascade);
 01902                    table.ForeignKey(
 01903                        name: "FK_Events_Users_ModifiedByUserId",
 01904                        column: x => x.ModifiedByUserId,
 01905                        principalTable: "Users",
 01906                        principalColumn: "Id",
 01907                        onDelete: ReferentialAction.Restrict);
 01908                    table.ForeignKey(
 01909                        name: "FK_Events_RecordsState_RecStateId",
 01910                        column: x => x.RecStateId,
 01911                        principalTable: "RecordsState",
 01912                        principalColumn: "Id",
 01913                        onDelete: ReferentialAction.Restrict);
 01914                    table.ForeignKey(
 01915                        name: "FK_Events_Users_UserId",
 01916                        column: x => x.UserId,
 01917                        principalTable: "Users",
 01918                        principalColumn: "Id",
 01919                        onDelete: ReferentialAction.Cascade);
 01920                });
 1921
 01922            migrationBuilder.CreateTable(
 01923                name: "Incidents",
 01924                columns: table => new
 01925                {
 01926                    Id = table.Column<long>(nullable: false)
 01927                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01928                    RecStateId = table.Column<long>(nullable: true),
 01929                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01930                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01931                    CreatedByUserId = table.Column<long>(nullable: true),
 01932                    ModifiedByUserId = table.Column<long>(nullable: true),
 01933                    IsDeleted = table.Column<bool>(nullable: false),
 01934                    GUID = table.Column<Guid>(nullable: false),
 01935                    DtCreated = table.Column<DateTime>(nullable: false),
 01936                    UserId = table.Column<long>(nullable: false),
 01937                    Subject = table.Column<string>(nullable: true),
 01938                    Ticket = table.Column<string>(nullable: true),
 01939                    Body = table.Column<string>(nullable: true),
 01940                    StatusId = table.Column<long>(nullable: true),
 01941                    KindId = table.Column<long>(nullable: true)
 01942                },
 01943                constraints: table =>
 01944                {
 01945                    table.PrimaryKey("PK_Incidents", x => x.Id);
 01946                    table.ForeignKey(
 01947                        name: "FK_Incidents_Users_CreatedByUserId",
 01948                        column: x => x.CreatedByUserId,
 01949                        principalTable: "Users",
 01950                        principalColumn: "Id",
 01951                        onDelete: ReferentialAction.Restrict);
 01952                    table.ForeignKey(
 01953                        name: "FK_Incidents_IncidentsKind_KindId",
 01954                        column: x => x.KindId,
 01955                        principalTable: "IncidentsKind",
 01956                        principalColumn: "Id",
 01957                        onDelete: ReferentialAction.Restrict);
 01958                    table.ForeignKey(
 01959                        name: "FK_Incidents_Users_ModifiedByUserId",
 01960                        column: x => x.ModifiedByUserId,
 01961                        principalTable: "Users",
 01962                        principalColumn: "Id",
 01963                        onDelete: ReferentialAction.Restrict);
 01964                    table.ForeignKey(
 01965                        name: "FK_Incidents_RecordsState_RecStateId",
 01966                        column: x => x.RecStateId,
 01967                        principalTable: "RecordsState",
 01968                        principalColumn: "Id",
 01969                        onDelete: ReferentialAction.Restrict);
 01970                    table.ForeignKey(
 01971                        name: "FK_Incidents_IncidentsStatus_StatusId",
 01972                        column: x => x.StatusId,
 01973                        principalTable: "IncidentsStatus",
 01974                        principalColumn: "Id",
 01975                        onDelete: ReferentialAction.Restrict);
 01976                    table.ForeignKey(
 01977                        name: "FK_Incidents_Users_UserId",
 01978                        column: x => x.UserId,
 01979                        principalTable: "Users",
 01980                        principalColumn: "Id",
 01981                        onDelete: ReferentialAction.Cascade);
 01982                });
 1983
 01984            migrationBuilder.CreateTable(
 01985                name: "MovementStatusJournals",
 01986                columns: table => new
 01987                {
 01988                    Id = table.Column<long>(nullable: false)
 01989                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 01990                    RecStateId = table.Column<long>(nullable: true),
 01991                    CreationDateTime = table.Column<DateTime>(nullable: false),
 01992                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 01993                    CreatedByUserId = table.Column<long>(nullable: true),
 01994                    ModifiedByUserId = table.Column<long>(nullable: true),
 01995                    IsDeleted = table.Column<bool>(nullable: false),
 01996                    GUID = table.Column<Guid>(nullable: false),
 01997                    MovementId = table.Column<long>(nullable: true),
 01998                    StatusCurrentId = table.Column<long>(nullable: true)
 01999                },
 02000                constraints: table =>
 02001                {
 02002                    table.PrimaryKey("PK_MovementStatusJournals", x => x.Id);
 02003                    table.ForeignKey(
 02004                        name: "FK_MovementStatusJournals_Users_CreatedByUserId",
 02005                        column: x => x.CreatedByUserId,
 02006                        principalTable: "Users",
 02007                        principalColumn: "Id",
 02008                        onDelete: ReferentialAction.Restrict);
 02009                    table.ForeignKey(
 02010                        name: "FK_MovementStatusJournals_Users_ModifiedByUserId",
 02011                        column: x => x.ModifiedByUserId,
 02012                        principalTable: "Users",
 02013                        principalColumn: "Id",
 02014                        onDelete: ReferentialAction.Restrict);
 02015                    table.ForeignKey(
 02016                        name: "FK_MovementStatusJournals_Movements_MovementId",
 02017                        column: x => x.MovementId,
 02018                        principalTable: "Movements",
 02019                        principalColumn: "Id",
 02020                        onDelete: ReferentialAction.Restrict);
 02021                    table.ForeignKey(
 02022                        name: "FK_MovementStatusJournals_RecordsState_RecStateId",
 02023                        column: x => x.RecStateId,
 02024                        principalTable: "RecordsState",
 02025                        principalColumn: "Id",
 02026                        onDelete: ReferentialAction.Restrict);
 02027                    table.ForeignKey(
 02028                        name: "FK_MovementStatusJournals_MovementStatus_StatusCurrentId",
 02029                        column: x => x.StatusCurrentId,
 02030                        principalTable: "MovementStatus",
 02031                        principalColumn: "Id",
 02032                        onDelete: ReferentialAction.Restrict);
 02033                });
 2034
 02035            migrationBuilder.CreateTable(
 02036                name: "MovementStatusConformities",
 02037                columns: table => new
 02038                {
 02039                    Id = table.Column<long>(nullable: false)
 02040                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 02041                    RecStateId = table.Column<long>(nullable: true),
 02042                    CreationDateTime = table.Column<DateTime>(nullable: false),
 02043                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 02044                    CreatedByUserId = table.Column<long>(nullable: true),
 02045                    ModifiedByUserId = table.Column<long>(nullable: true),
 02046                    IsDeleted = table.Column<bool>(nullable: false),
 02047                    GUID = table.Column<Guid>(nullable: false),
 02048                    StatusCurrentId = table.Column<long>(nullable: true),
 02049                    TypeCurrentId = table.Column<long>(nullable: true),
 02050                    StatusNextId = table.Column<long>(nullable: true),
 02051                    TypeNextId = table.Column<long>(nullable: true),
 02052                    Hours = table.Column<int>(nullable: false)
 02053                },
 02054                constraints: table =>
 02055                {
 02056                    table.PrimaryKey("PK_MovementStatusConformities", x => x.Id);
 02057                    table.ForeignKey(
 02058                        name: "FK_MovementStatusConformities_Users_CreatedByUserId",
 02059                        column: x => x.CreatedByUserId,
 02060                        principalTable: "Users",
 02061                        principalColumn: "Id",
 02062                        onDelete: ReferentialAction.Restrict);
 02063                    table.ForeignKey(
 02064                        name: "FK_MovementStatusConformities_Users_ModifiedByUserId",
 02065                        column: x => x.ModifiedByUserId,
 02066                        principalTable: "Users",
 02067                        principalColumn: "Id",
 02068                        onDelete: ReferentialAction.Restrict);
 02069                    table.ForeignKey(
 02070                        name: "FK_MovementStatusConformities_RecordsState_RecStateId",
 02071                        column: x => x.RecStateId,
 02072                        principalTable: "RecordsState",
 02073                        principalColumn: "Id",
 02074                        onDelete: ReferentialAction.Restrict);
 02075                    table.ForeignKey(
 02076                        name: "FK_MovementStatusConformities_MovementStatus_StatusCurrentId",
 02077                        column: x => x.StatusCurrentId,
 02078                        principalTable: "MovementStatus",
 02079                        principalColumn: "Id",
 02080                        onDelete: ReferentialAction.Restrict);
 02081                    table.ForeignKey(
 02082                        name: "FK_MovementStatusConformities_MovementStatus_StatusNextId",
 02083                        column: x => x.StatusNextId,
 02084                        principalTable: "MovementStatus",
 02085                        principalColumn: "Id",
 02086                        onDelete: ReferentialAction.Restrict);
 02087                    table.ForeignKey(
 02088                        name: "FK_MovementStatusConformities_MovementType_TypeCurrentId",
 02089                        column: x => x.TypeCurrentId,
 02090                        principalTable: "MovementType",
 02091                        principalColumn: "Id",
 02092                        onDelete: ReferentialAction.Restrict);
 02093                    table.ForeignKey(
 02094                        name: "FK_MovementStatusConformities_MovementType_TypeNextId",
 02095                        column: x => x.TypeNextId,
 02096                        principalTable: "MovementType",
 02097                        principalColumn: "Id",
 02098                        onDelete: ReferentialAction.Restrict);
 02099                });
 2100
 02101            migrationBuilder.CreateTable(
 02102                name: "Notifications",
 02103                columns: table => new
 02104                {
 02105                    Id = table.Column<long>(nullable: false)
 02106                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 02107                    RecStateId = table.Column<long>(nullable: true),
 02108                    CreationDateTime = table.Column<DateTime>(nullable: false),
 02109                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 02110                    CreatedByUserId = table.Column<long>(nullable: true),
 02111                    ModifiedByUserId = table.Column<long>(nullable: true),
 02112                    IsDeleted = table.Column<bool>(nullable: false),
 02113                    GUID = table.Column<Guid>(nullable: false),
 02114                    UserId = table.Column<long>(nullable: false),
 02115                    Subject = table.Column<string>(nullable: false),
 02116                    Body = table.Column<string>(nullable: false),
 02117                    NotificationsTypeId = table.Column<long>(nullable: false),
 02118                    TimeToTurnOff = table.Column<DateTime>(nullable: false)
 02119                },
 02120                constraints: table =>
 02121                {
 02122                    table.PrimaryKey("PK_Notifications", x => x.Id);
 02123                    table.ForeignKey(
 02124                        name: "FK_Notifications_Users_CreatedByUserId",
 02125                        column: x => x.CreatedByUserId,
 02126                        principalTable: "Users",
 02127                        principalColumn: "Id",
 02128                        onDelete: ReferentialAction.Restrict);
 02129                    table.ForeignKey(
 02130                        name: "FK_Notifications_Users_ModifiedByUserId",
 02131                        column: x => x.ModifiedByUserId,
 02132                        principalTable: "Users",
 02133                        principalColumn: "Id",
 02134                        onDelete: ReferentialAction.Restrict);
 02135                    table.ForeignKey(
 02136                        name: "FK_Notifications_NotificationsType_NotificationsTypeId",
 02137                        column: x => x.NotificationsTypeId,
 02138                        principalTable: "NotificationsType",
 02139                        principalColumn: "Id",
 02140                        onDelete: ReferentialAction.Cascade);
 02141                    table.ForeignKey(
 02142                        name: "FK_Notifications_RecordsState_RecStateId",
 02143                        column: x => x.RecStateId,
 02144                        principalTable: "RecordsState",
 02145                        principalColumn: "Id",
 02146                        onDelete: ReferentialAction.Restrict);
 02147                    table.ForeignKey(
 02148                        name: "FK_Notifications_Users_UserId",
 02149                        column: x => x.UserId,
 02150                        principalTable: "Users",
 02151                        principalColumn: "Id",
 02152                        onDelete: ReferentialAction.Cascade);
 02153                });
 2154
 02155            migrationBuilder.CreateTable(
 02156                name: "PromoBids",
 02157                columns: table => new
 02158                {
 02159                    Id = table.Column<long>(nullable: false)
 02160                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 02161                    RecStateId = table.Column<long>(nullable: true),
 02162                    CreationDateTime = table.Column<DateTime>(nullable: false),
 02163                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 02164                    CreatedByUserId = table.Column<long>(nullable: true),
 02165                    ModifiedByUserId = table.Column<long>(nullable: true),
 02166                    IsDeleted = table.Column<bool>(nullable: false),
 02167                    GUID = table.Column<Guid>(nullable: false),
 02168                    GoodId = table.Column<long>(nullable: false),
 02169                    Price = table.Column<decimal>(nullable: false),
 02170                    PromoOfferId = table.Column<long>(nullable: false),
 02171                    CustomerDepartmentId = table.Column<long>(nullable: false),
 02172                    Quantity = table.Column<decimal>(nullable: false),
 02173                    Sum = table.Column<decimal>(nullable: false),
 02174                    CreationDate = table.Column<DateTime>(nullable: false),
 02175                    DateEnd = table.Column<DateTime>(nullable: false)
 02176                },
 02177                constraints: table =>
 02178                {
 02179                    table.PrimaryKey("PK_PromoBids", x => x.Id);
 02180                    table.ForeignKey(
 02181                        name: "FK_PromoBids_Users_CreatedByUserId",
 02182                        column: x => x.CreatedByUserId,
 02183                        principalTable: "Users",
 02184                        principalColumn: "Id",
 02185                        onDelete: ReferentialAction.Restrict);
 02186                    table.ForeignKey(
 02187                        name: "FK_PromoBids_Departments_CustomerDepartmentId",
 02188                        column: x => x.CustomerDepartmentId,
 02189                        principalTable: "Departments",
 02190                        principalColumn: "Id",
 02191                        onDelete: ReferentialAction.Cascade);
 02192                    table.ForeignKey(
 02193                        name: "FK_PromoBids_Goods_GoodId",
 02194                        column: x => x.GoodId,
 02195                        principalTable: "Goods",
 02196                        principalColumn: "Id",
 02197                        onDelete: ReferentialAction.Cascade);
 02198                    table.ForeignKey(
 02199                        name: "FK_PromoBids_Users_ModifiedByUserId",
 02200                        column: x => x.ModifiedByUserId,
 02201                        principalTable: "Users",
 02202                        principalColumn: "Id",
 02203                        onDelete: ReferentialAction.Restrict);
 02204                    table.ForeignKey(
 02205                        name: "FK_PromoBids_PromoOffers_PromoOfferId",
 02206                        column: x => x.PromoOfferId,
 02207                        principalTable: "PromoOffers",
 02208                        principalColumn: "Id",
 02209                        onDelete: ReferentialAction.Cascade);
 02210                    table.ForeignKey(
 02211                        name: "FK_PromoBids_RecordsState_RecStateId",
 02212                        column: x => x.RecStateId,
 02213                        principalTable: "RecordsState",
 02214                        principalColumn: "Id",
 02215                        onDelete: ReferentialAction.Restrict);
 02216                });
 2217
 02218            migrationBuilder.CreateTable(
 02219                name: "MethodRole",
 02220                columns: table => new
 02221                {
 02222                    RoleId = table.Column<long>(nullable: false),
 02223                    MethodId = table.Column<long>(nullable: false),
 02224                    GUID = table.Column<Guid>(nullable: false),
 02225                    CreationDateTime = table.Column<DateTime>(nullable: false),
 02226                    CreatedByUserId = table.Column<long>(nullable: true)
 02227                },
 02228                constraints: table =>
 02229                {
 02230                    table.PrimaryKey("PK_MethodRole", x => new { x.RoleId, x.MethodId });
 02231                    table.ForeignKey(
 02232                        name: "FK_MethodRole_Methods_MethodId",
 02233                        column: x => x.MethodId,
 02234                        principalTable: "Methods",
 02235                        principalColumn: "Id",
 02236                        onDelete: ReferentialAction.Cascade);
 02237                    table.ForeignKey(
 02238                        name: "FK_MethodRole_Roles_RoleId",
 02239                        column: x => x.RoleId,
 02240                        principalTable: "Roles",
 02241                        principalColumn: "Id",
 02242                        onDelete: ReferentialAction.Cascade);
 02243                });
 2244
 02245            migrationBuilder.CreateTable(
 02246                name: "UserRole",
 02247                columns: table => new
 02248                {
 02249                    UserId = table.Column<long>(nullable: false),
 02250                    RoleId = table.Column<long>(nullable: false),
 02251                    GUID = table.Column<Guid>(nullable: false),
 02252                    CreationDateTime = table.Column<DateTime>(nullable: false),
 02253                    CreatedByUserId = table.Column<long>(nullable: true)
 02254                },
 02255                constraints: table =>
 02256                {
 02257                    table.PrimaryKey("PK_UserRole", x => new { x.UserId, x.RoleId });
 02258                    table.ForeignKey(
 02259                        name: "FK_UserRole_Roles_RoleId",
 02260                        column: x => x.RoleId,
 02261                        principalTable: "Roles",
 02262                        principalColumn: "Id",
 02263                        onDelete: ReferentialAction.Cascade);
 02264                    table.ForeignKey(
 02265                        name: "FK_UserRole_Users_UserId",
 02266                        column: x => x.UserId,
 02267                        principalTable: "Users",
 02268                        principalColumn: "Id",
 02269                        onDelete: ReferentialAction.Cascade);
 02270                });
 2271
 02272            migrationBuilder.CreateTable(
 02273                name: "UploadItems",
 02274                columns: table => new
 02275                {
 02276                    Id = table.Column<long>(nullable: false)
 02277                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 02278                    RecStateId = table.Column<long>(nullable: true),
 02279                    CreationDateTime = table.Column<DateTime>(nullable: false),
 02280                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 02281                    CreatedByUserId = table.Column<long>(nullable: true),
 02282                    ModifiedByUserId = table.Column<long>(nullable: true),
 02283                    IsDeleted = table.Column<bool>(nullable: false),
 02284                    GUID = table.Column<Guid>(nullable: false),
 02285                    UploadId = table.Column<long>(nullable: false),
 02286                    EntityName = table.Column<string>(nullable: false),
 02287                    EndityId = table.Column<long>(nullable: false)
 02288                },
 02289                constraints: table =>
 02290                {
 02291                    table.PrimaryKey("PK_UploadItems", x => x.Id);
 02292                    table.ForeignKey(
 02293                        name: "FK_UploadItems_Users_CreatedByUserId",
 02294                        column: x => x.CreatedByUserId,
 02295                        principalTable: "Users",
 02296                        principalColumn: "Id",
 02297                        onDelete: ReferentialAction.Restrict);
 02298                    table.ForeignKey(
 02299                        name: "FK_UploadItems_Users_ModifiedByUserId",
 02300                        column: x => x.ModifiedByUserId,
 02301                        principalTable: "Users",
 02302                        principalColumn: "Id",
 02303                        onDelete: ReferentialAction.Restrict);
 02304                    table.ForeignKey(
 02305                        name: "FK_UploadItems_RecordsState_RecStateId",
 02306                        column: x => x.RecStateId,
 02307                        principalTable: "RecordsState",
 02308                        principalColumn: "Id",
 02309                        onDelete: ReferentialAction.Restrict);
 02310                    table.ForeignKey(
 02311                        name: "FK_UploadItems_Uploads_UploadId",
 02312                        column: x => x.UploadId,
 02313                        principalTable: "Uploads",
 02314                        principalColumn: "Id",
 02315                        onDelete: ReferentialAction.Cascade);
 02316                });
 2317
 02318            migrationBuilder.CreateTable(
 02319                name: "WalletTransactions",
 02320                columns: table => new
 02321                {
 02322                    Id = table.Column<long>(nullable: false)
 02323                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 02324                    RecStateId = table.Column<long>(nullable: true),
 02325                    CreationDateTime = table.Column<DateTime>(nullable: false),
 02326                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 02327                    CreatedByUserId = table.Column<long>(nullable: true),
 02328                    ModifiedByUserId = table.Column<long>(nullable: true),
 02329                    IsDeleted = table.Column<bool>(nullable: false),
 02330                    GUID = table.Column<Guid>(nullable: false),
 02331                    MovementId = table.Column<long>(nullable: true),
 02332                    TransactionId = table.Column<string>(nullable: true),
 02333                    SmsId = table.Column<string>(nullable: true),
 02334                    Sum = table.Column<decimal>(nullable: false),
 02335                    StatusId = table.Column<long>(nullable: true)
 02336                },
 02337                constraints: table =>
 02338                {
 02339                    table.PrimaryKey("PK_WalletTransactions", x => x.Id);
 02340                    table.ForeignKey(
 02341                        name: "FK_WalletTransactions_Users_CreatedByUserId",
 02342                        column: x => x.CreatedByUserId,
 02343                        principalTable: "Users",
 02344                        principalColumn: "Id",
 02345                        onDelete: ReferentialAction.Restrict);
 02346                    table.ForeignKey(
 02347                        name: "FK_WalletTransactions_Users_ModifiedByUserId",
 02348                        column: x => x.ModifiedByUserId,
 02349                        principalTable: "Users",
 02350                        principalColumn: "Id",
 02351                        onDelete: ReferentialAction.Restrict);
 02352                    table.ForeignKey(
 02353                        name: "FK_WalletTransactions_Movements_MovementId",
 02354                        column: x => x.MovementId,
 02355                        principalTable: "Movements",
 02356                        principalColumn: "Id",
 02357                        onDelete: ReferentialAction.Restrict);
 02358                    table.ForeignKey(
 02359                        name: "FK_WalletTransactions_RecordsState_RecStateId",
 02360                        column: x => x.RecStateId,
 02361                        principalTable: "RecordsState",
 02362                        principalColumn: "Id",
 02363                        onDelete: ReferentialAction.Restrict);
 02364                    table.ForeignKey(
 02365                        name: "FK_WalletTransactions_WalletTransactionStatuses_StatusId",
 02366                        column: x => x.StatusId,
 02367                        principalTable: "WalletTransactionStatuses",
 02368                        principalColumn: "Id",
 02369                        onDelete: ReferentialAction.Restrict);
 02370                });
 2371
 02372            migrationBuilder.CreateTable(
 02373                name: "NotificationUsers",
 02374                columns: table => new
 02375                {
 02376                    Id = table.Column<long>(nullable: false)
 02377                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultCol
 02378                    RecStateId = table.Column<long>(nullable: true),
 02379                    CreationDateTime = table.Column<DateTime>(nullable: false),
 02380                    ModificationDateTime = table.Column<DateTime>(nullable: true),
 02381                    CreatedByUserId = table.Column<long>(nullable: true),
 02382                    ModifiedByUserId = table.Column<long>(nullable: true),
 02383                    IsDeleted = table.Column<bool>(nullable: false),
 02384                    GUID = table.Column<Guid>(nullable: false),
 02385                    NotificationId = table.Column<long>(nullable: false),
 02386                    UserId = table.Column<long>(nullable: true),
 02387                    NotificationsStatusId = table.Column<long>(nullable: true)
 02388                },
 02389                constraints: table =>
 02390                {
 02391                    table.PrimaryKey("PK_NotificationUsers", x => x.Id);
 02392                    table.ForeignKey(
 02393                        name: "FK_NotificationUsers_Users_CreatedByUserId",
 02394                        column: x => x.CreatedByUserId,
 02395                        principalTable: "Users",
 02396                        principalColumn: "Id",
 02397                        onDelete: ReferentialAction.Restrict);
 02398                    table.ForeignKey(
 02399                        name: "FK_NotificationUsers_Users_ModifiedByUserId",
 02400                        column: x => x.ModifiedByUserId,
 02401                        principalTable: "Users",
 02402                        principalColumn: "Id",
 02403                        onDelete: ReferentialAction.Restrict);
 02404                    table.ForeignKey(
 02405                        name: "FK_NotificationUsers_Notifications_NotificationId",
 02406                        column: x => x.NotificationId,
 02407                        principalTable: "Notifications",
 02408                        principalColumn: "Id",
 02409                        onDelete: ReferentialAction.Cascade);
 02410                    table.ForeignKey(
 02411                        name: "FK_NotificationUsers_NotificationsStatus_NotificationsStatusId",
 02412                        column: x => x.NotificationsStatusId,
 02413                        principalTable: "NotificationsStatus",
 02414                        principalColumn: "Id",
 02415                        onDelete: ReferentialAction.Restrict);
 02416                    table.ForeignKey(
 02417                        name: "FK_NotificationUsers_RecordsState_RecStateId",
 02418                        column: x => x.RecStateId,
 02419                        principalTable: "RecordsState",
 02420                        principalColumn: "Id",
 02421                        onDelete: ReferentialAction.Restrict);
 02422                    table.ForeignKey(
 02423                        name: "FK_NotificationUsers_Users_UserId",
 02424                        column: x => x.UserId,
 02425                        principalTable: "Users",
 02426                        principalColumn: "Id",
 02427                        onDelete: ReferentialAction.Restrict);
 02428                });
 2429
 02430            migrationBuilder.InsertData(
 02431                table: "Address",
 02432                columns: new[] { "Id", "Building", "City", "CreatedByUserId", "CreationDateTime", "District", "FullAddre
 02433                values: new object[] { 1L, "1", "Краснодар", null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKin
 2434
 02435            migrationBuilder.InsertData(
 02436                table: "ContragentsKind",
 02437                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted"
 02438                values: new object[,]
 02439                {
 02440                    { 1L, "Unknown", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(5097), "
 02441                    { 2L, "Retailer", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(5267), 
 02442                    { 3L, "Wholesaler", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(5298)
 02443                    { 4L, "Manufacturer", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(532
 02444                    { 5L, "Supplier", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(5346), 
 02445                    { 6L, "Platform", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(5372), 
 02446                });
 2447
 02448            migrationBuilder.InsertData(
 02449                table: "Countries",
 02450                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "GUID", "IsDeleted", "Modification
 02451                values: new object[,]
 02452                {
 02453                    { 172L, 643, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1104), new G
 02454                    { 171L, 638, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1081), new G
 02455                    { 170L, 807, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1057), new G
 02456                    { 169L, 630, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1033), new G
 02457                    { 168L, 620, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(999), new Gu
 02458                    { 164L, 600, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(782), new Gu
 02459                    { 166L, 612, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(828), new Gu
 02460                    { 165L, 604, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(805), new Gu
 02461                    { 173L, 646, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1128), new G
 02462                    { 163L, 598, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(759), new Gu
 02463                    { 162L, 336, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(735), new Gu
 02464                    { 167L, 616, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(851), new Gu
 02465                    { 174L, 642, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1151), new G
 02466                    { 178L, 682, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1248), new G
 02467                    { 176L, 674, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1198), new G
 02468                    { 177L, 678, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1223), new G
 02469                    { 161L, 591, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(712), new Gu
 02470                    { 179L, 748, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1271), new G
 02471                    { 180L, 654, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1295), new G
 02472                    { 181L, 580, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1318), new G
 02473                    { 182L, 652, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1341), new G
 02474                    { 183L, 663, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1365), new G
 02475                    { 184L, 686, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1388), new G
 02476                    { 185L, 670, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1414), new G
 02477                    { 186L, 659, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1437), new G
 02478                    { 187L, 662, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1500), new G
 02479                    { 188L, 666, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1528), new G
 02480                    { 175L, 882, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1174), new G
 02481                    { 159L, 585, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(664), new Gu
 02482                    { 155L, 136, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(572), new Gu
 02483                    { 157L, 796, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(619), new Gu
 02484                    { 129L, 484, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9853), new G
 02485                    { 130L, 583, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9876), new G
 02486                    { 131L, 508, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9939), new G
 02487                    { 132L, 498, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9963), new G
 02488                    { 133L, 492, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9986), new G
 02489                    { 134L, 496, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(9), new Guid
 02490                    { 135L, 500, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(32), new Gui
 02491                    { 136L, 104, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(55), new Gui
 02492                    { 137L, 516, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(81), new Gui
 02493                    { 138L, 520, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(105), new Gu
 02494                    { 139L, 524, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(128), new Gu
 02495                    { 140L, 562, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(151), new Gu
 02496                    { 141L, 566, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(174), new Gu
 02497                    { 158L, 586, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(641), new Gu
 02498                    { 142L, 528, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(197), new Gu
 02499                    { 144L, 570, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(243), new Gu
 02500                    { 145L, 554, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(268), new Gu
 02501                    { 146L, 540, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(291), new Gu
 02502                    { 147L, 578, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(314), new Gu
 02503                    { 148L, 784, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(337), new Gu
 02504                    { 149L, 512, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(425), new Gu
 02505                    { 150L, 74, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(454), new Gui
 02506                    { 151L, 833, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(477), new Gu
 02507                    { 152L, 574, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(500), new Gu
 02508                    { 153L, 162, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(526), new Gu
 02509                    { 154L, 334, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(549), new Gu
 02510                    { 189L, 688, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1551), new G
 02511                    { 156L, 184, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(594), new Gu
 02512                    { 143L, 558, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(221), new Gu
 02513                    { 190L, 690, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1573), new G
 02514                    { 194L, 703, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1669), new G
 02515                    { 192L, 534, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1620), new G
 02516                    { 225L, 238, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2472), new G
 02517                    { 226L, 250, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2496), new G
 02518                    { 227L, 254, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2519), new G
 02519                    { 228L, 258, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2543), new G
 02520                    { 229L, 260, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2566), new G
 02521                    { 230L, 191, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2589), new G
 02522                    { 231L, 140, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2612), new G
 02523                    { 232L, 148, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2635), new G
 02524                    { 233L, 499, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2660), new G
 02525                    { 234L, 203, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2684), new G
 02526                    { 235L, 152, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2707), new G
 02527                    { 236L, 756, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2732), new G
 02528                    { 237L, 752, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2755), new G
 02529                    { 224L, 246, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2409), new G
 02530                    { 238L, 744, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2778), new G
 02531                    { 240L, 218, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2825), new G
 02532                    { 241L, 226, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2851), new G
 02533                    { 242L, 248, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2875), new G
 02534                    { 243L, 222, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2933), new G
 02535                    { 244L, 232, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2959), new G
 02536                    { 245L, 233, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2982), new G
 02537                    { 246L, 231, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(3006), new G
 02538                    { 247L, 710, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(3030), new G
 02539                    { 248L, 239, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(3054), new G
 02540                    { 249L, 896, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(3079), new G
 02541                    { 250L, 728, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(3104), new G
 02542                    { 251L, 388, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(3128), new G
 02543                    { 252L, 392, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(3151), new G
 02544                    { 239L, 144, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2802), new G
 02545                    { 191L, 702, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1597), new G
 02546                    { 223L, 608, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2386), new G
 02547                    { 221L, 234, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2338), new G
 02548                    { 193L, 760, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1646), new G
 02549                    { 128L, 584, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9828), new G
 02550                    { 195L, 705, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1692), new G
 02551                    { 196L, 826, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1715), new G
 02552                    { 197L, 840, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1738), new G
 02553                    { 198L, 90, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1761), new Gu
 02554                    { 199L, 706, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1784), new G
 02555                    { 200L, 729, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1807), new G
 02556                    { 201L, 740, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1832), new G
 02557                    { 202L, 694, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1855), new G
 02558                    { 203L, 762, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1878), new G
 02559                    { 204L, 764, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1902), new G
 02560                    { 205L, 158, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1925), new G
 02561                    { 222L, 242, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2363), new G
 02562                    { 206L, 834, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1987), new G
 02563                    { 208L, 768, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2034), new G
 02564                    { 209L, 772, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2059), new G
 02565                    { 210L, 776, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2082), new G
 02566                    { 211L, 780, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2105), new G
 02567                    { 212L, 798, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2128), new G
 02568                    { 213L, 788, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2151), new G
 02569                    { 214L, 795, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2174), new G
 02570                    { 215L, 792, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2197), new G
 02571                    { 216L, 800, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2220), new G
 02572                    { 217L, 860, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2245), new G
 02573                    { 218L, 804, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2268), new G
 02574                    { 219L, 876, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2292), new G
 02575                    { 220L, 858, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2315), new G
 02576                    { 207L, 626, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2010), new G
 02577                    { 127L, 474, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9805), new G
 02578                    { 160L, 275, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(687), new Gu
 02579                    { 125L, 470, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9758), new G
 02580                    { 34L, 96, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7254), new Gui
 02581                    { 35L, 854, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7279), new Gu
 02582                    { 36L, 108, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7303), new Gu
 02583                    { 37L, 64, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7327), new Gui
 02584                    { 38L, 548, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7352), new Gu
 02585                    { 39L, 348, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7376), new Gu
 02586                    { 40L, 862, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7400), new Gu
 02587                    { 41L, 92, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7426), new Gui
 02588                    { 42L, 850, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7450), new Gu
 02589                    { 43L, 704, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7512), new Gu
 02590                    { 44L, 266, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7537), new Gu
 02591                    { 45L, 332, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7560), new Gu
 02592                    { 46L, 328, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7584), new Gu
 02593                    { 33L, 86, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7229), new Gui
 02594                    { 47L, 270, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7608), new Gu
 02595                    { 49L, 312, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7659), new Gu
 02596                    { 50L, 320, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7683), new Gu
 02597                    { 51L, 324, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7707), new Gu
 02598                    { 52L, 624, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7730), new Gu
 02599                    { 53L, 276, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7754), new Gu
 02600                    { 54L, 831, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7778), new Gu
 02601                    { 55L, 292, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7802), new Gu
 02602                    { 56L, 340, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7826), new Gu
 02603                    { 57L, 344, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7853), new Gu
 02604                    { 58L, 308, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7878), new Gu
 02605                    { 59L, 304, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7902), new Gu
 02606                    { 60L, 300, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7926), new Gu
 02607                    { 61L, 268, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7949), new Gu
 02608                    { 48L, 288, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7633), new Gu
 02609                    { 62L, 316, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8012), new Gu
 02610                    { 32L, 76, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7203), new Gui
 02611                    { 30L, 70, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7155), new Gui
 02612                    { 2L, 895, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(4618), new Gui
 02613                    { 3L, 36, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(5907), new Guid
 02614                    { 4L, 40, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(5958), new Guid
 02615                    { 5L, 31, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(5984), new Guid
 02616                    { 6L, 8, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6008), new Guid(
 02617                    { 7L, 12, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6186), new Guid
 02618                    { 8L, 16, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6220), new Guid
 02619                    { 9L, 660, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6437), new Gui
 02620                    { 10L, 24, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6464), new Gui
 02621                    { 11L, 20, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6491), new Gui
 02622                    { 12L, 10, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6515), new Gui
 02623                    { 13L, 28, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6540), new Gui
 02624                    { 14L, 32, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6564), new Gui
 02625                    { 31L, 72, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7178), new Gui
 02626                    { 15L, 51, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6589), new Gui
 02627                    { 17L, 4, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6642), new Guid
 02628                    { 18L, 44, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6668), new Gui
 02629                    { 19L, 50, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6694), new Gui
 02630                    { 20L, 52, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6719), new Gui
 02631                    { 21L, 48, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6743), new Gui
 02632                    { 22L, 112, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6767), new Gu
 02633                    { 23L, 84, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6791), new Gui
 02634                    { 24L, 56, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6946), new Gui
 02635                    { 25L, 204, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7014), new Gu
 02636                    { 26L, 60, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7041), new Gui
 02637                    { 27L, 100, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7065), new Gu
 02638                    { 126L, 504, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9782), new G
 02639                    { 29L, 535, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7131), new Gu
 02640                    { 16L, 533, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6613), new Gu
 02641                    { 63L, 208, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8036), new Gu
 02642                    { 28L, 68, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7107), new Gui
 02643                    { 65L, 262, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8087), new Gu
 02644                    { 98L, 180, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9083), new Gu
 02645                    { 99L, 408, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9106), new Gu
 02646                    { 100L, 410, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9129), new G
 02647                    { 101L, 188, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9152), new G
 02648                    { 102L, 384, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9175), new G
 02649                    { 103L, 192, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9197), new G
 02650                    { 104L, 414, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9220), new G
 02651                    { 105L, 531, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9245), new G
 02652                    { 106L, 418, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9268), new G
 02653                    { 107L, 428, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9291), new G
 02654                    { 108L, 426, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9314), new G
 02655                    { 109L, 422, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9337), new G
 02656                    { 110L, 434, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9360), new G
 02657                    { 111L, 430, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9385), new G
 02658                    { 112L, 438, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9408), new G
 02659                    { 113L, 440, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9434), new G
 02660                    { 114L, 442, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9457), new G
 02661                    { 115L, 480, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9480), new G
 02662                    { 116L, 478, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9544), new G
 02663                    { 117L, 450, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9570), new G
 02664                    { 118L, 175, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9593), new G
 02665                    { 119L, 446, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9616), new G
 02666                    { 120L, 454, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9639), new G
 02667                    { 121L, 458, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9666), new G
 02668                    { 122L, 466, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9689), new G
 02669                    { 123L, 581, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9712), new G
 02670                    { 124L, 462, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9735), new G
 02671                    { 96L, 174, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8997), new Gu
 02672                    { 95L, 170, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8974), new Gu
 02673                    { 97L, 178, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9058), new Gu
 02674                    { 78L, 372, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8568), new Gu
 02675                    { 66L, 212, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8111), new Gu
 02676                    { 67L, 214, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8137), new Gu
 02677                    { 68L, 818, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8160), new Gu
 02678                    { 69L, 894, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8186), new Gu
 02679                    { 70L, 732, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8209), new Gu
 02680                    { 71L, 716, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8233), new Gu
 02681                    { 72L, 376, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8256), new Gu
 02682                    { 73L, 356, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8282), new Gu
 02683                    { 74L, 360, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8306), new Gu
 02684                    { 75L, 400, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8330), new Gu
 02685                    { 76L, 368, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8486), new Gu
 02686                    { 77L, 364, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8511), new Gu
 02687                    { 94L, 166, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8950), new Gu
 02688                    { 79L, 352, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8595), new Gu
 02689                    { 64L, 832, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8061), new Gu
 02690                    { 81L, 380, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8644), new Gu
 02691                    { 93L, 156, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8926), new Gu
 02692                    { 92L, 296, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8903), new Gu
 02693                    { 91L, 417, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8880), new Gu
 02694                    { 80L, 724, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8618), new Gu
 02695                    { 89L, 404, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8833), new Gu
 02696                    { 88L, 634, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8808), new Gu
 02697                    { 90L, 196, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8856), new Gu
 02698                    { 86L, 120, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8761), new Gu
 02699                    { 85L, 116, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8737), new Gu
 02700                    { 84L, 398, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8714), new Gu
 02701                    { 83L, 132, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8691), new Gu
 02702                    { 82L, 887, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8668), new Gu
 02703                    { 87L, 124, null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8784), new Gu
 02704                });
 2705
 02706            migrationBuilder.InsertData(
 02707                table: "Currency",
 02708                columns: new[] { "Id", "CODE", "COUNTRY", "CreatedByUserId", "CreationDateTime", "GUID", "IsDeleted", "M
 02709                values: new object[] { 1L, "643", "Россия", null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind
 2710
 02711            migrationBuilder.InsertData(
 02712                table: "DepartmentsKind",
 02713                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted"
 02714                values: new object[,]
 02715                {
 02716                    { 1L, "Warehouse", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(3327),
 02717                    { 2L, "Shop", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(3500), "", 
 02718                    { 3L, "Plant", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(3532), "",
 02719                });
 2720
 02721            migrationBuilder.InsertData(
 02722                table: "DepartmentsStatus",
 02723                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted"
 02724                values: new object[,]
 02725                {
 02726                    { 3L, "Inactive", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(4325), 
 02727                    { 4L, "Paused", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(4497), ""
 02728                    { 2L, "Active", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(4285), ""
 02729                    { 1L, "New", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(4126), "", n
 02730                });
 2731
 02732            migrationBuilder.InsertData(
 02733                table: "EventsKind",
 02734                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted"
 02735                values: new object[,]
 02736                {
 02737                    { 1L, "Unknown", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(6301), "
 02738                    { 2L, "Create", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(6610), ""
 02739                    { 3L, "Update", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(6644), ""
 02740                    { 4L, "Delete", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(6669), ""
 02741                });
 2742
 02743            migrationBuilder.InsertData(
 02744                table: "IncidentsKind",
 02745                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted"
 02746                values: new object[,]
 02747                {
 02748                    { 1L, "Unknown", null, new DateTime(2020, 4, 5, 16, 25, 22, 988, DateTimeKind.Utc).AddTicks(7328), "
 02749                    { 2L, "Error", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(1549), "",
 02750                    { 3L, "Question", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(1661), 
 02751                    { 4L, "Suggestion", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(1687)
 02752                });
 2753
 02754            migrationBuilder.InsertData(
 02755                table: "IncidentsStatus",
 02756                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted"
 02757                values: new object[,]
 02758                {
 02759                    { 5L, "Closed", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(2690), ""
 02760                    { 4L, "Canceled", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(2665), 
 02761                    { 1L, "Open", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(2407), "", 
 02762                    { 2L, "InWork", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(2590), ""
 02763                    { 3L, "Resolved", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(2639), 
 02764                });
 2765
 02766            migrationBuilder.InsertData(
 02767                table: "MovementStatus",
 02768                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted"
 02769                values: new object[,]
 02770                {
 02771                    { 10L, "AssemblyWaiting", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks
 02772                    { 7L, "Edited", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9209), ""
 02773                    { 9L, "PaymentWaiting", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9
 02774                    { 8L, "Arbitrated", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9233)
 02775                    { 6L, "Refused", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9183), "
 02776                    { 1L, "Draft", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(8901), "",
 02777                    { 4L, "InWork", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9124), ""
 02778                    { 3L, "InProgress", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9100)
 02779                    { 2L, "PrepaymentWaiting", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTick
 02780                    { 5L, "Sent", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9149), "", 
 02781                });
 2782
 02783            migrationBuilder.InsertData(
 02784                table: "MovementType",
 02785                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted"
 02786                values: new object[,]
 02787                {
 02788                    { 3L, "Arrival", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(167), ""
 02789                    { 1L, "Order", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9987), "",
 02790                    { 2L, "Shipment", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(135), "
 02791                    { 4L, "Deny", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(197), "", n
 02792                });
 2793
 02794            migrationBuilder.InsertData(
 02795                table: "NotificationsStatus",
 02796                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted"
 02797                values: new object[,]
 02798                {
 02799                    { 5L, "Deactivated", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(7499
 02800                    { 3L, "Sent", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(7446), "", 
 02801                    { 4L, "Read", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(7470), "", 
 02802                    { 1L, "Unknown", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(7265), "
 02803                    { 2L, "Created", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(7415), "
 02804                });
 2805
 02806            migrationBuilder.InsertData(
 02807                table: "NotificationsType",
 02808                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted"
 02809                values: new object[,]
 02810                {
 02811                    { 1L, "System", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(8077), ""
 02812                    { 2L, "News", null, new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(8311), "", 
 02813                });
 2814
 02815            migrationBuilder.InsertData(
 02816                table: "RecordsState",
 02817                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted"
 02818                values: new object[,]
 02819                {
 02820                    { 1L, "Error", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(711), "", 
 02821                    { 2L, "Active", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(856), "",
 02822                    { 3L, "Inactive", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(945), "
 02823                    { 4L, "Deleted", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(974), ""
 02824                    { 5L, "Empty", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(1000), "",
 02825                });
 2826
 02827            migrationBuilder.InsertData(
 02828                table: "Roles",
 02829                columns: new[] { "Id", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted", "Modif
 02830                values: new object[,]
 02831                {
 02832                    { 7L, null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(5626), "Менеджер по
 02833                    { 8L, null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(5649), "Производите
 02834                    { 5L, null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(5510), "Продавец", 
 02835                    { 6L, null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(5600), "Дистрибьюто
 02836                    { 3L, null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(5462), "Владелец ма
 02837                    { 2L, null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(5414), "Оператор", 
 02838                    { 1L, null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(4319), "Администрат
 02839                    { 4L, null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(5487), "Товаровед",
 02840                });
 2841
 02842            migrationBuilder.InsertData(
 02843                table: "TaxSystems",
 02844                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted"
 02845                values: new object[,]
 02846                {
 02847                    { 1L, "УСН", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(8546), "Упро
 02848                    { 2L, "ЕНВД", null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(196), "Вмен
 02849                    { 3L, "ES", null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(256), "Единый
 02850                    { 4L, "ОСН", null, new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(282), "Станд
 02851                });
 2852
 02853            migrationBuilder.InsertData(
 02854                table: "UnitsKind",
 02855                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted"
 02856                values: new object[,]
 02857                {
 02858                    { 7L, "113", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(2465), "Куби
 02859                    { 1L, "1", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(1571), "", new
 02860                    { 2L, "166", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(2319), "Кило
 02861                    { 3L, "112", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(2366), "Литр
 02862                    { 4L, "6", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(2391), "Метр",
 02863                    { 5L, "796", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(2416), "Штук
 02864                    { 6L, "55", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(2442), "Квадр
 02865                });
 2866
 02867            migrationBuilder.InsertData(
 02868                table: "VatsKind",
 02869                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted"
 02870                values: new object[,]
 02871                {
 02872                    { 2L, "10", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(3698), "", ne
 02873                    { 3L, "20", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(3743), "", ne
 02874                    { 1L, "1", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(3037), "", new
 02875                });
 2876
 02877            migrationBuilder.InsertData(
 02878                table: "WalletTransactionStatuses",
 02879                columns: new[] { "Id", "Code", "CreatedByUserId", "CreationDateTime", "Description", "GUID", "IsDeleted"
 02880                values: new object[,]
 02881                {
 02882                    { 2L, "Hold", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(6886), "", 
 02883                    { 3L, "Confirm", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(7145), "
 02884                    { 1L, "WaitSms", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(6461), "
 02885                    { 4L, "Cancel", null, new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(7216), ""
 02886                });
 2887
 02888            migrationBuilder.InsertData(
 02889                table: "Users",
 02890                columns: new[] { "Id", "ContragentId", "CreatedByUserId", "CreationDateTime", "Email", "FirstName", "IsB
 02891                values: new object[,]
 02892                {
 02893                    { -1L, null, null, new DateTime(2020, 4, 5, 16, 25, 22, 994, DateTimeKind.Utc).AddTicks(2171), "Svet
 02894                    { -2L, null, null, new DateTime(2020, 4, 5, 16, 25, 22, 994, DateTimeKind.Utc).AddTicks(3895), "anon
 02895                });
 2896
 02897            migrationBuilder.InsertData(
 02898                table: "Contragents",
 02899                columns: new[] { "Id", "BankName", "Bik", "ChiefAccountant", "ContragentsKindId", "CreatedByUserId", "Cr
 02900                values: new object[] { 1L, null, null, "1", 1L, null, new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTime
 2901
 02902            migrationBuilder.CreateIndex(
 02903                name: "IX_Address_CreatedByUserId",
 02904                table: "Address",
 02905                column: "CreatedByUserId");
 2906
 02907            migrationBuilder.CreateIndex(
 02908                name: "IX_Address_ModifiedByUserId",
 02909                table: "Address",
 02910                column: "ModifiedByUserId");
 2911
 02912            migrationBuilder.CreateIndex(
 02913                name: "IX_Address_RecStateId",
 02914                table: "Address",
 02915                column: "RecStateId");
 2916
 02917            migrationBuilder.CreateIndex(
 02918                name: "IX_BankAccounts_ContragentId",
 02919                table: "BankAccounts",
 02920                column: "ContragentId");
 2921
 02922            migrationBuilder.CreateIndex(
 02923                name: "IX_BankAccounts_CreatedByUserId",
 02924                table: "BankAccounts",
 02925                column: "CreatedByUserId");
 2926
 02927            migrationBuilder.CreateIndex(
 02928                name: "IX_BankAccounts_ModifiedByUserId",
 02929                table: "BankAccounts",
 02930                column: "ModifiedByUserId");
 2931
 02932            migrationBuilder.CreateIndex(
 02933                name: "IX_BankAccounts_RecStateId",
 02934                table: "BankAccounts",
 02935                column: "RecStateId");
 2936
 02937            migrationBuilder.CreateIndex(
 02938                name: "IX_BankAccounts_Bik_SettlementAccount_IsDeleted",
 02939                table: "BankAccounts",
 02940                columns: new[] { "Bik", "SettlementAccount", "IsDeleted" },
 02941                unique: true);
 2942
 02943            migrationBuilder.CreateIndex(
 02944                name: "IX_BarCodes_Code",
 02945                table: "BarCodes",
 02946                column: "Code",
 02947                unique: true);
 2948
 02949            migrationBuilder.CreateIndex(
 02950                name: "IX_BarCodes_CreatedByUserId",
 02951                table: "BarCodes",
 02952                column: "CreatedByUserId");
 2953
 02954            migrationBuilder.CreateIndex(
 02955                name: "IX_BarCodes_GoodId",
 02956                table: "BarCodes",
 02957                column: "GoodId");
 2958
 02959            migrationBuilder.CreateIndex(
 02960                name: "IX_BarCodes_ModifiedByUserId",
 02961                table: "BarCodes",
 02962                column: "ModifiedByUserId");
 2963
 02964            migrationBuilder.CreateIndex(
 02965                name: "IX_BarCodes_RecStateId",
 02966                table: "BarCodes",
 02967                column: "RecStateId");
 2968
 02969            migrationBuilder.CreateIndex(
 02970                name: "IX_Brands_CreatedByUserId",
 02971                table: "Brands",
 02972                column: "CreatedByUserId");
 2973
 02974            migrationBuilder.CreateIndex(
 02975                name: "IX_Brands_ModifiedByUserId",
 02976                table: "Brands",
 02977                column: "ModifiedByUserId");
 2978
 02979            migrationBuilder.CreateIndex(
 02980                name: "IX_Brands_Name",
 02981                table: "Brands",
 02982                column: "Name",
 02983                unique: true);
 2984
 02985            migrationBuilder.CreateIndex(
 02986                name: "IX_Brands_ParentId",
 02987                table: "Brands",
 02988                column: "ParentId");
 2989
 02990            migrationBuilder.CreateIndex(
 02991                name: "IX_Brands_RecStateId",
 02992                table: "Brands",
 02993                column: "RecStateId");
 2994
 02995            migrationBuilder.CreateIndex(
 02996                name: "IX_Categories_Code",
 02997                table: "Categories",
 02998                column: "Code",
 02999                unique: true);
 3000
 03001            migrationBuilder.CreateIndex(
 03002                name: "IX_Categories_CreatedByUserId",
 03003                table: "Categories",
 03004                column: "CreatedByUserId");
 3005
 03006            migrationBuilder.CreateIndex(
 03007                name: "IX_Categories_ModifiedByUserId",
 03008                table: "Categories",
 03009                column: "ModifiedByUserId");
 3010
 03011            migrationBuilder.CreateIndex(
 03012                name: "IX_Categories_Name",
 03013                table: "Categories",
 03014                column: "Name",
 03015                unique: true);
 3016
 03017            migrationBuilder.CreateIndex(
 03018                name: "IX_Categories_ParentId",
 03019                table: "Categories",
 03020                column: "ParentId");
 3021
 03022            migrationBuilder.CreateIndex(
 03023                name: "IX_Categories_RecStateId",
 03024                table: "Categories",
 03025                column: "RecStateId");
 3026
 03027            migrationBuilder.CreateIndex(
 03028                name: "IX_Clusters_CreatedByUserId",
 03029                table: "Clusters",
 03030                column: "CreatedByUserId");
 3031
 03032            migrationBuilder.CreateIndex(
 03033                name: "IX_Clusters_ModifiedByUserId",
 03034                table: "Clusters",
 03035                column: "ModifiedByUserId");
 3036
 03037            migrationBuilder.CreateIndex(
 03038                name: "IX_Clusters_Name",
 03039                table: "Clusters",
 03040                column: "Name");
 3041
 03042            migrationBuilder.CreateIndex(
 03043                name: "IX_Clusters_RecStateId",
 03044                table: "Clusters",
 03045                column: "RecStateId");
 3046
 03047            migrationBuilder.CreateIndex(
 03048                name: "IX_Clusters_WarehouseId",
 03049                table: "Clusters",
 03050                column: "WarehouseId");
 3051
 03052            migrationBuilder.CreateIndex(
 03053                name: "IX_Contragents_ContragentsKindId",
 03054                table: "Contragents",
 03055                column: "ContragentsKindId");
 3056
 03057            migrationBuilder.CreateIndex(
 03058                name: "IX_Contragents_CreatedByUserId",
 03059                table: "Contragents",
 03060                column: "CreatedByUserId");
 3061
 03062            migrationBuilder.CreateIndex(
 03063                name: "IX_Contragents_FullName",
 03064                table: "Contragents",
 03065                column: "FullName",
 03066                unique: true);
 3067
 03068            migrationBuilder.CreateIndex(
 03069                name: "IX_Contragents_Inn",
 03070                table: "Contragents",
 03071                column: "Inn",
 03072                unique: true);
 3073
 03074            migrationBuilder.CreateIndex(
 03075                name: "IX_Contragents_JuridicAddressId",
 03076                table: "Contragents",
 03077                column: "JuridicAddressId");
 3078
 03079            migrationBuilder.CreateIndex(
 03080                name: "IX_Contragents_ModifiedByUserId",
 03081                table: "Contragents",
 03082                column: "ModifiedByUserId");
 3083
 03084            migrationBuilder.CreateIndex(
 03085                name: "IX_Contragents_OwnerId",
 03086                table: "Contragents",
 03087                column: "OwnerId");
 3088
 03089            migrationBuilder.CreateIndex(
 03090                name: "IX_Contragents_PhysicAddressId",
 03091                table: "Contragents",
 03092                column: "PhysicAddressId");
 3093
 03094            migrationBuilder.CreateIndex(
 03095                name: "IX_Contragents_RecStateId",
 03096                table: "Contragents",
 03097                column: "RecStateId");
 3098
 03099            migrationBuilder.CreateIndex(
 03100                name: "IX_Contragents_ShortName",
 03101                table: "Contragents",
 03102                column: "ShortName",
 03103                unique: true);
 3104
 03105            migrationBuilder.CreateIndex(
 03106                name: "IX_Contragents_TaxSystemId",
 03107                table: "Contragents",
 03108                column: "TaxSystemId");
 3109
 03110            migrationBuilder.CreateIndex(
 03111                name: "IX_ContragentsKind_CreatedByUserId",
 03112                table: "ContragentsKind",
 03113                column: "CreatedByUserId");
 3114
 03115            migrationBuilder.CreateIndex(
 03116                name: "IX_ContragentsKind_ModifiedByUserId",
 03117                table: "ContragentsKind",
 03118                column: "ModifiedByUserId");
 3119
 03120            migrationBuilder.CreateIndex(
 03121                name: "IX_ContragentsKind_RecStateId",
 03122                table: "ContragentsKind",
 03123                column: "RecStateId");
 3124
 03125            migrationBuilder.CreateIndex(
 03126                name: "IX_Countries_CreatedByUserId",
 03127                table: "Countries",
 03128                column: "CreatedByUserId");
 3129
 03130            migrationBuilder.CreateIndex(
 03131                name: "IX_Countries_ModifiedByUserId",
 03132                table: "Countries",
 03133                column: "ModifiedByUserId");
 3134
 03135            migrationBuilder.CreateIndex(
 03136                name: "IX_Countries_Name",
 03137                table: "Countries",
 03138                column: "Name",
 03139                unique: true);
 3140
 03141            migrationBuilder.CreateIndex(
 03142                name: "IX_Countries_RecStateId",
 03143                table: "Countries",
 03144                column: "RecStateId");
 3145
 03146            migrationBuilder.CreateIndex(
 03147                name: "IX_Currency_CODE",
 03148                table: "Currency",
 03149                column: "CODE",
 03150                unique: true);
 3151
 03152            migrationBuilder.CreateIndex(
 03153                name: "IX_Currency_CreatedByUserId",
 03154                table: "Currency",
 03155                column: "CreatedByUserId");
 3156
 03157            migrationBuilder.CreateIndex(
 03158                name: "IX_Currency_ModifiedByUserId",
 03159                table: "Currency",
 03160                column: "ModifiedByUserId");
 3161
 03162            migrationBuilder.CreateIndex(
 03163                name: "IX_Currency_NAME",
 03164                table: "Currency",
 03165                column: "NAME",
 03166                unique: true);
 3167
 03168            migrationBuilder.CreateIndex(
 03169                name: "IX_Currency_RecStateId",
 03170                table: "Currency",
 03171                column: "RecStateId");
 3172
 03173            migrationBuilder.CreateIndex(
 03174                name: "IX_Currency_STRCODE",
 03175                table: "Currency",
 03176                column: "STRCODE",
 03177                unique: true);
 3178
 03179            migrationBuilder.CreateIndex(
 03180                name: "IX_DepartmentCategoryRatio_CategoryId",
 03181                table: "DepartmentCategoryRatio",
 03182                column: "CategoryId");
 3183
 03184            migrationBuilder.CreateIndex(
 03185                name: "IX_DepartmentCategoryRatio_CreatedByUserId",
 03186                table: "DepartmentCategoryRatio",
 03187                column: "CreatedByUserId");
 3188
 03189            migrationBuilder.CreateIndex(
 03190                name: "IX_DepartmentCategoryRatio_ModifiedByUserId",
 03191                table: "DepartmentCategoryRatio",
 03192                column: "ModifiedByUserId");
 3193
 03194            migrationBuilder.CreateIndex(
 03195                name: "IX_DepartmentCategoryRatio_RecStateId",
 03196                table: "DepartmentCategoryRatio",
 03197                column: "RecStateId");
 3198
 03199            migrationBuilder.CreateIndex(
 03200                name: "IX_DepartmentCategoryRatio_DepartmentId_CategoryId_IsDeleted",
 03201                table: "DepartmentCategoryRatio",
 03202                columns: new[] { "DepartmentId", "CategoryId", "IsDeleted" },
 03203                unique: true);
 3204
 03205            migrationBuilder.CreateIndex(
 03206                name: "IX_DepartmentGoodSetting_CreatedByUserId",
 03207                table: "DepartmentGoodSetting",
 03208                column: "CreatedByUserId");
 3209
 03210            migrationBuilder.CreateIndex(
 03211                name: "IX_DepartmentGoodSetting_DepartmentId",
 03212                table: "DepartmentGoodSetting",
 03213                column: "DepartmentId");
 3214
 03215            migrationBuilder.CreateIndex(
 03216                name: "IX_DepartmentGoodSetting_GoodId",
 03217                table: "DepartmentGoodSetting",
 03218                column: "GoodId");
 3219
 03220            migrationBuilder.CreateIndex(
 03221                name: "IX_DepartmentGoodSetting_ModifiedByUserId",
 03222                table: "DepartmentGoodSetting",
 03223                column: "ModifiedByUserId");
 3224
 03225            migrationBuilder.CreateIndex(
 03226                name: "IX_DepartmentGoodSetting_RecStateId",
 03227                table: "DepartmentGoodSetting",
 03228                column: "RecStateId");
 3229
 03230            migrationBuilder.CreateIndex(
 03231                name: "IX_Departments_ActualAddressId",
 03232                table: "Departments",
 03233                column: "ActualAddressId");
 3234
 03235            migrationBuilder.CreateIndex(
 03236                name: "IX_Departments_ClusterId",
 03237                table: "Departments",
 03238                column: "ClusterId");
 3239
 03240            migrationBuilder.CreateIndex(
 03241                name: "IX_Departments_ContragentId",
 03242                table: "Departments",
 03243                column: "ContragentId");
 3244
 03245            migrationBuilder.CreateIndex(
 03246                name: "IX_Departments_CreatedByUserId",
 03247                table: "Departments",
 03248                column: "CreatedByUserId");
 3249
 03250            migrationBuilder.CreateIndex(
 03251                name: "IX_Departments_KindId",
 03252                table: "Departments",
 03253                column: "KindId");
 3254
 03255            migrationBuilder.CreateIndex(
 03256                name: "IX_Departments_ModifiedByUserId",
 03257                table: "Departments",
 03258                column: "ModifiedByUserId");
 3259
 03260            migrationBuilder.CreateIndex(
 03261                name: "IX_Departments_Name",
 03262                table: "Departments",
 03263                column: "Name",
 03264                unique: true);
 3265
 03266            migrationBuilder.CreateIndex(
 03267                name: "IX_Departments_PhoneNumber",
 03268                table: "Departments",
 03269                column: "PhoneNumber");
 3270
 03271            migrationBuilder.CreateIndex(
 03272                name: "IX_Departments_PostalAddressId",
 03273                table: "Departments",
 03274                column: "PostalAddressId");
 3275
 03276            migrationBuilder.CreateIndex(
 03277                name: "IX_Departments_RecStateId",
 03278                table: "Departments",
 03279                column: "RecStateId");
 3280
 03281            migrationBuilder.CreateIndex(
 03282                name: "IX_Departments_StatusId",
 03283                table: "Departments",
 03284                column: "StatusId");
 3285
 03286            migrationBuilder.CreateIndex(
 03287                name: "IX_DepartmentsKind_CreatedByUserId",
 03288                table: "DepartmentsKind",
 03289                column: "CreatedByUserId");
 3290
 03291            migrationBuilder.CreateIndex(
 03292                name: "IX_DepartmentsKind_ModifiedByUserId",
 03293                table: "DepartmentsKind",
 03294                column: "ModifiedByUserId");
 3295
 03296            migrationBuilder.CreateIndex(
 03297                name: "IX_DepartmentsKind_RecStateId",
 03298                table: "DepartmentsKind",
 03299                column: "RecStateId");
 3300
 03301            migrationBuilder.CreateIndex(
 03302                name: "IX_DepartmentsStatus_CreatedByUserId",
 03303                table: "DepartmentsStatus",
 03304                column: "CreatedByUserId");
 3305
 03306            migrationBuilder.CreateIndex(
 03307                name: "IX_DepartmentsStatus_ModifiedByUserId",
 03308                table: "DepartmentsStatus",
 03309                column: "ModifiedByUserId");
 3310
 03311            migrationBuilder.CreateIndex(
 03312                name: "IX_DepartmentsStatus_RecStateId",
 03313                table: "DepartmentsStatus",
 03314                column: "RecStateId");
 3315
 03316            migrationBuilder.CreateIndex(
 03317                name: "IX_Events_CreatedByUserId",
 03318                table: "Events",
 03319                column: "CreatedByUserId");
 3320
 03321            migrationBuilder.CreateIndex(
 03322                name: "IX_Events_Entity",
 03323                table: "Events",
 03324                column: "Entity");
 3325
 03326            migrationBuilder.CreateIndex(
 03327                name: "IX_Events_EventsKindId",
 03328                table: "Events",
 03329                column: "EventsKindId");
 3330
 03331            migrationBuilder.CreateIndex(
 03332                name: "IX_Events_ModifiedByUserId",
 03333                table: "Events",
 03334                column: "ModifiedByUserId");
 3335
 03336            migrationBuilder.CreateIndex(
 03337                name: "IX_Events_ReasonJson",
 03338                table: "Events",
 03339                column: "ReasonJson");
 3340
 03341            migrationBuilder.CreateIndex(
 03342                name: "IX_Events_RecStateId",
 03343                table: "Events",
 03344                column: "RecStateId");
 3345
 03346            migrationBuilder.CreateIndex(
 03347                name: "IX_Events_UserId",
 03348                table: "Events",
 03349                column: "UserId");
 3350
 03351            migrationBuilder.CreateIndex(
 03352                name: "IX_EventsKind_CreatedByUserId",
 03353                table: "EventsKind",
 03354                column: "CreatedByUserId");
 3355
 03356            migrationBuilder.CreateIndex(
 03357                name: "IX_EventsKind_ModifiedByUserId",
 03358                table: "EventsKind",
 03359                column: "ModifiedByUserId");
 3360
 03361            migrationBuilder.CreateIndex(
 03362                name: "IX_EventsKind_RecStateId",
 03363                table: "EventsKind",
 03364                column: "RecStateId");
 3365
 03366            migrationBuilder.CreateIndex(
 03367                name: "IX_Goods_BrandId",
 03368                table: "Goods",
 03369                column: "BrandId");
 3370
 03371            migrationBuilder.CreateIndex(
 03372                name: "IX_Goods_CategoryId",
 03373                table: "Goods",
 03374                column: "CategoryId");
 3375
 03376            migrationBuilder.CreateIndex(
 03377                name: "IX_Goods_CountryId",
 03378                table: "Goods",
 03379                column: "CountryId");
 3380
 03381            migrationBuilder.CreateIndex(
 03382                name: "IX_Goods_CreatedByUserId",
 03383                table: "Goods",
 03384                column: "CreatedByUserId");
 3385
 03386            migrationBuilder.CreateIndex(
 03387                name: "IX_Goods_MainBarcodeId",
 03388                table: "Goods",
 03389                column: "MainBarcodeId");
 3390
 03391            migrationBuilder.CreateIndex(
 03392                name: "IX_Goods_ManufacturerId",
 03393                table: "Goods",
 03394                column: "ManufacturerId");
 3395
 03396            migrationBuilder.CreateIndex(
 03397                name: "IX_Goods_ModifiedByUserId",
 03398                table: "Goods",
 03399                column: "ModifiedByUserId");
 3400
 03401            migrationBuilder.CreateIndex(
 03402                name: "IX_Goods_Name",
 03403                table: "Goods",
 03404                column: "Name");
 3405
 03406            migrationBuilder.CreateIndex(
 03407                name: "IX_Goods_RecStateId",
 03408                table: "Goods",
 03409                column: "RecStateId");
 3410
 03411            migrationBuilder.CreateIndex(
 03412                name: "IX_Goods_SubBrandId",
 03413                table: "Goods",
 03414                column: "SubBrandId");
 3415
 03416            migrationBuilder.CreateIndex(
 03417                name: "IX_Goods_SupplierId",
 03418                table: "Goods",
 03419                column: "SupplierId");
 3420
 03421            migrationBuilder.CreateIndex(
 03422                name: "IX_Goods_UnitsKindId",
 03423                table: "Goods",
 03424                column: "UnitsKindId");
 3425
 03426            migrationBuilder.CreateIndex(
 03427                name: "IX_Goods_VatsKindId",
 03428                table: "Goods",
 03429                column: "VatsKindId");
 3430
 03431            migrationBuilder.CreateIndex(
 03432                name: "IX_Incidents_CreatedByUserId",
 03433                table: "Incidents",
 03434                column: "CreatedByUserId");
 3435
 03436            migrationBuilder.CreateIndex(
 03437                name: "IX_Incidents_KindId",
 03438                table: "Incidents",
 03439                column: "KindId");
 3440
 03441            migrationBuilder.CreateIndex(
 03442                name: "IX_Incidents_ModifiedByUserId",
 03443                table: "Incidents",
 03444                column: "ModifiedByUserId");
 3445
 03446            migrationBuilder.CreateIndex(
 03447                name: "IX_Incidents_RecStateId",
 03448                table: "Incidents",
 03449                column: "RecStateId");
 3450
 03451            migrationBuilder.CreateIndex(
 03452                name: "IX_Incidents_StatusId",
 03453                table: "Incidents",
 03454                column: "StatusId");
 3455
 03456            migrationBuilder.CreateIndex(
 03457                name: "IX_Incidents_UserId",
 03458                table: "Incidents",
 03459                column: "UserId");
 3460
 03461            migrationBuilder.CreateIndex(
 03462                name: "IX_IncidentsKind_CreatedByUserId",
 03463                table: "IncidentsKind",
 03464                column: "CreatedByUserId");
 3465
 03466            migrationBuilder.CreateIndex(
 03467                name: "IX_IncidentsKind_ModifiedByUserId",
 03468                table: "IncidentsKind",
 03469                column: "ModifiedByUserId");
 3470
 03471            migrationBuilder.CreateIndex(
 03472                name: "IX_IncidentsKind_RecStateId",
 03473                table: "IncidentsKind",
 03474                column: "RecStateId");
 3475
 03476            migrationBuilder.CreateIndex(
 03477                name: "IX_IncidentsStatus_CreatedByUserId",
 03478                table: "IncidentsStatus",
 03479                column: "CreatedByUserId");
 3480
 03481            migrationBuilder.CreateIndex(
 03482                name: "IX_IncidentsStatus_ModifiedByUserId",
 03483                table: "IncidentsStatus",
 03484                column: "ModifiedByUserId");
 3485
 03486            migrationBuilder.CreateIndex(
 03487                name: "IX_IncidentsStatus_RecStateId",
 03488                table: "IncidentsStatus",
 03489                column: "RecStateId");
 3490
 03491            migrationBuilder.CreateIndex(
 03492                name: "IX_MethodRole_MethodId",
 03493                table: "MethodRole",
 03494                column: "MethodId");
 3495
 03496            migrationBuilder.CreateIndex(
 03497                name: "IX_Methods_CreatedByUserId",
 03498                table: "Methods",
 03499                column: "CreatedByUserId");
 3500
 03501            migrationBuilder.CreateIndex(
 03502                name: "IX_Methods_ModifiedByUserId",
 03503                table: "Methods",
 03504                column: "ModifiedByUserId");
 3505
 03506            migrationBuilder.CreateIndex(
 03507                name: "IX_Methods_RecStateId",
 03508                table: "Methods",
 03509                column: "RecStateId");
 3510
 03511            migrationBuilder.CreateIndex(
 03512                name: "IX_MovementItems_CreatedByUserId",
 03513                table: "MovementItems",
 03514                column: "CreatedByUserId");
 3515
 03516            migrationBuilder.CreateIndex(
 03517                name: "IX_MovementItems_GoodId",
 03518                table: "MovementItems",
 03519                column: "GoodId");
 3520
 03521            migrationBuilder.CreateIndex(
 03522                name: "IX_MovementItems_ModifiedByUserId",
 03523                table: "MovementItems",
 03524                column: "ModifiedByUserId");
 3525
 03526            migrationBuilder.CreateIndex(
 03527                name: "IX_MovementItems_MovementId",
 03528                table: "MovementItems",
 03529                column: "MovementId");
 3530
 03531            migrationBuilder.CreateIndex(
 03532                name: "IX_MovementItems_RecStateId",
 03533                table: "MovementItems",
 03534                column: "RecStateId");
 3535
 03536            migrationBuilder.CreateIndex(
 03537                name: "IX_MovementNotes_CreatedByUserId",
 03538                table: "MovementNotes",
 03539                column: "CreatedByUserId");
 3540
 03541            migrationBuilder.CreateIndex(
 03542                name: "IX_MovementNotes_ModifiedByUserId",
 03543                table: "MovementNotes",
 03544                column: "ModifiedByUserId");
 3545
 03546            migrationBuilder.CreateIndex(
 03547                name: "IX_MovementNotes_MovementId",
 03548                table: "MovementNotes",
 03549                column: "MovementId");
 3550
 03551            migrationBuilder.CreateIndex(
 03552                name: "IX_MovementNotes_RecStateId",
 03553                table: "MovementNotes",
 03554                column: "RecStateId");
 3555
 03556            migrationBuilder.CreateIndex(
 03557                name: "IX_Movements_CreatedByUserId",
 03558                table: "Movements",
 03559                column: "CreatedByUserId");
 3560
 03561            migrationBuilder.CreateIndex(
 03562                name: "IX_Movements_CustomerId",
 03563                table: "Movements",
 03564                column: "CustomerId");
 3565
 03566            migrationBuilder.CreateIndex(
 03567                name: "IX_Movements_ModifiedByUserId",
 03568                table: "Movements",
 03569                column: "ModifiedByUserId");
 3570
 03571            migrationBuilder.CreateIndex(
 03572                name: "IX_Movements_MovementStatusId",
 03573                table: "Movements",
 03574                column: "MovementStatusId");
 3575
 03576            migrationBuilder.CreateIndex(
 03577                name: "IX_Movements_MovementTypeId",
 03578                table: "Movements",
 03579                column: "MovementTypeId");
 3580
 03581            migrationBuilder.CreateIndex(
 03582                name: "IX_Movements_ParentId",
 03583                table: "Movements",
 03584                column: "ParentId");
 3585
 03586            migrationBuilder.CreateIndex(
 03587                name: "IX_Movements_RecStateId",
 03588                table: "Movements",
 03589                column: "RecStateId");
 3590
 03591            migrationBuilder.CreateIndex(
 03592                name: "IX_Movements_ReceiverId",
 03593                table: "Movements",
 03594                column: "ReceiverId");
 3595
 03596            migrationBuilder.CreateIndex(
 03597                name: "IX_Movements_SenderId",
 03598                table: "Movements",
 03599                column: "SenderId");
 3600
 03601            migrationBuilder.CreateIndex(
 03602                name: "IX_Movements_SupplierId",
 03603                table: "Movements",
 03604                column: "SupplierId");
 3605
 03606            migrationBuilder.CreateIndex(
 03607                name: "IX_MovementStatus_CreatedByUserId",
 03608                table: "MovementStatus",
 03609                column: "CreatedByUserId");
 3610
 03611            migrationBuilder.CreateIndex(
 03612                name: "IX_MovementStatus_ModifiedByUserId",
 03613                table: "MovementStatus",
 03614                column: "ModifiedByUserId");
 3615
 03616            migrationBuilder.CreateIndex(
 03617                name: "IX_MovementStatus_RecStateId",
 03618                table: "MovementStatus",
 03619                column: "RecStateId");
 3620
 03621            migrationBuilder.CreateIndex(
 03622                name: "IX_MovementStatusConformities_CreatedByUserId",
 03623                table: "MovementStatusConformities",
 03624                column: "CreatedByUserId");
 3625
 03626            migrationBuilder.CreateIndex(
 03627                name: "IX_MovementStatusConformities_ModifiedByUserId",
 03628                table: "MovementStatusConformities",
 03629                column: "ModifiedByUserId");
 3630
 03631            migrationBuilder.CreateIndex(
 03632                name: "IX_MovementStatusConformities_RecStateId",
 03633                table: "MovementStatusConformities",
 03634                column: "RecStateId");
 3635
 03636            migrationBuilder.CreateIndex(
 03637                name: "IX_MovementStatusConformities_StatusCurrentId",
 03638                table: "MovementStatusConformities",
 03639                column: "StatusCurrentId");
 3640
 03641            migrationBuilder.CreateIndex(
 03642                name: "IX_MovementStatusConformities_StatusNextId",
 03643                table: "MovementStatusConformities",
 03644                column: "StatusNextId");
 3645
 03646            migrationBuilder.CreateIndex(
 03647                name: "IX_MovementStatusConformities_TypeCurrentId",
 03648                table: "MovementStatusConformities",
 03649                column: "TypeCurrentId");
 3650
 03651            migrationBuilder.CreateIndex(
 03652                name: "IX_MovementStatusConformities_TypeNextId",
 03653                table: "MovementStatusConformities",
 03654                column: "TypeNextId");
 3655
 03656            migrationBuilder.CreateIndex(
 03657                name: "IX_MovementStatusJournals_CreatedByUserId",
 03658                table: "MovementStatusJournals",
 03659                column: "CreatedByUserId");
 3660
 03661            migrationBuilder.CreateIndex(
 03662                name: "IX_MovementStatusJournals_ModifiedByUserId",
 03663                table: "MovementStatusJournals",
 03664                column: "ModifiedByUserId");
 3665
 03666            migrationBuilder.CreateIndex(
 03667                name: "IX_MovementStatusJournals_MovementId",
 03668                table: "MovementStatusJournals",
 03669                column: "MovementId");
 3670
 03671            migrationBuilder.CreateIndex(
 03672                name: "IX_MovementStatusJournals_RecStateId",
 03673                table: "MovementStatusJournals",
 03674                column: "RecStateId");
 3675
 03676            migrationBuilder.CreateIndex(
 03677                name: "IX_MovementStatusJournals_StatusCurrentId",
 03678                table: "MovementStatusJournals",
 03679                column: "StatusCurrentId");
 3680
 03681            migrationBuilder.CreateIndex(
 03682                name: "IX_MovementType_CreatedByUserId",
 03683                table: "MovementType",
 03684                column: "CreatedByUserId");
 3685
 03686            migrationBuilder.CreateIndex(
 03687                name: "IX_MovementType_ModifiedByUserId",
 03688                table: "MovementType",
 03689                column: "ModifiedByUserId");
 3690
 03691            migrationBuilder.CreateIndex(
 03692                name: "IX_MovementType_RecStateId",
 03693                table: "MovementType",
 03694                column: "RecStateId");
 3695
 03696            migrationBuilder.CreateIndex(
 03697                name: "IX_Notifications_CreatedByUserId",
 03698                table: "Notifications",
 03699                column: "CreatedByUserId");
 3700
 03701            migrationBuilder.CreateIndex(
 03702                name: "IX_Notifications_ModifiedByUserId",
 03703                table: "Notifications",
 03704                column: "ModifiedByUserId");
 3705
 03706            migrationBuilder.CreateIndex(
 03707                name: "IX_Notifications_NotificationsTypeId",
 03708                table: "Notifications",
 03709                column: "NotificationsTypeId");
 3710
 03711            migrationBuilder.CreateIndex(
 03712                name: "IX_Notifications_RecStateId",
 03713                table: "Notifications",
 03714                column: "RecStateId");
 3715
 03716            migrationBuilder.CreateIndex(
 03717                name: "IX_Notifications_UserId",
 03718                table: "Notifications",
 03719                column: "UserId");
 3720
 03721            migrationBuilder.CreateIndex(
 03722                name: "IX_NotificationsStatus_CreatedByUserId",
 03723                table: "NotificationsStatus",
 03724                column: "CreatedByUserId");
 3725
 03726            migrationBuilder.CreateIndex(
 03727                name: "IX_NotificationsStatus_ModifiedByUserId",
 03728                table: "NotificationsStatus",
 03729                column: "ModifiedByUserId");
 3730
 03731            migrationBuilder.CreateIndex(
 03732                name: "IX_NotificationsStatus_RecStateId",
 03733                table: "NotificationsStatus",
 03734                column: "RecStateId");
 3735
 03736            migrationBuilder.CreateIndex(
 03737                name: "IX_NotificationsType_CreatedByUserId",
 03738                table: "NotificationsType",
 03739                column: "CreatedByUserId");
 3740
 03741            migrationBuilder.CreateIndex(
 03742                name: "IX_NotificationsType_ModifiedByUserId",
 03743                table: "NotificationsType",
 03744                column: "ModifiedByUserId");
 3745
 03746            migrationBuilder.CreateIndex(
 03747                name: "IX_NotificationsType_RecStateId",
 03748                table: "NotificationsType",
 03749                column: "RecStateId");
 3750
 03751            migrationBuilder.CreateIndex(
 03752                name: "IX_NotificationUsers_CreatedByUserId",
 03753                table: "NotificationUsers",
 03754                column: "CreatedByUserId");
 3755
 03756            migrationBuilder.CreateIndex(
 03757                name: "IX_NotificationUsers_ModifiedByUserId",
 03758                table: "NotificationUsers",
 03759                column: "ModifiedByUserId");
 3760
 03761            migrationBuilder.CreateIndex(
 03762                name: "IX_NotificationUsers_NotificationId",
 03763                table: "NotificationUsers",
 03764                column: "NotificationId");
 3765
 03766            migrationBuilder.CreateIndex(
 03767                name: "IX_NotificationUsers_NotificationsStatusId",
 03768                table: "NotificationUsers",
 03769                column: "NotificationsStatusId");
 3770
 03771            migrationBuilder.CreateIndex(
 03772                name: "IX_NotificationUsers_RecStateId",
 03773                table: "NotificationUsers",
 03774                column: "RecStateId");
 3775
 03776            migrationBuilder.CreateIndex(
 03777                name: "IX_NotificationUsers_UserId",
 03778                table: "NotificationUsers",
 03779                column: "UserId");
 3780
 03781            migrationBuilder.CreateIndex(
 03782                name: "IX_Photos_CreatedByUserId",
 03783                table: "Photos",
 03784                column: "CreatedByUserId");
 3785
 03786            migrationBuilder.CreateIndex(
 03787                name: "IX_Photos_GoodId",
 03788                table: "Photos",
 03789                column: "GoodId");
 3790
 03791            migrationBuilder.CreateIndex(
 03792                name: "IX_Photos_ModifiedByUserId",
 03793                table: "Photos",
 03794                column: "ModifiedByUserId");
 3795
 03796            migrationBuilder.CreateIndex(
 03797                name: "IX_Photos_RecStateId",
 03798                table: "Photos",
 03799                column: "RecStateId");
 3800
 03801            migrationBuilder.CreateIndex(
 03802                name: "IX_PricesCurrent_CreatedByUserId",
 03803                table: "PricesCurrent",
 03804                column: "CreatedByUserId");
 3805
 03806            migrationBuilder.CreateIndex(
 03807                name: "IX_PricesCurrent_GoodId",
 03808                table: "PricesCurrent",
 03809                column: "GoodId");
 3810
 03811            migrationBuilder.CreateIndex(
 03812                name: "IX_PricesCurrent_ModifiedByUserId",
 03813                table: "PricesCurrent",
 03814                column: "ModifiedByUserId");
 3815
 03816            migrationBuilder.CreateIndex(
 03817                name: "IX_PricesCurrent_RecStateId",
 03818                table: "PricesCurrent",
 03819                column: "RecStateId");
 3820
 03821            migrationBuilder.CreateIndex(
 03822                name: "IX_PricesCurrent_SupplierDepartmentId",
 03823                table: "PricesCurrent",
 03824                column: "SupplierDepartmentId");
 3825
 03826            migrationBuilder.CreateIndex(
 03827                name: "IX_PricesTrend_CreatedByUserId",
 03828                table: "PricesTrend",
 03829                column: "CreatedByUserId");
 3830
 03831            migrationBuilder.CreateIndex(
 03832                name: "IX_PricesTrend_GoodId",
 03833                table: "PricesTrend",
 03834                column: "GoodId");
 3835
 03836            migrationBuilder.CreateIndex(
 03837                name: "IX_PricesTrend_ModifiedByUserId",
 03838                table: "PricesTrend",
 03839                column: "ModifiedByUserId");
 3840
 03841            migrationBuilder.CreateIndex(
 03842                name: "IX_PricesTrend_RecStateId",
 03843                table: "PricesTrend",
 03844                column: "RecStateId");
 3845
 03846            migrationBuilder.CreateIndex(
 03847                name: "IX_PricesTrend_SupplierDepartmentId",
 03848                table: "PricesTrend",
 03849                column: "SupplierDepartmentId");
 3850
 03851            migrationBuilder.CreateIndex(
 03852                name: "IX_PromoBids_CreatedByUserId",
 03853                table: "PromoBids",
 03854                column: "CreatedByUserId");
 3855
 03856            migrationBuilder.CreateIndex(
 03857                name: "IX_PromoBids_CustomerDepartmentId",
 03858                table: "PromoBids",
 03859                column: "CustomerDepartmentId");
 3860
 03861            migrationBuilder.CreateIndex(
 03862                name: "IX_PromoBids_GoodId",
 03863                table: "PromoBids",
 03864                column: "GoodId");
 3865
 03866            migrationBuilder.CreateIndex(
 03867                name: "IX_PromoBids_ModifiedByUserId",
 03868                table: "PromoBids",
 03869                column: "ModifiedByUserId");
 3870
 03871            migrationBuilder.CreateIndex(
 03872                name: "IX_PromoBids_PromoOfferId",
 03873                table: "PromoBids",
 03874                column: "PromoOfferId");
 3875
 03876            migrationBuilder.CreateIndex(
 03877                name: "IX_PromoBids_RecStateId",
 03878                table: "PromoBids",
 03879                column: "RecStateId");
 3880
 03881            migrationBuilder.CreateIndex(
 03882                name: "IX_PromoOffers_CreatedByUserId",
 03883                table: "PromoOffers",
 03884                column: "CreatedByUserId");
 3885
 03886            migrationBuilder.CreateIndex(
 03887                name: "IX_PromoOffers_GoodId",
 03888                table: "PromoOffers",
 03889                column: "GoodId");
 3890
 03891            migrationBuilder.CreateIndex(
 03892                name: "IX_PromoOffers_ModifiedByUserId",
 03893                table: "PromoOffers",
 03894                column: "ModifiedByUserId");
 3895
 03896            migrationBuilder.CreateIndex(
 03897                name: "IX_PromoOffers_RecStateId",
 03898                table: "PromoOffers",
 03899                column: "RecStateId");
 3900
 03901            migrationBuilder.CreateIndex(
 03902                name: "IX_PromoOffers_SupplierDepartmentId",
 03903                table: "PromoOffers",
 03904                column: "SupplierDepartmentId");
 3905
 03906            migrationBuilder.CreateIndex(
 03907                name: "IX_RecordsState_CreatedByUserId",
 03908                table: "RecordsState",
 03909                column: "CreatedByUserId");
 3910
 03911            migrationBuilder.CreateIndex(
 03912                name: "IX_RecordsState_ModifiedByUserId",
 03913                table: "RecordsState",
 03914                column: "ModifiedByUserId");
 3915
 03916            migrationBuilder.CreateIndex(
 03917                name: "IX_RecordsState_RecStateId",
 03918                table: "RecordsState",
 03919                column: "RecStateId");
 3920
 03921            migrationBuilder.CreateIndex(
 03922                name: "IX_Rests_CreatedByUserId",
 03923                table: "Rests",
 03924                column: "CreatedByUserId");
 3925
 03926            migrationBuilder.CreateIndex(
 03927                name: "IX_Rests_DepartmentId",
 03928                table: "Rests",
 03929                column: "DepartmentId");
 3930
 03931            migrationBuilder.CreateIndex(
 03932                name: "IX_Rests_GoodId",
 03933                table: "Rests",
 03934                column: "GoodId");
 3935
 03936            migrationBuilder.CreateIndex(
 03937                name: "IX_Rests_ModifiedByUserId",
 03938                table: "Rests",
 03939                column: "ModifiedByUserId");
 3940
 03941            migrationBuilder.CreateIndex(
 03942                name: "IX_Rests_RecStateId",
 03943                table: "Rests",
 03944                column: "RecStateId");
 3945
 03946            migrationBuilder.CreateIndex(
 03947                name: "IX_Roles_CreatedByUserId",
 03948                table: "Roles",
 03949                column: "CreatedByUserId");
 3950
 03951            migrationBuilder.CreateIndex(
 03952                name: "IX_Roles_ModifiedByUserId",
 03953                table: "Roles",
 03954                column: "ModifiedByUserId");
 3955
 03956            migrationBuilder.CreateIndex(
 03957                name: "IX_Roles_RecStateId",
 03958                table: "Roles",
 03959                column: "RecStateId");
 3960
 03961            migrationBuilder.CreateIndex(
 03962                name: "IX_SupplyContract_BuyerId",
 03963                table: "SupplyContract",
 03964                column: "BuyerId");
 3965
 03966            migrationBuilder.CreateIndex(
 03967                name: "IX_SupplyContract_CreatedByUserId",
 03968                table: "SupplyContract",
 03969                column: "CreatedByUserId");
 3970
 03971            migrationBuilder.CreateIndex(
 03972                name: "IX_SupplyContract_DocumentNumber",
 03973                table: "SupplyContract",
 03974                column: "DocumentNumber");
 3975
 03976            migrationBuilder.CreateIndex(
 03977                name: "IX_SupplyContract_ModifiedByUserId",
 03978                table: "SupplyContract",
 03979                column: "ModifiedByUserId");
 3980
 03981            migrationBuilder.CreateIndex(
 03982                name: "IX_SupplyContract_RecStateId",
 03983                table: "SupplyContract",
 03984                column: "RecStateId");
 3985
 03986            migrationBuilder.CreateIndex(
 03987                name: "IX_SupplyContract_SellerId",
 03988                table: "SupplyContract",
 03989                column: "SellerId");
 3990
 03991            migrationBuilder.CreateIndex(
 03992                name: "IX_TaxSystems_CreatedByUserId",
 03993                table: "TaxSystems",
 03994                column: "CreatedByUserId");
 3995
 03996            migrationBuilder.CreateIndex(
 03997                name: "IX_TaxSystems_ModifiedByUserId",
 03998                table: "TaxSystems",
 03999                column: "ModifiedByUserId");
 4000
 04001            migrationBuilder.CreateIndex(
 04002                name: "IX_TaxSystems_RecStateId",
 04003                table: "TaxSystems",
 04004                column: "RecStateId");
 4005
 04006            migrationBuilder.CreateIndex(
 04007                name: "IX_UnitsKind_CreatedByUserId",
 04008                table: "UnitsKind",
 04009                column: "CreatedByUserId");
 4010
 04011            migrationBuilder.CreateIndex(
 04012                name: "IX_UnitsKind_ModifiedByUserId",
 04013                table: "UnitsKind",
 04014                column: "ModifiedByUserId");
 4015
 04016            migrationBuilder.CreateIndex(
 04017                name: "IX_UnitsKind_RecStateId",
 04018                table: "UnitsKind",
 04019                column: "RecStateId");
 4020
 04021            migrationBuilder.CreateIndex(
 04022                name: "IX_UploadItems_CreatedByUserId",
 04023                table: "UploadItems",
 04024                column: "CreatedByUserId");
 4025
 04026            migrationBuilder.CreateIndex(
 04027                name: "IX_UploadItems_ModifiedByUserId",
 04028                table: "UploadItems",
 04029                column: "ModifiedByUserId");
 4030
 04031            migrationBuilder.CreateIndex(
 04032                name: "IX_UploadItems_RecStateId",
 04033                table: "UploadItems",
 04034                column: "RecStateId");
 4035
 04036            migrationBuilder.CreateIndex(
 04037                name: "IX_UploadItems_UploadId",
 04038                table: "UploadItems",
 04039                column: "UploadId");
 4040
 04041            migrationBuilder.CreateIndex(
 04042                name: "IX_Uploads_CreatedByUserId",
 04043                table: "Uploads",
 04044                column: "CreatedByUserId");
 4045
 04046            migrationBuilder.CreateIndex(
 04047                name: "IX_Uploads_ModifiedByUserId",
 04048                table: "Uploads",
 04049                column: "ModifiedByUserId");
 4050
 04051            migrationBuilder.CreateIndex(
 04052                name: "IX_Uploads_RecStateId",
 04053                table: "Uploads",
 04054                column: "RecStateId");
 4055
 04056            migrationBuilder.CreateIndex(
 04057                name: "IX_UserDepartment_DepartmentId",
 04058                table: "UserDepartment",
 04059                column: "DepartmentId");
 4060
 04061            migrationBuilder.CreateIndex(
 04062                name: "IX_UserRole_RoleId",
 04063                table: "UserRole",
 04064                column: "RoleId");
 4065
 04066            migrationBuilder.CreateIndex(
 04067                name: "IX_Users_ContragentId",
 04068                table: "Users",
 04069                column: "ContragentId");
 4070
 04071            migrationBuilder.CreateIndex(
 04072                name: "IX_Users_CreatedByUserId",
 04073                table: "Users",
 04074                column: "CreatedByUserId");
 4075
 04076            migrationBuilder.CreateIndex(
 04077                name: "IX_Users_Email",
 04078                table: "Users",
 04079                column: "Email");
 4080
 04081            migrationBuilder.CreateIndex(
 04082                name: "IX_Users_LastName",
 04083                table: "Users",
 04084                column: "LastName");
 4085
 04086            migrationBuilder.CreateIndex(
 04087                name: "IX_Users_Login",
 04088                table: "Users",
 04089                column: "Login");
 4090
 04091            migrationBuilder.CreateIndex(
 04092                name: "IX_Users_ModifiedByUserId",
 04093                table: "Users",
 04094                column: "ModifiedByUserId");
 4095
 04096            migrationBuilder.CreateIndex(
 04097                name: "IX_Users_Phone",
 04098                table: "Users",
 04099                column: "Phone");
 4100
 04101            migrationBuilder.CreateIndex(
 04102                name: "IX_Users_RecStateId",
 04103                table: "Users",
 04104                column: "RecStateId");
 4105
 04106            migrationBuilder.CreateIndex(
 04107                name: "IX_VatsKind_CreatedByUserId",
 04108                table: "VatsKind",
 04109                column: "CreatedByUserId");
 4110
 04111            migrationBuilder.CreateIndex(
 04112                name: "IX_VatsKind_ModifiedByUserId",
 04113                table: "VatsKind",
 04114                column: "ModifiedByUserId");
 4115
 04116            migrationBuilder.CreateIndex(
 04117                name: "IX_VatsKind_RecStateId",
 04118                table: "VatsKind",
 04119                column: "RecStateId");
 4120
 04121            migrationBuilder.CreateIndex(
 04122                name: "IX_WalletTransactions_CreatedByUserId",
 04123                table: "WalletTransactions",
 04124                column: "CreatedByUserId");
 4125
 04126            migrationBuilder.CreateIndex(
 04127                name: "IX_WalletTransactions_ModifiedByUserId",
 04128                table: "WalletTransactions",
 04129                column: "ModifiedByUserId");
 4130
 04131            migrationBuilder.CreateIndex(
 04132                name: "IX_WalletTransactions_MovementId",
 04133                table: "WalletTransactions",
 04134                column: "MovementId");
 4135
 04136            migrationBuilder.CreateIndex(
 04137                name: "IX_WalletTransactions_RecStateId",
 04138                table: "WalletTransactions",
 04139                column: "RecStateId");
 4140
 04141            migrationBuilder.CreateIndex(
 04142                name: "IX_WalletTransactions_StatusId",
 04143                table: "WalletTransactions",
 04144                column: "StatusId");
 4145
 04146            migrationBuilder.CreateIndex(
 04147                name: "IX_WalletTransactionStatuses_CreatedByUserId",
 04148                table: "WalletTransactionStatuses",
 04149                column: "CreatedByUserId");
 4150
 04151            migrationBuilder.CreateIndex(
 04152                name: "IX_WalletTransactionStatuses_ModifiedByUserId",
 04153                table: "WalletTransactionStatuses",
 04154                column: "ModifiedByUserId");
 4155
 04156            migrationBuilder.CreateIndex(
 04157                name: "IX_WalletTransactionStatuses_RecStateId",
 04158                table: "WalletTransactionStatuses",
 04159                column: "RecStateId");
 4160
 04161            migrationBuilder.CreateIndex(
 04162                name: "IX_WorkScheduler_CreatedByUserId",
 04163                table: "WorkScheduler",
 04164                column: "CreatedByUserId");
 4165
 04166            migrationBuilder.CreateIndex(
 04167                name: "IX_WorkScheduler_ModifiedByUserId",
 04168                table: "WorkScheduler",
 04169                column: "ModifiedByUserId");
 4170
 04171            migrationBuilder.CreateIndex(
 04172                name: "IX_WorkScheduler_RecStateId",
 04173                table: "WorkScheduler",
 04174                column: "RecStateId");
 4175
 04176            migrationBuilder.AddForeignKey(
 04177                name: "FK_Contragents_Users_CreatedByUserId",
 04178                table: "Contragents",
 04179                column: "CreatedByUserId",
 04180                principalTable: "Users",
 04181                principalColumn: "Id",
 04182                onDelete: ReferentialAction.Restrict);
 4183
 04184            migrationBuilder.AddForeignKey(
 04185                name: "FK_Contragents_Users_ModifiedByUserId",
 04186                table: "Contragents",
 04187                column: "ModifiedByUserId",
 04188                principalTable: "Users",
 04189                principalColumn: "Id",
 04190                onDelete: ReferentialAction.Restrict);
 4191
 04192            migrationBuilder.AddForeignKey(
 04193                name: "FK_Contragents_Users_OwnerId",
 04194                table: "Contragents",
 04195                column: "OwnerId",
 04196                principalTable: "Users",
 04197                principalColumn: "Id",
 04198                onDelete: ReferentialAction.Cascade);
 4199
 04200            migrationBuilder.AddForeignKey(
 04201                name: "FK_Contragents_RecordsState_RecStateId",
 04202                table: "Contragents",
 04203                column: "RecStateId",
 04204                principalTable: "RecordsState",
 04205                principalColumn: "Id",
 04206                onDelete: ReferentialAction.Restrict);
 4207
 04208            migrationBuilder.AddForeignKey(
 04209                name: "FK_Contragents_ContragentsKind_ContragentsKindId",
 04210                table: "Contragents",
 04211                column: "ContragentsKindId",
 04212                principalTable: "ContragentsKind",
 04213                principalColumn: "Id",
 04214                onDelete: ReferentialAction.Cascade);
 4215
 04216            migrationBuilder.AddForeignKey(
 04217                name: "FK_Contragents_Address_JuridicAddressId",
 04218                table: "Contragents",
 04219                column: "JuridicAddressId",
 04220                principalTable: "Address",
 04221                principalColumn: "Id",
 04222                onDelete: ReferentialAction.Cascade);
 4223
 04224            migrationBuilder.AddForeignKey(
 04225                name: "FK_Contragents_Address_PhysicAddressId",
 04226                table: "Contragents",
 04227                column: "PhysicAddressId",
 04228                principalTable: "Address",
 04229                principalColumn: "Id",
 04230                onDelete: ReferentialAction.Cascade);
 4231
 04232            migrationBuilder.AddForeignKey(
 04233                name: "FK_Contragents_TaxSystems_TaxSystemId",
 04234                table: "Contragents",
 04235                column: "TaxSystemId",
 04236                principalTable: "TaxSystems",
 04237                principalColumn: "Id",
 04238                onDelete: ReferentialAction.Restrict);
 4239
 04240            migrationBuilder.AddForeignKey(
 04241                name: "FK_Departments_Users_CreatedByUserId",
 04242                table: "Departments",
 04243                column: "CreatedByUserId",
 04244                principalTable: "Users",
 04245                principalColumn: "Id",
 04246                onDelete: ReferentialAction.Restrict);
 4247
 04248            migrationBuilder.AddForeignKey(
 04249                name: "FK_Departments_Users_ModifiedByUserId",
 04250                table: "Departments",
 04251                column: "ModifiedByUserId",
 04252                principalTable: "Users",
 04253                principalColumn: "Id",
 04254                onDelete: ReferentialAction.Restrict);
 4255
 04256            migrationBuilder.AddForeignKey(
 04257                name: "FK_Departments_RecordsState_RecStateId",
 04258                table: "Departments",
 04259                column: "RecStateId",
 04260                principalTable: "RecordsState",
 04261                principalColumn: "Id",
 04262                onDelete: ReferentialAction.Restrict);
 4263
 04264            migrationBuilder.AddForeignKey(
 04265                name: "FK_Departments_Address_ActualAddressId",
 04266                table: "Departments",
 04267                column: "ActualAddressId",
 04268                principalTable: "Address",
 04269                principalColumn: "Id",
 04270                onDelete: ReferentialAction.Restrict);
 4271
 04272            migrationBuilder.AddForeignKey(
 04273                name: "FK_Departments_Address_PostalAddressId",
 04274                table: "Departments",
 04275                column: "PostalAddressId",
 04276                principalTable: "Address",
 04277                principalColumn: "Id",
 04278                onDelete: ReferentialAction.Restrict);
 4279
 04280            migrationBuilder.AddForeignKey(
 04281                name: "FK_Departments_Clusters_ClusterId",
 04282                table: "Departments",
 04283                column: "ClusterId",
 04284                principalTable: "Clusters",
 04285                principalColumn: "Id",
 04286                onDelete: ReferentialAction.Restrict);
 4287
 04288            migrationBuilder.AddForeignKey(
 04289                name: "FK_Departments_DepartmentsKind_KindId",
 04290                table: "Departments",
 04291                column: "KindId",
 04292                principalTable: "DepartmentsKind",
 04293                principalColumn: "Id",
 04294                onDelete: ReferentialAction.Restrict);
 4295
 04296            migrationBuilder.AddForeignKey(
 04297                name: "FK_Departments_DepartmentsStatus_StatusId",
 04298                table: "Departments",
 04299                column: "StatusId",
 04300                principalTable: "DepartmentsStatus",
 04301                principalColumn: "Id",
 04302                onDelete: ReferentialAction.Restrict);
 4303
 04304            migrationBuilder.AddForeignKey(
 04305                name: "FK_Goods_Users_CreatedByUserId",
 04306                table: "Goods",
 04307                column: "CreatedByUserId",
 04308                principalTable: "Users",
 04309                principalColumn: "Id",
 04310                onDelete: ReferentialAction.Restrict);
 4311
 04312            migrationBuilder.AddForeignKey(
 04313                name: "FK_Goods_Users_ModifiedByUserId",
 04314                table: "Goods",
 04315                column: "ModifiedByUserId",
 04316                principalTable: "Users",
 04317                principalColumn: "Id",
 04318                onDelete: ReferentialAction.Restrict);
 4319
 04320            migrationBuilder.AddForeignKey(
 04321                name: "FK_Goods_RecordsState_RecStateId",
 04322                table: "Goods",
 04323                column: "RecStateId",
 04324                principalTable: "RecordsState",
 04325                principalColumn: "Id",
 04326                onDelete: ReferentialAction.Restrict);
 4327
 04328            migrationBuilder.AddForeignKey(
 04329                name: "FK_Goods_Categories_CategoryId",
 04330                table: "Goods",
 04331                column: "CategoryId",
 04332                principalTable: "Categories",
 04333                principalColumn: "Id",
 04334                onDelete: ReferentialAction.Cascade);
 4335
 04336            migrationBuilder.AddForeignKey(
 04337                name: "FK_Goods_Brands_BrandId",
 04338                table: "Goods",
 04339                column: "BrandId",
 04340                principalTable: "Brands",
 04341                principalColumn: "Id",
 04342                onDelete: ReferentialAction.Restrict);
 4343
 04344            migrationBuilder.AddForeignKey(
 04345                name: "FK_Goods_Brands_SubBrandId",
 04346                table: "Goods",
 04347                column: "SubBrandId",
 04348                principalTable: "Brands",
 04349                principalColumn: "Id",
 04350                onDelete: ReferentialAction.Restrict);
 4351
 04352            migrationBuilder.AddForeignKey(
 04353                name: "FK_Goods_Countries_CountryId",
 04354                table: "Goods",
 04355                column: "CountryId",
 04356                principalTable: "Countries",
 04357                principalColumn: "Id",
 04358                onDelete: ReferentialAction.Restrict);
 4359
 04360            migrationBuilder.AddForeignKey(
 04361                name: "FK_Goods_BarCodes_MainBarcodeId",
 04362                table: "Goods",
 04363                column: "MainBarcodeId",
 04364                principalTable: "BarCodes",
 04365                principalColumn: "Id",
 04366                onDelete: ReferentialAction.Cascade);
 4367
 04368            migrationBuilder.AddForeignKey(
 04369                name: "FK_Goods_UnitsKind_UnitsKindId",
 04370                table: "Goods",
 04371                column: "UnitsKindId",
 04372                principalTable: "UnitsKind",
 04373                principalColumn: "Id",
 04374                onDelete: ReferentialAction.Cascade);
 4375
 04376            migrationBuilder.AddForeignKey(
 04377                name: "FK_Goods_VatsKind_VatsKindId",
 04378                table: "Goods",
 04379                column: "VatsKindId",
 04380                principalTable: "VatsKind",
 04381                principalColumn: "Id",
 04382                onDelete: ReferentialAction.Cascade);
 4383
 04384            migrationBuilder.AddForeignKey(
 04385                name: "FK_DepartmentCategoryRatio_Users_CreatedByUserId",
 04386                table: "DepartmentCategoryRatio",
 04387                column: "CreatedByUserId",
 04388                principalTable: "Users",
 04389                principalColumn: "Id",
 04390                onDelete: ReferentialAction.Restrict);
 4391
 04392            migrationBuilder.AddForeignKey(
 04393                name: "FK_DepartmentCategoryRatio_Users_ModifiedByUserId",
 04394                table: "DepartmentCategoryRatio",
 04395                column: "ModifiedByUserId",
 04396                principalTable: "Users",
 04397                principalColumn: "Id",
 04398                onDelete: ReferentialAction.Restrict);
 4399
 04400            migrationBuilder.AddForeignKey(
 04401                name: "FK_DepartmentCategoryRatio_RecordsState_RecStateId",
 04402                table: "DepartmentCategoryRatio",
 04403                column: "RecStateId",
 04404                principalTable: "RecordsState",
 04405                principalColumn: "Id",
 04406                onDelete: ReferentialAction.Restrict);
 4407
 04408            migrationBuilder.AddForeignKey(
 04409                name: "FK_DepartmentCategoryRatio_Categories_CategoryId",
 04410                table: "DepartmentCategoryRatio",
 04411                column: "CategoryId",
 04412                principalTable: "Categories",
 04413                principalColumn: "Id",
 04414                onDelete: ReferentialAction.Cascade);
 4415
 04416            migrationBuilder.AddForeignKey(
 04417                name: "FK_BankAccounts_Users_CreatedByUserId",
 04418                table: "BankAccounts",
 04419                column: "CreatedByUserId",
 04420                principalTable: "Users",
 04421                principalColumn: "Id",
 04422                onDelete: ReferentialAction.Restrict);
 4423
 04424            migrationBuilder.AddForeignKey(
 04425                name: "FK_BankAccounts_Users_ModifiedByUserId",
 04426                table: "BankAccounts",
 04427                column: "ModifiedByUserId",
 04428                principalTable: "Users",
 04429                principalColumn: "Id",
 04430                onDelete: ReferentialAction.Restrict);
 4431
 04432            migrationBuilder.AddForeignKey(
 04433                name: "FK_BankAccounts_RecordsState_RecStateId",
 04434                table: "BankAccounts",
 04435                column: "RecStateId",
 04436                principalTable: "RecordsState",
 04437                principalColumn: "Id",
 04438                onDelete: ReferentialAction.Restrict);
 4439
 04440            migrationBuilder.AddForeignKey(
 04441                name: "FK_Movements_Users_CreatedByUserId",
 04442                table: "Movements",
 04443                column: "CreatedByUserId",
 04444                principalTable: "Users",
 04445                principalColumn: "Id",
 04446                onDelete: ReferentialAction.Restrict);
 4447
 04448            migrationBuilder.AddForeignKey(
 04449                name: "FK_Movements_Users_ModifiedByUserId",
 04450                table: "Movements",
 04451                column: "ModifiedByUserId",
 04452                principalTable: "Users",
 04453                principalColumn: "Id",
 04454                onDelete: ReferentialAction.Restrict);
 4455
 04456            migrationBuilder.AddForeignKey(
 04457                name: "FK_Movements_RecordsState_RecStateId",
 04458                table: "Movements",
 04459                column: "RecStateId",
 04460                principalTable: "RecordsState",
 04461                principalColumn: "Id",
 04462                onDelete: ReferentialAction.Restrict);
 4463
 04464            migrationBuilder.AddForeignKey(
 04465                name: "FK_Movements_MovementStatus_MovementStatusId",
 04466                table: "Movements",
 04467                column: "MovementStatusId",
 04468                principalTable: "MovementStatus",
 04469                principalColumn: "Id",
 04470                onDelete: ReferentialAction.Cascade);
 4471
 04472            migrationBuilder.AddForeignKey(
 04473                name: "FK_Movements_MovementType_MovementTypeId",
 04474                table: "Movements",
 04475                column: "MovementTypeId",
 04476                principalTable: "MovementType",
 04477                principalColumn: "Id",
 04478                onDelete: ReferentialAction.Cascade);
 4479
 04480            migrationBuilder.AddForeignKey(
 04481                name: "FK_SupplyContract_Users_CreatedByUserId",
 04482                table: "SupplyContract",
 04483                column: "CreatedByUserId",
 04484                principalTable: "Users",
 04485                principalColumn: "Id",
 04486                onDelete: ReferentialAction.Restrict);
 4487
 04488            migrationBuilder.AddForeignKey(
 04489                name: "FK_SupplyContract_Users_ModifiedByUserId",
 04490                table: "SupplyContract",
 04491                column: "ModifiedByUserId",
 04492                principalTable: "Users",
 04493                principalColumn: "Id",
 04494                onDelete: ReferentialAction.Restrict);
 4495
 04496            migrationBuilder.AddForeignKey(
 04497                name: "FK_SupplyContract_RecordsState_RecStateId",
 04498                table: "SupplyContract",
 04499                column: "RecStateId",
 04500                principalTable: "RecordsState",
 04501                principalColumn: "Id",
 04502                onDelete: ReferentialAction.Restrict);
 4503
 04504            migrationBuilder.AddForeignKey(
 04505                name: "FK_Users_RecordsState_RecStateId",
 04506                table: "Users",
 04507                column: "RecStateId",
 04508                principalTable: "RecordsState",
 04509                principalColumn: "Id",
 04510                onDelete: ReferentialAction.Restrict);
 04511        }
 4512
 4513        protected override void Down(MigrationBuilder migrationBuilder)
 04514        {
 04515            migrationBuilder.DropForeignKey(
 04516                name: "FK_Address_Users_CreatedByUserId",
 04517                table: "Address");
 4518
 04519            migrationBuilder.DropForeignKey(
 04520                name: "FK_Address_Users_ModifiedByUserId",
 04521                table: "Address");
 4522
 04523            migrationBuilder.DropForeignKey(
 04524                name: "FK_BarCodes_Users_CreatedByUserId",
 04525                table: "BarCodes");
 4526
 04527            migrationBuilder.DropForeignKey(
 04528                name: "FK_BarCodes_Users_ModifiedByUserId",
 04529                table: "BarCodes");
 4530
 04531            migrationBuilder.DropForeignKey(
 04532                name: "FK_Brands_Users_CreatedByUserId",
 04533                table: "Brands");
 4534
 04535            migrationBuilder.DropForeignKey(
 04536                name: "FK_Brands_Users_ModifiedByUserId",
 04537                table: "Brands");
 4538
 04539            migrationBuilder.DropForeignKey(
 04540                name: "FK_Categories_Users_CreatedByUserId",
 04541                table: "Categories");
 4542
 04543            migrationBuilder.DropForeignKey(
 04544                name: "FK_Categories_Users_ModifiedByUserId",
 04545                table: "Categories");
 4546
 04547            migrationBuilder.DropForeignKey(
 04548                name: "FK_Clusters_Users_CreatedByUserId",
 04549                table: "Clusters");
 4550
 04551            migrationBuilder.DropForeignKey(
 04552                name: "FK_Clusters_Users_ModifiedByUserId",
 04553                table: "Clusters");
 4554
 04555            migrationBuilder.DropForeignKey(
 04556                name: "FK_Contragents_Users_CreatedByUserId",
 04557                table: "Contragents");
 4558
 04559            migrationBuilder.DropForeignKey(
 04560                name: "FK_Contragents_Users_ModifiedByUserId",
 04561                table: "Contragents");
 4562
 04563            migrationBuilder.DropForeignKey(
 04564                name: "FK_Contragents_Users_OwnerId",
 04565                table: "Contragents");
 4566
 04567            migrationBuilder.DropForeignKey(
 04568                name: "FK_ContragentsKind_Users_CreatedByUserId",
 04569                table: "ContragentsKind");
 4570
 04571            migrationBuilder.DropForeignKey(
 04572                name: "FK_ContragentsKind_Users_ModifiedByUserId",
 04573                table: "ContragentsKind");
 4574
 04575            migrationBuilder.DropForeignKey(
 04576                name: "FK_Countries_Users_CreatedByUserId",
 04577                table: "Countries");
 4578
 04579            migrationBuilder.DropForeignKey(
 04580                name: "FK_Countries_Users_ModifiedByUserId",
 04581                table: "Countries");
 4582
 04583            migrationBuilder.DropForeignKey(
 04584                name: "FK_Departments_Users_CreatedByUserId",
 04585                table: "Departments");
 4586
 04587            migrationBuilder.DropForeignKey(
 04588                name: "FK_Departments_Users_ModifiedByUserId",
 04589                table: "Departments");
 4590
 04591            migrationBuilder.DropForeignKey(
 04592                name: "FK_DepartmentsKind_Users_CreatedByUserId",
 04593                table: "DepartmentsKind");
 4594
 04595            migrationBuilder.DropForeignKey(
 04596                name: "FK_DepartmentsKind_Users_ModifiedByUserId",
 04597                table: "DepartmentsKind");
 4598
 04599            migrationBuilder.DropForeignKey(
 04600                name: "FK_DepartmentsStatus_Users_CreatedByUserId",
 04601                table: "DepartmentsStatus");
 4602
 04603            migrationBuilder.DropForeignKey(
 04604                name: "FK_DepartmentsStatus_Users_ModifiedByUserId",
 04605                table: "DepartmentsStatus");
 4606
 04607            migrationBuilder.DropForeignKey(
 04608                name: "FK_Goods_Users_CreatedByUserId",
 04609                table: "Goods");
 4610
 04611            migrationBuilder.DropForeignKey(
 04612                name: "FK_Goods_Users_ModifiedByUserId",
 04613                table: "Goods");
 4614
 04615            migrationBuilder.DropForeignKey(
 04616                name: "FK_RecordsState_Users_CreatedByUserId",
 04617                table: "RecordsState");
 4618
 04619            migrationBuilder.DropForeignKey(
 04620                name: "FK_RecordsState_Users_ModifiedByUserId",
 04621                table: "RecordsState");
 4622
 04623            migrationBuilder.DropForeignKey(
 04624                name: "FK_TaxSystems_Users_CreatedByUserId",
 04625                table: "TaxSystems");
 4626
 04627            migrationBuilder.DropForeignKey(
 04628                name: "FK_TaxSystems_Users_ModifiedByUserId",
 04629                table: "TaxSystems");
 4630
 04631            migrationBuilder.DropForeignKey(
 04632                name: "FK_UnitsKind_Users_CreatedByUserId",
 04633                table: "UnitsKind");
 4634
 04635            migrationBuilder.DropForeignKey(
 04636                name: "FK_UnitsKind_Users_ModifiedByUserId",
 04637                table: "UnitsKind");
 4638
 04639            migrationBuilder.DropForeignKey(
 04640                name: "FK_VatsKind_Users_CreatedByUserId",
 04641                table: "VatsKind");
 4642
 04643            migrationBuilder.DropForeignKey(
 04644                name: "FK_VatsKind_Users_ModifiedByUserId",
 04645                table: "VatsKind");
 4646
 04647            migrationBuilder.DropForeignKey(
 04648                name: "FK_Address_RecordsState_RecStateId",
 04649                table: "Address");
 4650
 04651            migrationBuilder.DropForeignKey(
 04652                name: "FK_BarCodes_RecordsState_RecStateId",
 04653                table: "BarCodes");
 4654
 04655            migrationBuilder.DropForeignKey(
 04656                name: "FK_Brands_RecordsState_RecStateId",
 04657                table: "Brands");
 4658
 04659            migrationBuilder.DropForeignKey(
 04660                name: "FK_Categories_RecordsState_RecStateId",
 04661                table: "Categories");
 4662
 04663            migrationBuilder.DropForeignKey(
 04664                name: "FK_Clusters_RecordsState_RecStateId",
 04665                table: "Clusters");
 4666
 04667            migrationBuilder.DropForeignKey(
 04668                name: "FK_Contragents_RecordsState_RecStateId",
 04669                table: "Contragents");
 4670
 04671            migrationBuilder.DropForeignKey(
 04672                name: "FK_ContragentsKind_RecordsState_RecStateId",
 04673                table: "ContragentsKind");
 4674
 04675            migrationBuilder.DropForeignKey(
 04676                name: "FK_Countries_RecordsState_RecStateId",
 04677                table: "Countries");
 4678
 04679            migrationBuilder.DropForeignKey(
 04680                name: "FK_Departments_RecordsState_RecStateId",
 04681                table: "Departments");
 4682
 04683            migrationBuilder.DropForeignKey(
 04684                name: "FK_DepartmentsKind_RecordsState_RecStateId",
 04685                table: "DepartmentsKind");
 4686
 04687            migrationBuilder.DropForeignKey(
 04688                name: "FK_DepartmentsStatus_RecordsState_RecStateId",
 04689                table: "DepartmentsStatus");
 4690
 04691            migrationBuilder.DropForeignKey(
 04692                name: "FK_Goods_RecordsState_RecStateId",
 04693                table: "Goods");
 4694
 04695            migrationBuilder.DropForeignKey(
 04696                name: "FK_TaxSystems_RecordsState_RecStateId",
 04697                table: "TaxSystems");
 4698
 04699            migrationBuilder.DropForeignKey(
 04700                name: "FK_UnitsKind_RecordsState_RecStateId",
 04701                table: "UnitsKind");
 4702
 04703            migrationBuilder.DropForeignKey(
 04704                name: "FK_VatsKind_RecordsState_RecStateId",
 04705                table: "VatsKind");
 4706
 04707            migrationBuilder.DropForeignKey(
 04708                name: "FK_Departments_Contragents_ContragentId",
 04709                table: "Departments");
 4710
 04711            migrationBuilder.DropForeignKey(
 04712                name: "FK_Goods_Contragents_ManufacturerId",
 04713                table: "Goods");
 4714
 04715            migrationBuilder.DropForeignKey(
 04716                name: "FK_Goods_Contragents_SupplierId",
 04717                table: "Goods");
 4718
 04719            migrationBuilder.DropForeignKey(
 04720                name: "FK_BarCodes_Goods_GoodId",
 04721                table: "BarCodes");
 4722
 04723            migrationBuilder.DropForeignKey(
 04724                name: "FK_Clusters_Departments_WarehouseId",
 04725                table: "Clusters");
 4726
 04727            migrationBuilder.DropTable(
 04728                name: "BankAccounts");
 4729
 04730            migrationBuilder.DropTable(
 04731                name: "Currency");
 4732
 04733            migrationBuilder.DropTable(
 04734                name: "DepartmentCategoryRatio");
 4735
 04736            migrationBuilder.DropTable(
 04737                name: "DepartmentGoodSetting");
 4738
 04739            migrationBuilder.DropTable(
 04740                name: "Events");
 4741
 04742            migrationBuilder.DropTable(
 04743                name: "Incidents");
 4744
 04745            migrationBuilder.DropTable(
 04746                name: "MethodRole");
 4747
 04748            migrationBuilder.DropTable(
 04749                name: "MovementItems");
 4750
 04751            migrationBuilder.DropTable(
 04752                name: "MovementNotes");
 4753
 04754            migrationBuilder.DropTable(
 04755                name: "MovementStatusConformities");
 4756
 04757            migrationBuilder.DropTable(
 04758                name: "MovementStatusJournals");
 4759
 04760            migrationBuilder.DropTable(
 04761                name: "NotificationUsers");
 4762
 04763            migrationBuilder.DropTable(
 04764                name: "Photos");
 4765
 04766            migrationBuilder.DropTable(
 04767                name: "PricesCurrent");
 4768
 04769            migrationBuilder.DropTable(
 04770                name: "PricesTrend");
 4771
 04772            migrationBuilder.DropTable(
 04773                name: "PromoBids");
 4774
 04775            migrationBuilder.DropTable(
 04776                name: "Rests");
 4777
 04778            migrationBuilder.DropTable(
 04779                name: "SupplyContract");
 4780
 04781            migrationBuilder.DropTable(
 04782                name: "UploadItems");
 4783
 04784            migrationBuilder.DropTable(
 04785                name: "UserDepartment");
 4786
 04787            migrationBuilder.DropTable(
 04788                name: "UserRole");
 4789
 04790            migrationBuilder.DropTable(
 04791                name: "WalletTransactions");
 4792
 04793            migrationBuilder.DropTable(
 04794                name: "WorkScheduler");
 4795
 04796            migrationBuilder.DropTable(
 04797                name: "EventsKind");
 4798
 04799            migrationBuilder.DropTable(
 04800                name: "IncidentsKind");
 4801
 04802            migrationBuilder.DropTable(
 04803                name: "IncidentsStatus");
 4804
 04805            migrationBuilder.DropTable(
 04806                name: "Methods");
 4807
 04808            migrationBuilder.DropTable(
 04809                name: "Notifications");
 4810
 04811            migrationBuilder.DropTable(
 04812                name: "NotificationsStatus");
 4813
 04814            migrationBuilder.DropTable(
 04815                name: "PromoOffers");
 4816
 04817            migrationBuilder.DropTable(
 04818                name: "Uploads");
 4819
 04820            migrationBuilder.DropTable(
 04821                name: "Roles");
 4822
 04823            migrationBuilder.DropTable(
 04824                name: "Movements");
 4825
 04826            migrationBuilder.DropTable(
 04827                name: "WalletTransactionStatuses");
 4828
 04829            migrationBuilder.DropTable(
 04830                name: "NotificationsType");
 4831
 04832            migrationBuilder.DropTable(
 04833                name: "MovementStatus");
 4834
 04835            migrationBuilder.DropTable(
 04836                name: "MovementType");
 4837
 04838            migrationBuilder.DropTable(
 04839                name: "Users");
 4840
 04841            migrationBuilder.DropTable(
 04842                name: "RecordsState");
 4843
 04844            migrationBuilder.DropTable(
 04845                name: "Contragents");
 4846
 04847            migrationBuilder.DropTable(
 04848                name: "ContragentsKind");
 4849
 04850            migrationBuilder.DropTable(
 04851                name: "TaxSystems");
 4852
 04853            migrationBuilder.DropTable(
 04854                name: "Goods");
 4855
 04856            migrationBuilder.DropTable(
 04857                name: "Brands");
 4858
 04859            migrationBuilder.DropTable(
 04860                name: "Categories");
 4861
 04862            migrationBuilder.DropTable(
 04863                name: "Countries");
 4864
 04865            migrationBuilder.DropTable(
 04866                name: "BarCodes");
 4867
 04868            migrationBuilder.DropTable(
 04869                name: "UnitsKind");
 4870
 04871            migrationBuilder.DropTable(
 04872                name: "VatsKind");
 4873
 04874            migrationBuilder.DropTable(
 04875                name: "Departments");
 4876
 04877            migrationBuilder.DropTable(
 04878                name: "Address");
 4879
 04880            migrationBuilder.DropTable(
 04881                name: "Clusters");
 4882
 04883            migrationBuilder.DropTable(
 04884                name: "DepartmentsKind");
 4885
 04886            migrationBuilder.DropTable(
 04887                name: "DepartmentsStatus");
 04888        }
 4889    }
 4890}

/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200405162524_Initial.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("20200405162524_Initial")]
 14    partial class Initial
 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<string>("FullAddress")
 047                        .HasColumnType("text");
 048
 049                    b.Property<Guid>("GUID")
 050                        .ValueGeneratedOnAdd()
 051                        .HasColumnType("uuid");
 052
 053                    b.Property<string>("House")
 054                        .HasColumnType("text");
 055
 056                    b.Property<string>("Housing")
 057                        .HasColumnType("text");
 058
 059                    b.Property<string>("Index")
 060                        .HasColumnType("text");
 061
 062                    b.Property<bool>("IsDeleted")
 063                        .HasColumnType("boolean");
 064
 065                    b.Property<string>("Locality")
 066                        .HasColumnType("text");
 067
 068                    b.Property<DateTime?>("ModificationDateTime")
 069                        .HasColumnType("timestamp without time zone");
 070
 071                    b.Property<long?>("ModifiedByUserId")
 072                        .HasColumnType("bigint");
 073
 074                    b.Property<string>("Office")
 075                        .HasColumnType("text");
 076
 077                    b.Property<long?>("RecStateId")
 078                        .HasColumnType("bigint");
 079
 080                    b.Property<string>("Region")
 081                        .HasColumnType("text");
 082
 083                    b.Property<string>("Street")
 084                        .HasColumnType("text");
 085
 086                    b.HasKey("Id");
 087
 088                    b.HasIndex("CreatedByUserId");
 089
 090                    b.HasIndex("ModifiedByUserId");
 091
 092                    b.HasIndex("RecStateId");
 093
 094                    b.ToTable("Address");
 095
 096                    b.HasData(
 097                        new
 098                        {
 099                            Id = 1L,
 0100                            Building = "1",
 0101                            City = "Краснодар",
 0102                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(3811
 0103                            District = "Район 9",
 0104                            FullAddress = "Краснодар",
 0105                            GUID = new Guid("60f4af34-263c-4f04-b41f-a2117d147f64"),
 0106                            House = "1",
 0107                            Housing = "1",
 0108                            Index = "1",
 0109                            IsDeleted = false,
 0110                            Locality = "1",
 0111                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 0112                            Office = "1",
 0113                            Region = "1",
 0114                            Street = "1"
 0115                        });
 0116                });
 117
 0118            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.BankAccount", b =>
 0119                {
 0120                    b.Property<long>("Id")
 0121                        .ValueGeneratedOnAdd()
 0122                        .HasColumnType("bigint")
 0123                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0124
 0125                    b.Property<string>("BankName")
 0126                        .IsRequired()
 0127                        .HasColumnType("text");
 0128
 0129                    b.Property<string>("Bik")
 0130                        .IsRequired()
 0131                        .HasColumnType("text");
 0132
 0133                    b.Property<long?>("ContragentId")
 0134                        .HasColumnType("bigint");
 0135
 0136                    b.Property<string>("CorrespondentAccount")
 0137                        .IsRequired()
 0138                        .HasColumnType("text");
 0139
 0140                    b.Property<long?>("CreatedByUserId")
 0141                        .HasColumnType("bigint");
 0142
 0143                    b.Property<DateTime>("CreationDateTime")
 0144                        .HasColumnType("timestamp without time zone");
 0145
 0146                    b.Property<Guid>("GUID")
 0147                        .ValueGeneratedOnAdd()
 0148                        .HasColumnType("uuid");
 0149
 0150                    b.Property<bool>("IsDeleted")
 0151                        .HasColumnType("boolean");
 0152
 0153                    b.Property<DateTime?>("ModificationDateTime")
 0154                        .HasColumnType("timestamp without time zone");
 0155
 0156                    b.Property<long?>("ModifiedByUserId")
 0157                        .HasColumnType("bigint");
 0158
 0159                    b.Property<long?>("RecStateId")
 0160                        .HasColumnType("bigint");
 0161
 0162                    b.Property<string>("SettlementAccount")
 0163                        .IsRequired()
 0164                        .HasColumnType("text");
 0165
 0166                    b.HasKey("Id");
 0167
 0168                    b.HasIndex("ContragentId");
 0169
 0170                    b.HasIndex("CreatedByUserId");
 0171
 0172                    b.HasIndex("ModifiedByUserId");
 0173
 0174                    b.HasIndex("RecStateId");
 0175
 0176                    b.HasIndex("Bik", "SettlementAccount", "IsDeleted")
 0177                        .IsUnique();
 0178
 0179                    b.ToTable("BankAccounts");
 0180                });
 181
 0182            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.BarCode", b =>
 0183                {
 0184                    b.Property<long>("Id")
 0185                        .ValueGeneratedOnAdd()
 0186                        .HasColumnType("bigint")
 0187                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0188
 0189                    b.Property<string>("Code")
 0190                        .HasColumnType("text");
 0191
 0192                    b.Property<long?>("CreatedByUserId")
 0193                        .HasColumnType("bigint");
 0194
 0195                    b.Property<DateTime>("CreationDateTime")
 0196                        .HasColumnType("timestamp without time zone");
 0197
 0198                    b.Property<Guid>("GUID")
 0199                        .ValueGeneratedOnAdd()
 0200                        .HasColumnType("uuid");
 0201
 0202                    b.Property<long?>("GoodId")
 0203                        .HasColumnType("bigint");
 0204
 0205                    b.Property<bool>("IsDeleted")
 0206                        .HasColumnType("boolean");
 0207
 0208                    b.Property<DateTime?>("ModificationDateTime")
 0209                        .HasColumnType("timestamp without time zone");
 0210
 0211                    b.Property<long?>("ModifiedByUserId")
 0212                        .HasColumnType("bigint");
 0213
 0214                    b.Property<long?>("RecStateId")
 0215                        .HasColumnType("bigint");
 0216
 0217                    b.HasKey("Id");
 0218
 0219                    b.HasIndex("Code")
 0220                        .IsUnique();
 0221
 0222                    b.HasIndex("CreatedByUserId");
 0223
 0224                    b.HasIndex("GoodId");
 0225
 0226                    b.HasIndex("ModifiedByUserId");
 0227
 0228                    b.HasIndex("RecStateId");
 0229
 0230                    b.ToTable("BarCodes");
 0231                });
 232
 0233            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", b =>
 0234                {
 0235                    b.Property<long>("Id")
 0236                        .ValueGeneratedOnAdd()
 0237                        .HasColumnType("bigint")
 0238                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0239
 0240                    b.Property<long?>("CreatedByUserId")
 0241                        .HasColumnType("bigint");
 0242
 0243                    b.Property<DateTime>("CreationDateTime")
 0244                        .HasColumnType("timestamp without time zone");
 0245
 0246                    b.Property<Guid>("GUID")
 0247                        .ValueGeneratedOnAdd()
 0248                        .HasColumnType("uuid");
 0249
 0250                    b.Property<bool>("IsDeleted")
 0251                        .HasColumnType("boolean");
 0252
 0253                    b.Property<DateTime?>("ModificationDateTime")
 0254                        .HasColumnType("timestamp without time zone");
 0255
 0256                    b.Property<long?>("ModifiedByUserId")
 0257                        .HasColumnType("bigint");
 0258
 0259                    b.Property<string>("Name")
 0260                        .HasColumnType("text");
 0261
 0262                    b.Property<long?>("ParentId")
 0263                        .HasColumnType("bigint");
 0264
 0265                    b.Property<long?>("RecStateId")
 0266                        .HasColumnType("bigint");
 0267
 0268                    b.HasKey("Id");
 0269
 0270                    b.HasIndex("CreatedByUserId");
 0271
 0272                    b.HasIndex("ModifiedByUserId");
 0273
 0274                    b.HasIndex("Name")
 0275                        .IsUnique();
 0276
 0277                    b.HasIndex("ParentId");
 0278
 0279                    b.HasIndex("RecStateId");
 0280
 0281                    b.ToTable("Brands");
 0282                });
 283
 0284            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", b =>
 0285                {
 0286                    b.Property<long>("Id")
 0287                        .ValueGeneratedOnAdd()
 0288                        .HasColumnType("bigint")
 0289                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0290
 0291                    b.Property<string>("Code")
 0292                        .HasColumnType("text");
 0293
 0294                    b.Property<long?>("CreatedByUserId")
 0295                        .HasColumnType("bigint");
 0296
 0297                    b.Property<DateTime>("CreationDateTime")
 0298                        .HasColumnType("timestamp without time zone");
 0299
 0300                    b.Property<Guid>("GUID")
 0301                        .ValueGeneratedOnAdd()
 0302                        .HasColumnType("uuid");
 0303
 0304                    b.Property<bool>("IsDeleted")
 0305                        .HasColumnType("boolean");
 0306
 0307                    b.Property<DateTime?>("ModificationDateTime")
 0308                        .HasColumnType("timestamp without time zone");
 0309
 0310                    b.Property<long?>("ModifiedByUserId")
 0311                        .HasColumnType("bigint");
 0312
 0313                    b.Property<string>("Name")
 0314                        .HasColumnType("text");
 0315
 0316                    b.Property<long?>("ParentId")
 0317                        .HasColumnType("bigint");
 0318
 0319                    b.Property<long?>("RecStateId")
 0320                        .HasColumnType("bigint");
 0321
 0322                    b.HasKey("Id");
 0323
 0324                    b.HasIndex("Code")
 0325                        .IsUnique();
 0326
 0327                    b.HasIndex("CreatedByUserId");
 0328
 0329                    b.HasIndex("ModifiedByUserId");
 0330
 0331                    b.HasIndex("Name")
 0332                        .IsUnique();
 0333
 0334                    b.HasIndex("ParentId");
 0335
 0336                    b.HasIndex("RecStateId");
 0337
 0338                    b.ToTable("Categories");
 0339                });
 340
 0341            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Cluster", b =>
 0342                {
 0343                    b.Property<long>("Id")
 0344                        .ValueGeneratedOnAdd()
 0345                        .HasColumnType("bigint")
 0346                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0347
 0348                    b.Property<long?>("CreatedByUserId")
 0349                        .HasColumnType("bigint");
 0350
 0351                    b.Property<DateTime>("CreationDateTime")
 0352                        .HasColumnType("timestamp without time zone");
 0353
 0354                    b.Property<Guid>("GUID")
 0355                        .ValueGeneratedOnAdd()
 0356                        .HasColumnType("uuid");
 0357
 0358                    b.Property<bool>("IsDeleted")
 0359                        .HasColumnType("boolean");
 0360
 0361                    b.Property<decimal>("MinOrderSum")
 0362                        .HasColumnType("numeric");
 0363
 0364                    b.Property<DateTime?>("ModificationDateTime")
 0365                        .HasColumnType("timestamp without time zone");
 0366
 0367                    b.Property<long?>("ModifiedByUserId")
 0368                        .HasColumnType("bigint");
 0369
 0370                    b.Property<string>("Name")
 0371                        .IsRequired()
 0372                        .HasColumnType("text");
 0373
 0374                    b.Property<long?>("RecStateId")
 0375                        .HasColumnType("bigint");
 0376
 0377                    b.Property<decimal>("TradeRatio")
 0378                        .HasColumnType("numeric");
 0379
 0380                    b.Property<long>("WarehouseId")
 0381                        .HasColumnType("bigint");
 0382
 0383                    b.HasKey("Id");
 0384
 0385                    b.HasIndex("CreatedByUserId");
 0386
 0387                    b.HasIndex("ModifiedByUserId");
 0388
 0389                    b.HasIndex("Name");
 0390
 0391                    b.HasIndex("RecStateId");
 0392
 0393                    b.HasIndex("WarehouseId");
 0394
 0395                    b.ToTable("Clusters");
 0396                });
 397
 0398            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", b =>
 0399                {
 0400                    b.Property<long>("Id")
 0401                        .ValueGeneratedOnAdd()
 0402                        .HasColumnType("bigint")
 0403                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0404
 0405                    b.Property<string>("BankName")
 0406                        .HasColumnType("text");
 0407
 0408                    b.Property<string>("Bik")
 0409                        .HasColumnType("text");
 0410
 0411                    b.Property<string>("ChiefAccountant")
 0412                        .HasColumnType("text");
 0413
 0414                    b.Property<long>("ContragentsKindId")
 0415                        .HasColumnType("bigint");
 0416
 0417                    b.Property<long?>("CreatedByUserId")
 0418                        .HasColumnType("bigint");
 0419
 0420                    b.Property<DateTime>("CreationDateTime")
 0421                        .HasColumnType("timestamp without time zone");
 0422
 0423                    b.Property<string>("Email")
 0424                        .IsRequired()
 0425                        .HasColumnType("text");
 0426
 0427                    b.Property<Guid>("ExternalKey")
 0428                        .ValueGeneratedOnAdd()
 0429                        .HasColumnType("uuid");
 0430
 0431                    b.Property<string>("FullName")
 0432                        .IsRequired()
 0433                        .HasColumnType("text");
 0434
 0435                    b.Property<Guid>("GUID")
 0436                        .ValueGeneratedOnAdd()
 0437                        .HasColumnType("uuid");
 0438
 0439                    b.Property<string>("Inn")
 0440                        .IsRequired()
 0441                        .HasColumnType("text");
 0442
 0443                    b.Property<bool>("IsDeleted")
 0444                        .HasColumnType("boolean");
 0445
 0446                    b.Property<long>("JuridicAddressId")
 0447                        .HasColumnType("bigint");
 0448
 0449                    b.Property<string>("Kpp")
 0450                        .IsRequired()
 0451                        .HasColumnType("text");
 0452
 0453                    b.Property<DateTime?>("ModificationDateTime")
 0454                        .HasColumnType("timestamp without time zone");
 0455
 0456                    b.Property<long?>("ModifiedByUserId")
 0457                        .HasColumnType("bigint");
 0458
 0459                    b.Property<string>("Ogrn")
 0460                        .IsRequired()
 0461                        .HasColumnType("text");
 0462
 0463                    b.Property<string>("Okato")
 0464                        .IsRequired()
 0465                        .HasColumnType("text");
 0466
 0467                    b.Property<string>("Okpo")
 0468                        .IsRequired()
 0469                        .HasColumnType("text");
 0470
 0471                    b.Property<string>("Okved")
 0472                        .IsRequired()
 0473                        .HasColumnType("text");
 0474
 0475                    b.Property<long>("OwnerId")
 0476                        .HasColumnType("bigint");
 0477
 0478                    b.Property<string>("PhoneNumber")
 0479                        .IsRequired()
 0480                        .HasColumnType("text");
 0481
 0482                    b.Property<long>("PhysicAddressId")
 0483                        .HasColumnType("bigint");
 0484
 0485                    b.Property<long?>("RecStateId")
 0486                        .HasColumnType("bigint");
 0487
 0488                    b.Property<string>("SettlementAccount")
 0489                        .HasColumnType("text");
 0490
 0491                    b.Property<string>("ShortName")
 0492                        .IsRequired()
 0493                        .HasColumnType("text");
 0494
 0495                    b.Property<string>("TaxSystemCRM")
 0496                        .HasColumnType("text");
 0497
 0498                    b.Property<long?>("TaxSystemId")
 0499                        .HasColumnType("bigint");
 0500
 0501                    b.Property<string>("WalletId")
 0502                        .HasColumnType("text");
 0503
 0504                    b.Property<string>("WebSite")
 0505                        .HasColumnType("text");
 0506
 0507                    b.Property<string>("СorrespondentAccount")
 0508                        .HasColumnType("text");
 0509
 0510                    b.HasKey("Id");
 0511
 0512                    b.HasIndex("ContragentsKindId");
 0513
 0514                    b.HasIndex("CreatedByUserId");
 0515
 0516                    b.HasIndex("FullName")
 0517                        .IsUnique();
 0518
 0519                    b.HasIndex("Inn")
 0520                        .IsUnique();
 0521
 0522                    b.HasIndex("JuridicAddressId");
 0523
 0524                    b.HasIndex("ModifiedByUserId");
 0525
 0526                    b.HasIndex("OwnerId");
 0527
 0528                    b.HasIndex("PhysicAddressId");
 0529
 0530                    b.HasIndex("RecStateId");
 0531
 0532                    b.HasIndex("ShortName")
 0533                        .IsUnique();
 0534
 0535                    b.HasIndex("TaxSystemId");
 0536
 0537                    b.ToTable("Contragents");
 0538
 0539                    b.HasData(
 0540                        new
 0541                        {
 0542                            Id = 1L,
 0543                            ChiefAccountant = "1",
 0544                            ContragentsKindId = 1L,
 0545                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(9284
 0546                            Email = "1",
 0547                            FullName = "Сервисный контрагент",
 0548                            Inn = "1",
 0549                            IsDeleted = false,
 0550                            JuridicAddressId = 1L,
 0551                            Kpp = "1",
 0552                            Ogrn = "1",
 0553                            Okato = "1",
 0554                            Okpo = "1",
 0555                            Okved = "1",
 0556                            OwnerId = 1L,
 0557                            PhoneNumber = "1",
 0558                            PhysicAddressId = 1L,
 0559                            RecStateId = 2L,
 0560                            ShortName = "1",
 0561                            TaxSystemId = 1L,
 0562                            WebSite = "1"
 0563                        });
 0564                });
 565
 0566            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ContragentsKind", b =>
 0567                {
 0568                    b.Property<long>("Id")
 0569                        .ValueGeneratedOnAdd()
 0570                        .HasColumnType("bigint")
 0571                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0572
 0573                    b.Property<string>("Code")
 0574                        .IsRequired()
 0575                        .HasColumnType("text");
 0576
 0577                    b.Property<long?>("CreatedByUserId")
 0578                        .HasColumnType("bigint");
 0579
 0580                    b.Property<DateTime>("CreationDateTime")
 0581                        .HasColumnType("timestamp without time zone");
 0582
 0583                    b.Property<string>("Description")
 0584                        .HasColumnType("text");
 0585
 0586                    b.Property<Guid>("GUID")
 0587                        .ValueGeneratedOnAdd()
 0588                        .HasColumnType("uuid");
 0589
 0590                    b.Property<bool>("IsDeleted")
 0591                        .HasColumnType("boolean");
 0592
 0593                    b.Property<DateTime?>("ModificationDateTime")
 0594                        .HasColumnType("timestamp without time zone");
 0595
 0596                    b.Property<long?>("ModifiedByUserId")
 0597                        .HasColumnType("bigint");
 0598
 0599                    b.Property<string>("Name")
 0600                        .IsRequired()
 0601                        .HasColumnType("text");
 0602
 0603                    b.Property<long?>("RecStateId")
 0604                        .HasColumnType("bigint");
 0605
 0606                    b.HasKey("Id");
 0607
 0608                    b.HasIndex("CreatedByUserId");
 0609
 0610                    b.HasIndex("ModifiedByUserId");
 0611
 0612                    b.HasIndex("RecStateId");
 0613
 0614                    b.ToTable("ContragentsKind");
 0615
 0616                    b.HasData(
 0617                        new
 0618                        {
 0619                            Id = 1L,
 0620                            Code = "Unknown",
 0621                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(5097
 0622                            Description = "",
 0623                            GUID = new Guid("f0071660-bb2f-4100-a429-c4513052e601"),
 0624                            IsDeleted = false,
 0625                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 0626                            Name = "Неизвестный"
 0627                        },
 0628                        new
 0629                        {
 0630                            Id = 2L,
 0631                            Code = "Retailer",
 0632                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(5267
 0633                            Description = "",
 0634                            GUID = new Guid("969d12a6-95f6-4fbb-86dc-58d614a67296"),
 0635                            IsDeleted = false,
 0636                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 0637                            Name = "Магазин"
 0638                        },
 0639                        new
 0640                        {
 0641                            Id = 3L,
 0642                            Code = "Wholesaler",
 0643                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(5298
 0644                            Description = "",
 0645                            GUID = new Guid("5ef00905-332e-4b56-9379-b14dfb4e3ca7"),
 0646                            IsDeleted = false,
 0647                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 0648                            Name = "Дистрибьютор"
 0649                        },
 0650                        new
 0651                        {
 0652                            Id = 4L,
 0653                            Code = "Manufacturer",
 0654                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(5322
 0655                            Description = "",
 0656                            GUID = new Guid("3548c901-969e-4d7d-aec1-f7f93d34314d"),
 0657                            IsDeleted = false,
 0658                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 0659                            Name = "Производитель"
 0660                        },
 0661                        new
 0662                        {
 0663                            Id = 5L,
 0664                            Code = "Supplier",
 0665                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(5346
 0666                            Description = "В будущем надо удалить",
 0667                            GUID = new Guid("16c23847-5168-4552-a7f1-84f3dcbd6745"),
 0668                            IsDeleted = false,
 0669                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 0670                            Name = "---"
 0671                        },
 0672                        new
 0673                        {
 0674                            Id = 6L,
 0675                            Code = "Platform",
 0676                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(5372
 0677                            Description = "",
 0678                            GUID = new Guid("df0d0752-b089-49c3-afd5-ad74d581a92d"),
 0679                            IsDeleted = false,
 0680                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 0681                            Name = "Платформа"
 0682                        });
 0683                });
 684
 0685            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Country", b =>
 0686                {
 0687                    b.Property<long>("Id")
 0688                        .ValueGeneratedOnAdd()
 0689                        .HasColumnType("bigint")
 0690                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 0691
 0692                    b.Property<int>("Code")
 0693                        .HasColumnType("integer");
 0694
 0695                    b.Property<long?>("CreatedByUserId")
 0696                        .HasColumnType("bigint");
 0697
 0698                    b.Property<DateTime>("CreationDateTime")
 0699                        .HasColumnType("timestamp without time zone");
 0700
 0701                    b.Property<Guid>("GUID")
 0702                        .ValueGeneratedOnAdd()
 0703                        .HasColumnType("uuid");
 0704
 0705                    b.Property<bool>("IsDeleted")
 0706                        .HasColumnType("boolean");
 0707
 0708                    b.Property<DateTime?>("ModificationDateTime")
 0709                        .HasColumnType("timestamp without time zone");
 0710
 0711                    b.Property<long?>("ModifiedByUserId")
 0712                        .HasColumnType("bigint");
 0713
 0714                    b.Property<string>("Name")
 0715                        .IsRequired()
 0716                        .HasColumnType("text");
 0717
 0718                    b.Property<long?>("RecStateId")
 0719                        .HasColumnType("bigint");
 0720
 0721                    b.HasKey("Id");
 0722
 0723                    b.HasIndex("CreatedByUserId");
 0724
 0725                    b.HasIndex("ModifiedByUserId");
 0726
 0727                    b.HasIndex("Name")
 0728                        .IsUnique();
 0729
 0730                    b.HasIndex("RecStateId");
 0731
 0732                    b.ToTable("Countries");
 0733
 0734                    b.HasData(
 0735                        new
 0736                        {
 0737                            Id = 2L,
 0738                            Code = 895,
 0739                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(4618
 0740                            GUID = new Guid("b985d64a-f84a-4032-acd7-b3309daef104"),
 0741                            IsDeleted = false,
 0742                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0743                            Name = "Абхазия"
 0744                        },
 0745                        new
 0746                        {
 0747                            Id = 3L,
 0748                            Code = 36,
 0749                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(5907
 0750                            GUID = new Guid("a745929d-bbff-46fa-bd72-78ffd4b8a074"),
 0751                            IsDeleted = false,
 0752                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0753                            Name = "Австралия"
 0754                        },
 0755                        new
 0756                        {
 0757                            Id = 4L,
 0758                            Code = 40,
 0759                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(5958
 0760                            GUID = new Guid("9bc83ac7-3908-4ef3-b983-a56b70ef7fd1"),
 0761                            IsDeleted = false,
 0762                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0763                            Name = "Австрия"
 0764                        },
 0765                        new
 0766                        {
 0767                            Id = 5L,
 0768                            Code = 31,
 0769                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(5984
 0770                            GUID = new Guid("dc98e1ca-2cfc-44a2-930a-7380753ae3d0"),
 0771                            IsDeleted = false,
 0772                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0773                            Name = "Азербайджан"
 0774                        },
 0775                        new
 0776                        {
 0777                            Id = 6L,
 0778                            Code = 8,
 0779                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6008
 0780                            GUID = new Guid("8318068f-3729-4dc9-adf0-775a640fe0f6"),
 0781                            IsDeleted = false,
 0782                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0783                            Name = "Албания"
 0784                        },
 0785                        new
 0786                        {
 0787                            Id = 7L,
 0788                            Code = 12,
 0789                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6186
 0790                            GUID = new Guid("0b5ea207-9a72-4691-8b33-9cd1771b2381"),
 0791                            IsDeleted = false,
 0792                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0793                            Name = "Алжир"
 0794                        },
 0795                        new
 0796                        {
 0797                            Id = 8L,
 0798                            Code = 16,
 0799                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6220
 0800                            GUID = new Guid("275055a7-4a0b-4ebe-8eff-6d9ec084f08b"),
 0801                            IsDeleted = false,
 0802                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0803                            Name = "Американское Самоа"
 0804                        },
 0805                        new
 0806                        {
 0807                            Id = 9L,
 0808                            Code = 660,
 0809                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6437
 0810                            GUID = new Guid("9ec1d96a-6cd5-428d-a122-56514f71c3bc"),
 0811                            IsDeleted = false,
 0812                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0813                            Name = "Ангилья"
 0814                        },
 0815                        new
 0816                        {
 0817                            Id = 10L,
 0818                            Code = 24,
 0819                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6464
 0820                            GUID = new Guid("9f5f8422-89cc-4f15-bf78-955417a6315b"),
 0821                            IsDeleted = false,
 0822                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0823                            Name = "Ангола"
 0824                        },
 0825                        new
 0826                        {
 0827                            Id = 11L,
 0828                            Code = 20,
 0829                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6491
 0830                            GUID = new Guid("4a08cf00-76f6-4d3e-be8b-68b1c5a9c11c"),
 0831                            IsDeleted = false,
 0832                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0833                            Name = "Андорра"
 0834                        },
 0835                        new
 0836                        {
 0837                            Id = 12L,
 0838                            Code = 10,
 0839                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6515
 0840                            GUID = new Guid("1d0ef720-3079-414b-8199-01bea413cc38"),
 0841                            IsDeleted = false,
 0842                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0843                            Name = "Антарктида"
 0844                        },
 0845                        new
 0846                        {
 0847                            Id = 13L,
 0848                            Code = 28,
 0849                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6540
 0850                            GUID = new Guid("b7934a03-5d8f-495e-b03e-c737725afc15"),
 0851                            IsDeleted = false,
 0852                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0853                            Name = "Антигуа и Барбуда"
 0854                        },
 0855                        new
 0856                        {
 0857                            Id = 14L,
 0858                            Code = 32,
 0859                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6564
 0860                            GUID = new Guid("5be35c0f-9fe2-437a-bbe0-6ebc2a67d247"),
 0861                            IsDeleted = false,
 0862                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0863                            Name = "Аргентина"
 0864                        },
 0865                        new
 0866                        {
 0867                            Id = 15L,
 0868                            Code = 51,
 0869                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6589
 0870                            GUID = new Guid("76583f8a-dc8a-4992-9d0b-8a131152212c"),
 0871                            IsDeleted = false,
 0872                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0873                            Name = "Армения"
 0874                        },
 0875                        new
 0876                        {
 0877                            Id = 16L,
 0878                            Code = 533,
 0879                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6613
 0880                            GUID = new Guid("95916e4e-2c34-40cc-92c0-d9f352ac0b61"),
 0881                            IsDeleted = false,
 0882                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0883                            Name = "Аруба"
 0884                        },
 0885                        new
 0886                        {
 0887                            Id = 17L,
 0888                            Code = 4,
 0889                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6642
 0890                            GUID = new Guid("dcd8077a-b249-4b22-9396-855685801521"),
 0891                            IsDeleted = false,
 0892                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0893                            Name = "Афганистан"
 0894                        },
 0895                        new
 0896                        {
 0897                            Id = 18L,
 0898                            Code = 44,
 0899                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6668
 0900                            GUID = new Guid("89d23a76-e1b5-4fad-a5c9-5a67886ddb09"),
 0901                            IsDeleted = false,
 0902                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0903                            Name = "Багамы"
 0904                        },
 0905                        new
 0906                        {
 0907                            Id = 19L,
 0908                            Code = 50,
 0909                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6694
 0910                            GUID = new Guid("65d94400-53e7-4452-a079-7141f3096c0f"),
 0911                            IsDeleted = false,
 0912                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0913                            Name = "Бангладеш"
 0914                        },
 0915                        new
 0916                        {
 0917                            Id = 20L,
 0918                            Code = 52,
 0919                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6719
 0920                            GUID = new Guid("2998704d-1fe9-4c7f-9463-0d4670743ad3"),
 0921                            IsDeleted = false,
 0922                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0923                            Name = "Барбадос"
 0924                        },
 0925                        new
 0926                        {
 0927                            Id = 21L,
 0928                            Code = 48,
 0929                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6743
 0930                            GUID = new Guid("7248981b-c6a0-4331-930a-e1e6062195c2"),
 0931                            IsDeleted = false,
 0932                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0933                            Name = "Бахрейн"
 0934                        },
 0935                        new
 0936                        {
 0937                            Id = 22L,
 0938                            Code = 112,
 0939                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6767
 0940                            GUID = new Guid("a36afdd2-be14-4a62-830b-9f8e482db172"),
 0941                            IsDeleted = false,
 0942                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0943                            Name = "Беларусь"
 0944                        },
 0945                        new
 0946                        {
 0947                            Id = 23L,
 0948                            Code = 84,
 0949                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6791
 0950                            GUID = new Guid("76c02d3e-0680-403e-9abe-afe8269f202e"),
 0951                            IsDeleted = false,
 0952                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0953                            Name = "Белиз"
 0954                        },
 0955                        new
 0956                        {
 0957                            Id = 24L,
 0958                            Code = 56,
 0959                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(6946
 0960                            GUID = new Guid("61de7a62-3c44-4c1d-91f6-da6186d95c07"),
 0961                            IsDeleted = false,
 0962                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0963                            Name = "Бельгия"
 0964                        },
 0965                        new
 0966                        {
 0967                            Id = 25L,
 0968                            Code = 204,
 0969                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7014
 0970                            GUID = new Guid("911aa434-fb1d-464a-bf80-604e3f9df399"),
 0971                            IsDeleted = false,
 0972                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0973                            Name = "Бенин"
 0974                        },
 0975                        new
 0976                        {
 0977                            Id = 26L,
 0978                            Code = 60,
 0979                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7041
 0980                            GUID = new Guid("35c75edc-4d0f-422b-80b7-98472d192fda"),
 0981                            IsDeleted = false,
 0982                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0983                            Name = "Бермуды"
 0984                        },
 0985                        new
 0986                        {
 0987                            Id = 27L,
 0988                            Code = 100,
 0989                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7065
 0990                            GUID = new Guid("a4e7b244-1189-4073-a6c7-cfbdcf5e90c4"),
 0991                            IsDeleted = false,
 0992                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 0993                            Name = "Болгария"
 0994                        },
 0995                        new
 0996                        {
 0997                            Id = 28L,
 0998                            Code = 68,
 0999                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7107
 01000                            GUID = new Guid("508f9331-7dc5-4726-89f6-e6a66cc0f29b"),
 01001                            IsDeleted = false,
 01002                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01003                            Name = "Боливия, Многонациональное Государство"
 01004                        },
 01005                        new
 01006                        {
 01007                            Id = 29L,
 01008                            Code = 535,
 01009                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7131
 01010                            GUID = new Guid("eb748402-d568-4f78-bb24-18515c879bb4"),
 01011                            IsDeleted = false,
 01012                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01013                            Name = "Бонайре, Саба и Синт-Эстатиус"
 01014                        },
 01015                        new
 01016                        {
 01017                            Id = 30L,
 01018                            Code = 70,
 01019                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7155
 01020                            GUID = new Guid("6d91b89a-f875-45cc-b111-5501b5c59bc1"),
 01021                            IsDeleted = false,
 01022                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01023                            Name = "Босния и Герцеговина"
 01024                        },
 01025                        new
 01026                        {
 01027                            Id = 31L,
 01028                            Code = 72,
 01029                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7178
 01030                            GUID = new Guid("4da859ce-c367-45b5-98a8-a67752bea3b3"),
 01031                            IsDeleted = false,
 01032                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01033                            Name = "Ботсвана"
 01034                        },
 01035                        new
 01036                        {
 01037                            Id = 32L,
 01038                            Code = 76,
 01039                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7203
 01040                            GUID = new Guid("43917fb5-8bb4-4c2e-ad84-729754a69efc"),
 01041                            IsDeleted = false,
 01042                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01043                            Name = "Бразилия"
 01044                        },
 01045                        new
 01046                        {
 01047                            Id = 33L,
 01048                            Code = 86,
 01049                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7229
 01050                            GUID = new Guid("3beffd95-8432-46c0-95b0-7d6f19a7d31e"),
 01051                            IsDeleted = false,
 01052                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01053                            Name = "Британская территория в Индийском океане"
 01054                        },
 01055                        new
 01056                        {
 01057                            Id = 34L,
 01058                            Code = 96,
 01059                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7254
 01060                            GUID = new Guid("7ce2f993-4205-458a-8bd9-716343a5270b"),
 01061                            IsDeleted = false,
 01062                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01063                            Name = "Бруней-Даруссалам"
 01064                        },
 01065                        new
 01066                        {
 01067                            Id = 35L,
 01068                            Code = 854,
 01069                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7279
 01070                            GUID = new Guid("8166c71f-2ee2-4d77-88d2-81c88c10aac7"),
 01071                            IsDeleted = false,
 01072                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01073                            Name = "Буркина-Фасо"
 01074                        },
 01075                        new
 01076                        {
 01077                            Id = 36L,
 01078                            Code = 108,
 01079                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7303
 01080                            GUID = new Guid("a9e86c1e-a755-42cd-a784-9c1933ee3317"),
 01081                            IsDeleted = false,
 01082                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01083                            Name = "Бурунди"
 01084                        },
 01085                        new
 01086                        {
 01087                            Id = 37L,
 01088                            Code = 64,
 01089                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7327
 01090                            GUID = new Guid("2a557790-1095-4bd4-8bb1-9be3ec50c7fa"),
 01091                            IsDeleted = false,
 01092                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01093                            Name = "Бутан"
 01094                        },
 01095                        new
 01096                        {
 01097                            Id = 38L,
 01098                            Code = 548,
 01099                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7352
 01100                            GUID = new Guid("5aa1740d-3b3c-4dfc-a831-e1e8cbe77e0c"),
 01101                            IsDeleted = false,
 01102                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01103                            Name = "Вануату"
 01104                        },
 01105                        new
 01106                        {
 01107                            Id = 39L,
 01108                            Code = 348,
 01109                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7376
 01110                            GUID = new Guid("69515095-d818-4ad5-ad56-3b8ab5d2f8bb"),
 01111                            IsDeleted = false,
 01112                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01113                            Name = "Венгрия"
 01114                        },
 01115                        new
 01116                        {
 01117                            Id = 40L,
 01118                            Code = 862,
 01119                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7400
 01120                            GUID = new Guid("e8c4d3be-9e2e-4af6-8678-b318215b6d60"),
 01121                            IsDeleted = false,
 01122                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01123                            Name = "Венесуэла Боливарианская Республика"
 01124                        },
 01125                        new
 01126                        {
 01127                            Id = 41L,
 01128                            Code = 92,
 01129                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7426
 01130                            GUID = new Guid("2f93978f-b947-4495-9880-c31491cdb5a3"),
 01131                            IsDeleted = false,
 01132                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01133                            Name = "Виргинские острова, Британские"
 01134                        },
 01135                        new
 01136                        {
 01137                            Id = 42L,
 01138                            Code = 850,
 01139                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7450
 01140                            GUID = new Guid("d94ef380-0cd4-42d4-966b-524bbf286bdc"),
 01141                            IsDeleted = false,
 01142                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01143                            Name = "Виргинские острова, США"
 01144                        },
 01145                        new
 01146                        {
 01147                            Id = 43L,
 01148                            Code = 704,
 01149                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7512
 01150                            GUID = new Guid("f5b9df82-ebe0-40a1-a969-ef6a86ecd16e"),
 01151                            IsDeleted = false,
 01152                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01153                            Name = "Вьетнам"
 01154                        },
 01155                        new
 01156                        {
 01157                            Id = 44L,
 01158                            Code = 266,
 01159                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7537
 01160                            GUID = new Guid("d7e6693a-b7a0-4c5e-a4de-040f6f964d5a"),
 01161                            IsDeleted = false,
 01162                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01163                            Name = "Габон"
 01164                        },
 01165                        new
 01166                        {
 01167                            Id = 45L,
 01168                            Code = 332,
 01169                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7560
 01170                            GUID = new Guid("d75c61f4-f172-4feb-af69-a9c01fb743b7"),
 01171                            IsDeleted = false,
 01172                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01173                            Name = "Гаити"
 01174                        },
 01175                        new
 01176                        {
 01177                            Id = 46L,
 01178                            Code = 328,
 01179                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7584
 01180                            GUID = new Guid("3ab0a3b5-c4c2-40b0-965d-cbed095f0b03"),
 01181                            IsDeleted = false,
 01182                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01183                            Name = "Гайана"
 01184                        },
 01185                        new
 01186                        {
 01187                            Id = 47L,
 01188                            Code = 270,
 01189                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7608
 01190                            GUID = new Guid("1cd05905-2eb6-496f-bea9-0b88695fa1b2"),
 01191                            IsDeleted = false,
 01192                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01193                            Name = "Гамбия"
 01194                        },
 01195                        new
 01196                        {
 01197                            Id = 48L,
 01198                            Code = 288,
 01199                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7633
 01200                            GUID = new Guid("138995f0-95af-4041-bdf7-7daba03f763b"),
 01201                            IsDeleted = false,
 01202                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01203                            Name = "Гана"
 01204                        },
 01205                        new
 01206                        {
 01207                            Id = 49L,
 01208                            Code = 312,
 01209                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7659
 01210                            GUID = new Guid("4a6cfe48-761c-4546-9ef0-f796a731842a"),
 01211                            IsDeleted = false,
 01212                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01213                            Name = "Гваделупа"
 01214                        },
 01215                        new
 01216                        {
 01217                            Id = 50L,
 01218                            Code = 320,
 01219                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7683
 01220                            GUID = new Guid("c0a8b904-d204-4490-b6d5-c40cffe42786"),
 01221                            IsDeleted = false,
 01222                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01223                            Name = "Гватемала"
 01224                        },
 01225                        new
 01226                        {
 01227                            Id = 51L,
 01228                            Code = 324,
 01229                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7707
 01230                            GUID = new Guid("182008f3-8d1f-4b5e-9001-de37da6be96d"),
 01231                            IsDeleted = false,
 01232                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01233                            Name = "Гвинея"
 01234                        },
 01235                        new
 01236                        {
 01237                            Id = 52L,
 01238                            Code = 624,
 01239                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7730
 01240                            GUID = new Guid("1c68c48b-3b42-4b06-ad57-45a3240fdf63"),
 01241                            IsDeleted = false,
 01242                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01243                            Name = "Гвинея-Бисау"
 01244                        },
 01245                        new
 01246                        {
 01247                            Id = 53L,
 01248                            Code = 276,
 01249                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7754
 01250                            GUID = new Guid("702b4cd6-b22c-4b3d-9d75-990ce8fd7c01"),
 01251                            IsDeleted = false,
 01252                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01253                            Name = "Германия"
 01254                        },
 01255                        new
 01256                        {
 01257                            Id = 54L,
 01258                            Code = 831,
 01259                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7778
 01260                            GUID = new Guid("a4bd8699-092d-46ba-ba8a-4a27f2400dfc"),
 01261                            IsDeleted = false,
 01262                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01263                            Name = "Гернси"
 01264                        },
 01265                        new
 01266                        {
 01267                            Id = 55L,
 01268                            Code = 292,
 01269                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7802
 01270                            GUID = new Guid("768d2935-f509-4b4d-8176-c2fea15425a6"),
 01271                            IsDeleted = false,
 01272                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01273                            Name = "Гибралтар"
 01274                        },
 01275                        new
 01276                        {
 01277                            Id = 56L,
 01278                            Code = 340,
 01279                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7826
 01280                            GUID = new Guid("08a432a6-9c47-4b3a-ab25-7642db1da679"),
 01281                            IsDeleted = false,
 01282                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01283                            Name = "Гондурас"
 01284                        },
 01285                        new
 01286                        {
 01287                            Id = 57L,
 01288                            Code = 344,
 01289                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7853
 01290                            GUID = new Guid("a9f14109-bbb2-4ddb-920e-4b001ac607d0"),
 01291                            IsDeleted = false,
 01292                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01293                            Name = "Гонконг"
 01294                        },
 01295                        new
 01296                        {
 01297                            Id = 58L,
 01298                            Code = 308,
 01299                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7878
 01300                            GUID = new Guid("432c6e14-c6ef-4506-924c-710d5a3ef037"),
 01301                            IsDeleted = false,
 01302                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01303                            Name = "Гренада"
 01304                        },
 01305                        new
 01306                        {
 01307                            Id = 59L,
 01308                            Code = 304,
 01309                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7902
 01310                            GUID = new Guid("305ea846-d5b5-48e6-ab2e-ee69d3569e5d"),
 01311                            IsDeleted = false,
 01312                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01313                            Name = "Гренландия"
 01314                        },
 01315                        new
 01316                        {
 01317                            Id = 60L,
 01318                            Code = 300,
 01319                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7926
 01320                            GUID = new Guid("c25045c7-32ce-4bfc-bf90-117a6c3f2b90"),
 01321                            IsDeleted = false,
 01322                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01323                            Name = "Греция"
 01324                        },
 01325                        new
 01326                        {
 01327                            Id = 61L,
 01328                            Code = 268,
 01329                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(7949
 01330                            GUID = new Guid("1992e8b8-f756-459a-83fc-5b486a75e835"),
 01331                            IsDeleted = false,
 01332                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01333                            Name = "Грузия"
 01334                        },
 01335                        new
 01336                        {
 01337                            Id = 62L,
 01338                            Code = 316,
 01339                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8012
 01340                            GUID = new Guid("a242b33a-b46d-43c7-9410-6a7705fd038b"),
 01341                            IsDeleted = false,
 01342                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01343                            Name = "Гуам"
 01344                        },
 01345                        new
 01346                        {
 01347                            Id = 63L,
 01348                            Code = 208,
 01349                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8036
 01350                            GUID = new Guid("fb16c2af-a81e-4b68-9e2e-47aba58a27f6"),
 01351                            IsDeleted = false,
 01352                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01353                            Name = "Дания"
 01354                        },
 01355                        new
 01356                        {
 01357                            Id = 64L,
 01358                            Code = 832,
 01359                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8061
 01360                            GUID = new Guid("ce94ff29-4122-479f-936f-2d8bebfca2f5"),
 01361                            IsDeleted = false,
 01362                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01363                            Name = "Джерси"
 01364                        },
 01365                        new
 01366                        {
 01367                            Id = 65L,
 01368                            Code = 262,
 01369                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8087
 01370                            GUID = new Guid("5a56d3c3-58c3-4a4d-ac02-4868de940d11"),
 01371                            IsDeleted = false,
 01372                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01373                            Name = "Джибути"
 01374                        },
 01375                        new
 01376                        {
 01377                            Id = 66L,
 01378                            Code = 212,
 01379                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8111
 01380                            GUID = new Guid("18d76feb-82b8-4983-b294-1d59add275e5"),
 01381                            IsDeleted = false,
 01382                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01383                            Name = "Доминика"
 01384                        },
 01385                        new
 01386                        {
 01387                            Id = 67L,
 01388                            Code = 214,
 01389                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8137
 01390                            GUID = new Guid("ada9abc5-7c85-4cdb-a49c-f62c4010fa96"),
 01391                            IsDeleted = false,
 01392                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01393                            Name = "Доминиканская Республика"
 01394                        },
 01395                        new
 01396                        {
 01397                            Id = 68L,
 01398                            Code = 818,
 01399                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8160
 01400                            GUID = new Guid("a96a394b-099a-4979-aa89-270eac59f844"),
 01401                            IsDeleted = false,
 01402                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01403                            Name = "Египет"
 01404                        },
 01405                        new
 01406                        {
 01407                            Id = 69L,
 01408                            Code = 894,
 01409                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8186
 01410                            GUID = new Guid("9daf7e9c-2028-4803-8406-dab1b460598e"),
 01411                            IsDeleted = false,
 01412                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01413                            Name = "Замбия"
 01414                        },
 01415                        new
 01416                        {
 01417                            Id = 70L,
 01418                            Code = 732,
 01419                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8209
 01420                            GUID = new Guid("7e204bad-6849-45c9-843f-4ce212195415"),
 01421                            IsDeleted = false,
 01422                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01423                            Name = "Западная Сахара"
 01424                        },
 01425                        new
 01426                        {
 01427                            Id = 71L,
 01428                            Code = 716,
 01429                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8233
 01430                            GUID = new Guid("9ebd377d-e8c7-439d-84b6-090413b0c0ba"),
 01431                            IsDeleted = false,
 01432                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01433                            Name = "Зимбабве"
 01434                        },
 01435                        new
 01436                        {
 01437                            Id = 72L,
 01438                            Code = 376,
 01439                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8256
 01440                            GUID = new Guid("05d2fc0c-57a8-45a2-8c4a-0ca4995f14d5"),
 01441                            IsDeleted = false,
 01442                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01443                            Name = "Израиль"
 01444                        },
 01445                        new
 01446                        {
 01447                            Id = 73L,
 01448                            Code = 356,
 01449                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8282
 01450                            GUID = new Guid("90305727-0ab1-4ef9-9ea2-b10051b672de"),
 01451                            IsDeleted = false,
 01452                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01453                            Name = "Индия"
 01454                        },
 01455                        new
 01456                        {
 01457                            Id = 74L,
 01458                            Code = 360,
 01459                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8306
 01460                            GUID = new Guid("6f2568eb-f53f-4fe4-9d35-3438d1f82046"),
 01461                            IsDeleted = false,
 01462                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01463                            Name = "Индонезия"
 01464                        },
 01465                        new
 01466                        {
 01467                            Id = 75L,
 01468                            Code = 400,
 01469                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8330
 01470                            GUID = new Guid("4bf3bef6-0356-4117-a636-feb75fb44201"),
 01471                            IsDeleted = false,
 01472                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01473                            Name = "Иордания"
 01474                        },
 01475                        new
 01476                        {
 01477                            Id = 76L,
 01478                            Code = 368,
 01479                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8486
 01480                            GUID = new Guid("a9b76dcd-3548-4966-8389-d42bf6b11080"),
 01481                            IsDeleted = false,
 01482                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01483                            Name = "Ирак"
 01484                        },
 01485                        new
 01486                        {
 01487                            Id = 77L,
 01488                            Code = 364,
 01489                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8511
 01490                            GUID = new Guid("ed0633a0-47dc-48f3-94fa-4b6b5c747c16"),
 01491                            IsDeleted = false,
 01492                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01493                            Name = "Иран, Исламская Республика"
 01494                        },
 01495                        new
 01496                        {
 01497                            Id = 78L,
 01498                            Code = 372,
 01499                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8568
 01500                            GUID = new Guid("de07cf0d-6166-4c24-bb89-c962343203fe"),
 01501                            IsDeleted = false,
 01502                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01503                            Name = "Ирландия"
 01504                        },
 01505                        new
 01506                        {
 01507                            Id = 79L,
 01508                            Code = 352,
 01509                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8595
 01510                            GUID = new Guid("a4d7cbbd-5aa8-4acc-ae84-14e69aa735d7"),
 01511                            IsDeleted = false,
 01512                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01513                            Name = "Исландия"
 01514                        },
 01515                        new
 01516                        {
 01517                            Id = 80L,
 01518                            Code = 724,
 01519                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8618
 01520                            GUID = new Guid("8ff9b66e-7752-4799-8c94-4f098e593982"),
 01521                            IsDeleted = false,
 01522                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01523                            Name = "Испания"
 01524                        },
 01525                        new
 01526                        {
 01527                            Id = 81L,
 01528                            Code = 380,
 01529                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8644
 01530                            GUID = new Guid("f6b869bd-2963-4138-86a6-970c96888338"),
 01531                            IsDeleted = false,
 01532                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01533                            Name = "Италия"
 01534                        },
 01535                        new
 01536                        {
 01537                            Id = 82L,
 01538                            Code = 887,
 01539                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8668
 01540                            GUID = new Guid("92b04506-7dd2-4efc-86b8-497261c9e49c"),
 01541                            IsDeleted = false,
 01542                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01543                            Name = "Йемен"
 01544                        },
 01545                        new
 01546                        {
 01547                            Id = 83L,
 01548                            Code = 132,
 01549                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8691
 01550                            GUID = new Guid("f4a3c730-2353-4b3e-976f-7d827d2a2777"),
 01551                            IsDeleted = false,
 01552                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01553                            Name = "Кабо-Верде"
 01554                        },
 01555                        new
 01556                        {
 01557                            Id = 84L,
 01558                            Code = 398,
 01559                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8714
 01560                            GUID = new Guid("8a4805bc-55d2-42cf-a14e-1fbdbf0001a5"),
 01561                            IsDeleted = false,
 01562                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01563                            Name = "Казахстан"
 01564                        },
 01565                        new
 01566                        {
 01567                            Id = 85L,
 01568                            Code = 116,
 01569                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8737
 01570                            GUID = new Guid("8dc23266-47bc-4256-8fb9-01ffe4360e29"),
 01571                            IsDeleted = false,
 01572                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01573                            Name = "Камбоджа"
 01574                        },
 01575                        new
 01576                        {
 01577                            Id = 86L,
 01578                            Code = 120,
 01579                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8761
 01580                            GUID = new Guid("1f9a45f7-59f2-4989-b68d-c649d9194d6d"),
 01581                            IsDeleted = false,
 01582                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01583                            Name = "Камерун"
 01584                        },
 01585                        new
 01586                        {
 01587                            Id = 87L,
 01588                            Code = 124,
 01589                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8784
 01590                            GUID = new Guid("7e15a4be-778d-438b-ad18-b7b3e88370a1"),
 01591                            IsDeleted = false,
 01592                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01593                            Name = "Канада"
 01594                        },
 01595                        new
 01596                        {
 01597                            Id = 88L,
 01598                            Code = 634,
 01599                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8808
 01600                            GUID = new Guid("e8eb2123-e444-442b-825c-d9af923acb59"),
 01601                            IsDeleted = false,
 01602                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01603                            Name = "Катар"
 01604                        },
 01605                        new
 01606                        {
 01607                            Id = 89L,
 01608                            Code = 404,
 01609                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8833
 01610                            GUID = new Guid("672ac656-83b1-41e0-95ac-132b65769f49"),
 01611                            IsDeleted = false,
 01612                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01613                            Name = "Кения"
 01614                        },
 01615                        new
 01616                        {
 01617                            Id = 90L,
 01618                            Code = 196,
 01619                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8856
 01620                            GUID = new Guid("78e10dd6-8b36-4e06-beac-a28289246db5"),
 01621                            IsDeleted = false,
 01622                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01623                            Name = "Кипр"
 01624                        },
 01625                        new
 01626                        {
 01627                            Id = 91L,
 01628                            Code = 417,
 01629                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8880
 01630                            GUID = new Guid("23eda978-7bb0-4c6a-8143-40dc5ec1114f"),
 01631                            IsDeleted = false,
 01632                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01633                            Name = "Киргизия"
 01634                        },
 01635                        new
 01636                        {
 01637                            Id = 92L,
 01638                            Code = 296,
 01639                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8903
 01640                            GUID = new Guid("dd6f975a-4cbc-4de7-a2f3-8aaa404e3a75"),
 01641                            IsDeleted = false,
 01642                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01643                            Name = "Кирибати"
 01644                        },
 01645                        new
 01646                        {
 01647                            Id = 93L,
 01648                            Code = 156,
 01649                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8926
 01650                            GUID = new Guid("7593064b-a685-45f9-8c2b-a675ed95838e"),
 01651                            IsDeleted = false,
 01652                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01653                            Name = "Китай"
 01654                        },
 01655                        new
 01656                        {
 01657                            Id = 94L,
 01658                            Code = 166,
 01659                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8950
 01660                            GUID = new Guid("6b67739a-7778-4991-8d9b-f243530828e2"),
 01661                            IsDeleted = false,
 01662                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01663                            Name = "Кокосовые (Килинг) острова"
 01664                        },
 01665                        new
 01666                        {
 01667                            Id = 95L,
 01668                            Code = 170,
 01669                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8974
 01670                            GUID = new Guid("fac8b53a-b02c-4416-987c-263e103f2f64"),
 01671                            IsDeleted = false,
 01672                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01673                            Name = "Колумбия"
 01674                        },
 01675                        new
 01676                        {
 01677                            Id = 96L,
 01678                            Code = 174,
 01679                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(8997
 01680                            GUID = new Guid("de7f399b-4680-4e45-ba11-18017aa80ee6"),
 01681                            IsDeleted = false,
 01682                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01683                            Name = "Коморы"
 01684                        },
 01685                        new
 01686                        {
 01687                            Id = 97L,
 01688                            Code = 178,
 01689                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9058
 01690                            GUID = new Guid("4471eb2c-0d46-4e17-a020-ffca27b427ea"),
 01691                            IsDeleted = false,
 01692                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01693                            Name = "Конго"
 01694                        },
 01695                        new
 01696                        {
 01697                            Id = 98L,
 01698                            Code = 180,
 01699                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9083
 01700                            GUID = new Guid("cc7fefee-2335-4f0a-bade-46850f6b2177"),
 01701                            IsDeleted = false,
 01702                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01703                            Name = "Конго, Демократическая Республика"
 01704                        },
 01705                        new
 01706                        {
 01707                            Id = 99L,
 01708                            Code = 408,
 01709                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9106
 01710                            GUID = new Guid("743ace90-fd56-4250-889c-6e8e74003481"),
 01711                            IsDeleted = false,
 01712                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01713                            Name = "Корея, Народно-Демократическая Республика"
 01714                        },
 01715                        new
 01716                        {
 01717                            Id = 100L,
 01718                            Code = 410,
 01719                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9129
 01720                            GUID = new Guid("1678ddcc-8454-4f85-a0be-8fa29a7bab49"),
 01721                            IsDeleted = false,
 01722                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01723                            Name = "Корея, Республика"
 01724                        },
 01725                        new
 01726                        {
 01727                            Id = 101L,
 01728                            Code = 188,
 01729                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9152
 01730                            GUID = new Guid("2c9a762a-c80a-48c9-9dac-1e8445e747d8"),
 01731                            IsDeleted = false,
 01732                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01733                            Name = "Коста-Рика"
 01734                        },
 01735                        new
 01736                        {
 01737                            Id = 102L,
 01738                            Code = 384,
 01739                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9175
 01740                            GUID = new Guid("e53e25b2-67c9-4337-87fe-6b9845fd4b7f"),
 01741                            IsDeleted = false,
 01742                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01743                            Name = "Кот д'Ивуар"
 01744                        },
 01745                        new
 01746                        {
 01747                            Id = 103L,
 01748                            Code = 192,
 01749                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9197
 01750                            GUID = new Guid("743574d5-5314-4d52-a25e-2db180b23a86"),
 01751                            IsDeleted = false,
 01752                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01753                            Name = "Куба"
 01754                        },
 01755                        new
 01756                        {
 01757                            Id = 104L,
 01758                            Code = 414,
 01759                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9220
 01760                            GUID = new Guid("5bb45868-73e4-493b-8a11-96e878df10c9"),
 01761                            IsDeleted = false,
 01762                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01763                            Name = "Кувейт"
 01764                        },
 01765                        new
 01766                        {
 01767                            Id = 105L,
 01768                            Code = 531,
 01769                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9245
 01770                            GUID = new Guid("0434007c-f675-44e8-a3cf-8429db85bfe3"),
 01771                            IsDeleted = false,
 01772                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01773                            Name = "Кюрасао"
 01774                        },
 01775                        new
 01776                        {
 01777                            Id = 106L,
 01778                            Code = 418,
 01779                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9268
 01780                            GUID = new Guid("99f08c12-29eb-42d2-a9ab-0015051ecb6c"),
 01781                            IsDeleted = false,
 01782                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01783                            Name = "Лаос"
 01784                        },
 01785                        new
 01786                        {
 01787                            Id = 107L,
 01788                            Code = 428,
 01789                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9291
 01790                            GUID = new Guid("6578c436-1fc3-4fa7-af12-390f24ecd061"),
 01791                            IsDeleted = false,
 01792                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01793                            Name = "Латвия"
 01794                        },
 01795                        new
 01796                        {
 01797                            Id = 108L,
 01798                            Code = 426,
 01799                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9314
 01800                            GUID = new Guid("10cb09f0-e43b-40fb-b808-8371ced86a21"),
 01801                            IsDeleted = false,
 01802                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01803                            Name = "Лесото"
 01804                        },
 01805                        new
 01806                        {
 01807                            Id = 109L,
 01808                            Code = 422,
 01809                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9337
 01810                            GUID = new Guid("4cbfec92-0314-4296-ab8a-f9875b7b7124"),
 01811                            IsDeleted = false,
 01812                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01813                            Name = "Ливан"
 01814                        },
 01815                        new
 01816                        {
 01817                            Id = 110L,
 01818                            Code = 434,
 01819                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9360
 01820                            GUID = new Guid("7a6f0ede-e13c-46e4-80d8-e5f11ecb6084"),
 01821                            IsDeleted = false,
 01822                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01823                            Name = "Ливийская Арабская Джамахирия"
 01824                        },
 01825                        new
 01826                        {
 01827                            Id = 111L,
 01828                            Code = 430,
 01829                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9385
 01830                            GUID = new Guid("863ba2f9-8dc0-4fa1-b2ea-9a4249feb72f"),
 01831                            IsDeleted = false,
 01832                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01833                            Name = "Либерия"
 01834                        },
 01835                        new
 01836                        {
 01837                            Id = 112L,
 01838                            Code = 438,
 01839                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9408
 01840                            GUID = new Guid("a74109ac-e4b2-4ba8-9654-0afa4cf3c1ea"),
 01841                            IsDeleted = false,
 01842                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01843                            Name = "Лихтенштейн"
 01844                        },
 01845                        new
 01846                        {
 01847                            Id = 113L,
 01848                            Code = 440,
 01849                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9434
 01850                            GUID = new Guid("437f9caa-990f-42c2-a40f-ad253344461b"),
 01851                            IsDeleted = false,
 01852                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01853                            Name = "Литва"
 01854                        },
 01855                        new
 01856                        {
 01857                            Id = 114L,
 01858                            Code = 442,
 01859                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9457
 01860                            GUID = new Guid("9a2fedfa-0038-48c2-b23e-7ac1ed8ade05"),
 01861                            IsDeleted = false,
 01862                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01863                            Name = "Люксембург"
 01864                        },
 01865                        new
 01866                        {
 01867                            Id = 115L,
 01868                            Code = 480,
 01869                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9480
 01870                            GUID = new Guid("a9985c0e-253c-4549-b6db-17019a8b0ee4"),
 01871                            IsDeleted = false,
 01872                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01873                            Name = "Маврикий"
 01874                        },
 01875                        new
 01876                        {
 01877                            Id = 116L,
 01878                            Code = 478,
 01879                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9544
 01880                            GUID = new Guid("27eae2a0-5039-43fd-a176-7692cccddc8a"),
 01881                            IsDeleted = false,
 01882                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01883                            Name = "Мавритания"
 01884                        },
 01885                        new
 01886                        {
 01887                            Id = 117L,
 01888                            Code = 450,
 01889                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9570
 01890                            GUID = new Guid("7bccb219-3782-40f4-ac8e-12532d5f7ad8"),
 01891                            IsDeleted = false,
 01892                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01893                            Name = "Мадагаскар"
 01894                        },
 01895                        new
 01896                        {
 01897                            Id = 118L,
 01898                            Code = 175,
 01899                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9593
 01900                            GUID = new Guid("c8c99db1-812f-4ebb-ae20-15678c9f8fb9"),
 01901                            IsDeleted = false,
 01902                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01903                            Name = "Майотта"
 01904                        },
 01905                        new
 01906                        {
 01907                            Id = 119L,
 01908                            Code = 446,
 01909                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9616
 01910                            GUID = new Guid("a88522ee-182f-40ed-9f27-1abdacdb8b8d"),
 01911                            IsDeleted = false,
 01912                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01913                            Name = "Макао"
 01914                        },
 01915                        new
 01916                        {
 01917                            Id = 120L,
 01918                            Code = 454,
 01919                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9639
 01920                            GUID = new Guid("b927aba3-8310-4038-bca2-c7497a8a2007"),
 01921                            IsDeleted = false,
 01922                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01923                            Name = "Малави"
 01924                        },
 01925                        new
 01926                        {
 01927                            Id = 121L,
 01928                            Code = 458,
 01929                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9666
 01930                            GUID = new Guid("d4550d95-e0ed-4322-8319-b5b6bb13e4f4"),
 01931                            IsDeleted = false,
 01932                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01933                            Name = "Малайзия"
 01934                        },
 01935                        new
 01936                        {
 01937                            Id = 122L,
 01938                            Code = 466,
 01939                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9689
 01940                            GUID = new Guid("8a1c58cf-200b-4383-bdfa-90b635b2a399"),
 01941                            IsDeleted = false,
 01942                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01943                            Name = "Мали"
 01944                        },
 01945                        new
 01946                        {
 01947                            Id = 123L,
 01948                            Code = 581,
 01949                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9712
 01950                            GUID = new Guid("00f92d23-a972-45ca-9605-647e18a86e41"),
 01951                            IsDeleted = false,
 01952                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01953                            Name = "Малые Тихоокеанские отдаленные острова Соединенных Штатов"
 01954                        },
 01955                        new
 01956                        {
 01957                            Id = 124L,
 01958                            Code = 462,
 01959                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9735
 01960                            GUID = new Guid("3dc7d2a3-9521-4759-8882-21c556a3f49e"),
 01961                            IsDeleted = false,
 01962                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01963                            Name = "Мальдивы"
 01964                        },
 01965                        new
 01966                        {
 01967                            Id = 125L,
 01968                            Code = 470,
 01969                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9758
 01970                            GUID = new Guid("58b0e2a7-4dac-4679-a7bd-de14db85ce99"),
 01971                            IsDeleted = false,
 01972                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01973                            Name = "Мальта"
 01974                        },
 01975                        new
 01976                        {
 01977                            Id = 126L,
 01978                            Code = 504,
 01979                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9782
 01980                            GUID = new Guid("19686364-cb7a-4311-bd9b-9c512de1c4ad"),
 01981                            IsDeleted = false,
 01982                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01983                            Name = "Марокко"
 01984                        },
 01985                        new
 01986                        {
 01987                            Id = 127L,
 01988                            Code = 474,
 01989                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9805
 01990                            GUID = new Guid("5d6a0486-85af-45b8-9063-8fc6a0809df2"),
 01991                            IsDeleted = false,
 01992                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 01993                            Name = "Мартиника"
 01994                        },
 01995                        new
 01996                        {
 01997                            Id = 128L,
 01998                            Code = 584,
 01999                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9828
 02000                            GUID = new Guid("12835feb-cf89-4dc5-b60d-3bcc2d3b36bc"),
 02001                            IsDeleted = false,
 02002                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 02003                            Name = "Маршалловы острова"
 02004                        },
 02005                        new
 02006                        {
 02007                            Id = 129L,
 02008                            Code = 484,
 02009                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9853
 02010                            GUID = new Guid("ebf7570e-2529-4448-96b0-6fc910e49eb3"),
 02011                            IsDeleted = false,
 02012                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 02013                            Name = "Мексика"
 02014                        },
 02015                        new
 02016                        {
 02017                            Id = 130L,
 02018                            Code = 583,
 02019                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9876
 02020                            GUID = new Guid("45a4e0c5-6d91-4be2-8a12-3797b65b036c"),
 02021                            IsDeleted = false,
 02022                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 02023                            Name = "Микронезия, Федеративные Штаты"
 02024                        },
 02025                        new
 02026                        {
 02027                            Id = 131L,
 02028                            Code = 508,
 02029                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9939
 02030                            GUID = new Guid("1c20a979-4a30-4162-8aa0-498e60eecfe7"),
 02031                            IsDeleted = false,
 02032                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 02033                            Name = "Мозамбик"
 02034                        },
 02035                        new
 02036                        {
 02037                            Id = 132L,
 02038                            Code = 498,
 02039                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9963
 02040                            GUID = new Guid("80a96c26-b401-4117-918d-cf2d7d40f36e"),
 02041                            IsDeleted = false,
 02042                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 02043                            Name = "Молдова, Республика"
 02044                        },
 02045                        new
 02046                        {
 02047                            Id = 133L,
 02048                            Code = 492,
 02049                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(9986
 02050                            GUID = new Guid("412ddb4f-fd83-4b1f-ad52-484728515d0d"),
 02051                            IsDeleted = false,
 02052                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 02053                            Name = "Монако"
 02054                        },
 02055                        new
 02056                        {
 02057                            Id = 134L,
 02058                            Code = 496,
 02059                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(9),
 02060                            GUID = new Guid("bdb0deaa-0b0a-458b-8da3-faf4606a2792"),
 02061                            IsDeleted = false,
 02062                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02063                            Name = "Монголия"
 02064                        },
 02065                        new
 02066                        {
 02067                            Id = 135L,
 02068                            Code = 500,
 02069                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(32),
 02070                            GUID = new Guid("7b667c3f-6362-4bf9-a706-2c8141fd4c23"),
 02071                            IsDeleted = false,
 02072                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02073                            Name = "Монтсеррат"
 02074                        },
 02075                        new
 02076                        {
 02077                            Id = 136L,
 02078                            Code = 104,
 02079                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(55),
 02080                            GUID = new Guid("6e23afe8-bd7f-4924-b373-aea7d2daa992"),
 02081                            IsDeleted = false,
 02082                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02083                            Name = "Мьянма"
 02084                        },
 02085                        new
 02086                        {
 02087                            Id = 137L,
 02088                            Code = 516,
 02089                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(81),
 02090                            GUID = new Guid("615b919e-cf67-4d76-b353-2b3df63308ee"),
 02091                            IsDeleted = false,
 02092                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02093                            Name = "Намибия"
 02094                        },
 02095                        new
 02096                        {
 02097                            Id = 138L,
 02098                            Code = 520,
 02099                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(105)
 02100                            GUID = new Guid("9e4c8e8c-24bd-4820-bbe6-7d70c7309fa3"),
 02101                            IsDeleted = false,
 02102                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02103                            Name = "Науру"
 02104                        },
 02105                        new
 02106                        {
 02107                            Id = 139L,
 02108                            Code = 524,
 02109                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(128)
 02110                            GUID = new Guid("f5cd441c-fbcc-484b-ae70-ee5b427dc188"),
 02111                            IsDeleted = false,
 02112                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02113                            Name = "Непал"
 02114                        },
 02115                        new
 02116                        {
 02117                            Id = 140L,
 02118                            Code = 562,
 02119                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(151)
 02120                            GUID = new Guid("ec9912f4-7fc6-4378-bd1a-86df128729cb"),
 02121                            IsDeleted = false,
 02122                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02123                            Name = "Нигер"
 02124                        },
 02125                        new
 02126                        {
 02127                            Id = 141L,
 02128                            Code = 566,
 02129                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(174)
 02130                            GUID = new Guid("ca1ae146-92d0-45cc-a595-8572c16a4f8c"),
 02131                            IsDeleted = false,
 02132                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02133                            Name = "Нигерия"
 02134                        },
 02135                        new
 02136                        {
 02137                            Id = 142L,
 02138                            Code = 528,
 02139                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(197)
 02140                            GUID = new Guid("900ad260-43ed-425e-aaf3-b538f59ed34d"),
 02141                            IsDeleted = false,
 02142                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02143                            Name = "Нидерланды"
 02144                        },
 02145                        new
 02146                        {
 02147                            Id = 143L,
 02148                            Code = 558,
 02149                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(221)
 02150                            GUID = new Guid("de841516-d630-4dbe-8311-71cc6f1a1c96"),
 02151                            IsDeleted = false,
 02152                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02153                            Name = "Никарагуа"
 02154                        },
 02155                        new
 02156                        {
 02157                            Id = 144L,
 02158                            Code = 570,
 02159                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(243)
 02160                            GUID = new Guid("e86f2066-bac4-4b7c-8c50-1afa3eb8f666"),
 02161                            IsDeleted = false,
 02162                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02163                            Name = "Ниуэ"
 02164                        },
 02165                        new
 02166                        {
 02167                            Id = 145L,
 02168                            Code = 554,
 02169                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(268)
 02170                            GUID = new Guid("08234a9a-a492-4779-b3de-614cf2064101"),
 02171                            IsDeleted = false,
 02172                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02173                            Name = "Новая Зеландия"
 02174                        },
 02175                        new
 02176                        {
 02177                            Id = 146L,
 02178                            Code = 540,
 02179                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(291)
 02180                            GUID = new Guid("5aade890-3888-4cd4-b513-0d152c5b6eab"),
 02181                            IsDeleted = false,
 02182                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02183                            Name = "Новая Каледония"
 02184                        },
 02185                        new
 02186                        {
 02187                            Id = 147L,
 02188                            Code = 578,
 02189                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(314)
 02190                            GUID = new Guid("ab095713-7622-47ec-aad7-80d8272c07bc"),
 02191                            IsDeleted = false,
 02192                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02193                            Name = "Норвегия"
 02194                        },
 02195                        new
 02196                        {
 02197                            Id = 148L,
 02198                            Code = 784,
 02199                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(337)
 02200                            GUID = new Guid("95f2eb8d-ffa8-491a-b8f9-e099252ddd52"),
 02201                            IsDeleted = false,
 02202                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02203                            Name = "Объединенные Арабские Эмираты"
 02204                        },
 02205                        new
 02206                        {
 02207                            Id = 149L,
 02208                            Code = 512,
 02209                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(425)
 02210                            GUID = new Guid("53405a37-4304-4309-b261-8cf5847ef982"),
 02211                            IsDeleted = false,
 02212                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02213                            Name = "Оман"
 02214                        },
 02215                        new
 02216                        {
 02217                            Id = 150L,
 02218                            Code = 74,
 02219                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(454)
 02220                            GUID = new Guid("94e6c44b-5a74-4db1-8fe4-8cb058ba8b6b"),
 02221                            IsDeleted = false,
 02222                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02223                            Name = "Остров Буве"
 02224                        },
 02225                        new
 02226                        {
 02227                            Id = 151L,
 02228                            Code = 833,
 02229                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(477)
 02230                            GUID = new Guid("791c14bb-f360-4d3f-b53e-d254eaced607"),
 02231                            IsDeleted = false,
 02232                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02233                            Name = "Остров Мэн"
 02234                        },
 02235                        new
 02236                        {
 02237                            Id = 152L,
 02238                            Code = 574,
 02239                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(500)
 02240                            GUID = new Guid("b8838d2c-ee4a-423f-b4c9-24c7cd56b05d"),
 02241                            IsDeleted = false,
 02242                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02243                            Name = "Остров Норфолк"
 02244                        },
 02245                        new
 02246                        {
 02247                            Id = 153L,
 02248                            Code = 162,
 02249                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(526)
 02250                            GUID = new Guid("8d11ac6b-baed-4c41-976a-0efa97cdc536"),
 02251                            IsDeleted = false,
 02252                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02253                            Name = "Остров Рождества"
 02254                        },
 02255                        new
 02256                        {
 02257                            Id = 154L,
 02258                            Code = 334,
 02259                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(549)
 02260                            GUID = new Guid("90ee6ff5-ac25-46e9-9c28-7ddadcb331e9"),
 02261                            IsDeleted = false,
 02262                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02263                            Name = "Остров Херд и острова Макдональд"
 02264                        },
 02265                        new
 02266                        {
 02267                            Id = 155L,
 02268                            Code = 136,
 02269                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(572)
 02270                            GUID = new Guid("752fc918-d3a6-4321-9721-c061207a9cca"),
 02271                            IsDeleted = false,
 02272                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02273                            Name = "Острова Кайман"
 02274                        },
 02275                        new
 02276                        {
 02277                            Id = 156L,
 02278                            Code = 184,
 02279                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(594)
 02280                            GUID = new Guid("a7962414-fc54-4a2a-abb7-b7f2229f84a0"),
 02281                            IsDeleted = false,
 02282                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02283                            Name = "Острова Кука"
 02284                        },
 02285                        new
 02286                        {
 02287                            Id = 157L,
 02288                            Code = 796,
 02289                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(619)
 02290                            GUID = new Guid("b0528dae-1a08-4edb-9eac-9a98ce16a2ca"),
 02291                            IsDeleted = false,
 02292                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02293                            Name = "Острова Теркс и Кайкос"
 02294                        },
 02295                        new
 02296                        {
 02297                            Id = 158L,
 02298                            Code = 586,
 02299                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(641)
 02300                            GUID = new Guid("8ea4517f-749c-484b-9a6b-e640c0c41c05"),
 02301                            IsDeleted = false,
 02302                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02303                            Name = "Пакистан"
 02304                        },
 02305                        new
 02306                        {
 02307                            Id = 159L,
 02308                            Code = 585,
 02309                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(664)
 02310                            GUID = new Guid("2a6fd14a-68e6-487d-b86b-65dec24894c5"),
 02311                            IsDeleted = false,
 02312                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02313                            Name = "Палау"
 02314                        },
 02315                        new
 02316                        {
 02317                            Id = 160L,
 02318                            Code = 275,
 02319                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(687)
 02320                            GUID = new Guid("03c20b17-3f69-4d76-b2e5-97f39ba7161d"),
 02321                            IsDeleted = false,
 02322                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02323                            Name = "Палестинская территория, оккупированная"
 02324                        },
 02325                        new
 02326                        {
 02327                            Id = 161L,
 02328                            Code = 591,
 02329                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(712)
 02330                            GUID = new Guid("764f1206-7c03-42ce-af33-fa52f5cf57e5"),
 02331                            IsDeleted = false,
 02332                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02333                            Name = "Панама"
 02334                        },
 02335                        new
 02336                        {
 02337                            Id = 162L,
 02338                            Code = 336,
 02339                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(735)
 02340                            GUID = new Guid("6db86d0d-260b-496b-a53c-3a60c2fb8b8d"),
 02341                            IsDeleted = false,
 02342                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02343                            Name = "Папский Престол (Государство &mdash; город Ватикан)"
 02344                        },
 02345                        new
 02346                        {
 02347                            Id = 163L,
 02348                            Code = 598,
 02349                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(759)
 02350                            GUID = new Guid("639cc16c-f312-4785-afa1-3877ed0c16f2"),
 02351                            IsDeleted = false,
 02352                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02353                            Name = "Папуа-Новая Гвинея"
 02354                        },
 02355                        new
 02356                        {
 02357                            Id = 164L,
 02358                            Code = 600,
 02359                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(782)
 02360                            GUID = new Guid("59e7fbe4-6edf-487c-a10f-50059435ebf0"),
 02361                            IsDeleted = false,
 02362                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02363                            Name = "Парагвай"
 02364                        },
 02365                        new
 02366                        {
 02367                            Id = 165L,
 02368                            Code = 604,
 02369                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(805)
 02370                            GUID = new Guid("35548035-2b2d-488d-8554-14aad80a54a6"),
 02371                            IsDeleted = false,
 02372                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02373                            Name = "Перу"
 02374                        },
 02375                        new
 02376                        {
 02377                            Id = 166L,
 02378                            Code = 612,
 02379                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(828)
 02380                            GUID = new Guid("be7db4ce-198c-4485-8c97-18b0fb0acc28"),
 02381                            IsDeleted = false,
 02382                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02383                            Name = "Питкерн"
 02384                        },
 02385                        new
 02386                        {
 02387                            Id = 167L,
 02388                            Code = 616,
 02389                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(851)
 02390                            GUID = new Guid("5a458071-3ff3-4a13-91f2-384cde480623"),
 02391                            IsDeleted = false,
 02392                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02393                            Name = "Польша"
 02394                        },
 02395                        new
 02396                        {
 02397                            Id = 168L,
 02398                            Code = 620,
 02399                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(999)
 02400                            GUID = new Guid("f47e55ab-9000-44bc-80a9-50c5321d8f3b"),
 02401                            IsDeleted = false,
 02402                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02403                            Name = "Португалия"
 02404                        },
 02405                        new
 02406                        {
 02407                            Id = 169L,
 02408                            Code = 630,
 02409                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1033
 02410                            GUID = new Guid("d8b20c1a-f07c-4ad9-a034-235c60eb8bea"),
 02411                            IsDeleted = false,
 02412                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02413                            Name = "Пуэрто-Рико"
 02414                        },
 02415                        new
 02416                        {
 02417                            Id = 170L,
 02418                            Code = 807,
 02419                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1057
 02420                            GUID = new Guid("d8252f1a-2d61-4ef2-91a1-f90dd760aea7"),
 02421                            IsDeleted = false,
 02422                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02423                            Name = "Республика Македония"
 02424                        },
 02425                        new
 02426                        {
 02427                            Id = 171L,
 02428                            Code = 638,
 02429                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1081
 02430                            GUID = new Guid("87144a4d-080e-4ac9-b118-ef17303e20e4"),
 02431                            IsDeleted = false,
 02432                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02433                            Name = "Реюньон"
 02434                        },
 02435                        new
 02436                        {
 02437                            Id = 172L,
 02438                            Code = 643,
 02439                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1104
 02440                            GUID = new Guid("062a857d-ff2b-4764-b338-ef5560970e70"),
 02441                            IsDeleted = false,
 02442                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02443                            Name = "Россия"
 02444                        },
 02445                        new
 02446                        {
 02447                            Id = 173L,
 02448                            Code = 646,
 02449                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1128
 02450                            GUID = new Guid("69908e09-4da2-42a8-ae39-075ba04f0701"),
 02451                            IsDeleted = false,
 02452                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02453                            Name = "Руанда"
 02454                        },
 02455                        new
 02456                        {
 02457                            Id = 174L,
 02458                            Code = 642,
 02459                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1151
 02460                            GUID = new Guid("614fc445-64a5-4652-9fb6-a4c5f089ee88"),
 02461                            IsDeleted = false,
 02462                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02463                            Name = "Румыния"
 02464                        },
 02465                        new
 02466                        {
 02467                            Id = 175L,
 02468                            Code = 882,
 02469                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1174
 02470                            GUID = new Guid("5c2918a5-1027-4359-929f-746c23b6a220"),
 02471                            IsDeleted = false,
 02472                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02473                            Name = "Самоа"
 02474                        },
 02475                        new
 02476                        {
 02477                            Id = 176L,
 02478                            Code = 674,
 02479                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1198
 02480                            GUID = new Guid("9725c4b5-8ecd-47c8-ba4f-9377bf0e6927"),
 02481                            IsDeleted = false,
 02482                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02483                            Name = "Сан-Марино"
 02484                        },
 02485                        new
 02486                        {
 02487                            Id = 177L,
 02488                            Code = 678,
 02489                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1223
 02490                            GUID = new Guid("5f9b0946-e968-43ea-93d6-e70e97298d97"),
 02491                            IsDeleted = false,
 02492                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02493                            Name = "Сан-Томе и Принсипи"
 02494                        },
 02495                        new
 02496                        {
 02497                            Id = 178L,
 02498                            Code = 682,
 02499                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1248
 02500                            GUID = new Guid("2cda558a-a8a8-45f2-82a8-b7df343108e5"),
 02501                            IsDeleted = false,
 02502                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02503                            Name = "Саудовская Аравия"
 02504                        },
 02505                        new
 02506                        {
 02507                            Id = 179L,
 02508                            Code = 748,
 02509                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1271
 02510                            GUID = new Guid("200b69e3-0043-4302-b101-05b4138f5ffe"),
 02511                            IsDeleted = false,
 02512                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02513                            Name = "Свазиленд"
 02514                        },
 02515                        new
 02516                        {
 02517                            Id = 180L,
 02518                            Code = 654,
 02519                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1295
 02520                            GUID = new Guid("2bd9f452-2d17-4aa9-aabc-123911c91611"),
 02521                            IsDeleted = false,
 02522                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02523                            Name = "Святая Елена, Остров вознесения, Тристан-да-Кунья"
 02524                        },
 02525                        new
 02526                        {
 02527                            Id = 181L,
 02528                            Code = 580,
 02529                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1318
 02530                            GUID = new Guid("0a5f1e00-8d91-4d4c-900d-0e07c255e906"),
 02531                            IsDeleted = false,
 02532                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02533                            Name = "Северные Марианские острова"
 02534                        },
 02535                        new
 02536                        {
 02537                            Id = 182L,
 02538                            Code = 652,
 02539                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1341
 02540                            GUID = new Guid("2789c694-dbee-45d5-a944-e45916362b71"),
 02541                            IsDeleted = false,
 02542                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02543                            Name = "Сен-Бартельми"
 02544                        },
 02545                        new
 02546                        {
 02547                            Id = 183L,
 02548                            Code = 663,
 02549                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1365
 02550                            GUID = new Guid("94ed1341-a658-4a20-a0e7-3a530931558b"),
 02551                            IsDeleted = false,
 02552                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02553                            Name = "Сен-Мартен"
 02554                        },
 02555                        new
 02556                        {
 02557                            Id = 184L,
 02558                            Code = 686,
 02559                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1388
 02560                            GUID = new Guid("e0e3a9a9-e92c-4c46-bee1-fe25ee038865"),
 02561                            IsDeleted = false,
 02562                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02563                            Name = "Сенегал"
 02564                        },
 02565                        new
 02566                        {
 02567                            Id = 185L,
 02568                            Code = 670,
 02569                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1414
 02570                            GUID = new Guid("f588ed64-3438-4e78-aad7-6f2dcdbcd98b"),
 02571                            IsDeleted = false,
 02572                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02573                            Name = "Сент-Винсент и Гренадины"
 02574                        },
 02575                        new
 02576                        {
 02577                            Id = 186L,
 02578                            Code = 659,
 02579                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1437
 02580                            GUID = new Guid("cfcc69eb-9c95-4ee3-b19d-36b662bde0d2"),
 02581                            IsDeleted = false,
 02582                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02583                            Name = "Сент-Китс и Невис"
 02584                        },
 02585                        new
 02586                        {
 02587                            Id = 187L,
 02588                            Code = 662,
 02589                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1500
 02590                            GUID = new Guid("f6345dfd-97ba-4073-a48e-5e9c93fed3b6"),
 02591                            IsDeleted = false,
 02592                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02593                            Name = "Сент-Люсия"
 02594                        },
 02595                        new
 02596                        {
 02597                            Id = 188L,
 02598                            Code = 666,
 02599                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1528
 02600                            GUID = new Guid("eb3f0167-ddce-4b29-bfc2-0c47b9d8390f"),
 02601                            IsDeleted = false,
 02602                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02603                            Name = "Сент-Пьер и Микелон"
 02604                        },
 02605                        new
 02606                        {
 02607                            Id = 189L,
 02608                            Code = 688,
 02609                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1551
 02610                            GUID = new Guid("82436db4-0678-478b-a84e-ae5765b0c7ac"),
 02611                            IsDeleted = false,
 02612                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02613                            Name = "Сербия"
 02614                        },
 02615                        new
 02616                        {
 02617                            Id = 190L,
 02618                            Code = 690,
 02619                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1573
 02620                            GUID = new Guid("25dbab2d-0953-47b1-a70e-924a5e102027"),
 02621                            IsDeleted = false,
 02622                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02623                            Name = "Сейшелы"
 02624                        },
 02625                        new
 02626                        {
 02627                            Id = 191L,
 02628                            Code = 702,
 02629                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1597
 02630                            GUID = new Guid("7dea488f-1bf0-4e5e-bb83-e0056c729aa3"),
 02631                            IsDeleted = false,
 02632                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02633                            Name = "Сингапур"
 02634                        },
 02635                        new
 02636                        {
 02637                            Id = 192L,
 02638                            Code = 534,
 02639                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1620
 02640                            GUID = new Guid("d7cd0ffc-ac75-4c00-a247-1f4ae926cb94"),
 02641                            IsDeleted = false,
 02642                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02643                            Name = "Синт-Мартен"
 02644                        },
 02645                        new
 02646                        {
 02647                            Id = 193L,
 02648                            Code = 760,
 02649                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1646
 02650                            GUID = new Guid("961010df-f33a-4983-b117-503844979a8a"),
 02651                            IsDeleted = false,
 02652                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02653                            Name = "Сирийская Арабская Республика"
 02654                        },
 02655                        new
 02656                        {
 02657                            Id = 194L,
 02658                            Code = 703,
 02659                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1669
 02660                            GUID = new Guid("a213983c-c5c2-45d5-a385-e30d7c7d894a"),
 02661                            IsDeleted = false,
 02662                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02663                            Name = "Словакия"
 02664                        },
 02665                        new
 02666                        {
 02667                            Id = 195L,
 02668                            Code = 705,
 02669                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1692
 02670                            GUID = new Guid("a8276e89-b125-4505-ad3c-48caee168f0b"),
 02671                            IsDeleted = false,
 02672                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02673                            Name = "Словения"
 02674                        },
 02675                        new
 02676                        {
 02677                            Id = 196L,
 02678                            Code = 826,
 02679                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1715
 02680                            GUID = new Guid("237b851c-2a9a-498d-a07e-7be84c4d5d7e"),
 02681                            IsDeleted = false,
 02682                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02683                            Name = "Соединенное Королевство"
 02684                        },
 02685                        new
 02686                        {
 02687                            Id = 197L,
 02688                            Code = 840,
 02689                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1738
 02690                            GUID = new Guid("f08de566-0e31-447c-951d-ef15d528f5ba"),
 02691                            IsDeleted = false,
 02692                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02693                            Name = "Соединенные Штаты"
 02694                        },
 02695                        new
 02696                        {
 02697                            Id = 198L,
 02698                            Code = 90,
 02699                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1761
 02700                            GUID = new Guid("941b947b-6849-48ea-8e2d-e8e031c14ec9"),
 02701                            IsDeleted = false,
 02702                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02703                            Name = "Соломоновы острова"
 02704                        },
 02705                        new
 02706                        {
 02707                            Id = 199L,
 02708                            Code = 706,
 02709                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1784
 02710                            GUID = new Guid("da30afa9-a476-4255-b843-e0a38f7bf659"),
 02711                            IsDeleted = false,
 02712                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02713                            Name = "Сомали"
 02714                        },
 02715                        new
 02716                        {
 02717                            Id = 200L,
 02718                            Code = 729,
 02719                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1807
 02720                            GUID = new Guid("92e4f9be-d1b9-46e9-b478-36fb6108141e"),
 02721                            IsDeleted = false,
 02722                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02723                            Name = "Судан"
 02724                        },
 02725                        new
 02726                        {
 02727                            Id = 201L,
 02728                            Code = 740,
 02729                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1832
 02730                            GUID = new Guid("e5c1381d-9cc7-45fe-8d6a-72cab9950cb4"),
 02731                            IsDeleted = false,
 02732                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02733                            Name = "Суринам"
 02734                        },
 02735                        new
 02736                        {
 02737                            Id = 202L,
 02738                            Code = 694,
 02739                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1855
 02740                            GUID = new Guid("b838760f-cef8-412a-91d9-6d51e522fb5c"),
 02741                            IsDeleted = false,
 02742                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02743                            Name = "Сьерра-Леоне"
 02744                        },
 02745                        new
 02746                        {
 02747                            Id = 203L,
 02748                            Code = 762,
 02749                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1878
 02750                            GUID = new Guid("afbaa885-9e93-4eea-83f6-a907dbce9531"),
 02751                            IsDeleted = false,
 02752                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02753                            Name = "Таджикистан"
 02754                        },
 02755                        new
 02756                        {
 02757                            Id = 204L,
 02758                            Code = 764,
 02759                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1902
 02760                            GUID = new Guid("c905dae6-5f71-401c-970f-00971a5c812b"),
 02761                            IsDeleted = false,
 02762                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02763                            Name = "Таиланд"
 02764                        },
 02765                        new
 02766                        {
 02767                            Id = 205L,
 02768                            Code = 158,
 02769                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1925
 02770                            GUID = new Guid("8aa98c6a-cee7-413e-bd0c-221224962d55"),
 02771                            IsDeleted = false,
 02772                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02773                            Name = "Тайвань (Китай)"
 02774                        },
 02775                        new
 02776                        {
 02777                            Id = 206L,
 02778                            Code = 834,
 02779                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(1987
 02780                            GUID = new Guid("ecfbd07e-6283-4183-bce7-927f156deb79"),
 02781                            IsDeleted = false,
 02782                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02783                            Name = "Танзания, Объединенная Республика"
 02784                        },
 02785                        new
 02786                        {
 02787                            Id = 207L,
 02788                            Code = 626,
 02789                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2010
 02790                            GUID = new Guid("0f533913-9123-401a-8d5f-e1f39e5401c4"),
 02791                            IsDeleted = false,
 02792                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02793                            Name = "Тимор-Лесте"
 02794                        },
 02795                        new
 02796                        {
 02797                            Id = 208L,
 02798                            Code = 768,
 02799                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2034
 02800                            GUID = new Guid("ce60289b-2403-45d8-af2f-396bdba55486"),
 02801                            IsDeleted = false,
 02802                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02803                            Name = "Того"
 02804                        },
 02805                        new
 02806                        {
 02807                            Id = 209L,
 02808                            Code = 772,
 02809                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2059
 02810                            GUID = new Guid("3028481f-c2de-4a76-ad2e-d8755ca3ea9c"),
 02811                            IsDeleted = false,
 02812                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02813                            Name = "Токелау"
 02814                        },
 02815                        new
 02816                        {
 02817                            Id = 210L,
 02818                            Code = 776,
 02819                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2082
 02820                            GUID = new Guid("922cd635-81b1-4e4a-a8ef-fa2587180ba9"),
 02821                            IsDeleted = false,
 02822                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02823                            Name = "Тонга"
 02824                        },
 02825                        new
 02826                        {
 02827                            Id = 211L,
 02828                            Code = 780,
 02829                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2105
 02830                            GUID = new Guid("2b168bd8-8f0d-43f3-af35-82d96719b00a"),
 02831                            IsDeleted = false,
 02832                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02833                            Name = "Тринидад и Тобаго"
 02834                        },
 02835                        new
 02836                        {
 02837                            Id = 212L,
 02838                            Code = 798,
 02839                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2128
 02840                            GUID = new Guid("93066125-6ce5-4241-b5eb-934034cd9bc2"),
 02841                            IsDeleted = false,
 02842                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02843                            Name = "Тувалу"
 02844                        },
 02845                        new
 02846                        {
 02847                            Id = 213L,
 02848                            Code = 788,
 02849                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2151
 02850                            GUID = new Guid("97ab156e-ee5e-43fb-b05e-ea41a8348a75"),
 02851                            IsDeleted = false,
 02852                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02853                            Name = "Тунис"
 02854                        },
 02855                        new
 02856                        {
 02857                            Id = 214L,
 02858                            Code = 795,
 02859                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2174
 02860                            GUID = new Guid("87588c07-ed03-4324-8440-b712630b66e7"),
 02861                            IsDeleted = false,
 02862                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02863                            Name = "Туркмения"
 02864                        },
 02865                        new
 02866                        {
 02867                            Id = 215L,
 02868                            Code = 792,
 02869                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2197
 02870                            GUID = new Guid("15bc5981-2a01-4628-807b-fef3eaceb915"),
 02871                            IsDeleted = false,
 02872                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02873                            Name = "Турция"
 02874                        },
 02875                        new
 02876                        {
 02877                            Id = 216L,
 02878                            Code = 800,
 02879                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2220
 02880                            GUID = new Guid("22c69816-084a-4c17-8914-a664f186d866"),
 02881                            IsDeleted = false,
 02882                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02883                            Name = "Уганда"
 02884                        },
 02885                        new
 02886                        {
 02887                            Id = 217L,
 02888                            Code = 860,
 02889                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2245
 02890                            GUID = new Guid("addb0ab4-8bea-4b84-b3f0-ed6f249c6638"),
 02891                            IsDeleted = false,
 02892                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02893                            Name = "Узбекистан"
 02894                        },
 02895                        new
 02896                        {
 02897                            Id = 218L,
 02898                            Code = 804,
 02899                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2268
 02900                            GUID = new Guid("1f7ff4b2-3204-4201-8c86-16d796f461ae"),
 02901                            IsDeleted = false,
 02902                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02903                            Name = "Украина"
 02904                        },
 02905                        new
 02906                        {
 02907                            Id = 219L,
 02908                            Code = 876,
 02909                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2292
 02910                            GUID = new Guid("bc6a7fdb-1604-47ba-aec8-7a0821b44a44"),
 02911                            IsDeleted = false,
 02912                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02913                            Name = "Уоллис и Футуна"
 02914                        },
 02915                        new
 02916                        {
 02917                            Id = 220L,
 02918                            Code = 858,
 02919                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2315
 02920                            GUID = new Guid("c2022c4a-d356-4f7c-b0b2-381c8a6a76fe"),
 02921                            IsDeleted = false,
 02922                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02923                            Name = "Уругвай"
 02924                        },
 02925                        new
 02926                        {
 02927                            Id = 221L,
 02928                            Code = 234,
 02929                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2338
 02930                            GUID = new Guid("2da946d3-5ee0-496e-8224-2ae363f51431"),
 02931                            IsDeleted = false,
 02932                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02933                            Name = "Фарерские острова"
 02934                        },
 02935                        new
 02936                        {
 02937                            Id = 222L,
 02938                            Code = 242,
 02939                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2363
 02940                            GUID = new Guid("d57ec0f7-95e5-44d2-a5fb-8ad2a5cdf91b"),
 02941                            IsDeleted = false,
 02942                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02943                            Name = "Фиджи"
 02944                        },
 02945                        new
 02946                        {
 02947                            Id = 223L,
 02948                            Code = 608,
 02949                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2386
 02950                            GUID = new Guid("a0640fc7-4e52-4752-b344-1c27221160ef"),
 02951                            IsDeleted = false,
 02952                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02953                            Name = "Филиппины"
 02954                        },
 02955                        new
 02956                        {
 02957                            Id = 224L,
 02958                            Code = 246,
 02959                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2409
 02960                            GUID = new Guid("1239e1b6-f077-428e-aaeb-6ffec28f7eca"),
 02961                            IsDeleted = false,
 02962                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02963                            Name = "Финляндия"
 02964                        },
 02965                        new
 02966                        {
 02967                            Id = 225L,
 02968                            Code = 238,
 02969                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2472
 02970                            GUID = new Guid("009fc9ff-9e8e-4c62-abb1-f4b8a0962e78"),
 02971                            IsDeleted = false,
 02972                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02973                            Name = "Фолклендские острова (Мальвинские)"
 02974                        },
 02975                        new
 02976                        {
 02977                            Id = 226L,
 02978                            Code = 250,
 02979                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2496
 02980                            GUID = new Guid("102290ab-333d-42c1-bcae-850bd10aaea8"),
 02981                            IsDeleted = false,
 02982                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02983                            Name = "Франция"
 02984                        },
 02985                        new
 02986                        {
 02987                            Id = 227L,
 02988                            Code = 254,
 02989                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2519
 02990                            GUID = new Guid("fc398b22-3b4e-4ea4-bd89-a24007bda9d4"),
 02991                            IsDeleted = false,
 02992                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 02993                            Name = "Французская Гвиана"
 02994                        },
 02995                        new
 02996                        {
 02997                            Id = 228L,
 02998                            Code = 258,
 02999                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2543
 03000                            GUID = new Guid("444a8d93-c825-49fc-b888-061411e87dc6"),
 03001                            IsDeleted = false,
 03002                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03003                            Name = "Французская Полинезия"
 03004                        },
 03005                        new
 03006                        {
 03007                            Id = 229L,
 03008                            Code = 260,
 03009                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2566
 03010                            GUID = new Guid("44a9a6b8-e761-4ddc-89a8-bf72b4b98a6e"),
 03011                            IsDeleted = false,
 03012                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03013                            Name = "Французские Южные территории"
 03014                        },
 03015                        new
 03016                        {
 03017                            Id = 230L,
 03018                            Code = 191,
 03019                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2589
 03020                            GUID = new Guid("5cf3c6ca-c1b9-492d-a7e9-34ab127c0098"),
 03021                            IsDeleted = false,
 03022                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03023                            Name = "Хорватия"
 03024                        },
 03025                        new
 03026                        {
 03027                            Id = 231L,
 03028                            Code = 140,
 03029                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2612
 03030                            GUID = new Guid("8843473f-965a-4c02-9c21-421d7832186f"),
 03031                            IsDeleted = false,
 03032                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03033                            Name = "Центрально-Африканская Республика"
 03034                        },
 03035                        new
 03036                        {
 03037                            Id = 232L,
 03038                            Code = 148,
 03039                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2635
 03040                            GUID = new Guid("118926d3-f1ba-4751-aac1-50c9ef050552"),
 03041                            IsDeleted = false,
 03042                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03043                            Name = "Чад"
 03044                        },
 03045                        new
 03046                        {
 03047                            Id = 233L,
 03048                            Code = 499,
 03049                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2660
 03050                            GUID = new Guid("c0069ec3-b843-41c9-91f7-bb0738286605"),
 03051                            IsDeleted = false,
 03052                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03053                            Name = "Черногория"
 03054                        },
 03055                        new
 03056                        {
 03057                            Id = 234L,
 03058                            Code = 203,
 03059                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2684
 03060                            GUID = new Guid("628ead60-33c6-4419-b6dc-30402a70b4ea"),
 03061                            IsDeleted = false,
 03062                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03063                            Name = "Чешская Республика"
 03064                        },
 03065                        new
 03066                        {
 03067                            Id = 235L,
 03068                            Code = 152,
 03069                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2707
 03070                            GUID = new Guid("65623d8d-fdb7-4b98-9b9f-65297a01814d"),
 03071                            IsDeleted = false,
 03072                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03073                            Name = "Чили"
 03074                        },
 03075                        new
 03076                        {
 03077                            Id = 236L,
 03078                            Code = 756,
 03079                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2732
 03080                            GUID = new Guid("e82de502-c609-4303-a189-af8d32680a6b"),
 03081                            IsDeleted = false,
 03082                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03083                            Name = "Швейцария"
 03084                        },
 03085                        new
 03086                        {
 03087                            Id = 237L,
 03088                            Code = 752,
 03089                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2755
 03090                            GUID = new Guid("f30e0762-4902-47c1-b9c9-417f990f43e3"),
 03091                            IsDeleted = false,
 03092                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03093                            Name = "Швеция"
 03094                        },
 03095                        new
 03096                        {
 03097                            Id = 238L,
 03098                            Code = 744,
 03099                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2778
 03100                            GUID = new Guid("93b5cd87-6f1b-466f-ac8a-431322b94259"),
 03101                            IsDeleted = false,
 03102                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03103                            Name = "Шпицберген и Ян Майен"
 03104                        },
 03105                        new
 03106                        {
 03107                            Id = 239L,
 03108                            Code = 144,
 03109                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2802
 03110                            GUID = new Guid("0da21a73-30d4-4ad9-b1ae-372a31a14c48"),
 03111                            IsDeleted = false,
 03112                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03113                            Name = "Шри-Ланка"
 03114                        },
 03115                        new
 03116                        {
 03117                            Id = 240L,
 03118                            Code = 218,
 03119                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2825
 03120                            GUID = new Guid("895c3c23-4317-4ed6-bc7d-a9cc8cf4007b"),
 03121                            IsDeleted = false,
 03122                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03123                            Name = "Эквадор"
 03124                        },
 03125                        new
 03126                        {
 03127                            Id = 241L,
 03128                            Code = 226,
 03129                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2851
 03130                            GUID = new Guid("167a9aaf-79ad-4323-b858-d5f8a92542b3"),
 03131                            IsDeleted = false,
 03132                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03133                            Name = "Экваториальная Гвинея"
 03134                        },
 03135                        new
 03136                        {
 03137                            Id = 242L,
 03138                            Code = 248,
 03139                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2875
 03140                            GUID = new Guid("7bd32963-0281-4536-b193-fca72b8a197f"),
 03141                            IsDeleted = false,
 03142                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03143                            Name = "Эландские острова"
 03144                        },
 03145                        new
 03146                        {
 03147                            Id = 243L,
 03148                            Code = 222,
 03149                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2933
 03150                            GUID = new Guid("e13531da-0291-4ea0-8015-841413d22873"),
 03151                            IsDeleted = false,
 03152                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03153                            Name = "Эль-Сальвадор"
 03154                        },
 03155                        new
 03156                        {
 03157                            Id = 244L,
 03158                            Code = 232,
 03159                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2959
 03160                            GUID = new Guid("4bd9e187-d282-40e0-b2a9-1ea53ba79efc"),
 03161                            IsDeleted = false,
 03162                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03163                            Name = "Эритрея"
 03164                        },
 03165                        new
 03166                        {
 03167                            Id = 245L,
 03168                            Code = 233,
 03169                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(2982
 03170                            GUID = new Guid("f3684d3c-a9b8-41df-bc75-b6ce1ec4274a"),
 03171                            IsDeleted = false,
 03172                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03173                            Name = "Эстония"
 03174                        },
 03175                        new
 03176                        {
 03177                            Id = 246L,
 03178                            Code = 231,
 03179                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(3006
 03180                            GUID = new Guid("1b9fc801-538d-4f8d-81b3-be3e4f010d34"),
 03181                            IsDeleted = false,
 03182                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03183                            Name = "Эфиопия"
 03184                        },
 03185                        new
 03186                        {
 03187                            Id = 247L,
 03188                            Code = 710,
 03189                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(3030
 03190                            GUID = new Guid("b6570c36-c157-4f28-9837-6931e52a2a77"),
 03191                            IsDeleted = false,
 03192                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03193                            Name = "Южная Африка"
 03194                        },
 03195                        new
 03196                        {
 03197                            Id = 248L,
 03198                            Code = 239,
 03199                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(3054
 03200                            GUID = new Guid("29885682-48ef-4df9-9fc9-0df5402344bb"),
 03201                            IsDeleted = false,
 03202                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03203                            Name = "Южная Джорджия и Южные Сандвичевы острова"
 03204                        },
 03205                        new
 03206                        {
 03207                            Id = 249L,
 03208                            Code = 896,
 03209                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(3079
 03210                            GUID = new Guid("c6acee44-5429-4479-af36-f7512cab2908"),
 03211                            IsDeleted = false,
 03212                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03213                            Name = "Южная Осетия"
 03214                        },
 03215                        new
 03216                        {
 03217                            Id = 250L,
 03218                            Code = 728,
 03219                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(3104
 03220                            GUID = new Guid("2534c76d-ef75-4bd0-8035-0205ba83e28e"),
 03221                            IsDeleted = false,
 03222                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03223                            Name = "Южный Судан"
 03224                        },
 03225                        new
 03226                        {
 03227                            Id = 251L,
 03228                            Code = 388,
 03229                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(3128
 03230                            GUID = new Guid("5c825918-4cc7-4234-af6e-d6b70119c594"),
 03231                            IsDeleted = false,
 03232                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03233                            Name = "Ямайка"
 03234                        },
 03235                        new
 03236                        {
 03237                            Id = 252L,
 03238                            Code = 392,
 03239                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(3151
 03240                            GUID = new Guid("6cc8fdfa-054e-4141-b168-d92f0ed56672"),
 03241                            IsDeleted = false,
 03242                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 993, DateTimeKind.Utc).AddTicks(
 03243                            Name = "Япония"
 03244                        });
 03245                });
 3246
 03247            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Currency", b =>
 03248                {
 03249                    b.Property<long>("Id")
 03250                        .ValueGeneratedOnAdd()
 03251                        .HasColumnType("bigint")
 03252                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 03253
 03254                    b.Property<string>("CODE")
 03255                        .IsRequired()
 03256                        .HasColumnType("text");
 03257
 03258                    b.Property<string>("COUNTRY")
 03259                        .IsRequired()
 03260                        .HasColumnType("text");
 03261
 03262                    b.Property<long?>("CreatedByUserId")
 03263                        .HasColumnType("bigint");
 03264
 03265                    b.Property<DateTime>("CreationDateTime")
 03266                        .HasColumnType("timestamp without time zone");
 03267
 03268                    b.Property<Guid>("GUID")
 03269                        .ValueGeneratedOnAdd()
 03270                        .HasColumnType("uuid");
 03271
 03272                    b.Property<bool>("IsDeleted")
 03273                        .HasColumnType("boolean");
 03274
 03275                    b.Property<DateTime?>("ModificationDateTime")
 03276                        .HasColumnType("timestamp without time zone");
 03277
 03278                    b.Property<long?>("ModifiedByUserId")
 03279                        .HasColumnType("bigint");
 03280
 03281                    b.Property<string>("NAME")
 03282                        .IsRequired()
 03283                        .HasColumnType("text");
 03284
 03285                    b.Property<long?>("RecStateId")
 03286                        .HasColumnType("bigint");
 03287
 03288                    b.Property<string>("STRCODE")
 03289                        .IsRequired()
 03290                        .HasColumnType("text");
 03291
 03292                    b.Property<string>("global_id")
 03293                        .HasColumnType("text");
 03294
 03295                    b.Property<string>("system_object_id")
 03296                        .HasColumnType("text");
 03297
 03298                    b.HasKey("Id");
 03299
 03300                    b.HasIndex("CODE")
 03301                        .IsUnique();
 03302
 03303                    b.HasIndex("CreatedByUserId");
 03304
 03305                    b.HasIndex("ModifiedByUserId");
 03306
 03307                    b.HasIndex("NAME")
 03308                        .IsUnique();
 03309
 03310                    b.HasIndex("RecStateId");
 03311
 03312                    b.HasIndex("STRCODE")
 03313                        .IsUnique();
 03314
 03315                    b.ToTable("Currency");
 03316
 03317                    b.HasData(
 03318                        new
 03319                        {
 03320                            Id = 1L,
 03321                            CODE = "643",
 03322                            COUNTRY = "Россия",
 03323                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(838)
 03324                            GUID = new Guid("66d1eae9-176d-4c29-977a-ef0c73904e27"),
 03325                            IsDeleted = false,
 03326                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 03327                            NAME = "Российский рубль",
 03328                            STRCODE = "RUB",
 03329                            global_id = "62838439",
 03330                            system_object_id = "643"
 03331                        });
 03332                });
 3333
 03334            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", b =>
 03335                {
 03336                    b.Property<long>("Id")
 03337                        .ValueGeneratedOnAdd()
 03338                        .HasColumnType("bigint")
 03339                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 03340
 03341                    b.Property<long?>("ActualAddressId")
 03342                        .HasColumnType("bigint");
 03343
 03344                    b.Property<decimal>("Area")
 03345                        .HasColumnType("numeric");
 03346
 03347                    b.Property<long?>("ClusterId")
 03348                        .HasColumnType("bigint");
 03349
 03350                    b.Property<long>("ContragentId")
 03351                        .HasColumnType("bigint");
 03352
 03353                    b.Property<long?>("CreatedByUserId")
 03354                        .HasColumnType("bigint");
 03355
 03356                    b.Property<DateTime>("CreationDateTime")
 03357                        .HasColumnType("timestamp without time zone");
 03358
 03359                    b.Property<Guid>("GUID")
 03360                        .ValueGeneratedOnAdd()
 03361                        .HasColumnType("uuid");
 03362
 03363                    b.Property<bool>("IsDeleted")
 03364                        .HasColumnType("boolean");
 03365
 03366                    b.Property<long?>("KindId")
 03367                        .HasColumnType("bigint");
 03368
 03369                    b.Property<string>("Kpp")
 03370                        .HasColumnType("text");
 03371
 03372                    b.Property<DateTime?>("ModificationDateTime")
 03373                        .HasColumnType("timestamp without time zone");
 03374
 03375                    b.Property<long?>("ModifiedByUserId")
 03376                        .HasColumnType("bigint");
 03377
 03378                    b.Property<string>("Name")
 03379                        .IsRequired()
 03380                        .HasColumnType("text");
 03381
 03382                    b.Property<string>("PhoneNumber")
 03383                        .IsRequired()
 03384                        .HasColumnType("text");
 03385
 03386                    b.Property<long?>("PostalAddressId")
 03387                        .HasColumnType("bigint");
 03388
 03389                    b.Property<long?>("RecStateId")
 03390                        .HasColumnType("bigint");
 03391
 03392                    b.Property<long?>("StatusId")
 03393                        .HasColumnType("bigint");
 03394
 03395                    b.HasKey("Id");
 03396
 03397                    b.HasIndex("ActualAddressId");
 03398
 03399                    b.HasIndex("ClusterId");
 03400
 03401                    b.HasIndex("ContragentId");
 03402
 03403                    b.HasIndex("CreatedByUserId");
 03404
 03405                    b.HasIndex("KindId");
 03406
 03407                    b.HasIndex("ModifiedByUserId");
 03408
 03409                    b.HasIndex("Name")
 03410                        .IsUnique();
 03411
 03412                    b.HasIndex("PhoneNumber");
 03413
 03414                    b.HasIndex("PostalAddressId");
 03415
 03416                    b.HasIndex("RecStateId");
 03417
 03418                    b.HasIndex("StatusId");
 03419
 03420                    b.ToTable("Departments");
 03421                });
 3422
 03423            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentCategoryRatio", b =>
 03424                {
 03425                    b.Property<long>("Id")
 03426                        .ValueGeneratedOnAdd()
 03427                        .HasColumnType("bigint")
 03428                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 03429
 03430                    b.Property<long>("CategoryId")
 03431                        .HasColumnType("bigint");
 03432
 03433                    b.Property<long?>("CreatedByUserId")
 03434                        .HasColumnType("bigint");
 03435
 03436                    b.Property<DateTime>("CreationDateTime")
 03437                        .HasColumnType("timestamp without time zone");
 03438
 03439                    b.Property<long>("DepartmentId")
 03440                        .HasColumnType("bigint");
 03441
 03442                    b.Property<Guid>("GUID")
 03443                        .ValueGeneratedOnAdd()
 03444                        .HasColumnType("uuid");
 03445
 03446                    b.Property<bool>("IsDeleted")
 03447                        .HasColumnType("boolean");
 03448
 03449                    b.Property<DateTime?>("ModificationDateTime")
 03450                        .HasColumnType("timestamp without time zone");
 03451
 03452                    b.Property<long?>("ModifiedByUserId")
 03453                        .HasColumnType("bigint");
 03454
 03455                    b.Property<long?>("RecStateId")
 03456                        .HasColumnType("bigint");
 03457
 03458                    b.Property<decimal>("TradeRatio")
 03459                        .HasColumnType("numeric");
 03460
 03461                    b.HasKey("Id");
 03462
 03463                    b.HasIndex("CategoryId");
 03464
 03465                    b.HasIndex("CreatedByUserId");
 03466
 03467                    b.HasIndex("ModifiedByUserId");
 03468
 03469                    b.HasIndex("RecStateId");
 03470
 03471                    b.HasIndex("DepartmentId", "CategoryId", "IsDeleted")
 03472                        .IsUnique();
 03473
 03474                    b.ToTable("DepartmentCategoryRatio");
 03475                });
 3476
 03477            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentGoodSetting", b =>
 03478                {
 03479                    b.Property<long>("Id")
 03480                        .ValueGeneratedOnAdd()
 03481                        .HasColumnType("bigint")
 03482                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 03483
 03484                    b.Property<long?>("CreatedByUserId")
 03485                        .HasColumnType("bigint");
 03486
 03487                    b.Property<DateTime>("CreationDateTime")
 03488                        .HasColumnType("timestamp without time zone");
 03489
 03490                    b.Property<long>("DepartmentId")
 03491                        .HasColumnType("bigint");
 03492
 03493                    b.Property<Guid>("GUID")
 03494                        .ValueGeneratedOnAdd()
 03495                        .HasColumnType("uuid");
 03496
 03497                    b.Property<long>("GoodId")
 03498                        .HasColumnType("bigint");
 03499
 03500                    b.Property<bool>("IsDeleted")
 03501                        .HasColumnType("boolean");
 03502
 03503                    b.Property<decimal>("MinQuantity")
 03504                        .HasColumnType("numeric");
 03505
 03506                    b.Property<DateTime?>("ModificationDateTime")
 03507                        .HasColumnType("timestamp without time zone");
 03508
 03509                    b.Property<long?>("ModifiedByUserId")
 03510                        .HasColumnType("bigint");
 03511
 03512                    b.Property<decimal>("PickingQuantum")
 03513                        .HasColumnType("numeric");
 03514
 03515                    b.Property<long?>("RecStateId")
 03516                        .HasColumnType("bigint");
 03517
 03518                    b.HasKey("Id");
 03519
 03520                    b.HasIndex("CreatedByUserId");
 03521
 03522                    b.HasIndex("DepartmentId");
 03523
 03524                    b.HasIndex("GoodId");
 03525
 03526                    b.HasIndex("ModifiedByUserId");
 03527
 03528                    b.HasIndex("RecStateId");
 03529
 03530                    b.ToTable("DepartmentGoodSetting");
 03531                });
 3532
 03533            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsKind", b =>
 03534                {
 03535                    b.Property<long>("Id")
 03536                        .ValueGeneratedOnAdd()
 03537                        .HasColumnType("bigint")
 03538                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 03539
 03540                    b.Property<string>("Code")
 03541                        .IsRequired()
 03542                        .HasColumnType("text");
 03543
 03544                    b.Property<long?>("CreatedByUserId")
 03545                        .HasColumnType("bigint");
 03546
 03547                    b.Property<DateTime>("CreationDateTime")
 03548                        .HasColumnType("timestamp without time zone");
 03549
 03550                    b.Property<string>("Description")
 03551                        .HasColumnType("text");
 03552
 03553                    b.Property<Guid>("GUID")
 03554                        .ValueGeneratedOnAdd()
 03555                        .HasColumnType("uuid");
 03556
 03557                    b.Property<bool>("IsDeleted")
 03558                        .HasColumnType("boolean");
 03559
 03560                    b.Property<DateTime?>("ModificationDateTime")
 03561                        .HasColumnType("timestamp without time zone");
 03562
 03563                    b.Property<long?>("ModifiedByUserId")
 03564                        .HasColumnType("bigint");
 03565
 03566                    b.Property<string>("Name")
 03567                        .IsRequired()
 03568                        .HasColumnType("text");
 03569
 03570                    b.Property<long?>("RecStateId")
 03571                        .HasColumnType("bigint");
 03572
 03573                    b.HasKey("Id");
 03574
 03575                    b.HasIndex("CreatedByUserId");
 03576
 03577                    b.HasIndex("ModifiedByUserId");
 03578
 03579                    b.HasIndex("RecStateId");
 03580
 03581                    b.ToTable("DepartmentsKind");
 03582
 03583                    b.HasData(
 03584                        new
 03585                        {
 03586                            Id = 1L,
 03587                            Code = "Warehouse",
 03588                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(3327
 03589                            Description = "",
 03590                            GUID = new Guid("36ab2e21-097b-4f5a-b351-a607fffc3b5d"),
 03591                            IsDeleted = false,
 03592                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 03593                            Name = "Склад"
 03594                        },
 03595                        new
 03596                        {
 03597                            Id = 2L,
 03598                            Code = "Shop",
 03599                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(3500
 03600                            Description = "",
 03601                            GUID = new Guid("558e752c-dc52-4a86-9834-0a93dd29eaaf"),
 03602                            IsDeleted = false,
 03603                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 03604                            Name = "Магазин"
 03605                        },
 03606                        new
 03607                        {
 03608                            Id = 3L,
 03609                            Code = "Plant",
 03610                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(3532
 03611                            Description = "",
 03612                            GUID = new Guid("b2c4a3a4-8673-4985-8b5e-36826bc66ea9"),
 03613                            IsDeleted = false,
 03614                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 03615                            Name = "Завод"
 03616                        });
 03617                });
 3618
 03619            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsStatus", b =>
 03620                {
 03621                    b.Property<long>("Id")
 03622                        .ValueGeneratedOnAdd()
 03623                        .HasColumnType("bigint")
 03624                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 03625
 03626                    b.Property<string>("Code")
 03627                        .IsRequired()
 03628                        .HasColumnType("text");
 03629
 03630                    b.Property<long?>("CreatedByUserId")
 03631                        .HasColumnType("bigint");
 03632
 03633                    b.Property<DateTime>("CreationDateTime")
 03634                        .HasColumnType("timestamp without time zone");
 03635
 03636                    b.Property<string>("Description")
 03637                        .HasColumnType("text");
 03638
 03639                    b.Property<Guid>("GUID")
 03640                        .ValueGeneratedOnAdd()
 03641                        .HasColumnType("uuid");
 03642
 03643                    b.Property<bool>("IsDeleted")
 03644                        .HasColumnType("boolean");
 03645
 03646                    b.Property<DateTime?>("ModificationDateTime")
 03647                        .HasColumnType("timestamp without time zone");
 03648
 03649                    b.Property<long?>("ModifiedByUserId")
 03650                        .HasColumnType("bigint");
 03651
 03652                    b.Property<string>("Name")
 03653                        .IsRequired()
 03654                        .HasColumnType("text");
 03655
 03656                    b.Property<long?>("RecStateId")
 03657                        .HasColumnType("bigint");
 03658
 03659                    b.HasKey("Id");
 03660
 03661                    b.HasIndex("CreatedByUserId");
 03662
 03663                    b.HasIndex("ModifiedByUserId");
 03664
 03665                    b.HasIndex("RecStateId");
 03666
 03667                    b.ToTable("DepartmentsStatus");
 03668
 03669                    b.HasData(
 03670                        new
 03671                        {
 03672                            Id = 1L,
 03673                            Code = "New",
 03674                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(4126
 03675                            Description = "",
 03676                            GUID = new Guid("256df67c-d4b6-43f7-8fd2-6d98f752c5cf"),
 03677                            IsDeleted = false,
 03678                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 03679                            Name = "Новый"
 03680                        },
 03681                        new
 03682                        {
 03683                            Id = 2L,
 03684                            Code = "Active",
 03685                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(4285
 03686                            Description = "",
 03687                            GUID = new Guid("e330ec94-fcb0-4a8d-bec0-95e470e93ea2"),
 03688                            IsDeleted = false,
 03689                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 03690                            Name = "Активный"
 03691                        },
 03692                        new
 03693                        {
 03694                            Id = 3L,
 03695                            Code = "Inactive",
 03696                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(4325
 03697                            Description = "",
 03698                            GUID = new Guid("9a3ebf31-6e39-4c68-837a-40922301f3a1"),
 03699                            IsDeleted = false,
 03700                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 03701                            Name = "Неактивный"
 03702                        },
 03703                        new
 03704                        {
 03705                            Id = 4L,
 03706                            Code = "Paused",
 03707                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(4497
 03708                            Description = "",
 03709                            GUID = new Guid("bd896b54-08d6-44ed-a860-7145547cc02f"),
 03710                            IsDeleted = false,
 03711                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 03712                            Name = "На паузе"
 03713                        });
 03714                });
 3715
 03716            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Event", b =>
 03717                {
 03718                    b.Property<long>("Id")
 03719                        .ValueGeneratedOnAdd()
 03720                        .HasColumnType("bigint")
 03721                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 03722
 03723                    b.Property<long?>("CreatedByUserId")
 03724                        .HasColumnType("bigint");
 03725
 03726                    b.Property<DateTime>("CreationDateTime")
 03727                        .HasColumnType("timestamp without time zone");
 03728
 03729                    b.Property<DateTime>("DtCreated")
 03730                        .HasColumnType("timestamp without time zone");
 03731
 03732                    b.Property<string>("Entity")
 03733                        .IsRequired()
 03734                        .HasColumnType("text");
 03735
 03736                    b.Property<long>("EventsKindId")
 03737                        .HasColumnType("bigint");
 03738
 03739                    b.Property<Guid>("GUID")
 03740                        .ValueGeneratedOnAdd()
 03741                        .HasColumnType("uuid");
 03742
 03743                    b.Property<bool>("IsDeleted")
 03744                        .HasColumnType("boolean");
 03745
 03746                    b.Property<DateTime?>("ModificationDateTime")
 03747                        .HasColumnType("timestamp without time zone");
 03748
 03749                    b.Property<long?>("ModifiedByUserId")
 03750                        .HasColumnType("bigint");
 03751
 03752                    b.Property<string>("ReasonJson")
 03753                        .HasColumnType("jsonb");
 03754
 03755                    b.Property<long?>("RecStateId")
 03756                        .HasColumnType("bigint");
 03757
 03758                    b.Property<Guid>("RecordGuid")
 03759                        .HasColumnType("uuid");
 03760
 03761                    b.Property<long>("UserId")
 03762                        .HasColumnType("bigint");
 03763
 03764                    b.HasKey("Id");
 03765
 03766                    b.HasIndex("CreatedByUserId");
 03767
 03768                    b.HasIndex("Entity");
 03769
 03770                    b.HasIndex("EventsKindId");
 03771
 03772                    b.HasIndex("ModifiedByUserId");
 03773
 03774                    b.HasIndex("ReasonJson");
 03775
 03776                    b.HasIndex("RecStateId");
 03777
 03778                    b.HasIndex("UserId");
 03779
 03780                    b.ToTable("Events");
 03781                });
 3782
 03783            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.EventsKind", b =>
 03784                {
 03785                    b.Property<long>("Id")
 03786                        .ValueGeneratedOnAdd()
 03787                        .HasColumnType("bigint")
 03788                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 03789
 03790                    b.Property<string>("Code")
 03791                        .IsRequired()
 03792                        .HasColumnType("text");
 03793
 03794                    b.Property<long?>("CreatedByUserId")
 03795                        .HasColumnType("bigint");
 03796
 03797                    b.Property<DateTime>("CreationDateTime")
 03798                        .HasColumnType("timestamp without time zone");
 03799
 03800                    b.Property<string>("Description")
 03801                        .HasColumnType("text");
 03802
 03803                    b.Property<Guid>("GUID")
 03804                        .ValueGeneratedOnAdd()
 03805                        .HasColumnType("uuid");
 03806
 03807                    b.Property<bool>("IsDeleted")
 03808                        .HasColumnType("boolean");
 03809
 03810                    b.Property<DateTime?>("ModificationDateTime")
 03811                        .HasColumnType("timestamp without time zone");
 03812
 03813                    b.Property<long?>("ModifiedByUserId")
 03814                        .HasColumnType("bigint");
 03815
 03816                    b.Property<string>("Name")
 03817                        .IsRequired()
 03818                        .HasColumnType("text");
 03819
 03820                    b.Property<long?>("RecStateId")
 03821                        .HasColumnType("bigint");
 03822
 03823                    b.HasKey("Id");
 03824
 03825                    b.HasIndex("CreatedByUserId");
 03826
 03827                    b.HasIndex("ModifiedByUserId");
 03828
 03829                    b.HasIndex("RecStateId");
 03830
 03831                    b.ToTable("EventsKind");
 03832
 03833                    b.HasData(
 03834                        new
 03835                        {
 03836                            Id = 1L,
 03837                            Code = "Unknown",
 03838                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(6301
 03839                            Description = "",
 03840                            GUID = new Guid("f68acb15-3573-4c6c-b5b3-3cb6d3ec5c57"),
 03841                            IsDeleted = false,
 03842                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 03843                            Name = "Неизвестно"
 03844                        },
 03845                        new
 03846                        {
 03847                            Id = 2L,
 03848                            Code = "Create",
 03849                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(6610
 03850                            Description = "",
 03851                            GUID = new Guid("e69277dd-ff23-4a34-9b9b-6df5f44a04e2"),
 03852                            IsDeleted = false,
 03853                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 03854                            Name = "Создание"
 03855                        },
 03856                        new
 03857                        {
 03858                            Id = 3L,
 03859                            Code = "Update",
 03860                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(6644
 03861                            Description = "",
 03862                            GUID = new Guid("bb0101b3-e322-4dae-b811-7f742d37ad1f"),
 03863                            IsDeleted = false,
 03864                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 03865                            Name = "Обновление"
 03866                        },
 03867                        new
 03868                        {
 03869                            Id = 4L,
 03870                            Code = "Delete",
 03871                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(6669
 03872                            Description = "",
 03873                            GUID = new Guid("947b9076-aefe-4b59-82b2-7953a7d08b17"),
 03874                            IsDeleted = false,
 03875                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 03876                            Name = "Удаление"
 03877                        });
 03878                });
 3879
 03880            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", b =>
 03881                {
 03882                    b.Property<long>("Id")
 03883                        .ValueGeneratedOnAdd()
 03884                        .HasColumnType("bigint")
 03885                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 03886
 03887                    b.Property<long?>("BrandId")
 03888                        .HasColumnType("bigint");
 03889
 03890                    b.Property<long>("CategoryId")
 03891                        .HasColumnType("bigint");
 03892
 03893                    b.Property<string>("ConformityCertNumber")
 03894                        .IsRequired()
 03895                        .HasColumnType("text");
 03896
 03897                    b.Property<long?>("CountryId")
 03898                        .HasColumnType("bigint");
 03899
 03900                    b.Property<long?>("CreatedByUserId")
 03901                        .HasColumnType("bigint");
 03902
 03903                    b.Property<DateTime>("CreationDateTime")
 03904                        .HasColumnType("timestamp without time zone");
 03905
 03906                    b.Property<string>("CustomDeclarationNumber")
 03907                        .IsRequired()
 03908                        .HasColumnType("text");
 03909
 03910                    b.Property<int>("ExpirationDays")
 03911                        .HasColumnType("integer");
 03912
 03913                    b.Property<Guid>("GUID")
 03914                        .ValueGeneratedOnAdd()
 03915                        .HasColumnType("uuid");
 03916
 03917                    b.Property<int>("GroupPackHeight")
 03918                        .HasColumnType("integer");
 03919
 03920                    b.Property<int>("GroupPackNesting")
 03921                        .HasColumnType("integer");
 03922
 03923                    b.Property<int>("GroupPackThickness")
 03924                        .HasColumnType("integer");
 03925
 03926                    b.Property<int>("GroupPackWidth")
 03927                        .HasColumnType("integer");
 03928
 03929                    b.Property<int>("Height")
 03930                        .HasColumnType("integer");
 03931
 03932                    b.Property<bool>("IsDeleted")
 03933                        .HasColumnType("boolean");
 03934
 03935                    b.Property<long>("MainBarcodeId")
 03936                        .HasColumnType("bigint");
 03937
 03938                    b.Property<long?>("ManufacturerId")
 03939                        .HasColumnType("bigint");
 03940
 03941                    b.Property<decimal>("MinDeliveryLot")
 03942                        .HasColumnType("numeric");
 03943
 03944                    b.Property<DateTime?>("ModificationDateTime")
 03945                        .HasColumnType("timestamp without time zone");
 03946
 03947                    b.Property<long?>("ModifiedByUserId")
 03948                        .HasColumnType("bigint");
 03949
 03950                    b.Property<string>("Name")
 03951                        .IsRequired()
 03952                        .HasColumnType("text");
 03953
 03954                    b.Property<int>("PalletNesting")
 03955                        .HasColumnType("integer");
 03956
 03957                    b.Property<long?>("RecStateId")
 03958                        .HasColumnType("bigint");
 03959
 03960                    b.Property<long?>("SubBrandId")
 03961                        .HasColumnType("bigint");
 03962
 03963                    b.Property<long?>("SupplierId")
 03964                        .HasColumnType("bigint");
 03965
 03966                    b.Property<int>("Thickness")
 03967                        .HasColumnType("integer");
 03968
 03969                    b.Property<long>("UnitsKindId")
 03970                        .HasColumnType("bigint");
 03971
 03972                    b.Property<long>("VatsKindId")
 03973                        .HasColumnType("bigint");
 03974
 03975                    b.Property<string>("VendorCode")
 03976                        .IsRequired()
 03977                        .HasColumnType("text");
 03978
 03979                    b.Property<decimal>("Weight")
 03980                        .HasColumnType("numeric");
 03981
 03982                    b.Property<int>("Width")
 03983                        .HasColumnType("integer");
 03984
 03985                    b.HasKey("Id");
 03986
 03987                    b.HasIndex("BrandId");
 03988
 03989                    b.HasIndex("CategoryId");
 03990
 03991                    b.HasIndex("CountryId");
 03992
 03993                    b.HasIndex("CreatedByUserId");
 03994
 03995                    b.HasIndex("MainBarcodeId");
 03996
 03997                    b.HasIndex("ManufacturerId");
 03998
 03999                    b.HasIndex("ModifiedByUserId");
 04000
 04001                    b.HasIndex("Name");
 04002
 04003                    b.HasIndex("RecStateId");
 04004
 04005                    b.HasIndex("SubBrandId");
 04006
 04007                    b.HasIndex("SupplierId");
 04008
 04009                    b.HasIndex("UnitsKindId");
 04010
 04011                    b.HasIndex("VatsKindId");
 04012
 04013                    b.ToTable("Goods");
 04014                });
 4015
 04016            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Incident", b =>
 04017                {
 04018                    b.Property<long>("Id")
 04019                        .ValueGeneratedOnAdd()
 04020                        .HasColumnType("bigint")
 04021                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04022
 04023                    b.Property<string>("Body")
 04024                        .HasColumnType("text");
 04025
 04026                    b.Property<long?>("CreatedByUserId")
 04027                        .HasColumnType("bigint");
 04028
 04029                    b.Property<DateTime>("CreationDateTime")
 04030                        .HasColumnType("timestamp without time zone");
 04031
 04032                    b.Property<DateTime>("DtCreated")
 04033                        .HasColumnType("timestamp without time zone");
 04034
 04035                    b.Property<Guid>("GUID")
 04036                        .ValueGeneratedOnAdd()
 04037                        .HasColumnType("uuid");
 04038
 04039                    b.Property<bool>("IsDeleted")
 04040                        .HasColumnType("boolean");
 04041
 04042                    b.Property<long?>("KindId")
 04043                        .HasColumnType("bigint");
 04044
 04045                    b.Property<DateTime?>("ModificationDateTime")
 04046                        .HasColumnType("timestamp without time zone");
 04047
 04048                    b.Property<long?>("ModifiedByUserId")
 04049                        .HasColumnType("bigint");
 04050
 04051                    b.Property<long?>("RecStateId")
 04052                        .HasColumnType("bigint");
 04053
 04054                    b.Property<long?>("StatusId")
 04055                        .HasColumnType("bigint");
 04056
 04057                    b.Property<string>("Subject")
 04058                        .HasColumnType("text");
 04059
 04060                    b.Property<string>("Ticket")
 04061                        .HasColumnType("text");
 04062
 04063                    b.Property<long>("UserId")
 04064                        .HasColumnType("bigint");
 04065
 04066                    b.HasKey("Id");
 04067
 04068                    b.HasIndex("CreatedByUserId");
 04069
 04070                    b.HasIndex("KindId");
 04071
 04072                    b.HasIndex("ModifiedByUserId");
 04073
 04074                    b.HasIndex("RecStateId");
 04075
 04076                    b.HasIndex("StatusId");
 04077
 04078                    b.HasIndex("UserId");
 04079
 04080                    b.ToTable("Incidents");
 04081                });
 4082
 04083            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsKind", b =>
 04084                {
 04085                    b.Property<long>("Id")
 04086                        .ValueGeneratedOnAdd()
 04087                        .HasColumnType("bigint")
 04088                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04089
 04090                    b.Property<string>("Code")
 04091                        .IsRequired()
 04092                        .HasColumnType("text");
 04093
 04094                    b.Property<long?>("CreatedByUserId")
 04095                        .HasColumnType("bigint");
 04096
 04097                    b.Property<DateTime>("CreationDateTime")
 04098                        .HasColumnType("timestamp without time zone");
 04099
 04100                    b.Property<string>("Description")
 04101                        .HasColumnType("text");
 04102
 04103                    b.Property<Guid>("GUID")
 04104                        .ValueGeneratedOnAdd()
 04105                        .HasColumnType("uuid");
 04106
 04107                    b.Property<bool>("IsDeleted")
 04108                        .HasColumnType("boolean");
 04109
 04110                    b.Property<DateTime?>("ModificationDateTime")
 04111                        .HasColumnType("timestamp without time zone");
 04112
 04113                    b.Property<long?>("ModifiedByUserId")
 04114                        .HasColumnType("bigint");
 04115
 04116                    b.Property<string>("Name")
 04117                        .IsRequired()
 04118                        .HasColumnType("text");
 04119
 04120                    b.Property<long?>("RecStateId")
 04121                        .HasColumnType("bigint");
 04122
 04123                    b.HasKey("Id");
 04124
 04125                    b.HasIndex("CreatedByUserId");
 04126
 04127                    b.HasIndex("ModifiedByUserId");
 04128
 04129                    b.HasIndex("RecStateId");
 04130
 04131                    b.ToTable("IncidentsKind");
 04132
 04133                    b.HasData(
 04134                        new
 04135                        {
 04136                            Id = 1L,
 04137                            Code = "Unknown",
 04138                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 988, DateTimeKind.Utc).AddTicks(7328
 04139                            Description = "",
 04140                            GUID = new Guid("ced26930-5a6e-4f42-8604-a964d04f63b4"),
 04141                            IsDeleted = false,
 04142                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 988, DateTimeKind.Utc).AddTicks(
 04143                            Name = "Неизвестно"
 04144                        },
 04145                        new
 04146                        {
 04147                            Id = 2L,
 04148                            Code = "Error",
 04149                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(1549
 04150                            Description = "",
 04151                            GUID = new Guid("69e3d206-627b-4487-be9e-299d0f8264a9"),
 04152                            IsDeleted = false,
 04153                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04154                            Name = "Ошибка"
 04155                        },
 04156                        new
 04157                        {
 04158                            Id = 3L,
 04159                            Code = "Question",
 04160                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(1661
 04161                            Description = "",
 04162                            GUID = new Guid("f785b5bc-6ba3-4064-8fc4-1f1d2c70c795"),
 04163                            IsDeleted = false,
 04164                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04165                            Name = "Вопрос"
 04166                        },
 04167                        new
 04168                        {
 04169                            Id = 4L,
 04170                            Code = "Suggestion",
 04171                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(1687
 04172                            Description = "",
 04173                            GUID = new Guid("81be80d3-c9c1-4992-82d7-b8325e6257dd"),
 04174                            IsDeleted = false,
 04175                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04176                            Name = "Предложение"
 04177                        });
 04178                });
 4179
 04180            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsStatus", b =>
 04181                {
 04182                    b.Property<long>("Id")
 04183                        .ValueGeneratedOnAdd()
 04184                        .HasColumnType("bigint")
 04185                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04186
 04187                    b.Property<string>("Code")
 04188                        .IsRequired()
 04189                        .HasColumnType("text");
 04190
 04191                    b.Property<long?>("CreatedByUserId")
 04192                        .HasColumnType("bigint");
 04193
 04194                    b.Property<DateTime>("CreationDateTime")
 04195                        .HasColumnType("timestamp without time zone");
 04196
 04197                    b.Property<string>("Description")
 04198                        .HasColumnType("text");
 04199
 04200                    b.Property<Guid>("GUID")
 04201                        .ValueGeneratedOnAdd()
 04202                        .HasColumnType("uuid");
 04203
 04204                    b.Property<bool>("IsDeleted")
 04205                        .HasColumnType("boolean");
 04206
 04207                    b.Property<DateTime?>("ModificationDateTime")
 04208                        .HasColumnType("timestamp without time zone");
 04209
 04210                    b.Property<long?>("ModifiedByUserId")
 04211                        .HasColumnType("bigint");
 04212
 04213                    b.Property<string>("Name")
 04214                        .IsRequired()
 04215                        .HasColumnType("text");
 04216
 04217                    b.Property<long?>("RecStateId")
 04218                        .HasColumnType("bigint");
 04219
 04220                    b.HasKey("Id");
 04221
 04222                    b.HasIndex("CreatedByUserId");
 04223
 04224                    b.HasIndex("ModifiedByUserId");
 04225
 04226                    b.HasIndex("RecStateId");
 04227
 04228                    b.ToTable("IncidentsStatus");
 04229
 04230                    b.HasData(
 04231                        new
 04232                        {
 04233                            Id = 1L,
 04234                            Code = "Open",
 04235                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(2407
 04236                            Description = "",
 04237                            GUID = new Guid("422a328a-98c7-4ae3-90f8-63ab08e9ed23"),
 04238                            IsDeleted = false,
 04239                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04240                            Name = "Открыт"
 04241                        },
 04242                        new
 04243                        {
 04244                            Id = 2L,
 04245                            Code = "InWork",
 04246                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(2590
 04247                            Description = "",
 04248                            GUID = new Guid("2a62d028-e61c-4b64-89ea-019d3bbe41ca"),
 04249                            IsDeleted = false,
 04250                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04251                            Name = "В работе"
 04252                        },
 04253                        new
 04254                        {
 04255                            Id = 3L,
 04256                            Code = "Resolved",
 04257                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(2639
 04258                            Description = "",
 04259                            GUID = new Guid("b66de4c4-dc93-4b5c-a477-ea1ef10b14f9"),
 04260                            IsDeleted = false,
 04261                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04262                            Name = "Решен"
 04263                        },
 04264                        new
 04265                        {
 04266                            Id = 4L,
 04267                            Code = "Canceled",
 04268                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(2665
 04269                            Description = "",
 04270                            GUID = new Guid("21f48f95-42ae-4d0f-9325-5989480a72d8"),
 04271                            IsDeleted = false,
 04272                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04273                            Name = "Отменен"
 04274                        },
 04275                        new
 04276                        {
 04277                            Id = 5L,
 04278                            Code = "Closed",
 04279                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(2690
 04280                            Description = "",
 04281                            GUID = new Guid("0acfc241-ad94-4bd3-9dc3-be0072f070d7"),
 04282                            IsDeleted = false,
 04283                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04284                            Name = "Закрыт"
 04285                        });
 04286                });
 4287
 04288            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MethodRole", b =>
 04289                {
 04290                    b.Property<long>("RoleId")
 04291                        .HasColumnType("bigint");
 04292
 04293                    b.Property<long>("MethodId")
 04294                        .HasColumnType("bigint");
 04295
 04296                    b.Property<long?>("CreatedByUserId")
 04297                        .HasColumnType("bigint");
 04298
 04299                    b.Property<DateTime>("CreationDateTime")
 04300                        .HasColumnType("timestamp without time zone");
 04301
 04302                    b.Property<Guid>("GUID")
 04303                        .ValueGeneratedOnAdd()
 04304                        .HasColumnType("uuid");
 04305
 04306                    b.HasKey("RoleId", "MethodId");
 04307
 04308                    b.HasIndex("MethodId");
 04309
 04310                    b.ToTable("MethodRole");
 04311                });
 4312
 04313            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Methods", b =>
 04314                {
 04315                    b.Property<long>("Id")
 04316                        .ValueGeneratedOnAdd()
 04317                        .HasColumnType("bigint")
 04318                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04319
 04320                    b.Property<long?>("CreatedByUserId")
 04321                        .HasColumnType("bigint");
 04322
 04323                    b.Property<DateTime>("CreationDateTime")
 04324                        .HasColumnType("timestamp without time zone");
 04325
 04326                    b.Property<string>("Description")
 04327                        .HasColumnType("text");
 04328
 04329                    b.Property<Guid>("GUID")
 04330                        .ValueGeneratedOnAdd()
 04331                        .HasColumnType("uuid");
 04332
 04333                    b.Property<bool>("IsDeleted")
 04334                        .HasColumnType("boolean");
 04335
 04336                    b.Property<string>("MethodName")
 04337                        .IsRequired()
 04338                        .HasColumnType("text");
 04339
 04340                    b.Property<DateTime?>("ModificationDateTime")
 04341                        .HasColumnType("timestamp without time zone");
 04342
 04343                    b.Property<long?>("ModifiedByUserId")
 04344                        .HasColumnType("bigint");
 04345
 04346                    b.Property<long?>("RecStateId")
 04347                        .HasColumnType("bigint");
 04348
 04349                    b.HasKey("Id");
 04350
 04351                    b.HasIndex("CreatedByUserId");
 04352
 04353                    b.HasIndex("ModifiedByUserId");
 04354
 04355                    b.HasIndex("RecStateId");
 04356
 04357                    b.ToTable("Methods");
 04358                });
 4359
 04360            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", b =>
 04361                {
 04362                    b.Property<long>("Id")
 04363                        .ValueGeneratedOnAdd()
 04364                        .HasColumnType("bigint")
 04365                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04366
 04367                    b.Property<string>("Comment")
 04368                        .HasColumnType("text");
 04369
 04370                    b.Property<long?>("CreatedByUserId")
 04371                        .HasColumnType("bigint");
 04372
 04373                    b.Property<DateTime>("CreationDateTime")
 04374                        .HasColumnType("timestamp without time zone");
 04375
 04376                    b.Property<long>("CustomerId")
 04377                        .HasColumnType("bigint");
 04378
 04379                    b.Property<DateTime>("DtCreated")
 04380                        .HasColumnType("timestamp without time zone");
 04381
 04382                    b.Property<Guid>("GUID")
 04383                        .ValueGeneratedOnAdd()
 04384                        .HasColumnType("uuid");
 04385
 04386                    b.Property<bool>("IsDeleted")
 04387                        .HasColumnType("boolean");
 04388
 04389                    b.Property<DateTime?>("ModificationDateTime")
 04390                        .HasColumnType("timestamp without time zone");
 04391
 04392                    b.Property<long?>("ModifiedByUserId")
 04393                        .HasColumnType("bigint");
 04394
 04395                    b.Property<long>("MovementStatusId")
 04396                        .HasColumnType("bigint");
 04397
 04398                    b.Property<long>("MovementTypeId")
 04399                        .HasColumnType("bigint");
 04400
 04401                    b.Property<long?>("ParentId")
 04402                        .HasColumnType("bigint");
 04403
 04404                    b.Property<decimal>("PrepaimentPercent")
 04405                        .HasColumnType("numeric");
 04406
 04407                    b.Property<decimal>("PrepaimentSum")
 04408                        .HasColumnType("numeric");
 04409
 04410                    b.Property<long?>("RecStateId")
 04411                        .HasColumnType("bigint");
 04412
 04413                    b.Property<long>("ReceiverId")
 04414                        .HasColumnType("bigint");
 04415
 04416                    b.Property<long?>("SenderId")
 04417                        .HasColumnType("bigint");
 04418
 04419                    b.Property<long>("SupplierId")
 04420                        .HasColumnType("bigint");
 04421
 04422                    b.Property<DateTime>("SupplierTransferDate")
 04423                        .HasColumnType("timestamp without time zone");
 04424
 04425                    b.HasKey("Id");
 04426
 04427                    b.HasIndex("CreatedByUserId");
 04428
 04429                    b.HasIndex("CustomerId");
 04430
 04431                    b.HasIndex("ModifiedByUserId");
 04432
 04433                    b.HasIndex("MovementStatusId");
 04434
 04435                    b.HasIndex("MovementTypeId");
 04436
 04437                    b.HasIndex("ParentId");
 04438
 04439                    b.HasIndex("RecStateId");
 04440
 04441                    b.HasIndex("ReceiverId");
 04442
 04443                    b.HasIndex("SenderId");
 04444
 04445                    b.HasIndex("SupplierId");
 04446
 04447                    b.ToTable("Movements");
 04448                });
 4449
 04450            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementItem", b =>
 04451                {
 04452                    b.Property<long>("Id")
 04453                        .ValueGeneratedOnAdd()
 04454                        .HasColumnType("bigint")
 04455                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04456
 04457                    b.Property<string>("Comment")
 04458                        .HasColumnType("text");
 04459
 04460                    b.Property<long?>("CreatedByUserId")
 04461                        .HasColumnType("bigint");
 04462
 04463                    b.Property<DateTime>("CreationDateTime")
 04464                        .HasColumnType("timestamp without time zone");
 04465
 04466                    b.Property<Guid>("GUID")
 04467                        .ValueGeneratedOnAdd()
 04468                        .HasColumnType("uuid");
 04469
 04470                    b.Property<long>("GoodId")
 04471                        .HasColumnType("bigint");
 04472
 04473                    b.Property<bool>("IsDeleted")
 04474                        .HasColumnType("boolean");
 04475
 04476                    b.Property<DateTime?>("ModificationDateTime")
 04477                        .HasColumnType("timestamp without time zone");
 04478
 04479                    b.Property<long?>("ModifiedByUserId")
 04480                        .HasColumnType("bigint");
 04481
 04482                    b.Property<long?>("MovementId")
 04483                        .HasColumnType("bigint");
 04484
 04485                    b.Property<decimal>("Price")
 04486                        .HasColumnType("numeric");
 04487
 04488                    b.Property<decimal>("Quantity")
 04489                        .HasColumnType("numeric");
 04490
 04491                    b.Property<long?>("RecStateId")
 04492                        .HasColumnType("bigint");
 04493
 04494                    b.HasKey("Id");
 04495
 04496                    b.HasIndex("CreatedByUserId");
 04497
 04498                    b.HasIndex("GoodId");
 04499
 04500                    b.HasIndex("ModifiedByUserId");
 04501
 04502                    b.HasIndex("MovementId");
 04503
 04504                    b.HasIndex("RecStateId");
 04505
 04506                    b.ToTable("MovementItems");
 04507                });
 4508
 04509            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementNote", b =>
 04510                {
 04511                    b.Property<long>("Id")
 04512                        .ValueGeneratedOnAdd()
 04513                        .HasColumnType("bigint")
 04514                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04515
 04516                    b.Property<string>("Body")
 04517                        .IsRequired()
 04518                        .HasColumnType("text");
 04519
 04520                    b.Property<long?>("CreatedByUserId")
 04521                        .HasColumnType("bigint");
 04522
 04523                    b.Property<DateTime>("CreationDateTime")
 04524                        .HasColumnType("timestamp without time zone");
 04525
 04526                    b.Property<Guid>("GUID")
 04527                        .ValueGeneratedOnAdd()
 04528                        .HasColumnType("uuid");
 04529
 04530                    b.Property<bool>("IsDeleted")
 04531                        .HasColumnType("boolean");
 04532
 04533                    b.Property<DateTime?>("ModificationDateTime")
 04534                        .HasColumnType("timestamp without time zone");
 04535
 04536                    b.Property<long?>("ModifiedByUserId")
 04537                        .HasColumnType("bigint");
 04538
 04539                    b.Property<long?>("MovementId")
 04540                        .HasColumnType("bigint");
 04541
 04542                    b.Property<long?>("RecStateId")
 04543                        .HasColumnType("bigint");
 04544
 04545                    b.HasKey("Id");
 04546
 04547                    b.HasIndex("CreatedByUserId");
 04548
 04549                    b.HasIndex("ModifiedByUserId");
 04550
 04551                    b.HasIndex("MovementId");
 04552
 04553                    b.HasIndex("RecStateId");
 04554
 04555                    b.ToTable("MovementNotes");
 04556                });
 4557
 04558            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", b =>
 04559                {
 04560                    b.Property<long>("Id")
 04561                        .ValueGeneratedOnAdd()
 04562                        .HasColumnType("bigint")
 04563                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04564
 04565                    b.Property<string>("Code")
 04566                        .IsRequired()
 04567                        .HasColumnType("text");
 04568
 04569                    b.Property<long?>("CreatedByUserId")
 04570                        .HasColumnType("bigint");
 04571
 04572                    b.Property<DateTime>("CreationDateTime")
 04573                        .HasColumnType("timestamp without time zone");
 04574
 04575                    b.Property<string>("Description")
 04576                        .HasColumnType("text");
 04577
 04578                    b.Property<Guid>("GUID")
 04579                        .ValueGeneratedOnAdd()
 04580                        .HasColumnType("uuid");
 04581
 04582                    b.Property<bool>("IsDeleted")
 04583                        .HasColumnType("boolean");
 04584
 04585                    b.Property<DateTime?>("ModificationDateTime")
 04586                        .HasColumnType("timestamp without time zone");
 04587
 04588                    b.Property<long?>("ModifiedByUserId")
 04589                        .HasColumnType("bigint");
 04590
 04591                    b.Property<string>("Name")
 04592                        .IsRequired()
 04593                        .HasColumnType("text");
 04594
 04595                    b.Property<long?>("RecStateId")
 04596                        .HasColumnType("bigint");
 04597
 04598                    b.HasKey("Id");
 04599
 04600                    b.HasIndex("CreatedByUserId");
 04601
 04602                    b.HasIndex("ModifiedByUserId");
 04603
 04604                    b.HasIndex("RecStateId");
 04605
 04606                    b.ToTable("MovementStatus");
 04607
 04608                    b.HasData(
 04609                        new
 04610                        {
 04611                            Id = 1L,
 04612                            Code = "Draft",
 04613                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(8901
 04614                            Description = "",
 04615                            GUID = new Guid("ba6b0e27-36c5-42e0-a3ad-71dd7d6a99f9"),
 04616                            IsDeleted = false,
 04617                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04618                            Name = "Черновик"
 04619                        },
 04620                        new
 04621                        {
 04622                            Id = 2L,
 04623                            Code = "PrepaymentWaiting",
 04624                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9067
 04625                            Description = "",
 04626                            GUID = new Guid("f91b001d-c31b-4515-9adf-0d057f88b3be"),
 04627                            IsDeleted = false,
 04628                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04629                            Name = "Ожидает предоплаты"
 04630                        },
 04631                        new
 04632                        {
 04633                            Id = 3L,
 04634                            Code = "InProgress",
 04635                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9100
 04636                            Description = "",
 04637                            GUID = new Guid("76af20af-be45-4916-8f41-f898331bb7d1"),
 04638                            IsDeleted = false,
 04639                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04640                            Name = "В очереди на обработку"
 04641                        },
 04642                        new
 04643                        {
 04644                            Id = 4L,
 04645                            Code = "InWork",
 04646                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9124
 04647                            Description = "",
 04648                            GUID = new Guid("2941c4de-6b7b-4f0b-8f2a-2f2770efe3d6"),
 04649                            IsDeleted = false,
 04650                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04651                            Name = "В работе"
 04652                        },
 04653                        new
 04654                        {
 04655                            Id = 5L,
 04656                            Code = "Sent",
 04657                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9149
 04658                            Description = "",
 04659                            GUID = new Guid("e6fbea82-1507-403c-bea7-753a14b3c6a2"),
 04660                            IsDeleted = false,
 04661                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04662                            Name = "Отправлена"
 04663                        },
 04664                        new
 04665                        {
 04666                            Id = 6L,
 04667                            Code = "Refused",
 04668                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9183
 04669                            Description = "",
 04670                            GUID = new Guid("351e2c78-756f-439f-96f7-084236a6bdf4"),
 04671                            IsDeleted = false,
 04672                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04673                            Name = "Отказ"
 04674                        },
 04675                        new
 04676                        {
 04677                            Id = 7L,
 04678                            Code = "Edited",
 04679                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9209
 04680                            Description = "",
 04681                            GUID = new Guid("9986ea76-c207-41aa-b16a-4547db01cb19"),
 04682                            IsDeleted = false,
 04683                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04684                            Name = "Корректировка"
 04685                        },
 04686                        new
 04687                        {
 04688                            Id = 8L,
 04689                            Code = "Arbitrated",
 04690                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9233
 04691                            Description = "",
 04692                            GUID = new Guid("59bc2f89-85c8-414d-8df2-6691d781034c"),
 04693                            IsDeleted = false,
 04694                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04695                            Name = "Арбитраж"
 04696                        },
 04697                        new
 04698                        {
 04699                            Id = 9L,
 04700                            Code = "PaymentWaiting",
 04701                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9259
 04702                            Description = "",
 04703                            GUID = new Guid("fcd7d772-cb12-4623-ab80-00054a19a892"),
 04704                            IsDeleted = false,
 04705                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04706                            Name = "Ожидает оплаты"
 04707                        },
 04708                        new
 04709                        {
 04710                            Id = 10L,
 04711                            Code = "AssemblyWaiting",
 04712                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9286
 04713                            Description = "",
 04714                            GUID = new Guid("d19a3647-9bc8-4cb2-9c14-64a72b289c6d"),
 04715                            IsDeleted = false,
 04716                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04717                            Name = "Ожидает сбокри"
 04718                        });
 04719                });
 4720
 04721            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusConformity", b =>
 04722                {
 04723                    b.Property<long>("Id")
 04724                        .ValueGeneratedOnAdd()
 04725                        .HasColumnType("bigint")
 04726                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04727
 04728                    b.Property<long?>("CreatedByUserId")
 04729                        .HasColumnType("bigint");
 04730
 04731                    b.Property<DateTime>("CreationDateTime")
 04732                        .HasColumnType("timestamp without time zone");
 04733
 04734                    b.Property<Guid>("GUID")
 04735                        .ValueGeneratedOnAdd()
 04736                        .HasColumnType("uuid");
 04737
 04738                    b.Property<int>("Hours")
 04739                        .HasColumnType("integer");
 04740
 04741                    b.Property<bool>("IsDeleted")
 04742                        .HasColumnType("boolean");
 04743
 04744                    b.Property<DateTime?>("ModificationDateTime")
 04745                        .HasColumnType("timestamp without time zone");
 04746
 04747                    b.Property<long?>("ModifiedByUserId")
 04748                        .HasColumnType("bigint");
 04749
 04750                    b.Property<long?>("RecStateId")
 04751                        .HasColumnType("bigint");
 04752
 04753                    b.Property<long?>("StatusCurrentId")
 04754                        .HasColumnType("bigint");
 04755
 04756                    b.Property<long?>("StatusNextId")
 04757                        .HasColumnType("bigint");
 04758
 04759                    b.Property<long?>("TypeCurrentId")
 04760                        .HasColumnType("bigint");
 04761
 04762                    b.Property<long?>("TypeNextId")
 04763                        .HasColumnType("bigint");
 04764
 04765                    b.HasKey("Id");
 04766
 04767                    b.HasIndex("CreatedByUserId");
 04768
 04769                    b.HasIndex("ModifiedByUserId");
 04770
 04771                    b.HasIndex("RecStateId");
 04772
 04773                    b.HasIndex("StatusCurrentId");
 04774
 04775                    b.HasIndex("StatusNextId");
 04776
 04777                    b.HasIndex("TypeCurrentId");
 04778
 04779                    b.HasIndex("TypeNextId");
 04780
 04781                    b.ToTable("MovementStatusConformities");
 04782                });
 4783
 04784            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusJournal", b =>
 04785                {
 04786                    b.Property<long>("Id")
 04787                        .ValueGeneratedOnAdd()
 04788                        .HasColumnType("bigint")
 04789                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04790
 04791                    b.Property<long?>("CreatedByUserId")
 04792                        .HasColumnType("bigint");
 04793
 04794                    b.Property<DateTime>("CreationDateTime")
 04795                        .HasColumnType("timestamp without time zone");
 04796
 04797                    b.Property<Guid>("GUID")
 04798                        .ValueGeneratedOnAdd()
 04799                        .HasColumnType("uuid");
 04800
 04801                    b.Property<bool>("IsDeleted")
 04802                        .HasColumnType("boolean");
 04803
 04804                    b.Property<DateTime?>("ModificationDateTime")
 04805                        .HasColumnType("timestamp without time zone");
 04806
 04807                    b.Property<long?>("ModifiedByUserId")
 04808                        .HasColumnType("bigint");
 04809
 04810                    b.Property<long?>("MovementId")
 04811                        .HasColumnType("bigint");
 04812
 04813                    b.Property<long?>("RecStateId")
 04814                        .HasColumnType("bigint");
 04815
 04816                    b.Property<long?>("StatusCurrentId")
 04817                        .HasColumnType("bigint");
 04818
 04819                    b.HasKey("Id");
 04820
 04821                    b.HasIndex("CreatedByUserId");
 04822
 04823                    b.HasIndex("ModifiedByUserId");
 04824
 04825                    b.HasIndex("MovementId");
 04826
 04827                    b.HasIndex("RecStateId");
 04828
 04829                    b.HasIndex("StatusCurrentId");
 04830
 04831                    b.ToTable("MovementStatusJournals");
 04832                });
 4833
 04834            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", b =>
 04835                {
 04836                    b.Property<long>("Id")
 04837                        .ValueGeneratedOnAdd()
 04838                        .HasColumnType("bigint")
 04839                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04840
 04841                    b.Property<string>("Code")
 04842                        .IsRequired()
 04843                        .HasColumnType("text");
 04844
 04845                    b.Property<long?>("CreatedByUserId")
 04846                        .HasColumnType("bigint");
 04847
 04848                    b.Property<DateTime>("CreationDateTime")
 04849                        .HasColumnType("timestamp without time zone");
 04850
 04851                    b.Property<string>("Description")
 04852                        .HasColumnType("text");
 04853
 04854                    b.Property<Guid>("GUID")
 04855                        .ValueGeneratedOnAdd()
 04856                        .HasColumnType("uuid");
 04857
 04858                    b.Property<bool>("IsDeleted")
 04859                        .HasColumnType("boolean");
 04860
 04861                    b.Property<DateTime?>("ModificationDateTime")
 04862                        .HasColumnType("timestamp without time zone");
 04863
 04864                    b.Property<long?>("ModifiedByUserId")
 04865                        .HasColumnType("bigint");
 04866
 04867                    b.Property<string>("Name")
 04868                        .IsRequired()
 04869                        .HasColumnType("text");
 04870
 04871                    b.Property<long?>("RecStateId")
 04872                        .HasColumnType("bigint");
 04873
 04874                    b.HasKey("Id");
 04875
 04876                    b.HasIndex("CreatedByUserId");
 04877
 04878                    b.HasIndex("ModifiedByUserId");
 04879
 04880                    b.HasIndex("RecStateId");
 04881
 04882                    b.ToTable("MovementType");
 04883
 04884                    b.HasData(
 04885                        new
 04886                        {
 04887                            Id = 1L,
 04888                            Code = "Order",
 04889                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(9987
 04890                            Description = "",
 04891                            GUID = new Guid("cd210f27-c073-486f-9fc4-8deecf3bf2e6"),
 04892                            IsDeleted = false,
 04893                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 04894                            Name = "Заказ"
 04895                        },
 04896                        new
 04897                        {
 04898                            Id = 2L,
 04899                            Code = "Shipment",
 04900                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(135)
 04901                            Description = "",
 04902                            GUID = new Guid("4843dc80-4c90-43db-a653-6f953d0bb6e8"),
 04903                            IsDeleted = false,
 04904                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 04905                            Name = "Отгрузка"
 04906                        },
 04907                        new
 04908                        {
 04909                            Id = 3L,
 04910                            Code = "Arrival",
 04911                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(167)
 04912                            Description = "",
 04913                            GUID = new Guid("12e31c0f-09a5-48e5-8674-7514e8a42cac"),
 04914                            IsDeleted = false,
 04915                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 04916                            Name = "Приход"
 04917                        },
 04918                        new
 04919                        {
 04920                            Id = 4L,
 04921                            Code = "Deny",
 04922                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(197)
 04923                            Description = "",
 04924                            GUID = new Guid("c5c6228d-ea86-4b31-a1cb-db7c091396c6"),
 04925                            IsDeleted = false,
 04926                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 04927                            Name = "Отказ"
 04928                        });
 04929                });
 4930
 04931            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Notification", b =>
 04932                {
 04933                    b.Property<long>("Id")
 04934                        .ValueGeneratedOnAdd()
 04935                        .HasColumnType("bigint")
 04936                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04937
 04938                    b.Property<string>("Body")
 04939                        .IsRequired()
 04940                        .HasColumnType("text");
 04941
 04942                    b.Property<long?>("CreatedByUserId")
 04943                        .HasColumnType("bigint");
 04944
 04945                    b.Property<DateTime>("CreationDateTime")
 04946                        .HasColumnType("timestamp without time zone");
 04947
 04948                    b.Property<Guid>("GUID")
 04949                        .ValueGeneratedOnAdd()
 04950                        .HasColumnType("uuid");
 04951
 04952                    b.Property<bool>("IsDeleted")
 04953                        .HasColumnType("boolean");
 04954
 04955                    b.Property<DateTime?>("ModificationDateTime")
 04956                        .HasColumnType("timestamp without time zone");
 04957
 04958                    b.Property<long?>("ModifiedByUserId")
 04959                        .HasColumnType("bigint");
 04960
 04961                    b.Property<long>("NotificationsTypeId")
 04962                        .HasColumnType("bigint");
 04963
 04964                    b.Property<long?>("RecStateId")
 04965                        .HasColumnType("bigint");
 04966
 04967                    b.Property<string>("Subject")
 04968                        .IsRequired()
 04969                        .HasColumnType("text");
 04970
 04971                    b.Property<DateTime>("TimeToTurnOff")
 04972                        .HasColumnType("timestamp without time zone");
 04973
 04974                    b.Property<long>("UserId")
 04975                        .HasColumnType("bigint");
 04976
 04977                    b.HasKey("Id");
 04978
 04979                    b.HasIndex("CreatedByUserId");
 04980
 04981                    b.HasIndex("ModifiedByUserId");
 04982
 04983                    b.HasIndex("NotificationsTypeId");
 04984
 04985                    b.HasIndex("RecStateId");
 04986
 04987                    b.HasIndex("UserId");
 04988
 04989                    b.ToTable("Notifications");
 04990                });
 4991
 04992            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationUsers", b =>
 04993                {
 04994                    b.Property<long>("Id")
 04995                        .ValueGeneratedOnAdd()
 04996                        .HasColumnType("bigint")
 04997                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 04998
 04999                    b.Property<long?>("CreatedByUserId")
 05000                        .HasColumnType("bigint");
 05001
 05002                    b.Property<DateTime>("CreationDateTime")
 05003                        .HasColumnType("timestamp without time zone");
 05004
 05005                    b.Property<Guid>("GUID")
 05006                        .ValueGeneratedOnAdd()
 05007                        .HasColumnType("uuid");
 05008
 05009                    b.Property<bool>("IsDeleted")
 05010                        .HasColumnType("boolean");
 05011
 05012                    b.Property<DateTime?>("ModificationDateTime")
 05013                        .HasColumnType("timestamp without time zone");
 05014
 05015                    b.Property<long?>("ModifiedByUserId")
 05016                        .HasColumnType("bigint");
 05017
 05018                    b.Property<long>("NotificationId")
 05019                        .HasColumnType("bigint");
 05020
 05021                    b.Property<long?>("NotificationsStatusId")
 05022                        .HasColumnType("bigint");
 05023
 05024                    b.Property<long?>("RecStateId")
 05025                        .HasColumnType("bigint");
 05026
 05027                    b.Property<long?>("UserId")
 05028                        .HasColumnType("bigint");
 05029
 05030                    b.HasKey("Id");
 05031
 05032                    b.HasIndex("CreatedByUserId");
 05033
 05034                    b.HasIndex("ModifiedByUserId");
 05035
 05036                    b.HasIndex("NotificationId");
 05037
 05038                    b.HasIndex("NotificationsStatusId");
 05039
 05040                    b.HasIndex("RecStateId");
 05041
 05042                    b.HasIndex("UserId");
 05043
 05044                    b.ToTable("NotificationUsers");
 05045                });
 5046
 05047            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsStatus", b =>
 05048                {
 05049                    b.Property<long>("Id")
 05050                        .ValueGeneratedOnAdd()
 05051                        .HasColumnType("bigint")
 05052                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05053
 05054                    b.Property<string>("Code")
 05055                        .IsRequired()
 05056                        .HasColumnType("text");
 05057
 05058                    b.Property<long?>("CreatedByUserId")
 05059                        .HasColumnType("bigint");
 05060
 05061                    b.Property<DateTime>("CreationDateTime")
 05062                        .HasColumnType("timestamp without time zone");
 05063
 05064                    b.Property<string>("Description")
 05065                        .HasColumnType("text");
 05066
 05067                    b.Property<Guid>("GUID")
 05068                        .ValueGeneratedOnAdd()
 05069                        .HasColumnType("uuid");
 05070
 05071                    b.Property<bool>("IsDeleted")
 05072                        .HasColumnType("boolean");
 05073
 05074                    b.Property<DateTime?>("ModificationDateTime")
 05075                        .HasColumnType("timestamp without time zone");
 05076
 05077                    b.Property<long?>("ModifiedByUserId")
 05078                        .HasColumnType("bigint");
 05079
 05080                    b.Property<string>("Name")
 05081                        .IsRequired()
 05082                        .HasColumnType("text");
 05083
 05084                    b.Property<long?>("RecStateId")
 05085                        .HasColumnType("bigint");
 05086
 05087                    b.HasKey("Id");
 05088
 05089                    b.HasIndex("CreatedByUserId");
 05090
 05091                    b.HasIndex("ModifiedByUserId");
 05092
 05093                    b.HasIndex("RecStateId");
 05094
 05095                    b.ToTable("NotificationsStatus");
 05096
 05097                    b.HasData(
 05098                        new
 05099                        {
 05100                            Id = 1L,
 05101                            Code = "Unknown",
 05102                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(7265
 05103                            Description = "",
 05104                            GUID = new Guid("3de75473-aa19-4893-ae1b-b8467acf65a4"),
 05105                            IsDeleted = false,
 05106                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 05107                            Name = "Неизвестно"
 05108                        },
 05109                        new
 05110                        {
 05111                            Id = 2L,
 05112                            Code = "Created",
 05113                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(7415
 05114                            Description = "",
 05115                            GUID = new Guid("0140d2e2-3164-4078-b50a-568ddc69133a"),
 05116                            IsDeleted = false,
 05117                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 05118                            Name = "Создано"
 05119                        },
 05120                        new
 05121                        {
 05122                            Id = 3L,
 05123                            Code = "Sent",
 05124                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(7446
 05125                            Description = "",
 05126                            GUID = new Guid("21acf802-1be7-4812-9cc9-ef1673a89aa0"),
 05127                            IsDeleted = false,
 05128                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 05129                            Name = "Отправлено"
 05130                        },
 05131                        new
 05132                        {
 05133                            Id = 4L,
 05134                            Code = "Read",
 05135                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(7470
 05136                            Description = "",
 05137                            GUID = new Guid("b09bad25-7c55-41aa-9d1d-b13b0450fb99"),
 05138                            IsDeleted = false,
 05139                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 05140                            Name = "Прочитано"
 05141                        },
 05142                        new
 05143                        {
 05144                            Id = 5L,
 05145                            Code = "Deactivated",
 05146                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(7499
 05147                            Description = "",
 05148                            GUID = new Guid("b5eedc6f-bc33-49e3-93f0-7b9fbc6d82b1"),
 05149                            IsDeleted = false,
 05150                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 05151                            Name = "Отключено"
 05152                        });
 05153                });
 5154
 05155            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsType", b =>
 05156                {
 05157                    b.Property<long>("Id")
 05158                        .ValueGeneratedOnAdd()
 05159                        .HasColumnType("bigint")
 05160                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05161
 05162                    b.Property<string>("Code")
 05163                        .IsRequired()
 05164                        .HasColumnType("text");
 05165
 05166                    b.Property<long?>("CreatedByUserId")
 05167                        .HasColumnType("bigint");
 05168
 05169                    b.Property<DateTime>("CreationDateTime")
 05170                        .HasColumnType("timestamp without time zone");
 05171
 05172                    b.Property<string>("Description")
 05173                        .HasColumnType("text");
 05174
 05175                    b.Property<Guid>("GUID")
 05176                        .ValueGeneratedOnAdd()
 05177                        .HasColumnType("uuid");
 05178
 05179                    b.Property<bool>("IsDeleted")
 05180                        .HasColumnType("boolean");
 05181
 05182                    b.Property<DateTime?>("ModificationDateTime")
 05183                        .HasColumnType("timestamp without time zone");
 05184
 05185                    b.Property<long?>("ModifiedByUserId")
 05186                        .HasColumnType("bigint");
 05187
 05188                    b.Property<string>("Name")
 05189                        .IsRequired()
 05190                        .HasColumnType("text");
 05191
 05192                    b.Property<long?>("RecStateId")
 05193                        .HasColumnType("bigint");
 05194
 05195                    b.HasKey("Id");
 05196
 05197                    b.HasIndex("CreatedByUserId");
 05198
 05199                    b.HasIndex("ModifiedByUserId");
 05200
 05201                    b.HasIndex("RecStateId");
 05202
 05203                    b.ToTable("NotificationsType");
 05204
 05205                    b.HasData(
 05206                        new
 05207                        {
 05208                            Id = 1L,
 05209                            Code = "System",
 05210                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(8077
 05211                            Description = "",
 05212                            GUID = new Guid("98872899-7a10-4d4f-8252-d97fe2d6eba7"),
 05213                            IsDeleted = false,
 05214                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 05215                            Name = "Системное"
 05216                        },
 05217                        new
 05218                        {
 05219                            Id = 2L,
 05220                            Code = "News",
 05221                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(8311
 05222                            Description = "",
 05223                            GUID = new Guid("cca85f84-1569-404e-99f7-c5d232f86137"),
 05224                            IsDeleted = false,
 05225                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 990, DateTimeKind.Utc).AddTicks(
 05226                            Name = "Новость"
 05227                        });
 05228                });
 5229
 05230            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Photo", b =>
 05231                {
 05232                    b.Property<long>("Id")
 05233                        .ValueGeneratedOnAdd()
 05234                        .HasColumnType("bigint")
 05235                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05236
 05237                    b.Property<long?>("CreatedByUserId")
 05238                        .HasColumnType("bigint");
 05239
 05240                    b.Property<DateTime>("CreationDateTime")
 05241                        .HasColumnType("timestamp without time zone");
 05242
 05243                    b.Property<int>("FullSizeHeight")
 05244                        .HasColumnType("integer");
 05245
 05246                    b.Property<string>("FullSizeUrl")
 05247                        .HasColumnType("text");
 05248
 05249                    b.Property<int>("FullSizeWidth")
 05250                        .HasColumnType("integer");
 05251
 05252                    b.Property<Guid>("GUID")
 05253                        .ValueGeneratedOnAdd()
 05254                        .HasColumnType("uuid");
 05255
 05256                    b.Property<long?>("GoodId")
 05257                        .HasColumnType("bigint");
 05258
 05259                    b.Property<bool>("IsDeleted")
 05260                        .HasColumnType("boolean");
 05261
 05262                    b.Property<DateTime?>("ModificationDateTime")
 05263                        .HasColumnType("timestamp without time zone");
 05264
 05265                    b.Property<long?>("ModifiedByUserId")
 05266                        .HasColumnType("bigint");
 05267
 05268                    b.Property<int>("PreviewHeight")
 05269                        .HasColumnType("integer");
 05270
 05271                    b.Property<string>("PreviewUrl")
 05272                        .HasColumnType("text");
 05273
 05274                    b.Property<int>("PreviewWidth")
 05275                        .HasColumnType("integer");
 05276
 05277                    b.Property<long?>("RecStateId")
 05278                        .HasColumnType("bigint");
 05279
 05280                    b.HasKey("Id");
 05281
 05282                    b.HasIndex("CreatedByUserId");
 05283
 05284                    b.HasIndex("GoodId");
 05285
 05286                    b.HasIndex("ModifiedByUserId");
 05287
 05288                    b.HasIndex("RecStateId");
 05289
 05290                    b.ToTable("Photos");
 05291                });
 5292
 05293            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceCurrent", b =>
 05294                {
 05295                    b.Property<long>("Id")
 05296                        .ValueGeneratedOnAdd()
 05297                        .HasColumnType("bigint")
 05298                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05299
 05300                    b.Property<long?>("CreatedByUserId")
 05301                        .HasColumnType("bigint");
 05302
 05303                    b.Property<DateTime>("CreationDateTime")
 05304                        .HasColumnType("timestamp without time zone");
 05305
 05306                    b.Property<Guid>("GUID")
 05307                        .ValueGeneratedOnAdd()
 05308                        .HasColumnType("uuid");
 05309
 05310                    b.Property<long>("GoodId")
 05311                        .HasColumnType("bigint");
 05312
 05313                    b.Property<bool>("IsDeleted")
 05314                        .HasColumnType("boolean");
 05315
 05316                    b.Property<DateTime?>("ModificationDateTime")
 05317                        .HasColumnType("timestamp without time zone");
 05318
 05319                    b.Property<long?>("ModifiedByUserId")
 05320                        .HasColumnType("bigint");
 05321
 05322                    b.Property<decimal>("Price")
 05323                        .HasColumnType("numeric");
 05324
 05325                    b.Property<long?>("RecStateId")
 05326                        .HasColumnType("bigint");
 05327
 05328                    b.Property<long>("SupplierDepartmentId")
 05329                        .HasColumnType("bigint");
 05330
 05331                    b.HasKey("Id");
 05332
 05333                    b.HasIndex("CreatedByUserId");
 05334
 05335                    b.HasIndex("GoodId");
 05336
 05337                    b.HasIndex("ModifiedByUserId");
 05338
 05339                    b.HasIndex("RecStateId");
 05340
 05341                    b.HasIndex("SupplierDepartmentId");
 05342
 05343                    b.ToTable("PricesCurrent");
 05344                });
 5345
 05346            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrend", b =>
 05347                {
 05348                    b.Property<long>("Id")
 05349                        .ValueGeneratedOnAdd()
 05350                        .HasColumnType("bigint")
 05351                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05352
 05353                    b.Property<long?>("CreatedByUserId")
 05354                        .HasColumnType("bigint");
 05355
 05356                    b.Property<DateTime>("CreationDateTime")
 05357                        .HasColumnType("timestamp without time zone");
 05358
 05359                    b.Property<Guid>("GUID")
 05360                        .ValueGeneratedOnAdd()
 05361                        .HasColumnType("uuid");
 05362
 05363                    b.Property<long>("GoodId")
 05364                        .HasColumnType("bigint");
 05365
 05366                    b.Property<bool>("IsDeleted")
 05367                        .HasColumnType("boolean");
 05368
 05369                    b.Property<DateTime?>("ModificationDateTime")
 05370                        .HasColumnType("timestamp without time zone");
 05371
 05372                    b.Property<long?>("ModifiedByUserId")
 05373                        .HasColumnType("bigint");
 05374
 05375                    b.Property<decimal>("PriceNew")
 05376                        .HasColumnType("numeric");
 05377
 05378                    b.Property<decimal>("PriceOld")
 05379                        .HasColumnType("numeric");
 05380
 05381                    b.Property<long?>("RecStateId")
 05382                        .HasColumnType("bigint");
 05383
 05384                    b.Property<long>("SupplierDepartmentId")
 05385                        .HasColumnType("bigint");
 05386
 05387                    b.HasKey("Id");
 05388
 05389                    b.HasIndex("CreatedByUserId");
 05390
 05391                    b.HasIndex("GoodId");
 05392
 05393                    b.HasIndex("ModifiedByUserId");
 05394
 05395                    b.HasIndex("RecStateId");
 05396
 05397                    b.HasIndex("SupplierDepartmentId");
 05398
 05399                    b.ToTable("PricesTrend");
 05400                });
 5401
 05402            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoBid", b =>
 05403                {
 05404                    b.Property<long>("Id")
 05405                        .ValueGeneratedOnAdd()
 05406                        .HasColumnType("bigint")
 05407                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05408
 05409                    b.Property<long?>("CreatedByUserId")
 05410                        .HasColumnType("bigint");
 05411
 05412                    b.Property<DateTime>("CreationDate")
 05413                        .HasColumnType("timestamp without time zone");
 05414
 05415                    b.Property<DateTime>("CreationDateTime")
 05416                        .HasColumnType("timestamp without time zone");
 05417
 05418                    b.Property<long>("CustomerDepartmentId")
 05419                        .HasColumnType("bigint");
 05420
 05421                    b.Property<DateTime>("DateEnd")
 05422                        .HasColumnType("timestamp without time zone");
 05423
 05424                    b.Property<Guid>("GUID")
 05425                        .ValueGeneratedOnAdd()
 05426                        .HasColumnType("uuid");
 05427
 05428                    b.Property<long>("GoodId")
 05429                        .HasColumnType("bigint");
 05430
 05431                    b.Property<bool>("IsDeleted")
 05432                        .HasColumnType("boolean");
 05433
 05434                    b.Property<DateTime?>("ModificationDateTime")
 05435                        .HasColumnType("timestamp without time zone");
 05436
 05437                    b.Property<long?>("ModifiedByUserId")
 05438                        .HasColumnType("bigint");
 05439
 05440                    b.Property<decimal>("Price")
 05441                        .HasColumnType("numeric");
 05442
 05443                    b.Property<long>("PromoOfferId")
 05444                        .HasColumnType("bigint");
 05445
 05446                    b.Property<decimal>("Quantity")
 05447                        .HasColumnType("numeric");
 05448
 05449                    b.Property<long?>("RecStateId")
 05450                        .HasColumnType("bigint");
 05451
 05452                    b.Property<decimal>("Sum")
 05453                        .HasColumnType("numeric");
 05454
 05455                    b.HasKey("Id");
 05456
 05457                    b.HasIndex("CreatedByUserId");
 05458
 05459                    b.HasIndex("CustomerDepartmentId");
 05460
 05461                    b.HasIndex("GoodId");
 05462
 05463                    b.HasIndex("ModifiedByUserId");
 05464
 05465                    b.HasIndex("PromoOfferId");
 05466
 05467                    b.HasIndex("RecStateId");
 05468
 05469                    b.ToTable("PromoBids");
 05470                });
 5471
 05472            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoOffer", b =>
 05473                {
 05474                    b.Property<long>("Id")
 05475                        .ValueGeneratedOnAdd()
 05476                        .HasColumnType("bigint")
 05477                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05478
 05479                    b.Property<long?>("CreatedByUserId")
 05480                        .HasColumnType("bigint");
 05481
 05482                    b.Property<DateTime>("CreationDateTime")
 05483                        .HasColumnType("timestamp without time zone");
 05484
 05485                    b.Property<DateTime>("DateBegin")
 05486                        .HasColumnType("timestamp without time zone");
 05487
 05488                    b.Property<DateTime>("DateEnd")
 05489                        .HasColumnType("timestamp without time zone");
 05490
 05491                    b.Property<Guid>("GUID")
 05492                        .ValueGeneratedOnAdd()
 05493                        .HasColumnType("uuid");
 05494
 05495                    b.Property<long>("GoodId")
 05496                        .HasColumnType("bigint");
 05497
 05498                    b.Property<bool>("IsDeleted")
 05499                        .HasColumnType("boolean");
 05500
 05501                    b.Property<decimal?>("MaxQuantity")
 05502                        .HasColumnType("numeric");
 05503
 05504                    b.Property<decimal>("MinQuantity")
 05505                        .HasColumnType("numeric");
 05506
 05507                    b.Property<DateTime?>("ModificationDateTime")
 05508                        .HasColumnType("timestamp without time zone");
 05509
 05510                    b.Property<long?>("ModifiedByUserId")
 05511                        .HasColumnType("bigint");
 05512
 05513                    b.Property<decimal>("Price")
 05514                        .HasColumnType("numeric");
 05515
 05516                    b.Property<long?>("RecStateId")
 05517                        .HasColumnType("bigint");
 05518
 05519                    b.Property<long>("SupplierDepartmentId")
 05520                        .HasColumnType("bigint");
 05521
 05522                    b.HasKey("Id");
 05523
 05524                    b.HasIndex("CreatedByUserId");
 05525
 05526                    b.HasIndex("GoodId");
 05527
 05528                    b.HasIndex("ModifiedByUserId");
 05529
 05530                    b.HasIndex("RecStateId");
 05531
 05532                    b.HasIndex("SupplierDepartmentId");
 05533
 05534                    b.ToTable("PromoOffers");
 05535                });
 5536
 05537            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", b =>
 05538                {
 05539                    b.Property<long>("Id")
 05540                        .ValueGeneratedOnAdd()
 05541                        .HasColumnType("bigint")
 05542                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05543
 05544                    b.Property<string>("Code")
 05545                        .IsRequired()
 05546                        .HasColumnType("text");
 05547
 05548                    b.Property<long?>("CreatedByUserId")
 05549                        .HasColumnType("bigint");
 05550
 05551                    b.Property<DateTime>("CreationDateTime")
 05552                        .HasColumnType("timestamp without time zone");
 05553
 05554                    b.Property<string>("Description")
 05555                        .HasColumnType("text");
 05556
 05557                    b.Property<Guid>("GUID")
 05558                        .ValueGeneratedOnAdd()
 05559                        .HasColumnType("uuid");
 05560
 05561                    b.Property<bool>("IsDeleted")
 05562                        .HasColumnType("boolean");
 05563
 05564                    b.Property<DateTime?>("ModificationDateTime")
 05565                        .HasColumnType("timestamp without time zone");
 05566
 05567                    b.Property<long?>("ModifiedByUserId")
 05568                        .HasColumnType("bigint");
 05569
 05570                    b.Property<string>("Name")
 05571                        .IsRequired()
 05572                        .HasColumnType("text");
 05573
 05574                    b.Property<long?>("RecStateId")
 05575                        .HasColumnType("bigint");
 05576
 05577                    b.HasKey("Id");
 05578
 05579                    b.HasIndex("CreatedByUserId");
 05580
 05581                    b.HasIndex("ModifiedByUserId");
 05582
 05583                    b.HasIndex("RecStateId");
 05584
 05585                    b.ToTable("RecordsState");
 05586
 05587                    b.HasData(
 05588                        new
 05589                        {
 05590                            Id = 1L,
 05591                            Code = "Error",
 05592                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(711)
 05593                            Description = "",
 05594                            GUID = new Guid("83279ba6-ae09-464e-8374-1f1b2546de68"),
 05595                            IsDeleted = false,
 05596                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 05597                            Name = "Ошибка"
 05598                        },
 05599                        new
 05600                        {
 05601                            Id = 2L,
 05602                            Code = "Active",
 05603                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(856)
 05604                            Description = "",
 05605                            GUID = new Guid("3f1eab51-47b9-4c7b-a8ff-c28951813182"),
 05606                            IsDeleted = false,
 05607                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 05608                            Name = "Активно"
 05609                        },
 05610                        new
 05611                        {
 05612                            Id = 3L,
 05613                            Code = "Inactive",
 05614                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(945)
 05615                            Description = "",
 05616                            GUID = new Guid("f8bf70a9-8b0c-4fb6-9e94-c2b656c3bd55"),
 05617                            IsDeleted = false,
 05618                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 05619                            Name = "Неактивно"
 05620                        },
 05621                        new
 05622                        {
 05623                            Id = 4L,
 05624                            Code = "Deleted",
 05625                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(974)
 05626                            Description = "",
 05627                            GUID = new Guid("78dcd1d3-2599-42fb-84f4-b387ad423882"),
 05628                            IsDeleted = false,
 05629                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 05630                            Name = "Удалено"
 05631                        },
 05632                        new
 05633                        {
 05634                            Id = 5L,
 05635                            Code = "Empty",
 05636                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(1000
 05637                            Description = "",
 05638                            GUID = new Guid("1495737a-fff7-42e5-b0ca-b4afe7d39460"),
 05639                            IsDeleted = false,
 05640                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 05641                            Name = "Пусто"
 05642                        });
 05643                });
 5644
 05645            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Rest", b =>
 05646                {
 05647                    b.Property<long>("Id")
 05648                        .ValueGeneratedOnAdd()
 05649                        .HasColumnType("bigint")
 05650                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05651
 05652                    b.Property<long?>("CreatedByUserId")
 05653                        .HasColumnType("bigint");
 05654
 05655                    b.Property<DateTime>("CreationDateTime")
 05656                        .HasColumnType("timestamp without time zone");
 05657
 05658                    b.Property<long>("DepartmentId")
 05659                        .HasColumnType("bigint");
 05660
 05661                    b.Property<Guid>("GUID")
 05662                        .ValueGeneratedOnAdd()
 05663                        .HasColumnType("uuid");
 05664
 05665                    b.Property<long>("GoodId")
 05666                        .HasColumnType("bigint");
 05667
 05668                    b.Property<bool>("IsDeleted")
 05669                        .HasColumnType("boolean");
 05670
 05671                    b.Property<DateTime?>("ModificationDateTime")
 05672                        .HasColumnType("timestamp without time zone");
 05673
 05674                    b.Property<long?>("ModifiedByUserId")
 05675                        .HasColumnType("bigint");
 05676
 05677                    b.Property<decimal>("Quantity")
 05678                        .HasColumnType("numeric");
 05679
 05680                    b.Property<long?>("RecStateId")
 05681                        .HasColumnType("bigint");
 05682
 05683                    b.HasKey("Id");
 05684
 05685                    b.HasIndex("CreatedByUserId");
 05686
 05687                    b.HasIndex("DepartmentId");
 05688
 05689                    b.HasIndex("GoodId");
 05690
 05691                    b.HasIndex("ModifiedByUserId");
 05692
 05693                    b.HasIndex("RecStateId");
 05694
 05695                    b.ToTable("Rests");
 05696                });
 5697
 05698            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", b =>
 05699                {
 05700                    b.Property<long>("Id")
 05701                        .ValueGeneratedOnAdd()
 05702                        .HasColumnType("bigint")
 05703                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05704
 05705                    b.Property<long?>("CreatedByUserId")
 05706                        .HasColumnType("bigint");
 05707
 05708                    b.Property<DateTime>("CreationDateTime")
 05709                        .HasColumnType("timestamp without time zone");
 05710
 05711                    b.Property<string>("Description")
 05712                        .HasColumnType("text");
 05713
 05714                    b.Property<Guid>("GUID")
 05715                        .ValueGeneratedOnAdd()
 05716                        .HasColumnType("uuid");
 05717
 05718                    b.Property<bool>("IsDeleted")
 05719                        .HasColumnType("boolean");
 05720
 05721                    b.Property<DateTime?>("ModificationDateTime")
 05722                        .HasColumnType("timestamp without time zone");
 05723
 05724                    b.Property<long?>("ModifiedByUserId")
 05725                        .HasColumnType("bigint");
 05726
 05727                    b.Property<string>("Name")
 05728                        .IsRequired()
 05729                        .HasColumnType("text");
 05730
 05731                    b.Property<long?>("RecStateId")
 05732                        .HasColumnType("bigint");
 05733
 05734                    b.HasKey("Id");
 05735
 05736                    b.HasIndex("CreatedByUserId");
 05737
 05738                    b.HasIndex("ModifiedByUserId");
 05739
 05740                    b.HasIndex("RecStateId");
 05741
 05742                    b.ToTable("Roles");
 05743
 05744                    b.HasData(
 05745                        new
 05746                        {
 05747                            Id = 1L,
 05748                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(4319
 05749                            Description = "Администратор",
 05750                            GUID = new Guid("1a4d4e61-d0db-4c30-856a-d43ac6dfc048"),
 05751                            IsDeleted = false,
 05752                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 05753                            Name = "Admin"
 05754                        },
 05755                        new
 05756                        {
 05757                            Id = 2L,
 05758                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(5414
 05759                            Description = "Оператор",
 05760                            GUID = new Guid("08288918-bc45-4f27-a157-6161c382e8df"),
 05761                            IsDeleted = false,
 05762                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 05763                            Name = "Operator"
 05764                        },
 05765                        new
 05766                        {
 05767                            Id = 3L,
 05768                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(5462
 05769                            Description = "Владелец магазина",
 05770                            GUID = new Guid("29bfb43a-db25-46b1-a4f1-9022dc98c8f7"),
 05771                            IsDeleted = false,
 05772                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 05773                            Name = "ShopOwner"
 05774                        },
 05775                        new
 05776                        {
 05777                            Id = 4L,
 05778                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(5487
 05779                            Description = "Товаровед",
 05780                            GUID = new Guid("25863955-3567-4c62-8ba5-35010a83291e"),
 05781                            IsDeleted = false,
 05782                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 05783                            Name = "Merchandiser"
 05784                        },
 05785                        new
 05786                        {
 05787                            Id = 5L,
 05788                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(5510
 05789                            Description = "Продавец",
 05790                            GUID = new Guid("05b8ba59-3c3f-4a9c-bfb2-1eee096b23bc"),
 05791                            IsDeleted = false,
 05792                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 05793                            Name = "Seller"
 05794                        },
 05795                        new
 05796                        {
 05797                            Id = 6L,
 05798                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(5600
 05799                            Description = "Дистрибьютор руководитель",
 05800                            GUID = new Guid("07210638-afde-4d15-af8b-5a37fd5e8934"),
 05801                            IsDeleted = false,
 05802                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 05803                            Name = "Distributor"
 05804                        },
 05805                        new
 05806                        {
 05807                            Id = 7L,
 05808                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(5626
 05809                            Description = "Менеджер по продажам",
 05810                            GUID = new Guid("4f09ed1d-f96c-4b49-83d4-29a7599aa008"),
 05811                            IsDeleted = false,
 05812                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 05813                            Name = "SalesManager"
 05814                        },
 05815                        new
 05816                        {
 05817                            Id = 8L,
 05818                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(5649
 05819                            Description = "Производитель",
 05820                            GUID = new Guid("cf0e5388-67d9-4fa6-b32a-55206e9fdc1b"),
 05821                            IsDeleted = false,
 05822                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 05823                            Name = "Manufacturer"
 05824                        });
 05825                });
 5826
 05827            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.SupplyContract", b =>
 05828                {
 05829                    b.Property<long>("Id")
 05830                        .ValueGeneratedOnAdd()
 05831                        .HasColumnType("bigint")
 05832                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05833
 05834                    b.Property<DateTime>("BeginDate")
 05835                        .HasColumnType("timestamp without time zone");
 05836
 05837                    b.Property<long>("BuyerId")
 05838                        .HasColumnType("bigint");
 05839
 05840                    b.Property<long?>("CreatedByUserId")
 05841                        .HasColumnType("bigint");
 05842
 05843                    b.Property<DateTime>("CreationDateTime")
 05844                        .HasColumnType("timestamp without time zone");
 05845
 05846                    b.Property<string>("DocumentNumber")
 05847                        .IsRequired()
 05848                        .HasColumnType("text");
 05849
 05850                    b.Property<DateTime>("EndDate")
 05851                        .HasColumnType("timestamp without time zone");
 05852
 05853                    b.Property<Guid>("GUID")
 05854                        .ValueGeneratedOnAdd()
 05855                        .HasColumnType("uuid");
 05856
 05857                    b.Property<bool>("IsDeleted")
 05858                        .HasColumnType("boolean");
 05859
 05860                    b.Property<DateTime?>("ModificationDateTime")
 05861                        .HasColumnType("timestamp without time zone");
 05862
 05863                    b.Property<long?>("ModifiedByUserId")
 05864                        .HasColumnType("bigint");
 05865
 05866                    b.Property<decimal>("PrepaimentPercent")
 05867                        .HasColumnType("numeric");
 05868
 05869                    b.Property<long?>("RecStateId")
 05870                        .HasColumnType("bigint");
 05871
 05872                    b.Property<long>("SellerId")
 05873                        .HasColumnType("bigint");
 05874
 05875                    b.Property<DateTime>("SignOffDate")
 05876                        .HasColumnType("timestamp without time zone");
 05877
 05878                    b.Property<decimal>("TradeRatio")
 05879                        .HasColumnType("numeric");
 05880
 05881                    b.HasKey("Id");
 05882
 05883                    b.HasIndex("BuyerId");
 05884
 05885                    b.HasIndex("CreatedByUserId");
 05886
 05887                    b.HasIndex("DocumentNumber");
 05888
 05889                    b.HasIndex("ModifiedByUserId");
 05890
 05891                    b.HasIndex("RecStateId");
 05892
 05893                    b.HasIndex("SellerId");
 05894
 05895                    b.ToTable("SupplyContract");
 05896                });
 5897
 05898            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.TaxSystem", b =>
 05899                {
 05900                    b.Property<long>("Id")
 05901                        .ValueGeneratedOnAdd()
 05902                        .HasColumnType("bigint")
 05903                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05904
 05905                    b.Property<string>("Code")
 05906                        .HasColumnType("text");
 05907
 05908                    b.Property<long?>("CreatedByUserId")
 05909                        .HasColumnType("bigint");
 05910
 05911                    b.Property<DateTime>("CreationDateTime")
 05912                        .HasColumnType("timestamp without time zone");
 05913
 05914                    b.Property<string>("Description")
 05915                        .HasColumnType("text");
 05916
 05917                    b.Property<Guid>("GUID")
 05918                        .ValueGeneratedOnAdd()
 05919                        .HasColumnType("uuid");
 05920
 05921                    b.Property<bool>("IsDeleted")
 05922                        .HasColumnType("boolean");
 05923
 05924                    b.Property<DateTime?>("ModificationDateTime")
 05925                        .HasColumnType("timestamp without time zone");
 05926
 05927                    b.Property<long?>("ModifiedByUserId")
 05928                        .HasColumnType("bigint");
 05929
 05930                    b.Property<string>("Name")
 05931                        .HasColumnType("text");
 05932
 05933                    b.Property<long?>("RecStateId")
 05934                        .HasColumnType("bigint");
 05935
 05936                    b.HasKey("Id");
 05937
 05938                    b.HasIndex("CreatedByUserId");
 05939
 05940                    b.HasIndex("ModifiedByUserId");
 05941
 05942                    b.HasIndex("RecStateId");
 05943
 05944                    b.ToTable("TaxSystems");
 05945
 05946                    b.HasData(
 05947                        new
 05948                        {
 05949                            Id = 1L,
 05950                            Code = "УСН",
 05951                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(8546
 05952                            Description = "Упрощенка",
 05953                            GUID = new Guid("ed951386-3355-440f-b9b4-c93f642c41b1"),
 05954                            IsDeleted = false,
 05955                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 05956                            Name = "Упрощенная система налогообложения"
 05957                        },
 05958                        new
 05959                        {
 05960                            Id = 2L,
 05961                            Code = "ЕНВД",
 05962                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(196)
 05963                            Description = "Вмененка",
 05964                            GUID = new Guid("4827f8fe-b730-4f4e-80b9-179c31f39588"),
 05965                            IsDeleted = false,
 05966                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 05967                            Name = "Единый налог на вмененные доходы"
 05968                        },
 05969                        new
 05970                        {
 05971                            Id = 3L,
 05972                            Code = "ES",
 05973                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(256)
 05974                            Description = "Единый сельскохозяйственный налог",
 05975                            GUID = new Guid("88e45f28-52c7-4671-9fba-38db6c740f1d"),
 05976                            IsDeleted = false,
 05977                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 05978                            Name = "ЕСХН"
 05979                        },
 05980                        new
 05981                        {
 05982                            Id = 4L,
 05983                            Code = "ОСН",
 05984                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(282)
 05985                            Description = "Стандартная",
 05986                            GUID = new Guid("36f979d3-153a-469c-abac-5f5be20f9190"),
 05987                            IsDeleted = false,
 05988                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 992, DateTimeKind.Utc).AddTicks(
 05989                            Name = "Основная система налогообложения"
 05990                        });
 05991                });
 5992
 05993            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UnitsKind", b =>
 05994                {
 05995                    b.Property<long>("Id")
 05996                        .ValueGeneratedOnAdd()
 05997                        .HasColumnType("bigint")
 05998                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 05999
 06000                    b.Property<string>("Code")
 06001                        .IsRequired()
 06002                        .HasColumnType("text");
 06003
 06004                    b.Property<long?>("CreatedByUserId")
 06005                        .HasColumnType("bigint");
 06006
 06007                    b.Property<DateTime>("CreationDateTime")
 06008                        .HasColumnType("timestamp without time zone");
 06009
 06010                    b.Property<string>("Description")
 06011                        .HasColumnType("text");
 06012
 06013                    b.Property<Guid>("GUID")
 06014                        .ValueGeneratedOnAdd()
 06015                        .HasColumnType("uuid");
 06016
 06017                    b.Property<bool>("IsDeleted")
 06018                        .HasColumnType("boolean");
 06019
 06020                    b.Property<DateTime?>("ModificationDateTime")
 06021                        .HasColumnType("timestamp without time zone");
 06022
 06023                    b.Property<long?>("ModifiedByUserId")
 06024                        .HasColumnType("bigint");
 06025
 06026                    b.Property<string>("Name")
 06027                        .IsRequired()
 06028                        .HasColumnType("text");
 06029
 06030                    b.Property<long?>("RecStateId")
 06031                        .HasColumnType("bigint");
 06032
 06033                    b.Property<string>("StrCode")
 06034                        .HasColumnType("text");
 06035
 06036                    b.HasKey("Id");
 06037
 06038                    b.HasIndex("CreatedByUserId");
 06039
 06040                    b.HasIndex("ModifiedByUserId");
 06041
 06042                    b.HasIndex("RecStateId");
 06043
 06044                    b.ToTable("UnitsKind");
 06045
 06046                    b.HasData(
 06047                        new
 06048                        {
 06049                            Id = 1L,
 06050                            Code = "1",
 06051                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(1571
 06052                            Description = "",
 06053                            GUID = new Guid("49891b41-54c5-496d-a59f-dc0f40b10047"),
 06054                            IsDeleted = false,
 06055                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 06056                            Name = "Неизвестно",
 06057                            StrCode = "Unknown"
 06058                        },
 06059                        new
 06060                        {
 06061                            Id = 2L,
 06062                            Code = "166",
 06063                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(2319
 06064                            Description = "Килограмм",
 06065                            GUID = new Guid("31939652-0436-4331-ae98-69abf85409cd"),
 06066                            IsDeleted = false,
 06067                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 06068                            Name = "КГ",
 06069                            StrCode = "Kg"
 06070                        },
 06071                        new
 06072                        {
 06073                            Id = 3L,
 06074                            Code = "112",
 06075                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(2366
 06076                            Description = "Литр",
 06077                            GUID = new Guid("dc77d9fd-f4f1-44ea-9d51-68fde0301647"),
 06078                            IsDeleted = false,
 06079                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 06080                            Name = "Л",
 06081                            StrCode = "Litre"
 06082                        },
 06083                        new
 06084                        {
 06085                            Id = 4L,
 06086                            Code = "6",
 06087                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(2391
 06088                            Description = "Метр",
 06089                            GUID = new Guid("ad303a3c-4aa1-45b2-b107-fc83769a69b0"),
 06090                            IsDeleted = false,
 06091                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 06092                            Name = "М",
 06093                            StrCode = "Meter"
 06094                        },
 06095                        new
 06096                        {
 06097                            Id = 5L,
 06098                            Code = "796",
 06099                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(2416
 06100                            Description = "Штука (1 единица товара)",
 06101                            GUID = new Guid("f5ab1d0c-3af1-4f6d-8e39-32a94c61440b"),
 06102                            IsDeleted = false,
 06103                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 06104                            Name = "ШТ",
 06105                            StrCode = "Item"
 06106                        },
 06107                        new
 06108                        {
 06109                            Id = 6L,
 06110                            Code = "55",
 06111                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(2442
 06112                            Description = "Квадратный метр",
 06113                            GUID = new Guid("58bad181-07d5-4179-bca0-07a7896c42ed"),
 06114                            IsDeleted = false,
 06115                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 06116                            Name = "М2",
 06117                            StrCode = "SquareMetre"
 06118                        },
 06119                        new
 06120                        {
 06121                            Id = 7L,
 06122                            Code = "113",
 06123                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(2465
 06124                            Description = "Кубический метр",
 06125                            GUID = new Guid("91f49d0d-22da-4512-90dd-0aa4c64ccf0e"),
 06126                            IsDeleted = false,
 06127                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 06128                            Name = "М3",
 06129                            StrCode = "CubicMetre"
 06130                        });
 06131                });
 6132
 06133            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Upload", b =>
 06134                {
 06135                    b.Property<long>("Id")
 06136                        .ValueGeneratedOnAdd()
 06137                        .HasColumnType("bigint")
 06138                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 06139
 06140                    b.Property<long?>("CreatedByUserId")
 06141                        .HasColumnType("bigint");
 06142
 06143                    b.Property<DateTime>("CreationDateTime")
 06144                        .HasColumnType("timestamp without time zone");
 06145
 06146                    b.Property<Guid>("GUID")
 06147                        .ValueGeneratedOnAdd()
 06148                        .HasColumnType("uuid");
 06149
 06150                    b.Property<bool>("IsDeleted")
 06151                        .HasColumnType("boolean");
 06152
 06153                    b.Property<DateTime?>("ModificationDateTime")
 06154                        .HasColumnType("timestamp without time zone");
 06155
 06156                    b.Property<long?>("ModifiedByUserId")
 06157                        .HasColumnType("bigint");
 06158
 06159                    b.Property<long?>("RecStateId")
 06160                        .HasColumnType("bigint");
 06161
 06162                    b.Property<byte[]>("ResultFile")
 06163                        .HasColumnType("bytea");
 06164
 06165                    b.Property<byte[]>("SourceFile")
 06166                        .HasColumnType("bytea");
 06167
 06168                    b.Property<int>("SourceRecordCount")
 06169                        .HasColumnType("integer");
 06170
 06171                    b.Property<int>("Status")
 06172                        .HasColumnType("integer");
 06173
 06174                    b.Property<int>("UploadedRecordCount")
 06175                        .HasColumnType("integer");
 06176
 06177                    b.HasKey("Id");
 06178
 06179                    b.HasIndex("CreatedByUserId");
 06180
 06181                    b.HasIndex("ModifiedByUserId");
 06182
 06183                    b.HasIndex("RecStateId");
 06184
 06185                    b.ToTable("Uploads");
 06186                });
 6187
 06188            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UploadItem", b =>
 06189                {
 06190                    b.Property<long>("Id")
 06191                        .ValueGeneratedOnAdd()
 06192                        .HasColumnType("bigint")
 06193                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 06194
 06195                    b.Property<long?>("CreatedByUserId")
 06196                        .HasColumnType("bigint");
 06197
 06198                    b.Property<DateTime>("CreationDateTime")
 06199                        .HasColumnType("timestamp without time zone");
 06200
 06201                    b.Property<long>("EndityId")
 06202                        .HasColumnType("bigint");
 06203
 06204                    b.Property<string>("EntityName")
 06205                        .IsRequired()
 06206                        .HasColumnType("text");
 06207
 06208                    b.Property<Guid>("GUID")
 06209                        .ValueGeneratedOnAdd()
 06210                        .HasColumnType("uuid");
 06211
 06212                    b.Property<bool>("IsDeleted")
 06213                        .HasColumnType("boolean");
 06214
 06215                    b.Property<DateTime?>("ModificationDateTime")
 06216                        .HasColumnType("timestamp without time zone");
 06217
 06218                    b.Property<long?>("ModifiedByUserId")
 06219                        .HasColumnType("bigint");
 06220
 06221                    b.Property<long?>("RecStateId")
 06222                        .HasColumnType("bigint");
 06223
 06224                    b.Property<long>("UploadId")
 06225                        .HasColumnType("bigint");
 06226
 06227                    b.HasKey("Id");
 06228
 06229                    b.HasIndex("CreatedByUserId");
 06230
 06231                    b.HasIndex("ModifiedByUserId");
 06232
 06233                    b.HasIndex("RecStateId");
 06234
 06235                    b.HasIndex("UploadId");
 06236
 06237                    b.ToTable("UploadItems");
 06238                });
 6239
 06240            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", b =>
 06241                {
 06242                    b.Property<long>("Id")
 06243                        .ValueGeneratedOnAdd()
 06244                        .HasColumnType("bigint")
 06245                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 06246
 06247                    b.Property<long?>("ContragentId")
 06248                        .HasColumnType("bigint");
 06249
 06250                    b.Property<long?>("CreatedByUserId")
 06251                        .HasColumnType("bigint");
 06252
 06253                    b.Property<DateTime>("CreationDateTime")
 06254                        .HasColumnType("timestamp without time zone");
 06255
 06256                    b.Property<string>("Email")
 06257                        .IsRequired()
 06258                        .HasColumnType("text");
 06259
 06260                    b.Property<Guid>("ExternalKey")
 06261                        .ValueGeneratedOnAdd()
 06262                        .HasColumnType("uuid");
 06263
 06264                    b.Property<string>("FirstName")
 06265                        .IsRequired()
 06266                        .HasColumnType("text");
 06267
 06268                    b.Property<Guid>("GUID")
 06269                        .ValueGeneratedOnAdd()
 06270                        .HasColumnType("uuid");
 06271
 06272                    b.Property<bool>("IsBlocked")
 06273                        .HasColumnType("boolean");
 06274
 06275                    b.Property<bool>("IsContactPerson")
 06276                        .HasColumnType("boolean");
 06277
 06278                    b.Property<bool>("IsDeleted")
 06279                        .HasColumnType("boolean");
 06280
 06281                    b.Property<string>("LastName")
 06282                        .IsRequired()
 06283                        .HasColumnType("text");
 06284
 06285                    b.Property<string>("Login")
 06286                        .HasColumnType("text");
 06287
 06288                    b.Property<string>("MiddleName")
 06289                        .HasColumnType("text");
 06290
 06291                    b.Property<DateTime?>("ModificationDateTime")
 06292                        .HasColumnType("timestamp without time zone");
 06293
 06294                    b.Property<long?>("ModifiedByUserId")
 06295                        .HasColumnType("bigint");
 06296
 06297                    b.Property<string>("Phone")
 06298                        .HasColumnType("text");
 06299
 06300                    b.Property<string>("Position")
 06301                        .IsRequired()
 06302                        .HasColumnType("text");
 06303
 06304                    b.Property<long?>("RecStateId")
 06305                        .HasColumnType("bigint");
 06306
 06307                    b.HasKey("Id");
 06308
 06309                    b.HasIndex("ContragentId");
 06310
 06311                    b.HasIndex("CreatedByUserId");
 06312
 06313                    b.HasIndex("Email");
 06314
 06315                    b.HasIndex("LastName");
 06316
 06317                    b.HasIndex("Login");
 06318
 06319                    b.HasIndex("ModifiedByUserId");
 06320
 06321                    b.HasIndex("Phone");
 06322
 06323                    b.HasIndex("RecStateId");
 06324
 06325                    b.ToTable("Users");
 06326
 06327                    b.HasData(
 06328                        new
 06329                        {
 06330                            Id = -1L,
 06331                            ContragentId = 1L,
 06332                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 994, DateTimeKind.Utc).AddTicks(2171
 06333                            Email = "SvetaAdmin@dd.com",
 06334                            FirstName = "1",
 06335                            IsBlocked = false,
 06336                            IsContactPerson = true,
 06337                            IsDeleted = false,
 06338                            LastName = "1",
 06339                            Login = "svetaAdmin",
 06340                            MiddleName = "1",
 06341                            Phone = "1",
 06342                            Position = "1"
 06343                        },
 06344                        new
 06345                        {
 06346                            Id = -2L,
 06347                            ContragentId = 1L,
 06348                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 994, DateTimeKind.Utc).AddTicks(3895
 06349                            Email = "anonymuser@dd.com",
 06350                            FirstName = "Anonym User",
 06351                            IsBlocked = false,
 06352                            IsContactPerson = true,
 06353                            IsDeleted = false,
 06354                            LastName = "1",
 06355                            Login = "Anonym User",
 06356                            MiddleName = "Anonym User",
 06357                            Phone = "1",
 06358                            Position = "Анонимная УЗ, не удалять"
 06359                        });
 06360                });
 6361
 06362            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserDepartment", b =>
 06363                {
 06364                    b.Property<long>("UserId")
 06365                        .HasColumnType("bigint");
 06366
 06367                    b.Property<long>("DepartmentId")
 06368                        .HasColumnType("bigint");
 06369
 06370                    b.Property<long?>("CreatedByUserId")
 06371                        .HasColumnType("bigint");
 06372
 06373                    b.Property<DateTime>("CreationDateTime")
 06374                        .HasColumnType("timestamp without time zone");
 06375
 06376                    b.Property<Guid>("GUID")
 06377                        .ValueGeneratedOnAdd()
 06378                        .HasColumnType("uuid");
 06379
 06380                    b.HasKey("UserId", "DepartmentId");
 06381
 06382                    b.HasIndex("DepartmentId");
 06383
 06384                    b.ToTable("UserDepartment");
 06385                });
 6386
 06387            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserRole", b =>
 06388                {
 06389                    b.Property<long>("UserId")
 06390                        .HasColumnType("bigint");
 06391
 06392                    b.Property<long>("RoleId")
 06393                        .HasColumnType("bigint");
 06394
 06395                    b.Property<long?>("CreatedByUserId")
 06396                        .HasColumnType("bigint");
 06397
 06398                    b.Property<DateTime>("CreationDateTime")
 06399                        .HasColumnType("timestamp without time zone");
 06400
 06401                    b.Property<Guid>("GUID")
 06402                        .ValueGeneratedOnAdd()
 06403                        .HasColumnType("uuid");
 06404
 06405                    b.HasKey("UserId", "RoleId");
 06406
 06407                    b.HasIndex("RoleId");
 06408
 06409                    b.ToTable("UserRole");
 06410                });
 6411
 06412            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.VatsKind", b =>
 06413                {
 06414                    b.Property<long>("Id")
 06415                        .ValueGeneratedOnAdd()
 06416                        .HasColumnType("bigint")
 06417                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 06418
 06419                    b.Property<string>("Code")
 06420                        .IsRequired()
 06421                        .HasColumnType("text");
 06422
 06423                    b.Property<long?>("CreatedByUserId")
 06424                        .HasColumnType("bigint");
 06425
 06426                    b.Property<DateTime>("CreationDateTime")
 06427                        .HasColumnType("timestamp without time zone");
 06428
 06429                    b.Property<string>("Description")
 06430                        .HasColumnType("text");
 06431
 06432                    b.Property<Guid>("GUID")
 06433                        .ValueGeneratedOnAdd()
 06434                        .HasColumnType("uuid");
 06435
 06436                    b.Property<bool>("IsDeleted")
 06437                        .HasColumnType("boolean");
 06438
 06439                    b.Property<DateTime?>("ModificationDateTime")
 06440                        .HasColumnType("timestamp without time zone");
 06441
 06442                    b.Property<long?>("ModifiedByUserId")
 06443                        .HasColumnType("bigint");
 06444
 06445                    b.Property<string>("Name")
 06446                        .IsRequired()
 06447                        .HasColumnType("text");
 06448
 06449                    b.Property<long?>("RecStateId")
 06450                        .HasColumnType("bigint");
 06451
 06452                    b.Property<string>("StrCode")
 06453                        .HasColumnType("text");
 06454
 06455                    b.HasKey("Id");
 06456
 06457                    b.HasIndex("CreatedByUserId");
 06458
 06459                    b.HasIndex("ModifiedByUserId");
 06460
 06461                    b.HasIndex("RecStateId");
 06462
 06463                    b.ToTable("VatsKind");
 06464
 06465                    b.HasData(
 06466                        new
 06467                        {
 06468                            Id = 1L,
 06469                            Code = "1",
 06470                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(3037
 06471                            Description = "",
 06472                            GUID = new Guid("a18e1bf4-6635-4211-b93a-a62292bec60d"),
 06473                            IsDeleted = false,
 06474                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 06475                            Name = "0%",
 06476                            StrCode = "Zero"
 06477                        },
 06478                        new
 06479                        {
 06480                            Id = 2L,
 06481                            Code = "10",
 06482                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(3698
 06483                            Description = "",
 06484                            GUID = new Guid("2698a330-c0b5-4c25-94bf-2e7fa97c9458"),
 06485                            IsDeleted = false,
 06486                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 06487                            Name = "10%",
 06488                            StrCode = "Ten"
 06489                        },
 06490                        new
 06491                        {
 06492                            Id = 3L,
 06493                            Code = "20",
 06494                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(3743
 06495                            Description = "",
 06496                            GUID = new Guid("4aedf2b6-0539-4ee6-9e41-0392296f4e9c"),
 06497                            IsDeleted = false,
 06498                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 06499                            Name = "20%",
 06500                            StrCode = "Twenty"
 06501                        });
 06502                });
 6503
 06504            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransaction", b =>
 06505                {
 06506                    b.Property<long>("Id")
 06507                        .ValueGeneratedOnAdd()
 06508                        .HasColumnType("bigint")
 06509                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 06510
 06511                    b.Property<long?>("CreatedByUserId")
 06512                        .HasColumnType("bigint");
 06513
 06514                    b.Property<DateTime>("CreationDateTime")
 06515                        .HasColumnType("timestamp without time zone");
 06516
 06517                    b.Property<Guid>("GUID")
 06518                        .ValueGeneratedOnAdd()
 06519                        .HasColumnType("uuid");
 06520
 06521                    b.Property<bool>("IsDeleted")
 06522                        .HasColumnType("boolean");
 06523
 06524                    b.Property<DateTime?>("ModificationDateTime")
 06525                        .HasColumnType("timestamp without time zone");
 06526
 06527                    b.Property<long?>("ModifiedByUserId")
 06528                        .HasColumnType("bigint");
 06529
 06530                    b.Property<long?>("MovementId")
 06531                        .HasColumnType("bigint");
 06532
 06533                    b.Property<long?>("RecStateId")
 06534                        .HasColumnType("bigint");
 06535
 06536                    b.Property<string>("SmsId")
 06537                        .HasColumnType("text");
 06538
 06539                    b.Property<long?>("StatusId")
 06540                        .HasColumnType("bigint");
 06541
 06542                    b.Property<decimal>("Sum")
 06543                        .HasColumnType("numeric");
 06544
 06545                    b.Property<string>("TransactionId")
 06546                        .HasColumnType("text");
 06547
 06548                    b.HasKey("Id");
 06549
 06550                    b.HasIndex("CreatedByUserId");
 06551
 06552                    b.HasIndex("ModifiedByUserId");
 06553
 06554                    b.HasIndex("MovementId");
 06555
 06556                    b.HasIndex("RecStateId");
 06557
 06558                    b.HasIndex("StatusId");
 06559
 06560                    b.ToTable("WalletTransactions");
 06561                });
 6562
 06563            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransactionStatus", b =>
 06564                {
 06565                    b.Property<long>("Id")
 06566                        .ValueGeneratedOnAdd()
 06567                        .HasColumnType("bigint")
 06568                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 06569
 06570                    b.Property<string>("Code")
 06571                        .IsRequired()
 06572                        .HasColumnType("text");
 06573
 06574                    b.Property<long?>("CreatedByUserId")
 06575                        .HasColumnType("bigint");
 06576
 06577                    b.Property<DateTime>("CreationDateTime")
 06578                        .HasColumnType("timestamp without time zone");
 06579
 06580                    b.Property<string>("Description")
 06581                        .HasColumnType("text");
 06582
 06583                    b.Property<Guid>("GUID")
 06584                        .ValueGeneratedOnAdd()
 06585                        .HasColumnType("uuid");
 06586
 06587                    b.Property<bool>("IsDeleted")
 06588                        .HasColumnType("boolean");
 06589
 06590                    b.Property<DateTime?>("ModificationDateTime")
 06591                        .HasColumnType("timestamp without time zone");
 06592
 06593                    b.Property<long?>("ModifiedByUserId")
 06594                        .HasColumnType("bigint");
 06595
 06596                    b.Property<string>("Name")
 06597                        .IsRequired()
 06598                        .HasColumnType("text");
 06599
 06600                    b.Property<long?>("RecStateId")
 06601                        .HasColumnType("bigint");
 06602
 06603                    b.HasKey("Id");
 06604
 06605                    b.HasIndex("CreatedByUserId");
 06606
 06607                    b.HasIndex("ModifiedByUserId");
 06608
 06609                    b.HasIndex("RecStateId");
 06610
 06611                    b.ToTable("WalletTransactionStatuses");
 06612
 06613                    b.HasData(
 06614                        new
 06615                        {
 06616                            Id = 1L,
 06617                            Code = "WaitSms",
 06618                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(6461
 06619                            Description = "",
 06620                            GUID = new Guid("38c373d9-d75e-418d-b65c-8e844c932f7e"),
 06621                            IsDeleted = false,
 06622                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 06623                            Name = "Ожидание смс подтверждения"
 06624                        },
 06625                        new
 06626                        {
 06627                            Id = 2L,
 06628                            Code = "Hold",
 06629                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(6886
 06630                            Description = "",
 06631                            GUID = new Guid("2f912510-9f79-4726-901b-e5d1056a3e6f"),
 06632                            IsDeleted = false,
 06633                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 06634                            Name = "Холдировано"
 06635                        },
 06636                        new
 06637                        {
 06638                            Id = 3L,
 06639                            Code = "Confirm",
 06640                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(7145
 06641                            Description = "",
 06642                            GUID = new Guid("4e9d9648-01cd-4ec3-b2a5-ae88126349b0"),
 06643                            IsDeleted = false,
 06644                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 06645                            Name = "Подтверждено"
 06646                        },
 06647                        new
 06648                        {
 06649                            Id = 4L,
 06650                            Code = "Cancel",
 06651                            CreationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(7216
 06652                            Description = "",
 06653                            GUID = new Guid("d1223aa8-2570-4b73-867c-9bdc54a0297e"),
 06654                            IsDeleted = false,
 06655                            ModificationDateTime = new DateTime(2020, 4, 5, 16, 25, 22, 991, DateTimeKind.Utc).AddTicks(
 06656                            Name = "Отменено"
 06657                        });
 06658                });
 6659
 06660            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WorkSchedule", b =>
 06661                {
 06662                    b.Property<long>("Id")
 06663                        .ValueGeneratedOnAdd()
 06664                        .HasColumnType("bigint")
 06665                        .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefault
 06666
 06667                    b.Property<DateTime>("BeginTime")
 06668                        .HasColumnType("timestamp without time zone");
 06669
 06670                    b.Property<long?>("CreatedByUserId")
 06671                        .HasColumnType("bigint");
 06672
 06673                    b.Property<DateTime>("CreationDateTime")
 06674                        .HasColumnType("timestamp without time zone");
 06675
 06676                    b.Property<DateTime>("EndTime")
 06677                        .HasColumnType("timestamp without time zone");
 06678
 06679                    b.Property<Guid>("GUID")
 06680                        .ValueGeneratedOnAdd()
 06681                        .HasColumnType("uuid");
 06682
 06683                    b.Property<bool>("IsDeleted")
 06684                        .HasColumnType("boolean");
 06685
 06686                    b.Property<bool>("IsWorkingDay")
 06687                        .HasColumnType("boolean");
 06688
 06689                    b.Property<DateTime?>("ModificationDateTime")
 06690                        .HasColumnType("timestamp without time zone");
 06691
 06692                    b.Property<long?>("ModifiedByUserId")
 06693                        .HasColumnType("bigint");
 06694
 06695                    b.Property<long?>("RecStateId")
 06696                        .HasColumnType("bigint");
 06697
 06698                    b.HasKey("Id");
 06699
 06700                    b.HasIndex("CreatedByUserId");
 06701
 06702                    b.HasIndex("ModifiedByUserId");
 06703
 06704                    b.HasIndex("RecStateId");
 06705
 06706                    b.ToTable("WorkScheduler");
 06707                });
 6708
 06709            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", b =>
 06710                {
 06711                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 06712                        .WithMany()
 06713                        .HasForeignKey("CreatedByUserId");
 06714
 06715                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 06716                        .WithMany()
 06717                        .HasForeignKey("ModifiedByUserId");
 06718
 06719                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 06720                        .WithMany()
 06721                        .HasForeignKey("RecStateId");
 06722                });
 6723
 06724            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.BankAccount", b =>
 06725                {
 06726                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Contragent")
 06727                        .WithMany("BankAccounts")
 06728                        .HasForeignKey("ContragentId");
 06729
 06730                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 06731                        .WithMany()
 06732                        .HasForeignKey("CreatedByUserId");
 06733
 06734                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 06735                        .WithMany()
 06736                        .HasForeignKey("ModifiedByUserId");
 06737
 06738                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 06739                        .WithMany()
 06740                        .HasForeignKey("RecStateId");
 06741                });
 6742
 06743            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.BarCode", b =>
 06744                {
 06745                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 06746                        .WithMany()
 06747                        .HasForeignKey("CreatedByUserId");
 06748
 06749                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", null)
 06750                        .WithMany("Barcodes")
 06751                        .HasForeignKey("GoodId");
 06752
 06753                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 06754                        .WithMany()
 06755                        .HasForeignKey("ModifiedByUserId");
 06756
 06757                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 06758                        .WithMany()
 06759                        .HasForeignKey("RecStateId");
 06760                });
 6761
 06762            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", b =>
 06763                {
 06764                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 06765                        .WithMany()
 06766                        .HasForeignKey("CreatedByUserId");
 06767
 06768                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 06769                        .WithMany()
 06770                        .HasForeignKey("ModifiedByUserId");
 06771
 06772                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", "Parent")
 06773                        .WithMany()
 06774                        .HasForeignKey("ParentId");
 06775
 06776                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 06777                        .WithMany()
 06778                        .HasForeignKey("RecStateId");
 06779                });
 6780
 06781            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", b =>
 06782                {
 06783                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 06784                        .WithMany()
 06785                        .HasForeignKey("CreatedByUserId");
 06786
 06787                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 06788                        .WithMany()
 06789                        .HasForeignKey("ModifiedByUserId");
 06790
 06791                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", "Parent")
 06792                        .WithMany()
 06793                        .HasForeignKey("ParentId");
 06794
 06795                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 06796                        .WithMany()
 06797                        .HasForeignKey("RecStateId");
 06798                });
 6799
 06800            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Cluster", b =>
 06801                {
 06802                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 06803                        .WithMany()
 06804                        .HasForeignKey("CreatedByUserId");
 06805
 06806                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 06807                        .WithMany()
 06808                        .HasForeignKey("ModifiedByUserId");
 06809
 06810                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 06811                        .WithMany()
 06812                        .HasForeignKey("RecStateId");
 06813
 06814                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Warehouse")
 06815                        .WithMany()
 06816                        .HasForeignKey("WarehouseId")
 06817                        .OnDelete(DeleteBehavior.Cascade)
 06818                        .IsRequired();
 06819                });
 6820
 06821            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", b =>
 06822                {
 06823                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.ContragentsKind", "ContragentsKind")
 06824                        .WithMany()
 06825                        .HasForeignKey("ContragentsKindId")
 06826                        .OnDelete(DeleteBehavior.Cascade)
 06827                        .IsRequired();
 06828
 06829                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 06830                        .WithMany()
 06831                        .HasForeignKey("CreatedByUserId");
 06832
 06833                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", "JuridicAddress")
 06834                        .WithMany()
 06835                        .HasForeignKey("JuridicAddressId")
 06836                        .OnDelete(DeleteBehavior.Cascade)
 06837                        .IsRequired();
 06838
 06839                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 06840                        .WithMany()
 06841                        .HasForeignKey("ModifiedByUserId");
 06842
 06843                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "Owner")
 06844                        .WithMany()
 06845                        .HasForeignKey("OwnerId")
 06846                        .OnDelete(DeleteBehavior.Cascade)
 06847                        .IsRequired();
 06848
 06849                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", "PhysicAddress")
 06850                        .WithMany()
 06851                        .HasForeignKey("PhysicAddressId")
 06852                        .OnDelete(DeleteBehavior.Cascade)
 06853                        .IsRequired();
 06854
 06855                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 06856                        .WithMany()
 06857                        .HasForeignKey("RecStateId");
 06858
 06859                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.TaxSystem", "TaxSystem")
 06860                        .WithMany()
 06861                        .HasForeignKey("TaxSystemId");
 06862                });
 6863
 06864            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.ContragentsKind", b =>
 06865                {
 06866                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 06867                        .WithMany()
 06868                        .HasForeignKey("CreatedByUserId");
 06869
 06870                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 06871                        .WithMany()
 06872                        .HasForeignKey("ModifiedByUserId");
 06873
 06874                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 06875                        .WithMany()
 06876                        .HasForeignKey("RecStateId");
 06877                });
 6878
 06879            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Country", b =>
 06880                {
 06881                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 06882                        .WithMany()
 06883                        .HasForeignKey("CreatedByUserId");
 06884
 06885                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 06886                        .WithMany()
 06887                        .HasForeignKey("ModifiedByUserId");
 06888
 06889                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 06890                        .WithMany()
 06891                        .HasForeignKey("RecStateId");
 06892                });
 6893
 06894            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Currency", b =>
 06895                {
 06896                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 06897                        .WithMany()
 06898                        .HasForeignKey("CreatedByUserId");
 06899
 06900                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 06901                        .WithMany()
 06902                        .HasForeignKey("ModifiedByUserId");
 06903
 06904                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 06905                        .WithMany()
 06906                        .HasForeignKey("RecStateId");
 06907                });
 6908
 06909            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", b =>
 06910                {
 06911                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", "ActualAddress")
 06912                        .WithMany()
 06913                        .HasForeignKey("ActualAddressId");
 06914
 06915                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Cluster", "Cluster")
 06916                        .WithMany("Departments")
 06917                        .HasForeignKey("ClusterId");
 06918
 06919                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Contragent")
 06920                        .WithMany("Departments")
 06921                        .HasForeignKey("ContragentId")
 06922                        .OnDelete(DeleteBehavior.Cascade)
 06923                        .IsRequired();
 06924
 06925                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 06926                        .WithMany()
 06927                        .HasForeignKey("CreatedByUserId");
 06928
 06929                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsKind", "Kind")
 06930                        .WithMany()
 06931                        .HasForeignKey("KindId");
 06932
 06933                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 06934                        .WithMany()
 06935                        .HasForeignKey("ModifiedByUserId");
 06936
 06937                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Address", "PostalAddress")
 06938                        .WithMany()
 06939                        .HasForeignKey("PostalAddressId");
 06940
 06941                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 06942                        .WithMany()
 06943                        .HasForeignKey("RecStateId");
 06944
 06945                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsStatus", "Status")
 06946                        .WithMany()
 06947                        .HasForeignKey("StatusId");
 06948                });
 6949
 06950            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentCategoryRatio", b =>
 06951                {
 06952                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", "Category")
 06953                        .WithMany("DepartmentCategoryRatios")
 06954                        .HasForeignKey("CategoryId")
 06955                        .OnDelete(DeleteBehavior.Cascade)
 06956                        .IsRequired();
 06957
 06958                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 06959                        .WithMany()
 06960                        .HasForeignKey("CreatedByUserId");
 06961
 06962                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 06963                        .WithMany()
 06964                        .HasForeignKey("DepartmentId")
 06965                        .OnDelete(DeleteBehavior.Cascade)
 06966                        .IsRequired();
 06967
 06968                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 06969                        .WithMany()
 06970                        .HasForeignKey("ModifiedByUserId");
 06971
 06972                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 06973                        .WithMany()
 06974                        .HasForeignKey("RecStateId");
 06975                });
 6976
 06977            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentGoodSetting", b =>
 06978                {
 06979                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 06980                        .WithMany()
 06981                        .HasForeignKey("CreatedByUserId");
 06982
 06983                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 06984                        .WithMany()
 06985                        .HasForeignKey("DepartmentId")
 06986                        .OnDelete(DeleteBehavior.Cascade)
 06987                        .IsRequired();
 06988
 06989                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 06990                        .WithMany("DepartmentGoodSettings")
 06991                        .HasForeignKey("GoodId")
 06992                        .OnDelete(DeleteBehavior.Cascade)
 06993                        .IsRequired();
 06994
 06995                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 06996                        .WithMany()
 06997                        .HasForeignKey("ModifiedByUserId");
 06998
 06999                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07000                        .WithMany()
 07001                        .HasForeignKey("RecStateId");
 07002                });
 7003
 07004            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsKind", b =>
 07005                {
 07006                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07007                        .WithMany()
 07008                        .HasForeignKey("CreatedByUserId");
 07009
 07010                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07011                        .WithMany()
 07012                        .HasForeignKey("ModifiedByUserId");
 07013
 07014                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07015                        .WithMany()
 07016                        .HasForeignKey("RecStateId");
 07017                });
 7018
 07019            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentsStatus", b =>
 07020                {
 07021                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07022                        .WithMany()
 07023                        .HasForeignKey("CreatedByUserId");
 07024
 07025                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07026                        .WithMany()
 07027                        .HasForeignKey("ModifiedByUserId");
 07028
 07029                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07030                        .WithMany()
 07031                        .HasForeignKey("RecStateId");
 07032                });
 7033
 07034            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Event", b =>
 07035                {
 07036                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07037                        .WithMany()
 07038                        .HasForeignKey("CreatedByUserId");
 07039
 07040                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.EventsKind", "EventsKind")
 07041                        .WithMany()
 07042                        .HasForeignKey("EventsKindId")
 07043                        .OnDelete(DeleteBehavior.Cascade)
 07044                        .IsRequired();
 07045
 07046                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07047                        .WithMany()
 07048                        .HasForeignKey("ModifiedByUserId");
 07049
 07050                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07051                        .WithMany()
 07052                        .HasForeignKey("RecStateId");
 07053
 07054                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 07055                        .WithMany()
 07056                        .HasForeignKey("UserId")
 07057                        .OnDelete(DeleteBehavior.Cascade)
 07058                        .IsRequired();
 07059                });
 7060
 07061            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.EventsKind", b =>
 07062                {
 07063                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07064                        .WithMany()
 07065                        .HasForeignKey("CreatedByUserId");
 07066
 07067                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07068                        .WithMany()
 07069                        .HasForeignKey("ModifiedByUserId");
 07070
 07071                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07072                        .WithMany()
 07073                        .HasForeignKey("RecStateId");
 07074                });
 7075
 07076            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", b =>
 07077                {
 07078                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", "Brand")
 07079                        .WithMany()
 07080                        .HasForeignKey("BrandId");
 07081
 07082                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Category", "Category")
 07083                        .WithMany()
 07084                        .HasForeignKey("CategoryId")
 07085                        .OnDelete(DeleteBehavior.Cascade)
 07086                        .IsRequired();
 07087
 07088                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Country", "Country")
 07089                        .WithMany()
 07090                        .HasForeignKey("CountryId");
 07091
 07092                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07093                        .WithMany()
 07094                        .HasForeignKey("CreatedByUserId");
 07095
 07096                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.BarCode", "MainBarcode")
 07097                        .WithMany()
 07098                        .HasForeignKey("MainBarcodeId")
 07099                        .OnDelete(DeleteBehavior.Cascade)
 07100                        .IsRequired();
 07101
 07102                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Manufacturer")
 07103                        .WithMany()
 07104                        .HasForeignKey("ManufacturerId");
 07105
 07106                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07107                        .WithMany()
 07108                        .HasForeignKey("ModifiedByUserId");
 07109
 07110                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07111                        .WithMany()
 07112                        .HasForeignKey("RecStateId");
 07113
 07114                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Brand", "SubBrand")
 07115                        .WithMany()
 07116                        .HasForeignKey("SubBrandId");
 07117
 07118                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Supplier")
 07119                        .WithMany()
 07120                        .HasForeignKey("SupplierId");
 07121
 07122                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.UnitsKind", "UnitsKind")
 07123                        .WithMany()
 07124                        .HasForeignKey("UnitsKindId")
 07125                        .OnDelete(DeleteBehavior.Cascade)
 07126                        .IsRequired();
 07127
 07128                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.VatsKind", "VatsKind")
 07129                        .WithMany()
 07130                        .HasForeignKey("VatsKindId")
 07131                        .OnDelete(DeleteBehavior.Cascade)
 07132                        .IsRequired();
 07133                });
 7134
 07135            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Incident", b =>
 07136                {
 07137                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07138                        .WithMany()
 07139                        .HasForeignKey("CreatedByUserId");
 07140
 07141                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsKind", "Kind")
 07142                        .WithMany()
 07143                        .HasForeignKey("KindId");
 07144
 07145                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07146                        .WithMany()
 07147                        .HasForeignKey("ModifiedByUserId");
 07148
 07149                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07150                        .WithMany()
 07151                        .HasForeignKey("RecStateId");
 07152
 07153                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsStatus", "Status")
 07154                        .WithMany()
 07155                        .HasForeignKey("StatusId");
 07156
 07157                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 07158                        .WithMany()
 07159                        .HasForeignKey("UserId")
 07160                        .OnDelete(DeleteBehavior.Cascade)
 07161                        .IsRequired();
 07162                });
 7163
 07164            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsKind", b =>
 07165                {
 07166                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07167                        .WithMany()
 07168                        .HasForeignKey("CreatedByUserId");
 07169
 07170                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07171                        .WithMany()
 07172                        .HasForeignKey("ModifiedByUserId");
 07173
 07174                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07175                        .WithMany()
 07176                        .HasForeignKey("RecStateId");
 07177                });
 7178
 07179            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.IncidentsStatus", b =>
 07180                {
 07181                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07182                        .WithMany()
 07183                        .HasForeignKey("CreatedByUserId");
 07184
 07185                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07186                        .WithMany()
 07187                        .HasForeignKey("ModifiedByUserId");
 07188
 07189                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07190                        .WithMany()
 07191                        .HasForeignKey("RecStateId");
 07192                });
 7193
 07194            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MethodRole", b =>
 07195                {
 07196                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Methods", "Methods")
 07197                        .WithMany("MethodsRoles")
 07198                        .HasForeignKey("MethodId")
 07199                        .OnDelete(DeleteBehavior.Cascade)
 07200                        .IsRequired();
 07201
 07202                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", "Roles")
 07203                        .WithMany("MethodsRoles")
 07204                        .HasForeignKey("RoleId")
 07205                        .OnDelete(DeleteBehavior.Cascade)
 07206                        .IsRequired();
 07207                });
 7208
 07209            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Methods", b =>
 07210                {
 07211                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07212                        .WithMany()
 07213                        .HasForeignKey("CreatedByUserId");
 07214
 07215                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07216                        .WithMany()
 07217                        .HasForeignKey("ModifiedByUserId");
 07218
 07219                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07220                        .WithMany()
 07221                        .HasForeignKey("RecStateId");
 07222                });
 7223
 07224            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", b =>
 07225                {
 07226                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07227                        .WithMany()
 07228                        .HasForeignKey("CreatedByUserId");
 07229
 07230                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Customer")
 07231                        .WithMany()
 07232                        .HasForeignKey("CustomerId")
 07233                        .OnDelete(DeleteBehavior.Cascade)
 07234                        .IsRequired();
 07235
 07236                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07237                        .WithMany()
 07238                        .HasForeignKey("ModifiedByUserId");
 07239
 07240                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "MovementStatus")
 07241                        .WithMany()
 07242                        .HasForeignKey("MovementStatusId")
 07243                        .OnDelete(DeleteBehavior.Cascade)
 07244                        .IsRequired();
 07245
 07246                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", "MovementType")
 07247                        .WithMany()
 07248                        .HasForeignKey("MovementTypeId")
 07249                        .OnDelete(DeleteBehavior.Cascade)
 07250                        .IsRequired();
 07251
 07252                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", "Parent")
 07253                        .WithMany()
 07254                        .HasForeignKey("ParentId");
 07255
 07256                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07257                        .WithMany()
 07258                        .HasForeignKey("RecStateId");
 07259
 07260                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Receiver")
 07261                        .WithMany()
 07262                        .HasForeignKey("ReceiverId")
 07263                        .OnDelete(DeleteBehavior.Cascade)
 07264                        .IsRequired();
 07265
 07266                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Sender")
 07267                        .WithMany()
 07268                        .HasForeignKey("SenderId");
 07269
 07270                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Supplier")
 07271                        .WithMany()
 07272                        .HasForeignKey("SupplierId")
 07273                        .OnDelete(DeleteBehavior.Cascade)
 07274                        .IsRequired();
 07275                });
 7276
 07277            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementItem", b =>
 07278                {
 07279                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07280                        .WithMany()
 07281                        .HasForeignKey("CreatedByUserId");
 07282
 07283                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 07284                        .WithMany()
 07285                        .HasForeignKey("GoodId")
 07286                        .OnDelete(DeleteBehavior.Cascade)
 07287                        .IsRequired();
 07288
 07289                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07290                        .WithMany()
 07291                        .HasForeignKey("ModifiedByUserId");
 07292
 07293                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", null)
 07294                        .WithMany("Items")
 07295                        .HasForeignKey("MovementId");
 07296
 07297                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07298                        .WithMany()
 07299                        .HasForeignKey("RecStateId");
 07300                });
 7301
 07302            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementNote", b =>
 07303                {
 07304                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07305                        .WithMany()
 07306                        .HasForeignKey("CreatedByUserId");
 07307
 07308                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07309                        .WithMany()
 07310                        .HasForeignKey("ModifiedByUserId");
 07311
 07312                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", null)
 07313                        .WithMany("Notes")
 07314                        .HasForeignKey("MovementId");
 07315
 07316                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07317                        .WithMany()
 07318                        .HasForeignKey("RecStateId");
 07319                });
 7320
 07321            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", b =>
 07322                {
 07323                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07324                        .WithMany()
 07325                        .HasForeignKey("CreatedByUserId");
 07326
 07327                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07328                        .WithMany()
 07329                        .HasForeignKey("ModifiedByUserId");
 07330
 07331                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07332                        .WithMany()
 07333                        .HasForeignKey("RecStateId");
 07334                });
 7335
 07336            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusConformity", b =>
 07337                {
 07338                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07339                        .WithMany()
 07340                        .HasForeignKey("CreatedByUserId");
 07341
 07342                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07343                        .WithMany()
 07344                        .HasForeignKey("ModifiedByUserId");
 07345
 07346                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07347                        .WithMany()
 07348                        .HasForeignKey("RecStateId");
 07349
 07350                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "StatusCurrent")
 07351                        .WithMany()
 07352                        .HasForeignKey("StatusCurrentId");
 07353
 07354                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "StatusNext")
 07355                        .WithMany()
 07356                        .HasForeignKey("StatusNextId");
 07357
 07358                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", "TypeCurrent")
 07359                        .WithMany()
 07360                        .HasForeignKey("TypeCurrentId");
 07361
 07362                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", "TypeNext")
 07363                        .WithMany()
 07364                        .HasForeignKey("TypeNextId");
 07365                });
 7366
 07367            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatusJournal", b =>
 07368                {
 07369                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07370                        .WithMany()
 07371                        .HasForeignKey("CreatedByUserId");
 07372
 07373                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07374                        .WithMany()
 07375                        .HasForeignKey("ModifiedByUserId");
 07376
 07377                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", "Movement")
 07378                        .WithMany()
 07379                        .HasForeignKey("MovementId");
 07380
 07381                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07382                        .WithMany()
 07383                        .HasForeignKey("RecStateId");
 07384
 07385                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementStatus", "StatusCurrent")
 07386                        .WithMany()
 07387                        .HasForeignKey("StatusCurrentId");
 07388                });
 7389
 07390            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.MovementType", b =>
 07391                {
 07392                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07393                        .WithMany()
 07394                        .HasForeignKey("CreatedByUserId");
 07395
 07396                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07397                        .WithMany()
 07398                        .HasForeignKey("ModifiedByUserId");
 07399
 07400                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07401                        .WithMany()
 07402                        .HasForeignKey("RecStateId");
 07403                });
 7404
 07405            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Notification", b =>
 07406                {
 07407                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07408                        .WithMany()
 07409                        .HasForeignKey("CreatedByUserId");
 07410
 07411                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07412                        .WithMany()
 07413                        .HasForeignKey("ModifiedByUserId");
 07414
 07415                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsType", "NotificationsType")
 07416                        .WithMany()
 07417                        .HasForeignKey("NotificationsTypeId")
 07418                        .OnDelete(DeleteBehavior.Cascade)
 07419                        .IsRequired();
 07420
 07421                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07422                        .WithMany()
 07423                        .HasForeignKey("RecStateId");
 07424
 07425                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 07426                        .WithMany()
 07427                        .HasForeignKey("UserId")
 07428                        .OnDelete(DeleteBehavior.Cascade)
 07429                        .IsRequired();
 07430                });
 7431
 07432            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationUsers", b =>
 07433                {
 07434                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07435                        .WithMany()
 07436                        .HasForeignKey("CreatedByUserId");
 07437
 07438                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07439                        .WithMany()
 07440                        .HasForeignKey("ModifiedByUserId");
 07441
 07442                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Notification", "Notification")
 07443                        .WithMany()
 07444                        .HasForeignKey("NotificationId")
 07445                        .OnDelete(DeleteBehavior.Cascade)
 07446                        .IsRequired();
 07447
 07448                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsStatus", "NotificationsStat
 07449                        .WithMany()
 07450                        .HasForeignKey("NotificationsStatusId");
 07451
 07452                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07453                        .WithMany()
 07454                        .HasForeignKey("RecStateId");
 07455
 07456                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 07457                        .WithMany()
 07458                        .HasForeignKey("UserId");
 07459                });
 7460
 07461            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsStatus", b =>
 07462                {
 07463                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07464                        .WithMany()
 07465                        .HasForeignKey("CreatedByUserId");
 07466
 07467                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07468                        .WithMany()
 07469                        .HasForeignKey("ModifiedByUserId");
 07470
 07471                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07472                        .WithMany()
 07473                        .HasForeignKey("RecStateId");
 07474                });
 7475
 07476            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.NotificationsType", b =>
 07477                {
 07478                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07479                        .WithMany()
 07480                        .HasForeignKey("CreatedByUserId");
 07481
 07482                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07483                        .WithMany()
 07484                        .HasForeignKey("ModifiedByUserId");
 07485
 07486                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07487                        .WithMany()
 07488                        .HasForeignKey("RecStateId");
 07489                });
 7490
 07491            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Photo", b =>
 07492                {
 07493                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07494                        .WithMany()
 07495                        .HasForeignKey("CreatedByUserId");
 07496
 07497                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", null)
 07498                        .WithMany("Photos")
 07499                        .HasForeignKey("GoodId");
 07500
 07501                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07502                        .WithMany()
 07503                        .HasForeignKey("ModifiedByUserId");
 07504
 07505                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07506                        .WithMany()
 07507                        .HasForeignKey("RecStateId");
 07508                });
 7509
 07510            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceCurrent", b =>
 07511                {
 07512                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07513                        .WithMany()
 07514                        .HasForeignKey("CreatedByUserId");
 07515
 07516                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 07517                        .WithMany("Prices")
 07518                        .HasForeignKey("GoodId")
 07519                        .OnDelete(DeleteBehavior.Cascade)
 07520                        .IsRequired();
 07521
 07522                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07523                        .WithMany()
 07524                        .HasForeignKey("ModifiedByUserId");
 07525
 07526                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07527                        .WithMany()
 07528                        .HasForeignKey("RecStateId");
 07529
 07530                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "SupplierDepartment")
 07531                        .WithMany()
 07532                        .HasForeignKey("SupplierDepartmentId")
 07533                        .OnDelete(DeleteBehavior.Cascade)
 07534                        .IsRequired();
 07535                });
 7536
 07537            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrend", b =>
 07538                {
 07539                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07540                        .WithMany()
 07541                        .HasForeignKey("CreatedByUserId");
 07542
 07543                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 07544                        .WithMany()
 07545                        .HasForeignKey("GoodId")
 07546                        .OnDelete(DeleteBehavior.Cascade)
 07547                        .IsRequired();
 07548
 07549                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07550                        .WithMany()
 07551                        .HasForeignKey("ModifiedByUserId");
 07552
 07553                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07554                        .WithMany()
 07555                        .HasForeignKey("RecStateId");
 07556
 07557                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "SupplierDepartment")
 07558                        .WithMany()
 07559                        .HasForeignKey("SupplierDepartmentId")
 07560                        .OnDelete(DeleteBehavior.Cascade)
 07561                        .IsRequired();
 07562                });
 7563
 07564            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoBid", b =>
 07565                {
 07566                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07567                        .WithMany()
 07568                        .HasForeignKey("CreatedByUserId");
 07569
 07570                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "CustomerDepartment")
 07571                        .WithMany()
 07572                        .HasForeignKey("CustomerDepartmentId")
 07573                        .OnDelete(DeleteBehavior.Cascade)
 07574                        .IsRequired();
 07575
 07576                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 07577                        .WithMany()
 07578                        .HasForeignKey("GoodId")
 07579                        .OnDelete(DeleteBehavior.Cascade)
 07580                        .IsRequired();
 07581
 07582                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07583                        .WithMany()
 07584                        .HasForeignKey("ModifiedByUserId");
 07585
 07586                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoOffer", "PromoOffer")
 07587                        .WithMany("Bids")
 07588                        .HasForeignKey("PromoOfferId")
 07589                        .OnDelete(DeleteBehavior.Cascade)
 07590                        .IsRequired();
 07591
 07592                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07593                        .WithMany()
 07594                        .HasForeignKey("RecStateId");
 07595                });
 7596
 07597            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.PromoOffer", b =>
 07598                {
 07599                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07600                        .WithMany()
 07601                        .HasForeignKey("CreatedByUserId");
 07602
 07603                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 07604                        .WithMany()
 07605                        .HasForeignKey("GoodId")
 07606                        .OnDelete(DeleteBehavior.Cascade)
 07607                        .IsRequired();
 07608
 07609                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07610                        .WithMany()
 07611                        .HasForeignKey("ModifiedByUserId");
 07612
 07613                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07614                        .WithMany()
 07615                        .HasForeignKey("RecStateId");
 07616
 07617                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "SupplierDepartment")
 07618                        .WithMany()
 07619                        .HasForeignKey("SupplierDepartmentId")
 07620                        .OnDelete(DeleteBehavior.Cascade)
 07621                        .IsRequired();
 07622                });
 7623
 07624            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", b =>
 07625                {
 07626                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07627                        .WithMany()
 07628                        .HasForeignKey("CreatedByUserId");
 07629
 07630                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07631                        .WithMany()
 07632                        .HasForeignKey("ModifiedByUserId");
 07633
 07634                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07635                        .WithMany()
 07636                        .HasForeignKey("RecStateId");
 07637                });
 7638
 07639            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Rest", b =>
 07640                {
 07641                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07642                        .WithMany()
 07643                        .HasForeignKey("CreatedByUserId");
 07644
 07645                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 07646                        .WithMany()
 07647                        .HasForeignKey("DepartmentId")
 07648                        .OnDelete(DeleteBehavior.Cascade)
 07649                        .IsRequired();
 07650
 07651                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Good", "Good")
 07652                        .WithMany("Rests")
 07653                        .HasForeignKey("GoodId")
 07654                        .OnDelete(DeleteBehavior.Cascade)
 07655                        .IsRequired();
 07656
 07657                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07658                        .WithMany()
 07659                        .HasForeignKey("ModifiedByUserId");
 07660
 07661                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07662                        .WithMany()
 07663                        .HasForeignKey("RecStateId");
 07664                });
 7665
 07666            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", b =>
 07667                {
 07668                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07669                        .WithMany()
 07670                        .HasForeignKey("CreatedByUserId");
 07671
 07672                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07673                        .WithMany()
 07674                        .HasForeignKey("ModifiedByUserId");
 07675
 07676                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07677                        .WithMany()
 07678                        .HasForeignKey("RecStateId");
 07679                });
 7680
 07681            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.SupplyContract", b =>
 07682                {
 07683                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Buyer")
 07684                        .WithMany("ContractsAsBuyer")
 07685                        .HasForeignKey("BuyerId")
 07686                        .OnDelete(DeleteBehavior.Cascade)
 07687                        .IsRequired();
 07688
 07689                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07690                        .WithMany()
 07691                        .HasForeignKey("CreatedByUserId");
 07692
 07693                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07694                        .WithMany()
 07695                        .HasForeignKey("ModifiedByUserId");
 07696
 07697                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07698                        .WithMany()
 07699                        .HasForeignKey("RecStateId");
 07700
 07701                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Seller")
 07702                        .WithMany("ContractsAsSeller")
 07703                        .HasForeignKey("SellerId")
 07704                        .OnDelete(DeleteBehavior.Cascade)
 07705                        .IsRequired();
 07706                });
 7707
 07708            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.TaxSystem", b =>
 07709                {
 07710                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07711                        .WithMany()
 07712                        .HasForeignKey("CreatedByUserId");
 07713
 07714                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07715                        .WithMany()
 07716                        .HasForeignKey("ModifiedByUserId");
 07717
 07718                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07719                        .WithMany()
 07720                        .HasForeignKey("RecStateId");
 07721                });
 7722
 07723            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UnitsKind", b =>
 07724                {
 07725                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07726                        .WithMany()
 07727                        .HasForeignKey("CreatedByUserId");
 07728
 07729                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07730                        .WithMany()
 07731                        .HasForeignKey("ModifiedByUserId");
 07732
 07733                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07734                        .WithMany()
 07735                        .HasForeignKey("RecStateId");
 07736                });
 7737
 07738            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.Upload", b =>
 07739                {
 07740                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07741                        .WithMany()
 07742                        .HasForeignKey("CreatedByUserId");
 07743
 07744                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07745                        .WithMany()
 07746                        .HasForeignKey("ModifiedByUserId");
 07747
 07748                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07749                        .WithMany()
 07750                        .HasForeignKey("RecStateId");
 07751                });
 7752
 07753            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UploadItem", b =>
 07754                {
 07755                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07756                        .WithMany()
 07757                        .HasForeignKey("CreatedByUserId");
 07758
 07759                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07760                        .WithMany()
 07761                        .HasForeignKey("ModifiedByUserId");
 07762
 07763                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07764                        .WithMany()
 07765                        .HasForeignKey("RecStateId");
 07766
 07767                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Upload", null)
 07768                        .WithMany("Items")
 07769                        .HasForeignKey("UploadId")
 07770                        .OnDelete(DeleteBehavior.Cascade)
 07771                        .IsRequired();
 07772                });
 7773
 07774            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", b =>
 07775                {
 07776                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Contragent", "Contragent")
 07777                        .WithMany("User")
 07778                        .HasForeignKey("ContragentId");
 07779
 07780                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07781                        .WithMany()
 07782                        .HasForeignKey("CreatedByUserId");
 07783
 07784                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07785                        .WithMany()
 07786                        .HasForeignKey("ModifiedByUserId");
 07787
 07788                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07789                        .WithMany()
 07790                        .HasForeignKey("RecStateId");
 07791                });
 7792
 07793            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserDepartment", b =>
 07794                {
 07795                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Department", "Department")
 07796                        .WithMany("UsersDepartments")
 07797                        .HasForeignKey("DepartmentId")
 07798                        .OnDelete(DeleteBehavior.Cascade)
 07799                        .IsRequired();
 07800
 07801                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 07802                        .WithMany("UsersDepartments")
 07803                        .HasForeignKey("UserId")
 07804                        .OnDelete(DeleteBehavior.Cascade)
 07805                        .IsRequired();
 07806                });
 7807
 07808            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.UserRole", b =>
 07809                {
 07810                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Roles", "Roles")
 07811                        .WithMany("UsersRoles")
 07812                        .HasForeignKey("RoleId")
 07813                        .OnDelete(DeleteBehavior.Cascade)
 07814                        .IsRequired();
 07815
 07816                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "User")
 07817                        .WithMany("UsersRoles")
 07818                        .HasForeignKey("UserId")
 07819                        .OnDelete(DeleteBehavior.Cascade)
 07820                        .IsRequired();
 07821                });
 7822
 07823            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.VatsKind", b =>
 07824                {
 07825                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07826                        .WithMany()
 07827                        .HasForeignKey("CreatedByUserId");
 07828
 07829                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07830                        .WithMany()
 07831                        .HasForeignKey("ModifiedByUserId");
 07832
 07833                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07834                        .WithMany()
 07835                        .HasForeignKey("RecStateId");
 07836                });
 7837
 07838            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransaction", b =>
 07839                {
 07840                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07841                        .WithMany()
 07842                        .HasForeignKey("CreatedByUserId");
 07843
 07844                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07845                        .WithMany()
 07846                        .HasForeignKey("ModifiedByUserId");
 07847
 07848                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.Movement", "Movement")
 07849                        .WithMany()
 07850                        .HasForeignKey("MovementId");
 07851
 07852                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07853                        .WithMany()
 07854                        .HasForeignKey("RecStateId");
 07855
 07856                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransactionStatus", "Status")
 07857                        .WithMany()
 07858                        .HasForeignKey("StatusId");
 07859                });
 7860
 07861            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WalletTransactionStatus", b =>
 07862                {
 07863                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07864                        .WithMany()
 07865                        .HasForeignKey("CreatedByUserId");
 07866
 07867                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07868                        .WithMany()
 07869                        .HasForeignKey("ModifiedByUserId");
 07870
 07871                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07872                        .WithMany()
 07873                        .HasForeignKey("RecStateId");
 07874                });
 7875
 07876            modelBuilder.Entity("WinSolutions.Sveta.Server.Data.DataModel.Entities.WorkSchedule", b =>
 07877                {
 07878                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "CreatedByUser")
 07879                        .WithMany()
 07880                        .HasForeignKey("CreatedByUserId");
 07881
 07882                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.User", "ModifiedByUser")
 07883                        .WithMany()
 07884                        .HasForeignKey("ModifiedByUserId");
 07885
 07886                    b.HasOne("WinSolutions.Sveta.Server.Data.DataModel.Entities.RecordsState", "RecState")
 07887                        .WithMany()
 07888                        .HasForeignKey("RecStateId");
 07889                });
 7890#pragma warning restore 612, 618
 07891        }
 7892    }
 7893}