< Summary

Class:SVETA.Api.Migrations.IREUpdateContragentData
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200513062206_IRE-UpdateContragentData.cs
/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200513062206_IRE-UpdateContragentData.Designer.cs
Covered lines:0
Uncovered lines:11674
Coverable lines:11674
Total lines:11852
Line coverage:0% (0 of 11674)
Covered branches:0
Total branches:256
Branch coverage:0% (0 of 256)

Metrics

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

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200513062206_IRE-UpdateContragentData.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3
 4namespace SVETA.Api.Migrations
 5{
 6    public partial class IREUpdateContragentData : Migration
 7    {
 8        protected override void Up(MigrationBuilder migrationBuilder)
 09        {
 010            migrationBuilder.UpdateData(
 011                table: "Contragents",
 012                keyColumn: "Id",
 013                keyValue: -2L,
 014                columns: new[] { "FullName", "ShortName" },
 015                values: new object[] { "ООО Сервисный контрагент", "Сервисный контрагент" });
 16
 017            migrationBuilder.UpdateData(
 018                table: "Contragents",
 019                keyColumn: "Id",
 020                keyValue: -1L,
 021                columns: new[] { "FullName", "ShortName" },
 022                values: new object[] { "Общество с ограниченной ответственностью Демонстрационный контрагент", "ООО Демо
 23
 024            migrationBuilder.UpdateData(
 025                table: "ContragentsKind",
 026                keyColumn: "Id",
 027                keyValue: 2L,
 028                column: "ExternalKey",
 029                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 30
 031            migrationBuilder.UpdateData(
 032                table: "ContragentsKind",
 033                keyColumn: "Id",
 034                keyValue: 3L,
 035                column: "ExternalKey",
 036                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 37
 038            migrationBuilder.UpdateData(
 039                table: "ContragentsKind",
 040                keyColumn: "Id",
 041                keyValue: 4L,
 042                column: "ExternalKey",
 043                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 44
 045            migrationBuilder.UpdateData(
 046                table: "ContragentsKind",
 047                keyColumn: "Id",
 048                keyValue: 6L,
 049                column: "ExternalKey",
 050                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 51
 052            migrationBuilder.UpdateData(
 053                table: "Departments",
 054                keyColumn: "Id",
 055                keyValue: -1L,
 056                column: "Name",
 057                value: "Демонстрационный магазин №1");
 58
 059            migrationBuilder.UpdateData(
 060                table: "ExchangeTokens",
 061                keyColumn: "Id",
 062                keyValue: 1L,
 063                column: "GUID",
 064                value: new Guid("8eea3bee-1f37-4654-a22f-f0b18b0c4588"));
 65
 066            migrationBuilder.UpdateData(
 067                table: "Users",
 068                keyColumn: "Id",
 069                keyValue: -2L,
 070                columns: new[] { "ExternalKey", "FirstName", "Login", "MiddleName", "Position" },
 071                values: new object[] { new Guid("3ce2ae32-9028-46b6-afbe-ad4feec0a016"), "Demo User", "Demo User", "Demo
 72
 073            migrationBuilder.UpdateData(
 074                table: "Users",
 075                keyColumn: "Id",
 076                keyValue: -1L,
 077                column: "ExternalKey",
 078                value: new Guid("964c5734-ba34-43d0-8770-b22b665e9abd"));
 079        }
 80
 81        protected override void Down(MigrationBuilder migrationBuilder)
 082        {
 083            migrationBuilder.UpdateData(
 084                table: "Contragents",
 085                keyColumn: "Id",
 086                keyValue: -2L,
 087                columns: new[] { "FullName", "ShortName" },
 088                values: new object[] { "Сервисный контрагент", "1" });
 89
 090            migrationBuilder.UpdateData(
 091                table: "Contragents",
 092                keyColumn: "Id",
 093                keyValue: -1L,
 094                columns: new[] { "FullName", "ShortName" },
 095                values: new object[] { "Общество с ограниченной ответственностью Анонимный контрагент", "ООО Анонимный к
 96
 097            migrationBuilder.UpdateData(
 098                table: "ContragentsKind",
 099                keyColumn: "Id",
 0100                keyValue: 2L,
 0101                column: "ExternalKey",
 0102                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 103
 0104            migrationBuilder.UpdateData(
 0105                table: "ContragentsKind",
 0106                keyColumn: "Id",
 0107                keyValue: 3L,
 0108                column: "ExternalKey",
 0109                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 110
 0111            migrationBuilder.UpdateData(
 0112                table: "ContragentsKind",
 0113                keyColumn: "Id",
 0114                keyValue: 4L,
 0115                column: "ExternalKey",
 0116                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 117
 0118            migrationBuilder.UpdateData(
 0119                table: "ContragentsKind",
 0120                keyColumn: "Id",
 0121                keyValue: 6L,
 0122                column: "ExternalKey",
 0123                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 124
 0125            migrationBuilder.UpdateData(
 0126                table: "Departments",
 0127                keyColumn: "Id",
 0128                keyValue: -1L,
 0129                column: "Name",
 0130                value: "Анонимный магазин №1");
 131
 0132            migrationBuilder.UpdateData(
 0133                table: "ExchangeTokens",
 0134                keyColumn: "Id",
 0135                keyValue: 1L,
 0136                column: "GUID",
 0137                value: new Guid("8eea3bee-1f37-4654-a22f-f0b18b0c4588"));
 138
 0139            migrationBuilder.UpdateData(
 0140                table: "Users",
 0141                keyColumn: "Id",
 0142                keyValue: -2L,
 0143                columns: new[] { "ExternalKey", "FirstName", "Login", "MiddleName", "Position" },
 0144                values: new object[] { new Guid("3ce2ae32-9028-46b6-afbe-ad4feec0a016"), "Anonym User", "Anonym User", "
 145
 0146            migrationBuilder.UpdateData(
 0147                table: "Users",
 0148                keyColumn: "Id",
 0149                keyValue: -1L,
 0150                column: "ExternalKey",
 0151                value: new Guid("964c5734-ba34-43d0-8770-b22b665e9abd"));
 0152        }
 153    }
 154}

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