< Summary

Class:SVETA.Api.Migrations.addMovActions
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200504080351_addMovActions.cs
/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200504080351_addMovActions.Designer.cs
Covered lines:0
Uncovered lines:11358
Coverable lines:11358
Total lines:11544
Line coverage:0% (0 of 11358)
Covered branches:0
Total branches:248
Branch coverage:0% (0 of 248)

Metrics

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

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Migrations/20200504080351_addMovActions.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3
 4namespace SVETA.Api.Migrations
 5{
 6    public partial class addMovActions : Migration
 7    {
 8        protected override void Up(MigrationBuilder migrationBuilder)
 09        {
 010            migrationBuilder.UpdateData(
 011                table: "ContragentsKind",
 012                keyColumn: "Id",
 013                keyValue: 2L,
 014                column: "ExternalKey",
 015                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 16
 017            migrationBuilder.UpdateData(
 018                table: "ContragentsKind",
 019                keyColumn: "Id",
 020                keyValue: 3L,
 021                column: "ExternalKey",
 022                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 23
 024            migrationBuilder.UpdateData(
 025                table: "ContragentsKind",
 026                keyColumn: "Id",
 027                keyValue: 4L,
 028                column: "ExternalKey",
 029                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 30
 031            migrationBuilder.UpdateData(
 032                table: "ContragentsKind",
 033                keyColumn: "Id",
 034                keyValue: 6L,
 035                column: "ExternalKey",
 036                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 37
 038            migrationBuilder.InsertData(
 039                table: "MovementRouteActions",
 040                columns: new[] { "Id", "Action", "Caption", "Code", "CreatedByUserId", "CreationDateTime", "GUID", "IsDe
 041                values: new object[,]
 042                {
 043                    { 135L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 044                    { 134L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 045                    { 133L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 046                    { 132L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 047                    { 131L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 048                    { 130L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 049                    { 129L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 050                    { 128L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 051                    { 127L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 052                    { 126L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 053                    { 124L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 054                    { 123L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 055                    { 122L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 056                    { 121L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 057                    { 120L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 058                    { 119L, "Shipments/{id}/Attachment", "Приложить файл", "SetAttachment", null, new DateTime(2020, 1, 
 059                    { 118L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 060                    { 117L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 061                    { 116L, "Shipments/{id}/Attachment", "Удалить вложение", "DeleteAttachment", null, new DateTime(2020
 062                    { 115L, "Shipments/{id}/Attachment", "Приложить файл", "SetAttachment", null, new DateTime(2020, 1, 
 063                    { 125L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 064                    { 114L, "Shipments/{id}/Attachment", "Скачать вложение", "GetAttachment", null, new DateTime(2020, 1
 065                });
 66
 067            migrationBuilder.UpdateData(
 068                table: "MovementRouteActions",
 069                keyColumn: "Id",
 070                keyValue: 8L,
 071                column: "Code",
 072                value: "Confirm");
 073        }
 74
 75        protected override void Down(MigrationBuilder migrationBuilder)
 076        {
 077            migrationBuilder.DeleteData(
 078                table: "MovementRouteActions",
 079                keyColumn: "Id",
 080                keyValue: 114L);
 81
 082            migrationBuilder.DeleteData(
 083                table: "MovementRouteActions",
 084                keyColumn: "Id",
 085                keyValue: 115L);
 86
 087            migrationBuilder.DeleteData(
 088                table: "MovementRouteActions",
 089                keyColumn: "Id",
 090                keyValue: 116L);
 91
 092            migrationBuilder.DeleteData(
 093                table: "MovementRouteActions",
 094                keyColumn: "Id",
 095                keyValue: 117L);
 96
 097            migrationBuilder.DeleteData(
 098                table: "MovementRouteActions",
 099                keyColumn: "Id",
 0100                keyValue: 118L);
 101
 0102            migrationBuilder.DeleteData(
 0103                table: "MovementRouteActions",
 0104                keyColumn: "Id",
 0105                keyValue: 119L);
 106
 0107            migrationBuilder.DeleteData(
 0108                table: "MovementRouteActions",
 0109                keyColumn: "Id",
 0110                keyValue: 120L);
 111
 0112            migrationBuilder.DeleteData(
 0113                table: "MovementRouteActions",
 0114                keyColumn: "Id",
 0115                keyValue: 121L);
 116
 0117            migrationBuilder.DeleteData(
 0118                table: "MovementRouteActions",
 0119                keyColumn: "Id",
 0120                keyValue: 122L);
 121
 0122            migrationBuilder.DeleteData(
 0123                table: "MovementRouteActions",
 0124                keyColumn: "Id",
 0125                keyValue: 123L);
 126
 0127            migrationBuilder.DeleteData(
 0128                table: "MovementRouteActions",
 0129                keyColumn: "Id",
 0130                keyValue: 124L);
 131
 0132            migrationBuilder.DeleteData(
 0133                table: "MovementRouteActions",
 0134                keyColumn: "Id",
 0135                keyValue: 125L);
 136
 0137            migrationBuilder.DeleteData(
 0138                table: "MovementRouteActions",
 0139                keyColumn: "Id",
 0140                keyValue: 126L);
 141
 0142            migrationBuilder.DeleteData(
 0143                table: "MovementRouteActions",
 0144                keyColumn: "Id",
 0145                keyValue: 127L);
 146
 0147            migrationBuilder.DeleteData(
 0148                table: "MovementRouteActions",
 0149                keyColumn: "Id",
 0150                keyValue: 128L);
 151
 0152            migrationBuilder.DeleteData(
 0153                table: "MovementRouteActions",
 0154                keyColumn: "Id",
 0155                keyValue: 129L);
 156
 0157            migrationBuilder.DeleteData(
 0158                table: "MovementRouteActions",
 0159                keyColumn: "Id",
 0160                keyValue: 130L);
 161
 0162            migrationBuilder.DeleteData(
 0163                table: "MovementRouteActions",
 0164                keyColumn: "Id",
 0165                keyValue: 131L);
 166
 0167            migrationBuilder.DeleteData(
 0168                table: "MovementRouteActions",
 0169                keyColumn: "Id",
 0170                keyValue: 132L);
 171
 0172            migrationBuilder.DeleteData(
 0173                table: "MovementRouteActions",
 0174                keyColumn: "Id",
 0175                keyValue: 133L);
 176
 0177            migrationBuilder.DeleteData(
 0178                table: "MovementRouteActions",
 0179                keyColumn: "Id",
 0180                keyValue: 134L);
 181
 0182            migrationBuilder.DeleteData(
 0183                table: "MovementRouteActions",
 0184                keyColumn: "Id",
 0185                keyValue: 135L);
 186
 0187            migrationBuilder.UpdateData(
 0188                table: "ContragentsKind",
 0189                keyColumn: "Id",
 0190                keyValue: 2L,
 0191                column: "ExternalKey",
 0192                value: new Guid("1cf9aefe-7a96-4a88-a1c9-072964c7c6a7"));
 193
 0194            migrationBuilder.UpdateData(
 0195                table: "ContragentsKind",
 0196                keyColumn: "Id",
 0197                keyValue: 3L,
 0198                column: "ExternalKey",
 0199                value: new Guid("ccda4192-5492-4a93-9c3e-f2d1f765d4e5"));
 200
 0201            migrationBuilder.UpdateData(
 0202                table: "ContragentsKind",
 0203                keyColumn: "Id",
 0204                keyValue: 4L,
 0205                column: "ExternalKey",
 0206                value: new Guid("31edf71f-4a7f-44f9-a705-869c38b9c70b"));
 207
 0208            migrationBuilder.UpdateData(
 0209                table: "ContragentsKind",
 0210                keyColumn: "Id",
 0211                keyValue: 6L,
 0212                column: "ExternalKey",
 0213                value: new Guid("4cd0458f-9bb0-4417-92b7-8f4004782d5b"));
 0214        }
 215    }
 216}

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