< Summary

Class:SVETA.Api.Migrations.ControlAccessDataUpdate
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200421190924_ControlAccessDataUpdate.cs
/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200421190924_ControlAccessDataUpdate.Designer.cs
Covered lines:0
Uncovered lines:10366
Coverable lines:10366
Total lines:10581
Line coverage:0% (0 of 10366)
Covered branches:0
Total branches:244
Branch coverage:0% (0 of 244)

Metrics

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

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200421190924_ControlAccessDataUpdate.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3
 4namespace SVETA.Api.Migrations
 5{
 6    public partial class ControlAccessDataUpdate : Migration
 7    {
 8        protected override void Up(MigrationBuilder migrationBuilder)
 09        {
 010            migrationBuilder.UpdateData(
 011                table: "ContragentsKind",
 012                keyColumn: "Id",
 013                keyValue: 2L,
 014                column: "ExternalKey",
 015                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 16
 017            migrationBuilder.UpdateData(
 018                table: "ContragentsKind",
 019                keyColumn: "Id",
 020                keyValue: 3L,
 021                column: "ExternalKey",
 022                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 23
 024            migrationBuilder.UpdateData(
 025                table: "ContragentsKind",
 026                keyColumn: "Id",
 027                keyValue: 4L,
 028                column: "ExternalKey",
 029                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 30
 031            migrationBuilder.UpdateData(
 032                table: "ContragentsKind",
 033                keyColumn: "Id",
 034                keyValue: 6L,
 035                column: "ExternalKey",
 036                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 37
 038            migrationBuilder.InsertData(
 039                table: "ControlsAccess",
 040                columns: new[] { "Id", "Action", "Available", "CreatedByUserId", "CreationDateTime", "GUID", "IsDeleted"
 041                values: new object[,]
 042                {
 043                    { 79L, "viewSupport", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), ne
 044                    { 56L, "viewUser", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new G
 045                    { 57L, "viewShowcase", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), n
 046                    { 58L, "viewOrders", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new
 047                    { 59L, "viewShipments", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 
 048                    { 60L, "viewAnalytics", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 
 049                    { 61L, "viewSettings", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), n
 050                    { 62L, "viewSupport", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), ne
 051                    { 63L, "viewUser", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new G
 052                    { 64L, "viewShowcase", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), n
 053                    { 65L, "viewOrders", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new
 054                    { 66L, "viewShipments", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 
 055                    { 67L, "viewSupport", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), ne
 056                    { 55L, "viewSupport", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), ne
 057                    { 70L, "viewShowcase", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), n
 058                    { 71L, "viewOrders", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new
 059                    { 72L, "viewShipments", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 
 060                    { 73L, "viewSupport", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), ne
 061                    { 75L, "viewUser", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new G
 062                    { 76L, "viewShowcase", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), n
 063                    { 77L, "viewOrders", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new
 064                    { 78L, "viewShipments", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 
 065                    { 82L, "viewShowcase", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), n
 066                    { 69L, "viewUser", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new G
 067                    { 54L, "viewSettings", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), n
 068                    { 52L, "viewShipments", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 
 069                    { 27L, "viewShipments", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 
 070                    { 28L, "viewUser", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new G
 071                    { 29L, "viewShowcase", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), n
 072                    { 30L, "viewAnalytics", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 
 073                    { 31L, "viewSettings", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), n
 074                    { 32L, "viewSystemManagement", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspeci
 075                    { 33L, "viewSupport", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), ne
 076                    { 34L, "viewOrders", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new
 077                    { 35L, "viewShipments", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 
 078                    { 36L, "viewUser", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new G
 079                    { 37L, "viewShowcase", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), n
 080                    { 38L, "viewAnalytics", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 
 081                    { 39L, "viewSettings", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), n
 082                    { 40L, "viewSystemManagement", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspeci
 083                    { 41L, "viewSupport", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), ne
 084                    { 42L, "viewUser", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new G
 085                    { 43L, "viewShowcase", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), n
 086                    { 44L, "viewOrders", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new
 087                    { 45L, "viewShipments", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 
 088                    { 46L, "viewAnalytics", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 
 089                    { 47L, "viewSettings", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), n
 090                    { 48L, "viewSupport", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), ne
 091                    { 49L, "viewUser", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new G
 092                    { 50L, "viewShowcase", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), n
 093                    { 51L, "viewOrders", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new
 094                    { 53L, "viewAnalytics", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 
 095                    { 26L, "viewOrders", true, null, new DateTime(2020, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new
 096                });
 097        }
 98
 99        protected override void Down(MigrationBuilder migrationBuilder)
 0100        {
 0101            migrationBuilder.DeleteData(
 0102                table: "ControlsAccess",
 0103                keyColumn: "Id",
 0104                keyValue: 26L);
 105
 0106            migrationBuilder.DeleteData(
 0107                table: "ControlsAccess",
 0108                keyColumn: "Id",
 0109                keyValue: 27L);
 110
 0111            migrationBuilder.DeleteData(
 0112                table: "ControlsAccess",
 0113                keyColumn: "Id",
 0114                keyValue: 28L);
 115
 0116            migrationBuilder.DeleteData(
 0117                table: "ControlsAccess",
 0118                keyColumn: "Id",
 0119                keyValue: 29L);
 120
 0121            migrationBuilder.DeleteData(
 0122                table: "ControlsAccess",
 0123                keyColumn: "Id",
 0124                keyValue: 30L);
 125
 0126            migrationBuilder.DeleteData(
 0127                table: "ControlsAccess",
 0128                keyColumn: "Id",
 0129                keyValue: 31L);
 130
 0131            migrationBuilder.DeleteData(
 0132                table: "ControlsAccess",
 0133                keyColumn: "Id",
 0134                keyValue: 32L);
 135
 0136            migrationBuilder.DeleteData(
 0137                table: "ControlsAccess",
 0138                keyColumn: "Id",
 0139                keyValue: 33L);
 140
 0141            migrationBuilder.DeleteData(
 0142                table: "ControlsAccess",
 0143                keyColumn: "Id",
 0144                keyValue: 34L);
 145
 0146            migrationBuilder.DeleteData(
 0147                table: "ControlsAccess",
 0148                keyColumn: "Id",
 0149                keyValue: 35L);
 150
 0151            migrationBuilder.DeleteData(
 0152                table: "ControlsAccess",
 0153                keyColumn: "Id",
 0154                keyValue: 36L);
 155
 0156            migrationBuilder.DeleteData(
 0157                table: "ControlsAccess",
 0158                keyColumn: "Id",
 0159                keyValue: 37L);
 160
 0161            migrationBuilder.DeleteData(
 0162                table: "ControlsAccess",
 0163                keyColumn: "Id",
 0164                keyValue: 38L);
 165
 0166            migrationBuilder.DeleteData(
 0167                table: "ControlsAccess",
 0168                keyColumn: "Id",
 0169                keyValue: 39L);
 170
 0171            migrationBuilder.DeleteData(
 0172                table: "ControlsAccess",
 0173                keyColumn: "Id",
 0174                keyValue: 40L);
 175
 0176            migrationBuilder.DeleteData(
 0177                table: "ControlsAccess",
 0178                keyColumn: "Id",
 0179                keyValue: 41L);
 180
 0181            migrationBuilder.DeleteData(
 0182                table: "ControlsAccess",
 0183                keyColumn: "Id",
 0184                keyValue: 42L);
 185
 0186            migrationBuilder.DeleteData(
 0187                table: "ControlsAccess",
 0188                keyColumn: "Id",
 0189                keyValue: 43L);
 190
 0191            migrationBuilder.DeleteData(
 0192                table: "ControlsAccess",
 0193                keyColumn: "Id",
 0194                keyValue: 44L);
 195
 0196            migrationBuilder.DeleteData(
 0197                table: "ControlsAccess",
 0198                keyColumn: "Id",
 0199                keyValue: 45L);
 200
 0201            migrationBuilder.DeleteData(
 0202                table: "ControlsAccess",
 0203                keyColumn: "Id",
 0204                keyValue: 46L);
 205
 0206            migrationBuilder.DeleteData(
 0207                table: "ControlsAccess",
 0208                keyColumn: "Id",
 0209                keyValue: 47L);
 210
 0211            migrationBuilder.DeleteData(
 0212                table: "ControlsAccess",
 0213                keyColumn: "Id",
 0214                keyValue: 48L);
 215
 0216            migrationBuilder.DeleteData(
 0217                table: "ControlsAccess",
 0218                keyColumn: "Id",
 0219                keyValue: 49L);
 220
 0221            migrationBuilder.DeleteData(
 0222                table: "ControlsAccess",
 0223                keyColumn: "Id",
 0224                keyValue: 50L);
 225
 0226            migrationBuilder.DeleteData(
 0227                table: "ControlsAccess",
 0228                keyColumn: "Id",
 0229                keyValue: 51L);
 230
 0231            migrationBuilder.DeleteData(
 0232                table: "ControlsAccess",
 0233                keyColumn: "Id",
 0234                keyValue: 52L);
 235
 0236            migrationBuilder.DeleteData(
 0237                table: "ControlsAccess",
 0238                keyColumn: "Id",
 0239                keyValue: 53L);
 240
 0241            migrationBuilder.DeleteData(
 0242                table: "ControlsAccess",
 0243                keyColumn: "Id",
 0244                keyValue: 54L);
 245
 0246            migrationBuilder.DeleteData(
 0247                table: "ControlsAccess",
 0248                keyColumn: "Id",
 0249                keyValue: 55L);
 250
 0251            migrationBuilder.DeleteData(
 0252                table: "ControlsAccess",
 0253                keyColumn: "Id",
 0254                keyValue: 56L);
 255
 0256            migrationBuilder.DeleteData(
 0257                table: "ControlsAccess",
 0258                keyColumn: "Id",
 0259                keyValue: 57L);
 260
 0261            migrationBuilder.DeleteData(
 0262                table: "ControlsAccess",
 0263                keyColumn: "Id",
 0264                keyValue: 58L);
 265
 0266            migrationBuilder.DeleteData(
 0267                table: "ControlsAccess",
 0268                keyColumn: "Id",
 0269                keyValue: 59L);
 270
 0271            migrationBuilder.DeleteData(
 0272                table: "ControlsAccess",
 0273                keyColumn: "Id",
 0274                keyValue: 60L);
 275
 0276            migrationBuilder.DeleteData(
 0277                table: "ControlsAccess",
 0278                keyColumn: "Id",
 0279                keyValue: 61L);
 280
 0281            migrationBuilder.DeleteData(
 0282                table: "ControlsAccess",
 0283                keyColumn: "Id",
 0284                keyValue: 62L);
 285
 0286            migrationBuilder.DeleteData(
 0287                table: "ControlsAccess",
 0288                keyColumn: "Id",
 0289                keyValue: 63L);
 290
 0291            migrationBuilder.DeleteData(
 0292                table: "ControlsAccess",
 0293                keyColumn: "Id",
 0294                keyValue: 64L);
 295
 0296            migrationBuilder.DeleteData(
 0297                table: "ControlsAccess",
 0298                keyColumn: "Id",
 0299                keyValue: 65L);
 300
 0301            migrationBuilder.DeleteData(
 0302                table: "ControlsAccess",
 0303                keyColumn: "Id",
 0304                keyValue: 66L);
 305
 0306            migrationBuilder.DeleteData(
 0307                table: "ControlsAccess",
 0308                keyColumn: "Id",
 0309                keyValue: 67L);
 310
 0311            migrationBuilder.DeleteData(
 0312                table: "ControlsAccess",
 0313                keyColumn: "Id",
 0314                keyValue: 69L);
 315
 0316            migrationBuilder.DeleteData(
 0317                table: "ControlsAccess",
 0318                keyColumn: "Id",
 0319                keyValue: 70L);
 320
 0321            migrationBuilder.DeleteData(
 0322                table: "ControlsAccess",
 0323                keyColumn: "Id",
 0324                keyValue: 71L);
 325
 0326            migrationBuilder.DeleteData(
 0327                table: "ControlsAccess",
 0328                keyColumn: "Id",
 0329                keyValue: 72L);
 330
 0331            migrationBuilder.DeleteData(
 0332                table: "ControlsAccess",
 0333                keyColumn: "Id",
 0334                keyValue: 73L);
 335
 0336            migrationBuilder.DeleteData(
 0337                table: "ControlsAccess",
 0338                keyColumn: "Id",
 0339                keyValue: 75L);
 340
 0341            migrationBuilder.DeleteData(
 0342                table: "ControlsAccess",
 0343                keyColumn: "Id",
 0344                keyValue: 76L);
 345
 0346            migrationBuilder.DeleteData(
 0347                table: "ControlsAccess",
 0348                keyColumn: "Id",
 0349                keyValue: 77L);
 350
 0351            migrationBuilder.DeleteData(
 0352                table: "ControlsAccess",
 0353                keyColumn: "Id",
 0354                keyValue: 78L);
 355
 0356            migrationBuilder.DeleteData(
 0357                table: "ControlsAccess",
 0358                keyColumn: "Id",
 0359                keyValue: 79L);
 360
 0361            migrationBuilder.DeleteData(
 0362                table: "ControlsAccess",
 0363                keyColumn: "Id",
 0364                keyValue: 82L);
 365
 0366            migrationBuilder.UpdateData(
 0367                table: "ContragentsKind",
 0368                keyColumn: "Id",
 0369                keyValue: 2L,
 0370                column: "ExternalKey",
 0371                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 372
 0373            migrationBuilder.UpdateData(
 0374                table: "ContragentsKind",
 0375                keyColumn: "Id",
 0376                keyValue: 3L,
 0377                column: "ExternalKey",
 0378                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 379
 0380            migrationBuilder.UpdateData(
 0381                table: "ContragentsKind",
 0382                keyColumn: "Id",
 0383                keyValue: 4L,
 0384                column: "ExternalKey",
 0385                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 386
 0387            migrationBuilder.UpdateData(
 0388                table: "ContragentsKind",
 0389                keyColumn: "Id",
 0390                keyValue: 6L,
 0391                column: "ExternalKey",
 0392                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 393
 0394            migrationBuilder.UpdateData(
 0395                table: "Roles",
 0396                keyColumn: "Id",
 0397                keyValue: 9L,
 0398                column: "GUID",
 0399                value: new Guid("249a7312-f5d0-4820-a4ec-cc95028bfaef"));
 0400        }
 401    }
 402}

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