< Summary

Class:WinSolutions.Sveta.Server.Data.DataModel.Contexts.SvetaDbContext
Assembly:WinSolutions.Sveta.Server
File(s):/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Data/DataModel/Contexts/SvetaDbContext.cs
Covered lines:1692
Uncovered lines:51
Coverable lines:1743
Total lines:2407
Line coverage:97% (1692 of 1743)
Covered branches:51
Total branches:68
Branch coverage:75% (51 of 68)

Metrics

MethodLine coverage Branch coverage
.ctor(...)27.27%100%
.ctor()0%100%
OnConfiguring(...)100%100%
OnModelCreating(...)100%100%
NormalizeStringValues()0%0%
NormalizeStringValues(...)100%100%
SaveChangesAsync(...)95.23%100%
GetPropertiesValues(...)100%100%
GenerateEvent(...)100%95.83%
SaveChangesAsyncFast(...)100%100%
get_DownloadGoodsImagesTasks()0%100%
get_BarCodes()100%100%
get_BankAccounts()100%100%
get_Brands()100%100%
get_Categories()100%100%
get_Contragents()100%100%
get_refCountries()100%100%
get_Departments()100%100%
get_Events()0%100%
get_Goods()100%100%
get_Incidents()100%100%
get_Movements()100%100%
get_MovementNotes()0%100%
get_MovementItems()100%100%
get_Photos()0%100%
get_PricesCurrent()0%100%
get_PricesTrend()100%100%
get_PromoBids()0%100%
get_PromoOffers()0%100%
get_Rests()100%100%
get_SupplyContract()100%100%
get_Users()100%100%
get_Notifications()100%100%
get_DepartmentGoodSetting()0%100%
get_DepartmentCategoryRatio()100%100%
get_Clusters()100%100%
get_NotificationUsers()100%100%
get_refDepartmentsStatus()100%100%
get_refDepartmentsKind()100%100%
get_Address()100%100%
get_refIncidentsStatus()100%100%
get_refIncidentsKind()100%100%
get_refMovementType()100%100%
get_refMovementStatus()100%100%
get_refCurrency()0%100%
get_Roles()100%100%
get_Methods()0%100%
get_TaxSystems()100%100%
get_Uploads()0%100%
get_UploadItems()0%100%
get_refVatsKind()100%100%
get_refUnitsKind()100%100%
get_refRecordsState()100%100%
get_refNotificationsType()100%100%
get_refNotificationsStatus()100%100%
get_refEventsKind()100%100%
get_refContragentsKind()100%100%
get_MovementStatusJournals()100%100%
get_WorkScheduler()100%100%
get_WalletTransactions()100%100%
get_refWalletTransactionStatuses()0%100%
get_MovementStatusOwners()0%100%
get_MovementStatusRoutes()100%100%
get_MovementRouteActions()100%100%
get_ControlsAccess()100%100%
get_PriceTrendDetails()100%100%
get_JobLoggers()0%100%
get_DiscountColors()100%100%
get_ExchangeTokens()100%100%
get_Emails()100%100%
get_RestHolds()100%100%
get_sysConfigurations()100%100%
get_FrontActions()100%100%
get_ConfigurationsDataTypes()100%100%
get_GoodLabels()100%100%
get_GoodBarcodes()0%100%
get_AnonymousMovements()100%100%
get_TelegramNotifications()100%100%
get_DeliveryTypes()100%100%
get_DeliveryCostTypes()0%100%
get_SmsHistory()0%100%
get_EmailGateHistory()0%100%
get_MovementAttachments()0%100%

File(s)

/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Data/DataModel/Contexts/SvetaDbContext.cs

#LineLine coverage
 1using System;
 2using System.Text.Json;
 3using System.Linq;
 4using System.Collections;
 5using System.Collections.Generic;
 6using System.Text;
 7using Microsoft.EntityFrameworkCore;
 8using Microsoft.EntityFrameworkCore.Metadata;
 9using Microsoft.EntityFrameworkCore.Metadata.Builders;
 10using WinSolutions.Sveta.Server.Data.DataModel.Entities;
 11using WinSolutions.Sveta.Server.Data.DataModel.Kinds;
 12using WinSolutions.Sveta.Server.Services.Interfaces;
 13using System.Threading;
 14using System.Threading.Tasks;
 15using WinSolutions.Sveta.Common.Extensions;
 16using Org.BouncyCastle.Math.EC.Rfc7748;
 17using System.ComponentModel.DataAnnotations.Schema;
 18using Microsoft.EntityFrameworkCore.ChangeTracking;
 19
 20namespace WinSolutions.Sveta.Server.Data.DataModel.Contexts
 21{
 22    public class SvetaDbContext : DbContext
 23    {
 22124        public SvetaDbContext(DbContextOptions<SvetaDbContext> options) : base(options)
 22125        {
 22126        }
 27
 028        public SvetaDbContext()
 029        {
 030        }
 31        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
 22132        {
 22133            optionsBuilder.EnableSensitiveDataLogging();
 22134        }
 35
 36        protected override void OnModelCreating(ModelBuilder modelBuilder)
 137        {
 38
 139            modelBuilder.Entity<Movement>()
 140                .HasOne(x => x.Parent);
 41
 142            modelBuilder.Entity<Movement>()
 143                .HasOne(x => x.Children);
 44
 145            modelBuilder.Entity<GoodLabel>()
 146              .HasIndex(x => new { x.Name })
 147              .IsUnique();
 48
 149            modelBuilder.Entity<Configuration>()
 150               .HasIndex(x => new { x.Section, x.Key })
 151               .IsUnique();
 52
 153            modelBuilder.Entity<ControlAccess>()
 154                .HasIndex(x => new { x.ActionId, x.Available, x.RoleId })
 155                .IsUnique();
 56
 157            modelBuilder.Entity<DiscountColor>()
 158                .HasIndex(x => new { x.DiscountLevel, x.LabelColor })
 159                .IsUnique();
 60
 161            modelBuilder.Entity<PriceTrendDetail>()
 162                .HasIndex(x => new { x.GoodId, x.PriceTrendId })
 163                .IsUnique();
 64
 165            modelBuilder.Entity<DepartmentCategoryRatio>()
 166                .HasIndex(x => new { x.DepartmentId, x.CategoryId })
 167                .IsUnique();
 68
 169            modelBuilder.Entity<Contragent>()
 170                .HasOne(x => x.CreatedByUser)
 171                .WithMany()
 172                .HasForeignKey(x => x.CreatedByUserId);
 73
 174            modelBuilder.Entity<Contragent>()
 175                .HasOne(x => x.ModifiedByUser)
 176                .WithMany()
 177                .HasForeignKey(x => x.ModifiedByUserId);
 78
 179            modelBuilder.Entity<RecordsState>()
 180                .HasOne(x => x.CreatedByUser)
 181                .WithMany()
 182                .HasForeignKey(x => x.CreatedByUserId);
 83
 184            modelBuilder.Entity<RecordsState>()
 185                .HasOne(x => x.ModifiedByUser)
 186                .WithMany()
 187                .HasForeignKey(x => x.ModifiedByUserId);
 88
 189            modelBuilder.Entity<User>()
 190                .HasOne(x => x.CreatedByUser)
 191                .WithMany();
 92
 193            modelBuilder.Entity<User>()
 194                .HasOne(x => x.ModifiedByUser)
 195                .WithMany();
 96
 97
 198            modelBuilder.Entity<Contragent>()
 199                .HasMany(x => x.User)
 1100                .WithOne(x => x.Contragent);
 101
 1102            modelBuilder.Entity<Currency>()
 1103                .HasIndex(x => x.CODE)
 1104                .IsUnique();
 105
 1106            modelBuilder.Entity<Currency>()
 1107                .HasIndex(x => x.STRCODE)
 1108                .IsUnique();
 109
 1110            modelBuilder.Entity<Currency>()
 1111                .HasIndex(x => x.NAME)
 1112                .IsUnique();
 113
 1114            modelBuilder.Entity<Contragent>()
 1115                .HasIndex(x => new { x.Inn, x.Kpp })
 1116                .IsUnique();
 117
 1118            modelBuilder.Entity<Contragent>()
 1119                .HasMany(x => x.ContractsAsSeller)
 1120                .WithOne(x => x.Seller);
 121
 1122            modelBuilder.Entity<Contragent>()
 1123                .HasMany(x => x.ContractsAsBuyer)
 1124                .WithOne(x => x.Buyer);
 125
 1126            modelBuilder.Entity<Contragent>()
 1127               .HasMany(x => x.MovementsAsCustomer)
 1128               .WithOne(x => x.Customer);
 129
 1130            modelBuilder.Entity<Contragent>()
 1131                .HasMany(x => x.MovementsAsSupplier)
 1132                .WithOne(x => x.Supplier);
 133
 1134            modelBuilder.Entity<Department>()
 1135               .HasMany(x => x.MovementsAsReceiver)
 1136               .WithOne(x => x.Receiver);
 137
 1138            modelBuilder.Entity<Department>()
 1139                .HasMany(x => x.MovementsAsSender)
 1140                .WithOne(x => x.Sender);
 141
 1142            modelBuilder.Entity<BankAccount>()
 1143                .HasIndex(x => new { x.Bik, x.SettlementAccount })
 1144                .IsUnique();
 145
 1146            modelBuilder.Entity<DepartmentGoodSetting>()
 1147                .HasIndex(x => new { x.GoodId, x.DepartmentId })
 1148                .IsUnique();
 149
 1150            modelBuilder.Entity<Rest>()
 1151                .HasIndex(x => new { x.GoodId, x.DepartmentId })
 1152                .IsUnique();
 153
 1154            modelBuilder.Entity<Country>()
 1155                .HasIndex(x => x.Name)
 1156                .IsUnique();
 157
 1158            modelBuilder.Entity<Brand>()
 1159                .HasIndex(x => x.Name)
 1160                .IsUnique();
 161
 1162            modelBuilder.Entity<Good>()
 1163                .HasIndex(x => x.Name);
 164
 1165            modelBuilder.Entity<GoodBarcode>()
 1166                .HasKey(x => new {x.GoodId, x.BarCodeId});
 167
 1168            modelBuilder.Entity<GoodBarcode>()
 1169                .HasIndex(x => new {x.GoodId, x.IsPrimary})
 1170                .IsUnique().HasFilter("\"IsPrimary\" is true");
 171
 1172            modelBuilder.Entity<GoodBarcode>()
 1173                .HasOne(pt => pt.BarCode)
 1174                .WithMany(p => p.Goods)
 1175                .HasForeignKey(pt => pt.BarCodeId);
 176
 1177            modelBuilder.Entity<GoodBarcode>()
 1178                .HasOne(pt => pt.Good)
 1179                .WithMany(p => p.GoodBarcodes)
 1180                .HasForeignKey(pt => pt.GoodId);
 181
 1182            modelBuilder.Entity<Category>()
 1183                .HasIndex(x => x.Name)
 1184                .IsUnique();
 185
 1186            modelBuilder.Entity<Category>()
 1187                .HasIndex(x => x.Code)
 1188                .IsUnique();
 189
 1190            modelBuilder.Entity<Cluster>()
 1191                .HasIndex(x => x.Name);
 192
 1193            modelBuilder.Entity<Cluster>()
 1194                .HasOne(x => x.Warehouse)
 1195                .WithMany();
 196
 1197            modelBuilder.Entity<Cluster>()
 1198                .HasMany(x => x.Departments)
 1199                .WithOne(x => x.Cluster);
 200
 1201            modelBuilder.Entity<User>()
 1202                .HasIndex(x => x.LastName);
 203
 1204            modelBuilder.Entity<User>()
 1205                .HasIndex(x => x.Login);
 206
 1207            modelBuilder.Entity<User>()
 1208                .HasIndex(x => x.Phone);
 209
 1210            modelBuilder.Entity<User>()
 1211                .HasIndex(x => x.Email);
 212
 1213            modelBuilder.Entity<Event>()
 1214                .HasIndex(x => x.Entity);
 215
 1216            modelBuilder.Entity<Event>()
 1217                .HasIndex(x => x.ReasonJson);
 218
 1219            modelBuilder.Entity<SupplyContract>()
 1220                .HasIndex(x => x.DocumentNumber);
 221
 1222            modelBuilder.Entity<Department>()
 1223               .HasIndex(x => x.Name);
 224
 1225            modelBuilder.Entity<Department>()
 1226               .HasIndex(x => x.PhoneNumber);
 227
 1228            modelBuilder.Entity<UserDepartment>()
 1229                .HasKey(t => new { t.UserId, t.DepartmentId });
 230
 1231            modelBuilder.Entity<UserDepartment>()
 1232                .HasOne(pt => pt.User)
 1233                .WithMany(p => p.UsersDepartments)
 1234                .HasForeignKey(pt => pt.UserId);
 235
 1236            modelBuilder.Entity<UserDepartment>()
 1237                .HasOne(pt => pt.Department)
 1238                .WithMany(t => t.UsersDepartments)
 1239                .HasForeignKey(pt => pt.DepartmentId);
 240
 1241            modelBuilder.Entity<GoodSettingsLabel>()
 1242               .HasKey(t => new { t.GoodLabelId, t.GoodSettingId });
 243
 1244            modelBuilder.Entity<GoodSettingsLabel>()
 1245                .HasOne(pt => pt.GoodLabel)
 1246                .WithMany(p => p.GoodSettingsLabels)
 1247                .HasForeignKey(pt => pt.GoodLabelId);
 248
 1249            modelBuilder.Entity<GoodSettingsLabel>()
 1250                .HasOne(pt => pt.GoodSetting)
 1251                .WithMany(t => t.GoodSettingsLabels)
 1252                .HasForeignKey(pt => pt.GoodSettingId);
 253
 1254            modelBuilder.Entity<ClusterDeliveryType>()
 1255               .HasKey(t => new { t.DeliveryTypeId, t.ClusterId });
 256
 1257            modelBuilder.Entity<ClusterDeliveryType>()
 1258                .HasOne(pt => pt.Cluster)
 1259                .WithMany(p => p.ClusterDeliveryTypes)
 1260                .HasForeignKey(pt => pt.ClusterId);
 261
 1262            modelBuilder.Entity<ClusterDeliveryType>()
 1263                .HasOne(pt => pt.DeliveryType)
 1264                .WithMany(t => t.ClusterDeliveryTypes)
 1265                .HasForeignKey(pt => pt.DeliveryTypeId);
 266
 1267            modelBuilder.Entity<UserRole>()
 1268                .HasKey(t => new { t.UserId, t.RoleId });
 269
 1270            modelBuilder.Entity<UserRole>()
 1271                .HasOne(pt => pt.User)
 1272                .WithMany(p => p.UsersRoles)
 1273                .HasForeignKey(pt => pt.UserId);
 274
 1275            modelBuilder.Entity<UserRole>()
 1276                .HasOne(pt => pt.Roles)
 1277                .WithMany(t => t.UsersRoles)
 1278                .HasForeignKey(pt => pt.RoleId);
 279
 1280            modelBuilder.Entity<MethodRole>()
 1281               .HasKey(t => new { t.RoleId, t.MethodId });
 282
 1283            modelBuilder.Entity<MethodRole>()
 1284                .HasOne(pt => pt.Roles)
 1285                .WithMany(p => p.MethodsRoles)
 1286                .HasForeignKey(pt => pt.RoleId);
 287
 1288            modelBuilder.Entity<MethodRole>()
 1289                .HasOne(pt => pt.Methods)
 1290                .WithMany(t => t.MethodsRoles)
 1291                .HasForeignKey(pt => pt.MethodId);
 292
 1293            var dt = new DateTime(2020, 01, 01);
 1294            var guid = new Guid("00000000-0000-0000-0000-000000000000");
 295
 1296            modelBuilder.Entity<IncidentsKind>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1297            modelBuilder.Entity<IncidentsKind>().HasData(new IncidentsKind { Id = 1, Name = "Неизвестно", Code = "Unknow
 1298            modelBuilder.Entity<IncidentsKind>().HasData(new IncidentsKind { Id = 2, Name = "Ошибка", Code = "Error", De
 1299            modelBuilder.Entity<IncidentsKind>().HasData(new IncidentsKind { Id = 3, Name = "Вопрос", Code = "Question",
 1300            modelBuilder.Entity<IncidentsKind>().HasData(new IncidentsKind { Id = 4, Name = "Предложение", Code = "Sugge
 301
 1302            modelBuilder.Entity<IncidentsStatus>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1303            modelBuilder.Entity<IncidentsStatus>().HasData(new IncidentsStatus { Id = 1, Name = "Открыт", Code = "Open",
 1304            modelBuilder.Entity<IncidentsStatus>().HasData(new IncidentsStatus { Id = 2, Name = "В работе", Code = "InWo
 1305            modelBuilder.Entity<IncidentsStatus>().HasData(new IncidentsStatus { Id = 3, Name = "Решен", Code = "Resolve
 1306            modelBuilder.Entity<IncidentsStatus>().HasData(new IncidentsStatus { Id = 4, Name = "Отменен", Code = "Cance
 1307            modelBuilder.Entity<IncidentsStatus>().HasData(new IncidentsStatus { Id = 5, Name = "Закрыт", Code = "Closed
 308
 1309            modelBuilder.Entity<DepartmentsStatus>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1310            modelBuilder.Entity<DepartmentsStatus>().HasData(new DepartmentsStatus { Id = 1, Name = "Новый", Code = "New
 1311            modelBuilder.Entity<DepartmentsStatus>().HasData(new DepartmentsStatus { Id = 2, Name = "Активный", Code = "
 1312            modelBuilder.Entity<DepartmentsStatus>().HasData(new DepartmentsStatus { Id = 3, Name = "Неактивный", Code =
 1313            modelBuilder.Entity<DepartmentsStatus>().HasData(new DepartmentsStatus { Id = 4, Name = "На паузе", Code = "
 314
 1315            modelBuilder.Entity<ContragentsKind>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1316            modelBuilder.Entity<ContragentsKind>().HasData(new ContragentsKind { Id = 1, Name = "Неизвестный", Code = "U
 1317            modelBuilder.Entity<ContragentsKind>().HasData(new ContragentsKind { Id = 2, Name = "Магазин", Code = "Retai
 1318            modelBuilder.Entity<ContragentsKind>().HasData(new ContragentsKind { Id = 3, Name = "Дистрибьютор", Code = "
 1319            modelBuilder.Entity<ContragentsKind>().HasData(new ContragentsKind { Id = 4, Name = "Производитель", Code = 
 1320            modelBuilder.Entity<ContragentsKind>().HasData(new ContragentsKind { Id = 6, Name = "Платформа", Code = "Pla
 321
 1322            modelBuilder.Entity<DepartmentsKind>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1323            modelBuilder.Entity<DepartmentsKind>().HasData(new DepartmentsKind { Id = 1, Name = "Склад", Code = "Warehou
 1324            modelBuilder.Entity<DepartmentsKind>().HasData(new DepartmentsKind { Id = 2, Name = "Магазин", Code = "Shop"
 1325            modelBuilder.Entity<DepartmentsKind>().HasData(new DepartmentsKind { Id = 3, Name = "Завод", Code = "Plant",
 1326            modelBuilder.Entity<DepartmentsKind>().HasData(new DepartmentsKind { Id = 4, Name = "Сервисная служба", Code
 327
 1328            modelBuilder.Entity<EventsKind>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1329            modelBuilder.Entity<EventsKind>().HasData(new EventsKind { Id = 1, Name = "Неизвестно", Code = "Unknown", De
 1330            modelBuilder.Entity<EventsKind>().HasData(new EventsKind { Id = 2, Name = "Создание", Code = "Create", Descr
 1331            modelBuilder.Entity<EventsKind>().HasData(new EventsKind { Id = 3, Name = "Обновление", Code = "Update", Des
 1332            modelBuilder.Entity<EventsKind>().HasData(new EventsKind { Id = 4, Name = "Удаление", Code = "Delete", Descr
 333
 1334            modelBuilder.Entity<NotificationsStatus>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1335            modelBuilder.Entity<NotificationsStatus>().HasData(new NotificationsStatus { Id = 1, Name = "Неизвестно", Co
 1336            modelBuilder.Entity<NotificationsStatus>().HasData(new NotificationsStatus { Id = 2, Name = "Создано", Code 
 1337            modelBuilder.Entity<NotificationsStatus>().HasData(new NotificationsStatus { Id = 3, Name = "Отправлено", Co
 1338            modelBuilder.Entity<NotificationsStatus>().HasData(new NotificationsStatus { Id = 4, Name = "Прочитано", Cod
 1339            modelBuilder.Entity<NotificationsStatus>().HasData(new NotificationsStatus { Id = 5, Name = "Отключено", Cod
 340
 1341            modelBuilder.Entity<NotificationsType>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1342            modelBuilder.Entity<NotificationsType>().HasData(new NotificationsType { Id = 1, Name = "Системное", Code = 
 1343            modelBuilder.Entity<NotificationsType>().HasData(new NotificationsType { Id = 2, Name = "Новость", Code = "N
 344
 1345            modelBuilder.Entity<MovementStatusOwner>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1346            modelBuilder.Entity<MovementStatusOwner>().HasData(new MovementStatusOwner {Id = 1, Name = "Customer", Creat
 1347            modelBuilder.Entity<MovementStatusOwner>().HasData(new MovementStatusOwner {Id = 2, Name = "Supplier", Creat
 1348            modelBuilder.Entity<MovementStatusOwner>().HasData(new MovementStatusOwner {Id = 3, Name = "Platform", Creat
 349
 1350            modelBuilder.Entity<MovementType>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1351            modelBuilder.Entity<MovementType>().HasData(new MovementType { Id = 1, Name = "Заказ", Code = "Order", Descr
 1352            modelBuilder.Entity<MovementType>().HasData(new MovementType { Id = 2, Name = "Отгрузка", Code = "Shipment",
 1353            modelBuilder.Entity<MovementType>().HasData(new MovementType { Id = 3, Name = "Приход", Code = "Arrival", De
 1354            modelBuilder.Entity<MovementType>().HasData(new MovementType { Id = 4, Name = "Отказ", Code = "Deny", Descri
 355
 1356            modelBuilder.Entity<MovementStatus>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1357            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus { Id = 1, Name = "Черновик", Code = "Draft"
 1358            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus { Id = 2, Name = "В очереди на обработку", 
 1359            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus { Id = 3, Name = "В обработке", Code = "InP
 1360            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus { Id = 4, Name = "Отказ", Code = "Reject", 
 1361            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus { Id = 5, Name = "Обработано", Code = "Fini
 1362            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus { Id = 6, Name = "Черновик", Code = "Draft"
 1363            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus { Id = 7, Name = "Отказ", Code = "Reject", 
 1364            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus {Id = 8, Name = "Ожидает оплаты", Code = "P
 1365            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus {Id = 9, Name = "Сборка заказа", Code = "Pi
 1366            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus {Id = 10, Name = "Готово к выдаче", Code = 
 1367            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus {Id = 11, Name = "Корректировка", Code = "C
 1368            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus {Id = 12, Name = "Отказ поставщика", Code =
 1369            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus {Id = 13, Name = "Выдано", Code = "Shipped"
 1370            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus {Id = 14, Name = "Принято", Code = "Receive
 1371            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus {Id = 15, Name = "Отказ покупателя", Code =
 1372            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus {Id = 16, Name = "Претензия разбор", Code =
 1373            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus {Id = 17, Name = "Претензия отказано", Code
 1374            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus {Id = 18, Name = "Претензия подтверждено", 
 1375            modelBuilder.Entity<MovementStatus>().HasData(new MovementStatus { Id = 19, Name = "В пути", Code = "Transit
 376
 1377            modelBuilder.Entity<RecordsState>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1378            modelBuilder.Entity<RecordsState>().HasData(new RecordsState { Id = 1, Name = "Ошибка", Code = "Error", Desc
 1379            modelBuilder.Entity<RecordsState>().HasData(new RecordsState { Id = 2, Name = "Активно", Code = "Active", De
 1380            modelBuilder.Entity<RecordsState>().HasData(new RecordsState { Id = 3, Name = "Неактивно", Code = "Inactive"
 1381            modelBuilder.Entity<RecordsState>().HasData(new RecordsState { Id = 4, Name = "Удалено", Code = "Deleted", D
 1382            modelBuilder.Entity<RecordsState>().HasData(new RecordsState { Id = 5, Name = "Пусто", Code = "Empty", Descr
 383
 1384            modelBuilder.Entity<UnitsKind>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1385            modelBuilder.Entity<UnitsKind>().HasData(new UnitsKind { Id = 1, Name = "Неизвестно", Code = "1", StrCode = 
 1386            modelBuilder.Entity<UnitsKind>().HasData(new UnitsKind { Id = 2, Name = "КГ", Code = "166", StrCode = "Kg", 
 1387            modelBuilder.Entity<UnitsKind>().HasData(new UnitsKind { Id = 3, Name = "Л", Code = "112", StrCode = "Litre"
 1388            modelBuilder.Entity<UnitsKind>().HasData(new UnitsKind { Id = 4, Name = "М", Code = "6", StrCode = "Meter", 
 1389            modelBuilder.Entity<UnitsKind>().HasData(new UnitsKind { Id = 5, Name = "ШТ", Code = "796", StrCode = "Item"
 1390            modelBuilder.Entity<UnitsKind>().HasData(new UnitsKind { Id = 6, Name = "М2", Code = "55", StrCode = "Square
 1391            modelBuilder.Entity<UnitsKind>().HasData(new UnitsKind { Id = 7, Name = "М3", Code = "113", StrCode = "Cubic
 392
 1393            modelBuilder.Entity<VatsKind>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1394            modelBuilder.Entity<VatsKind>().HasData(new VatsKind { Id = 1, Name = "0%", Code = "1", Value = 1, StrCode =
 1395            modelBuilder.Entity<VatsKind>().HasData(new VatsKind { Id = 2, Name = "10%", Code = "10", Value = 10, StrCod
 1396            modelBuilder.Entity<VatsKind>().HasData(new VatsKind { Id = 3, Name = "20%", Code = "20", Value = 20, StrCod
 1397            modelBuilder.Entity<VatsKind>().HasData(new VatsKind { Id = 4, Name = "Без НДС", Code = "0", Value = 1, StrC
 398
 1399            modelBuilder.Entity<Roles>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1400            modelBuilder.Entity<Roles>().HasData(new Roles { Id = 1, Name = Role.SystemAdmin, Description = "Администрат
 1401            modelBuilder.Entity<Roles>().HasData(new Roles { Id = 2, Name = Role.SystemOperator, Description = "Оператор
 1402            modelBuilder.Entity<Roles>().HasData(new Roles { Id = 3, Name = Role.ShopOwner, Description = "Владелец мага
 1403            modelBuilder.Entity<Roles>().HasData(new Roles { Id = 4, Name = Role.ShopMerchandiser, Description = "Товаро
 1404            modelBuilder.Entity<Roles>().HasData(new Roles { Id = 5, Name = Role.ShopSeller, Description = "Продавец маг
 1405            modelBuilder.Entity<Roles>().HasData(new Roles { Id = 6, Name = Role.SupplierOwner, Description = "Владелец 
 1406            modelBuilder.Entity<Roles>().HasData(new Roles { Id = 7, Name = Role.SupplierOperator, Description = "Управл
 1407            modelBuilder.Entity<Roles>().HasData(new Roles { Id = 8, Name = Role.SupplierSpec, Description = "Кладовщик 
 1408            modelBuilder.Entity<Roles>().HasData(new Roles { Id = 9, Name = Role.Anonym, Description = "Анонимный пользо
 409
 1410            modelBuilder.Entity<WalletTransactionStatus>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1411            modelBuilder.Entity<WalletTransactionStatus>().HasData(new WalletTransactionStatus { Id = 1, Name = "Ожидани
 1412            modelBuilder.Entity<WalletTransactionStatus>().HasData(new WalletTransactionStatus { Id = 2, Name = "Холдиро
 1413            modelBuilder.Entity<WalletTransactionStatus>().HasData(new WalletTransactionStatus { Id = 3, Name = "Подтвер
 1414            modelBuilder.Entity<WalletTransactionStatus>().HasData(new WalletTransactionStatus { Id = 4, Name = "Отменен
 415
 1416            modelBuilder.Entity<TaxSystem>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1417            modelBuilder.Entity<TaxSystem>().HasData(new TaxSystem { Id = 1, Code = "УСН", Name = "Упрощенная система на
 1418            modelBuilder.Entity<TaxSystem>().HasData(new TaxSystem { Id = 2, Code = "ЕНВД", Name = "Единый налог на вмен
 2419            modelBuilder.Entity<TaxSystem>().HasData(new TaxSystem { Id = 3, Code = "ES", Name = "ЕСХН", Description = "
 1420            modelBuilder.Entity<TaxSystem>().HasData(new TaxSystem { Id = 4, Code = "ОСН", Name = "Основная система нало
 421
 1422            modelBuilder.Entity<Currency>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1423            modelBuilder.Entity<Currency>().HasData(new Currency { Id = 1, CODE = "643", COUNTRY = "Россия", global_id =
 424
 1425            modelBuilder.Entity<Country>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1426            modelBuilder.Entity<Country>().HasData(new Country { Id = 2, Name = "Абхазия", Code = 895, CreationDateTime 
 1427            modelBuilder.Entity<Country>().HasData(new Country { Id = 3, Name = "Австралия", Code = 36, CreationDateTime
 1428            modelBuilder.Entity<Country>().HasData(new Country { Id = 4, Name = "Австрия", Code = 40, CreationDateTime =
 1429            modelBuilder.Entity<Country>().HasData(new Country { Id = 5, Name = "Азербайджан", Code = 31, CreationDateTi
 1430            modelBuilder.Entity<Country>().HasData(new Country { Id = 6, Name = "Албания", Code = 8, CreationDateTime = 
 1431            modelBuilder.Entity<Country>().HasData(new Country { Id = 7, Name = "Алжир", Code = 12, CreationDateTime = d
 1432            modelBuilder.Entity<Country>().HasData(new Country { Id = 8, Name = "Американское Самоа", Code = 16, Creatio
 1433            modelBuilder.Entity<Country>().HasData(new Country { Id = 9, Name = "Ангилья", Code = 660, CreationDateTime 
 1434            modelBuilder.Entity<Country>().HasData(new Country { Id = 10, Name = "Ангола", Code = 24, CreationDateTime =
 1435            modelBuilder.Entity<Country>().HasData(new Country { Id = 11, Name = "Андорра", Code = 20, CreationDateTime 
 1436            modelBuilder.Entity<Country>().HasData(new Country { Id = 12, Name = "Антарктида", Code = 10, CreationDateTi
 1437            modelBuilder.Entity<Country>().HasData(new Country { Id = 13, Name = "Антигуа и Барбуда", Code = 28, Creatio
 1438            modelBuilder.Entity<Country>().HasData(new Country { Id = 14, Name = "Аргентина", Code = 32, CreationDateTim
 1439            modelBuilder.Entity<Country>().HasData(new Country { Id = 15, Name = "Армения", Code = 51, CreationDateTime 
 1440            modelBuilder.Entity<Country>().HasData(new Country { Id = 16, Name = "Аруба", Code = 533, CreationDateTime =
 1441            modelBuilder.Entity<Country>().HasData(new Country { Id = 17, Name = "Афганистан", Code = 4, CreationDateTim
 1442            modelBuilder.Entity<Country>().HasData(new Country { Id = 18, Name = "Багамы", Code = 44, CreationDateTime =
 1443            modelBuilder.Entity<Country>().HasData(new Country { Id = 19, Name = "Бангладеш", Code = 50, CreationDateTim
 1444            modelBuilder.Entity<Country>().HasData(new Country { Id = 20, Name = "Барбадос", Code = 52, CreationDateTime
 1445            modelBuilder.Entity<Country>().HasData(new Country { Id = 21, Name = "Бахрейн", Code = 48, CreationDateTime 
 1446            modelBuilder.Entity<Country>().HasData(new Country { Id = 22, Name = "Беларусь", Code = 112, CreationDateTim
 1447            modelBuilder.Entity<Country>().HasData(new Country { Id = 23, Name = "Белиз", Code = 84, CreationDateTime = 
 1448            modelBuilder.Entity<Country>().HasData(new Country { Id = 24, Name = "Бельгия", Code = 56, CreationDateTime 
 1449            modelBuilder.Entity<Country>().HasData(new Country { Id = 25, Name = "Бенин", Code = 204, CreationDateTime =
 1450            modelBuilder.Entity<Country>().HasData(new Country { Id = 26, Name = "Бермуды", Code = 60, CreationDateTime 
 1451            modelBuilder.Entity<Country>().HasData(new Country { Id = 27, Name = "Болгария", Code = 100, CreationDateTim
 1452            modelBuilder.Entity<Country>().HasData(new Country { Id = 28, Name = "Боливия, Многонациональное Государство
 1453            modelBuilder.Entity<Country>().HasData(new Country { Id = 29, Name = "Бонэйр, Синт-Эстатиус и Саба", Code = 
 1454            modelBuilder.Entity<Country>().HasData(new Country { Id = 30, Name = "Босния и Герцеговина", Code = 70, Crea
 1455            modelBuilder.Entity<Country>().HasData(new Country { Id = 31, Name = "Ботсвана", Code = 72, CreationDateTime
 1456            modelBuilder.Entity<Country>().HasData(new Country { Id = 32, Name = "Бразилия", Code = 76, CreationDateTime
 1457            modelBuilder.Entity<Country>().HasData(new Country { Id = 33, Name = "Британская территория в Индийском океа
 1458            modelBuilder.Entity<Country>().HasData(new Country { Id = 34, Name = "Бруней-Даруссалам", Code = 96, Creatio
 1459            modelBuilder.Entity<Country>().HasData(new Country { Id = 35, Name = "Буркина-Фасо", Code = 854, CreationDat
 1460            modelBuilder.Entity<Country>().HasData(new Country { Id = 36, Name = "Бурунди", Code = 108, CreationDateTime
 1461            modelBuilder.Entity<Country>().HasData(new Country { Id = 37, Name = "Бутан", Code = 64, CreationDateTime = 
 1462            modelBuilder.Entity<Country>().HasData(new Country { Id = 38, Name = "Вануату", Code = 548, CreationDateTime
 1463            modelBuilder.Entity<Country>().HasData(new Country { Id = 39, Name = "Венгрия", Code = 348, CreationDateTime
 1464            modelBuilder.Entity<Country>().HasData(new Country { Id = 40, Name = "Венесуэла Боливарианская Республика", 
 1465            modelBuilder.Entity<Country>().HasData(new Country { Id = 41, Name = "Виргинские острова (Британские)", Code
 1466            modelBuilder.Entity<Country>().HasData(new Country { Id = 42, Name = "Виргинские острова (США)", Code = 850,
 1467            modelBuilder.Entity<Country>().HasData(new Country { Id = 43, Name = "Вьетнам", Code = 704, CreationDateTime
 1468            modelBuilder.Entity<Country>().HasData(new Country { Id = 44, Name = "Габон", Code = 266, CreationDateTime =
 1469            modelBuilder.Entity<Country>().HasData(new Country { Id = 45, Name = "Гаити", Code = 332, CreationDateTime =
 1470            modelBuilder.Entity<Country>().HasData(new Country { Id = 46, Name = "Гайана", Code = 328, CreationDateTime 
 1471            modelBuilder.Entity<Country>().HasData(new Country { Id = 47, Name = "Гамбия", Code = 270, CreationDateTime 
 1472            modelBuilder.Entity<Country>().HasData(new Country { Id = 48, Name = "Гана", Code = 288, CreationDateTime = 
 1473            modelBuilder.Entity<Country>().HasData(new Country { Id = 49, Name = "Гваделупа", Code = 312, CreationDateTi
 1474            modelBuilder.Entity<Country>().HasData(new Country { Id = 50, Name = "Гватемала", Code = 320, CreationDateTi
 1475            modelBuilder.Entity<Country>().HasData(new Country { Id = 51, Name = "Гвинея", Code = 324, CreationDateTime 
 1476            modelBuilder.Entity<Country>().HasData(new Country { Id = 52, Name = "Гвинея-Бисау", Code = 624, CreationDat
 1477            modelBuilder.Entity<Country>().HasData(new Country { Id = 53, Name = "Германия", Code = 276, CreationDateTim
 1478            modelBuilder.Entity<Country>().HasData(new Country { Id = 54, Name = "Гернси", Code = 831, CreationDateTime 
 1479            modelBuilder.Entity<Country>().HasData(new Country { Id = 55, Name = "Гибралтар", Code = 292, CreationDateTi
 1480            modelBuilder.Entity<Country>().HasData(new Country { Id = 56, Name = "Гондурас", Code = 340, CreationDateTim
 1481            modelBuilder.Entity<Country>().HasData(new Country { Id = 57, Name = "Гонконг", Code = 344, CreationDateTime
 1482            modelBuilder.Entity<Country>().HasData(new Country { Id = 58, Name = "Гренада", Code = 308, CreationDateTime
 1483            modelBuilder.Entity<Country>().HasData(new Country { Id = 59, Name = "Гренландия", Code = 304, CreationDateT
 1484            modelBuilder.Entity<Country>().HasData(new Country { Id = 60, Name = "Греция", Code = 300, CreationDateTime 
 1485            modelBuilder.Entity<Country>().HasData(new Country { Id = 61, Name = "Грузия", Code = 268, CreationDateTime 
 1486            modelBuilder.Entity<Country>().HasData(new Country { Id = 62, Name = "Гуам", Code = 316, CreationDateTime = 
 1487            modelBuilder.Entity<Country>().HasData(new Country { Id = 63, Name = "Дания", Code = 208, CreationDateTime =
 1488            modelBuilder.Entity<Country>().HasData(new Country { Id = 64, Name = "Джерси", Code = 832, CreationDateTime 
 1489            modelBuilder.Entity<Country>().HasData(new Country { Id = 65, Name = "Джибути", Code = 262, CreationDateTime
 1490            modelBuilder.Entity<Country>().HasData(new Country { Id = 66, Name = "Доминика", Code = 212, CreationDateTim
 1491            modelBuilder.Entity<Country>().HasData(new Country { Id = 67, Name = "Доминиканская Республика", Code = 214,
 1492            modelBuilder.Entity<Country>().HasData(new Country { Id = 68, Name = "Египет", Code = 818, CreationDateTime 
 1493            modelBuilder.Entity<Country>().HasData(new Country { Id = 69, Name = "Замбия", Code = 894, CreationDateTime 
 1494            modelBuilder.Entity<Country>().HasData(new Country { Id = 70, Name = "Западная Сахара", Code = 732, Creation
 1495            modelBuilder.Entity<Country>().HasData(new Country { Id = 71, Name = "Зимбабве", Code = 716, CreationDateTim
 1496            modelBuilder.Entity<Country>().HasData(new Country { Id = 72, Name = "Израиль", Code = 376, CreationDateTime
 1497            modelBuilder.Entity<Country>().HasData(new Country { Id = 73, Name = "Индия", Code = 356, CreationDateTime =
 1498            modelBuilder.Entity<Country>().HasData(new Country { Id = 74, Name = "Индонезия", Code = 360, CreationDateTi
 1499            modelBuilder.Entity<Country>().HasData(new Country { Id = 75, Name = "Иордания", Code = 400, CreationDateTim
 1500            modelBuilder.Entity<Country>().HasData(new Country { Id = 76, Name = "Ирак", Code = 368, CreationDateTime = 
 1501            modelBuilder.Entity<Country>().HasData(new Country { Id = 77, Name = "Иран (Исламская Республика)", Code = 3
 1502            modelBuilder.Entity<Country>().HasData(new Country { Id = 78, Name = "Ирландия", Code = 372, CreationDateTim
 1503            modelBuilder.Entity<Country>().HasData(new Country { Id = 79, Name = "Исландия", Code = 352, CreationDateTim
 1504            modelBuilder.Entity<Country>().HasData(new Country { Id = 80, Name = "Испания", Code = 724, CreationDateTime
 1505            modelBuilder.Entity<Country>().HasData(new Country { Id = 81, Name = "Италия", Code = 380, CreationDateTime 
 1506            modelBuilder.Entity<Country>().HasData(new Country { Id = 82, Name = "Йемен", Code = 887, CreationDateTime =
 1507            modelBuilder.Entity<Country>().HasData(new Country { Id = 83, Name = "Кабо-Верде", Code = 132, CreationDateT
 1508            modelBuilder.Entity<Country>().HasData(new Country { Id = 84, Name = "Казахстан", Code = 398, CreationDateTi
 1509            modelBuilder.Entity<Country>().HasData(new Country { Id = 85, Name = "Камбоджа", Code = 116, CreationDateTim
 1510            modelBuilder.Entity<Country>().HasData(new Country { Id = 86, Name = "Камерун", Code = 120, CreationDateTime
 1511            modelBuilder.Entity<Country>().HasData(new Country { Id = 87, Name = "Канада", Code = 124, CreationDateTime 
 1512            modelBuilder.Entity<Country>().HasData(new Country { Id = 88, Name = "Катар", Code = 634, CreationDateTime =
 1513            modelBuilder.Entity<Country>().HasData(new Country { Id = 89, Name = "Кения", Code = 404, CreationDateTime =
 1514            modelBuilder.Entity<Country>().HasData(new Country { Id = 90, Name = "Кипр", Code = 196, CreationDateTime = 
 1515            modelBuilder.Entity<Country>().HasData(new Country { Id = 91, Name = "Киргизия", Code = 417, CreationDateTim
 1516            modelBuilder.Entity<Country>().HasData(new Country { Id = 92, Name = "Кирибати", Code = 296, CreationDateTim
 1517            modelBuilder.Entity<Country>().HasData(new Country { Id = 93, Name = "Китай", Code = 156, CreationDateTime =
 1518            modelBuilder.Entity<Country>().HasData(new Country { Id = 94, Name = "Кокосовые (Килинг) острова", Code = 16
 1519            modelBuilder.Entity<Country>().HasData(new Country { Id = 95, Name = "Колумбия", Code = 170, CreationDateTim
 1520            modelBuilder.Entity<Country>().HasData(new Country { Id = 96, Name = "Коморы", Code = 174, CreationDateTime 
 1521            modelBuilder.Entity<Country>().HasData(new Country { Id = 97, Name = "Конго", Code = 178, CreationDateTime =
 1522            modelBuilder.Entity<Country>().HasData(new Country { Id = 98, Name = "Конго, Демократическая Республика", Co
 1523            modelBuilder.Entity<Country>().HasData(new Country { Id = 99, Name = "Корея, Народно-Демократическая Республ
 1524            modelBuilder.Entity<Country>().HasData(new Country { Id = 100, Name = "Корея, Республика", Code = 410, Creat
 1525            modelBuilder.Entity<Country>().HasData(new Country { Id = 101, Name = "Коста-Рика", Code = 188, CreationDate
 1526            modelBuilder.Entity<Country>().HasData(new Country { Id = 102, Name = "Кот д'Ивуар", Code = 384, CreationDat
 1527            modelBuilder.Entity<Country>().HasData(new Country { Id = 103, Name = "Куба", Code = 192, CreationDateTime =
 1528            modelBuilder.Entity<Country>().HasData(new Country { Id = 104, Name = "Кувейт", Code = 414, CreationDateTime
 1529            modelBuilder.Entity<Country>().HasData(new Country { Id = 105, Name = "Кюрасао", Code = 531, CreationDateTim
 1530            modelBuilder.Entity<Country>().HasData(new Country { Id = 106, Name = "Лаос", Code = 418, CreationDateTime =
 1531            modelBuilder.Entity<Country>().HasData(new Country { Id = 107, Name = "Латвия", Code = 428, CreationDateTime
 1532            modelBuilder.Entity<Country>().HasData(new Country { Id = 108, Name = "Лесото", Code = 426, CreationDateTime
 1533            modelBuilder.Entity<Country>().HasData(new Country { Id = 109, Name = "Ливан", Code = 422, CreationDateTime 
 1534            modelBuilder.Entity<Country>().HasData(new Country { Id = 110, Name = "Ливия", Code = 434, CreationDateTime 
 1535            modelBuilder.Entity<Country>().HasData(new Country { Id = 111, Name = "Либерия", Code = 430, CreationDateTim
 1536            modelBuilder.Entity<Country>().HasData(new Country { Id = 112, Name = "Лихтенштейн", Code = 438, CreationDat
 1537            modelBuilder.Entity<Country>().HasData(new Country { Id = 113, Name = "Литва", Code = 440, CreationDateTime 
 1538            modelBuilder.Entity<Country>().HasData(new Country { Id = 114, Name = "Люксембург", Code = 442, CreationDate
 1539            modelBuilder.Entity<Country>().HasData(new Country { Id = 115, Name = "Маврикий", Code = 480, CreationDateTi
 1540            modelBuilder.Entity<Country>().HasData(new Country { Id = 116, Name = "Мавритания", Code = 478, CreationDate
 1541            modelBuilder.Entity<Country>().HasData(new Country { Id = 117, Name = "Мадагаскар", Code = 450, CreationDate
 1542            modelBuilder.Entity<Country>().HasData(new Country { Id = 118, Name = "Майотта", Code = 175, CreationDateTim
 1543            modelBuilder.Entity<Country>().HasData(new Country { Id = 119, Name = "Макао", Code = 446, CreationDateTime 
 1544            modelBuilder.Entity<Country>().HasData(new Country { Id = 120, Name = "Малави", Code = 454, CreationDateTime
 1545            modelBuilder.Entity<Country>().HasData(new Country { Id = 121, Name = "Малайзия", Code = 458, CreationDateTi
 1546            modelBuilder.Entity<Country>().HasData(new Country { Id = 122, Name = "Мали", Code = 466, CreationDateTime =
 1547            modelBuilder.Entity<Country>().HasData(new Country { Id = 123, Name = "Малые Тихоокеанские отдаленные остров
 1548            modelBuilder.Entity<Country>().HasData(new Country { Id = 124, Name = "Мальдивы", Code = 462, CreationDateTi
 1549            modelBuilder.Entity<Country>().HasData(new Country { Id = 125, Name = "Мальта", Code = 470, CreationDateTime
 1550            modelBuilder.Entity<Country>().HasData(new Country { Id = 126, Name = "Марокко", Code = 504, CreationDateTim
 1551            modelBuilder.Entity<Country>().HasData(new Country { Id = 127, Name = "Мартиника", Code = 474, CreationDateT
 1552            modelBuilder.Entity<Country>().HasData(new Country { Id = 128, Name = "Маршалловы острова", Code = 584, Crea
 1553            modelBuilder.Entity<Country>().HasData(new Country { Id = 129, Name = "Мексика", Code = 484, CreationDateTim
 1554            modelBuilder.Entity<Country>().HasData(new Country { Id = 130, Name = "Микронезия, Федеративные Штаты", Code
 1555            modelBuilder.Entity<Country>().HasData(new Country { Id = 131, Name = "Мозамбик", Code = 508, CreationDateTi
 1556            modelBuilder.Entity<Country>().HasData(new Country { Id = 132, Name = "Молдова, Республика", Code = 498, Cre
 1557            modelBuilder.Entity<Country>().HasData(new Country { Id = 133, Name = "Монако", Code = 492, CreationDateTime
 1558            modelBuilder.Entity<Country>().HasData(new Country { Id = 134, Name = "Монголия", Code = 496, CreationDateTi
 1559            modelBuilder.Entity<Country>().HasData(new Country { Id = 135, Name = "Монтсеррат", Code = 500, CreationDate
 1560            modelBuilder.Entity<Country>().HasData(new Country { Id = 136, Name = "Мьянма", Code = 104, CreationDateTime
 1561            modelBuilder.Entity<Country>().HasData(new Country { Id = 137, Name = "Намибия", Code = 516, CreationDateTim
 1562            modelBuilder.Entity<Country>().HasData(new Country { Id = 138, Name = "Науру", Code = 520, CreationDateTime 
 1563            modelBuilder.Entity<Country>().HasData(new Country { Id = 139, Name = "Непал", Code = 524, CreationDateTime 
 1564            modelBuilder.Entity<Country>().HasData(new Country { Id = 140, Name = "Нигер", Code = 562, CreationDateTime 
 1565            modelBuilder.Entity<Country>().HasData(new Country { Id = 141, Name = "Нигерия", Code = 566, CreationDateTim
 1566            modelBuilder.Entity<Country>().HasData(new Country { Id = 142, Name = "Нидерланды", Code = 528, CreationDate
 1567            modelBuilder.Entity<Country>().HasData(new Country { Id = 143, Name = "Никарагуа", Code = 558, CreationDateT
 1568            modelBuilder.Entity<Country>().HasData(new Country { Id = 144, Name = "Ниуэ", Code = 570, CreationDateTime =
 1569            modelBuilder.Entity<Country>().HasData(new Country { Id = 145, Name = "Новая Зеландия", Code = 554, Creation
 1570            modelBuilder.Entity<Country>().HasData(new Country { Id = 146, Name = "Новая Каледония", Code = 540, Creatio
 1571            modelBuilder.Entity<Country>().HasData(new Country { Id = 147, Name = "Норвегия", Code = 578, CreationDateTi
 1572            modelBuilder.Entity<Country>().HasData(new Country { Id = 148, Name = "Объединенные Арабские Эмираты", Code 
 1573            modelBuilder.Entity<Country>().HasData(new Country { Id = 149, Name = "Оман", Code = 512, CreationDateTime =
 1574            modelBuilder.Entity<Country>().HasData(new Country { Id = 150, Name = "Остров Буве", Code = 74, CreationDate
 1575            modelBuilder.Entity<Country>().HasData(new Country { Id = 151, Name = "Остров Мэн", Code = 833, CreationDate
 1576            modelBuilder.Entity<Country>().HasData(new Country { Id = 152, Name = "Остров Норфолк", Code = 574, Creation
 1577            modelBuilder.Entity<Country>().HasData(new Country { Id = 153, Name = "Остров Рождества", Code = 162, Creati
 1578            modelBuilder.Entity<Country>().HasData(new Country { Id = 154, Name = "Остров Херд и острова Макдональд", Co
 1579            modelBuilder.Entity<Country>().HasData(new Country { Id = 155, Name = "Острова Кайман", Code = 136, Creation
 1580            modelBuilder.Entity<Country>().HasData(new Country { Id = 156, Name = "Острова Кука", Code = 184, CreationDa
 1581            modelBuilder.Entity<Country>().HasData(new Country { Id = 157, Name = "Острова Теркс и Кайкос", Code = 796, 
 1582            modelBuilder.Entity<Country>().HasData(new Country { Id = 158, Name = "Пакистан", Code = 586, CreationDateTi
 1583            modelBuilder.Entity<Country>().HasData(new Country { Id = 159, Name = "Палау", Code = 585, CreationDateTime 
 1584            modelBuilder.Entity<Country>().HasData(new Country { Id = 160, Name = "Палестина, Государство", Code = 275, 
 1585            modelBuilder.Entity<Country>().HasData(new Country { Id = 161, Name = "Панама", Code = 591, CreationDateTime
 1586            modelBuilder.Entity<Country>().HasData(new Country { Id = 162, Name = "Папский Престол (Государство-город Ва
 1587            modelBuilder.Entity<Country>().HasData(new Country { Id = 163, Name = "Папуа-Новая Гвинея", Code = 598, Crea
 1588            modelBuilder.Entity<Country>().HasData(new Country { Id = 164, Name = "Парагвай", Code = 600, CreationDateTi
 1589            modelBuilder.Entity<Country>().HasData(new Country { Id = 165, Name = "Перу", Code = 604, CreationDateTime =
 1590            modelBuilder.Entity<Country>().HasData(new Country { Id = 166, Name = "Питкерн", Code = 612, CreationDateTim
 1591            modelBuilder.Entity<Country>().HasData(new Country { Id = 167, Name = "Польша", Code = 616, CreationDateTime
 1592            modelBuilder.Entity<Country>().HasData(new Country { Id = 168, Name = "Португалия", Code = 620, CreationDate
 1593            modelBuilder.Entity<Country>().HasData(new Country { Id = 169, Name = "Пуэрто-Рико", Code = 630, CreationDat
 1594            modelBuilder.Entity<Country>().HasData(new Country { Id = 170, Name = "Северная Македония", Code = 807, Crea
 1595            modelBuilder.Entity<Country>().HasData(new Country { Id = 171, Name = "Реюньон", Code = 638, CreationDateTim
 1596            modelBuilder.Entity<Country>().HasData(new Country { Id = 172, Name = "Россия", Code = 643, CreationDateTime
 1597            modelBuilder.Entity<Country>().HasData(new Country { Id = 173, Name = "Руанда", Code = 646, CreationDateTime
 1598            modelBuilder.Entity<Country>().HasData(new Country { Id = 174, Name = "Румыния", Code = 642, CreationDateTim
 1599            modelBuilder.Entity<Country>().HasData(new Country { Id = 175, Name = "Самоа", Code = 882, CreationDateTime 
 1600            modelBuilder.Entity<Country>().HasData(new Country { Id = 176, Name = "Сан-Марино", Code = 674, CreationDate
 1601            modelBuilder.Entity<Country>().HasData(new Country { Id = 177, Name = "Сан-Томе и Принсипи", Code = 678, Cre
 1602            modelBuilder.Entity<Country>().HasData(new Country { Id = 178, Name = "Саудовская Аравия", Code = 682, Creat
 1603            modelBuilder.Entity<Country>().HasData(new Country { Id = 179, Name = "Эсватини", Code = 748, CreationDateTi
 1604            modelBuilder.Entity<Country>().HasData(new Country { Id = 180, Name = "Святая Елена, Остров вознесения, Трис
 1605            modelBuilder.Entity<Country>().HasData(new Country { Id = 181, Name = "Северные Марианские острова", Code = 
 1606            modelBuilder.Entity<Country>().HasData(new Country { Id = 182, Name = "Сен-Бартелеми", Code = 652, CreationD
 1607            modelBuilder.Entity<Country>().HasData(new Country { Id = 183, Name = "Сен-Мартен (французская часть)", Code
 1608            modelBuilder.Entity<Country>().HasData(new Country { Id = 184, Name = "Сенегал", Code = 686, CreationDateTim
 1609            modelBuilder.Entity<Country>().HasData(new Country { Id = 185, Name = "Сент-Винсент и Гренадины", Code = 670
 1610            modelBuilder.Entity<Country>().HasData(new Country { Id = 186, Name = "Сент-Китс и Невис", Code = 659, Creat
 1611            modelBuilder.Entity<Country>().HasData(new Country { Id = 187, Name = "Сент-Люсия", Code = 662, CreationDate
 1612            modelBuilder.Entity<Country>().HasData(new Country { Id = 188, Name = "Сен-Пьер и Микелон", Code = 666, Crea
 1613            modelBuilder.Entity<Country>().HasData(new Country { Id = 189, Name = "Сербия", Code = 688, CreationDateTime
 1614            modelBuilder.Entity<Country>().HasData(new Country { Id = 190, Name = "Сейшелы", Code = 690, CreationDateTim
 1615            modelBuilder.Entity<Country>().HasData(new Country { Id = 191, Name = "Сингапур", Code = 702, CreationDateTi
 1616            modelBuilder.Entity<Country>().HasData(new Country { Id = 192, Name = "Сен-Мартен (нидерландская часть)", Co
 1617            modelBuilder.Entity<Country>().HasData(new Country { Id = 193, Name = "Сирийская Арабская Республика", Code 
 1618            modelBuilder.Entity<Country>().HasData(new Country { Id = 194, Name = "Словакия", Code = 703, CreationDateTi
 1619            modelBuilder.Entity<Country>().HasData(new Country { Id = 195, Name = "Словения", Code = 705, CreationDateTi
 1620            modelBuilder.Entity<Country>().HasData(new Country { Id = 196, Name = "Соединенное Королевство", Code = 826,
 1621            modelBuilder.Entity<Country>().HasData(new Country { Id = 197, Name = "Соединенные Штаты", Code = 840, Creat
 1622            modelBuilder.Entity<Country>().HasData(new Country { Id = 198, Name = "Соломоновы острова", Code = 90, Creat
 1623            modelBuilder.Entity<Country>().HasData(new Country { Id = 199, Name = "Сомали", Code = 706, CreationDateTime
 1624            modelBuilder.Entity<Country>().HasData(new Country { Id = 200, Name = "Судан", Code = 729, CreationDateTime 
 1625            modelBuilder.Entity<Country>().HasData(new Country { Id = 201, Name = "Суринам", Code = 740, CreationDateTim
 1626            modelBuilder.Entity<Country>().HasData(new Country { Id = 202, Name = "Сьерра-Леоне", Code = 694, CreationDa
 1627            modelBuilder.Entity<Country>().HasData(new Country { Id = 203, Name = "Таджикистан", Code = 762, CreationDat
 1628            modelBuilder.Entity<Country>().HasData(new Country { Id = 204, Name = "Таиланд", Code = 764, CreationDateTim
 1629            modelBuilder.Entity<Country>().HasData(new Country { Id = 205, Name = "Тайвань (Китай)", Code = 158, Creatio
 1630            modelBuilder.Entity<Country>().HasData(new Country { Id = 206, Name = "Танзания, Объединенная Республика", C
 1631            modelBuilder.Entity<Country>().HasData(new Country { Id = 207, Name = "Тимор-Лесте", Code = 626, CreationDat
 1632            modelBuilder.Entity<Country>().HasData(new Country { Id = 208, Name = "Того", Code = 768, CreationDateTime =
 1633            modelBuilder.Entity<Country>().HasData(new Country { Id = 209, Name = "Токелау", Code = 772, CreationDateTim
 1634            modelBuilder.Entity<Country>().HasData(new Country { Id = 210, Name = "Тонга", Code = 776, CreationDateTime 
 1635            modelBuilder.Entity<Country>().HasData(new Country { Id = 211, Name = "Тринидад и Тобаго", Code = 780, Creat
 1636            modelBuilder.Entity<Country>().HasData(new Country { Id = 212, Name = "Тувалу", Code = 798, CreationDateTime
 1637            modelBuilder.Entity<Country>().HasData(new Country { Id = 213, Name = "Тунис", Code = 788, CreationDateTime 
 1638            modelBuilder.Entity<Country>().HasData(new Country { Id = 214, Name = "Туркменистан", Code = 795, CreationDa
 1639            modelBuilder.Entity<Country>().HasData(new Country { Id = 215, Name = "Турция", Code = 792, CreationDateTime
 1640            modelBuilder.Entity<Country>().HasData(new Country { Id = 216, Name = "Уганда", Code = 800, CreationDateTime
 1641            modelBuilder.Entity<Country>().HasData(new Country { Id = 217, Name = "Узбекистан", Code = 860, CreationDate
 1642            modelBuilder.Entity<Country>().HasData(new Country { Id = 218, Name = "Украина", Code = 804, CreationDateTim
 1643            modelBuilder.Entity<Country>().HasData(new Country { Id = 219, Name = "Уоллис и Футуна", Code = 876, Creatio
 1644            modelBuilder.Entity<Country>().HasData(new Country { Id = 220, Name = "Уругвай", Code = 858, CreationDateTim
 1645            modelBuilder.Entity<Country>().HasData(new Country { Id = 221, Name = "Фарерские острова", Code = 234, Creat
 1646            modelBuilder.Entity<Country>().HasData(new Country { Id = 222, Name = "Фиджи", Code = 242, CreationDateTime 
 1647            modelBuilder.Entity<Country>().HasData(new Country { Id = 223, Name = "Филиппины", Code = 608, CreationDateT
 1648            modelBuilder.Entity<Country>().HasData(new Country { Id = 224, Name = "Финляндия", Code = 246, CreationDateT
 1649            modelBuilder.Entity<Country>().HasData(new Country { Id = 225, Name = "Фолклендские острова (Мальвинские)", 
 1650            modelBuilder.Entity<Country>().HasData(new Country { Id = 226, Name = "Франция", Code = 250, CreationDateTim
 1651            modelBuilder.Entity<Country>().HasData(new Country { Id = 227, Name = "Французская Гвиана", Code = 254, Crea
 1652            modelBuilder.Entity<Country>().HasData(new Country { Id = 228, Name = "Французская Полинезия", Code = 258, C
 1653            modelBuilder.Entity<Country>().HasData(new Country { Id = 229, Name = "Французские Южные территории", Code =
 1654            modelBuilder.Entity<Country>().HasData(new Country { Id = 230, Name = "Хорватия", Code = 191, CreationDateTi
 1655            modelBuilder.Entity<Country>().HasData(new Country { Id = 231, Name = "Центрально-Африканская Республика", C
 1656            modelBuilder.Entity<Country>().HasData(new Country { Id = 232, Name = "Чад", Code = 148, CreationDateTime = 
 1657            modelBuilder.Entity<Country>().HasData(new Country { Id = 233, Name = "Черногория", Code = 499, CreationDate
 1658            modelBuilder.Entity<Country>().HasData(new Country { Id = 234, Name = "Чешская Республика", Code = 203, Crea
 1659            modelBuilder.Entity<Country>().HasData(new Country { Id = 235, Name = "Чили", Code = 152, CreationDateTime =
 1660            modelBuilder.Entity<Country>().HasData(new Country { Id = 236, Name = "Швейцария", Code = 756, CreationDateT
 1661            modelBuilder.Entity<Country>().HasData(new Country { Id = 237, Name = "Швеция", Code = 752, CreationDateTime
 1662            modelBuilder.Entity<Country>().HasData(new Country { Id = 238, Name = "Шпицберген и Ян Майен", Code = 744, C
 1663            modelBuilder.Entity<Country>().HasData(new Country { Id = 239, Name = "Шри-Ланка", Code = 144, CreationDateT
 1664            modelBuilder.Entity<Country>().HasData(new Country { Id = 240, Name = "Эквадор", Code = 218, CreationDateTim
 1665            modelBuilder.Entity<Country>().HasData(new Country { Id = 241, Name = "Экваториальная Гвинея", Code = 226, C
 1666            modelBuilder.Entity<Country>().HasData(new Country { Id = 242, Name = "Эландские острова", Code = 248, Creat
 1667            modelBuilder.Entity<Country>().HasData(new Country { Id = 243, Name = "Эль-Сальвадор", Code = 222, CreationD
 1668            modelBuilder.Entity<Country>().HasData(new Country { Id = 244, Name = "Эритрея", Code = 232, CreationDateTim
 1669            modelBuilder.Entity<Country>().HasData(new Country { Id = 245, Name = "Эстония", Code = 233, CreationDateTim
 1670            modelBuilder.Entity<Country>().HasData(new Country { Id = 246, Name = "Эфиопия", Code = 231, CreationDateTim
 1671            modelBuilder.Entity<Country>().HasData(new Country { Id = 247, Name = "Южная Африка", Code = 710, CreationDa
 1672            modelBuilder.Entity<Country>().HasData(new Country { Id = 248, Name = "Южная Джорджия и Южные Сандвичевы ост
 1673            modelBuilder.Entity<Country>().HasData(new Country { Id = 249, Name = "Южная Осетия", Code = 896, CreationDa
 1674            modelBuilder.Entity<Country>().HasData(new Country { Id = 250, Name = "Южный Судан", Code = 728, CreationDat
 1675            modelBuilder.Entity<Country>().HasData(new Country { Id = 251, Name = "Ямайка", Code = 388, CreationDateTime
 1676            modelBuilder.Entity<Country>().HasData(new Country { Id = 252, Name = "Япония", Code = 392, CreationDateTime
 677
 1678            modelBuilder.Entity<MovementStatusRoute>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1679            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =1, StatusCurrentId = 1, Sta
 1680            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =2, StatusCurrentId = 2, Sta
 1681            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =3, StatusCurrentId = 2, Sta
 1682            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =4, StatusCurrentId = 2, Sta
 1683            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =5, StatusCurrentId = 3, Sta
 1684            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =6, StatusCurrentId = 3, Sta
 1685            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =7, StatusCurrentId = 3, Sta
 1686            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =8, StatusCurrentId = 6, Sta
 1687            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =9, StatusCurrentId = 6, Sta
 1688            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =10, StatusCurrentId = 8, St
 1689            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =11, StatusCurrentId = 8, St
 1690            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =12, StatusCurrentId = 8, St
 1691            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =13, StatusCurrentId = 9, St
 1692            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =14, StatusCurrentId = 9, St
 1693            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =15, StatusCurrentId = 9, St
 1694            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =30, StatusCurrentId = 9, St
 1695            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =16, StatusCurrentId = 10, S
 1696            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =17, StatusCurrentId = 10, S
 1697            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =18, StatusCurrentId = 10, S
 1698            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =19, StatusCurrentId = 10, S
 1699            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =31, StatusCurrentId = 10, S
 1700            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =20, StatusCurrentId = 11, S
 1701            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =21, StatusCurrentId = 11, S
 1702            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =22, StatusCurrentId = 11, S
 1703            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =32, StatusCurrentId = 11, S
 1704            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =23, StatusCurrentId = 13, S
 1705            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =24, StatusCurrentId = 13, S
 1706            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =25, StatusCurrentId = 13, S
 1707            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =26, StatusCurrentId = 15, S
 1708            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =27, StatusCurrentId = 16, S
 1709            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =28, StatusCurrentId = 16, S
 1710            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id =29, StatusCurrentId = 16, S
 1711            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id = 33, StatusCurrentId = 10, 
 1712            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id = 34, StatusCurrentId = 19, 
 1713            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id = 35, StatusCurrentId = 19, 
 1714            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id = 36, StatusCurrentId = 19, 
 1715            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id = 37, StatusCurrentId = 8, S
 1716            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id = 38, StatusCurrentId = 10, 
 1717            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id = 39, StatusCurrentId = 19, 
 1718            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id = 40, StatusCurrentId = 13, 
 1719            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id = 41, StatusCurrentId = 16, 
 1720            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id = 42, StatusCurrentId = 8, S
 1721            modelBuilder.Entity<MovementStatusRoute>().HasData(new MovementStatusRoute { Id = 43, StatusCurrentId = 5, S
 722
 1723            modelBuilder.Entity<MovementRouteAction>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 1724            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 1, OwnerActionId = 1, Actio
 1725            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 2, OwnerActionId = 1, Actio
 1726            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 3, OwnerActionId = 1, Actio
 1727            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 4, OwnerActionId = 1,Action
 728
 1729            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 5, OwnerActionId = 1,Action
 1730            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 6, OwnerActionId = 1, Actio
 1731            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 7, OwnerActionId = 1, Actio
 1732            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 8, OwnerActionId = 3, Actio
 1733            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 85, OwnerActionId = 3,Actio
 1734            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 9, OwnerActionId = 3, Actio
 735
 1736            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 10, OwnerActionId = 1,Actio
 1737            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 11, OwnerActionId = 1,Actio
 1738            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 86, OwnerActionId = 1, Acti
 739
 1740            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 12, OwnerActionId = 1,Actio
 1741            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 13, OwnerActionId = 1,Actio
 1742            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 87, OwnerActionId = 3,Actio
 743
 1744            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 14, OwnerActionId = 1,Actio
 1745            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 15, OwnerActionId = 1,Actio
 746
 1747            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 16, OwnerActionId = 2,Actio
 1748            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 17, OwnerActionId = 2,Actio
 1749            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 83, OwnerActionId = 2,Actio
 1750            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 103, OwnerActionId = 2,Acti
 1751            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 18, OwnerActionId = 3,Actio
 1752            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 158, OwnerActionId = 3,Acti
 1753            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 104, OwnerActionId = 3,Acti
 754
 1755            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 19, OwnerActionId = 1,Actio
 1756            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 45, OwnerActionId = 1,Actio
 1757            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 20, OwnerActionId = 1,Actio
 1758            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 136, OwnerActionId = 1,Acti
 1759            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 21, OwnerActionId = 1,Actio
 1760            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 22, OwnerActionId = 2,Actio
 1761            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 23, OwnerActionId = 3,Actio
 1762            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 137, OwnerActionId = 3,Acti
 763
 1764            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 24, OwnerActionId = 1,Actio
 1765            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 25, OwnerActionId = 1,Actio
 1766            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 88, OwnerActionId = 1,Actio
 1767            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 138, OwnerActionId = 1,Acti
 1768            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 26, OwnerActionId = 2,Actio
 1769            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 27, OwnerActionId = 2,Actio
 1770            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 43, OwnerActionId = 2,Actio
 1771            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 28, OwnerActionId = 3,Actio
 1772            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 139, OwnerActionId = 3,Acti
 773
 1774            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 29, OwnerActionId = 1,Actio
 1775            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 30, OwnerActionId = 1,Actio
 1776            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 34, OwnerActionId = 1,Actio
 1777            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 89, OwnerActionId = 1,Actio
 1778            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 140, OwnerActionId = 1,Acti
 1779            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 31, OwnerActionId = 2,Actio
 1780            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 35, OwnerActionId = 2,Actio
 1781            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 44, OwnerActionId = 2,Actio
 1782            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 32, OwnerActionId = 2,Actio
 1783            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 33, OwnerActionId = 2,Actio
 1784            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 98, OwnerActionId = 3,Actio
 1785            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 97, OwnerActionId = 3,Actio
 1786            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 141, OwnerActionId = 3,Acti
 787
 1788            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 36, OwnerActionId = 1,Actio
 1789            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 37, OwnerActionId = 1,Actio
 1790            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 90, OwnerActionId = 1,Actio
 1791            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 142, OwnerActionId = 1,Acti
 1792            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 38, OwnerActionId = 2,Actio
 1793            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 39, OwnerActionId = 2,Actio
 1794            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 81, OwnerActionId = 2,Actio
 1795            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 40, OwnerActionId = 3,Actio
 1796            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 143, OwnerActionId = 3,Acti
 797
 1798            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 41, OwnerActionId = 1,Actio
 1799            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 42, OwnerActionId = 1,Actio
 1800            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 144, OwnerActionId = 1,Acti
 1801            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 46, OwnerActionId = 2,Actio
 1802            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 47, OwnerActionId = 3,Actio
 1803            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 145, OwnerActionId = 3,Acti
 804
 1805            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 48, OwnerActionId = 1,Actio
 1806            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 49, OwnerActionId = 1,Actio
 1807            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 91, OwnerActionId = 1,Actio
 1808            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 82, OwnerActionId = 1,Actio
 1809            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 84, OwnerActionId = 1,Actio
 1810            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 146, OwnerActionId = 1,Acti
 1811            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 50, OwnerActionId = 2,Actio
 1812            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 51, OwnerActionId = 2,Actio
 1813            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 52, OwnerActionId = 3,Actio
 1814            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 53, OwnerActionId = 3,Actio
 1815            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 147, OwnerActionId = 3,Acti
 816
 1817            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 54, OwnerActionId = 1,Actio
 1818            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 55, OwnerActionId = 1,Actio
 1819            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 148, OwnerActionId = 1,Acti
 1820            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 56, OwnerActionId = 2,Actio
 1821            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 57, OwnerActionId = 2,Actio
 1822            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 58, OwnerActionId = 3,Actio
 1823            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 92, OwnerActionId = 3,Actio
 1824            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 149, OwnerActionId = 3,Acti
 825
 1826            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 59, OwnerActionId = 1,Actio
 1827            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 60, OwnerActionId = 1,Actio
 1828            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 150, OwnerActionId = 1,Acti
 1829            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 61, OwnerActionId = 2,Actio
 1830            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 62, OwnerActionId = 2,Actio
 1831            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 63, OwnerActionId = 3,Actio
 1832            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 93, OwnerActionId = 3,Actio
 1833            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 151, OwnerActionId = 3,Acti
 834
 1835            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 64, OwnerActionId = 1,Actio
 1836            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 65, OwnerActionId = 1,Actio
 1837            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 152, OwnerActionId = 1,Acti
 1838            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 66, OwnerActionId = 2,Actio
 1839            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 67, OwnerActionId = 2,Actio
 1840            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 68, OwnerActionId = 3,Actio
 1841            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 94, OwnerActionId = 3,Actio
 1842            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 69, OwnerActionId = 3,Actio
 1843            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 70, OwnerActionId = 3,Actio
 1844            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 153, OwnerActionId = 3,Acti
 845
 1846            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 71, OwnerActionId = 1,Actio
 1847            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 72, OwnerActionId = 1,Actio
 1848            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 154, OwnerActionId = 1,Acti
 1849            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 73, OwnerActionId = 2,Actio
 1850            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 74, OwnerActionId = 2,Actio
 1851            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 75, OwnerActionId = 3,Actio
 1852            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 95, OwnerActionId = 3,Actio
 1853            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 155, OwnerActionId = 3,Acti
 854
 1855            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 76, OwnerActionId = 1,Actio
 1856            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 77, OwnerActionId = 1,Actio
 1857            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 156, OwnerActionId = 1,Acti
 1858            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 78, OwnerActionId = 2,Actio
 1859            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 79, OwnerActionId = 2,Actio
 1860            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 80, OwnerActionId = 3,Actio
 1861            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 96, OwnerActionId = 3,Actio
 1862            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 157, OwnerActionId = 3,Acti
 863
 1864            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 99, OwnerActionId = 1,Actio
 1865            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 100, OwnerActionId = 1,Acti
 1866            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 101, OwnerActionId = 3,Acti
 1867            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 102, OwnerActionId = 1,Acti
 868
 1869            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 105, OwnerActionId = 1,Acti
 1870            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 106, OwnerActionId = 3,Acti
 1871            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 107, OwnerActionId = 1,Acti
 1872            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 108, OwnerActionId = 3,Acti
 873
 1874            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 109, OwnerActionId = 1,Acti
 1875            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 110, OwnerActionId = 2,Acti
 1876            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 111, OwnerActionId = 3,Acti
 1877            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 112, OwnerActionId = 1,Acti
 1878            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 113, OwnerActionId = 3,Acti
 879
 1880            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 114, OwnerActionId = 1, Ac
 1881            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 115, OwnerActionId = 2, Ac
 882
 1883            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 117, OwnerActionId = 1, Ac
 1884            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 118, OwnerActionId = 2, Ac
 1885            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 119, OwnerActionId = 2, Ac
 1886            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 120, OwnerActionId = 3, Ac
 887
 1888            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 121, OwnerActionId = 1, Ac
 1889            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 122, OwnerActionId = 2, Ac
 1890            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 123, OwnerActionId = 3, Ac
 891
 1892            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 124, OwnerActionId = 1, Ac
 1893            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 125, OwnerActionId = 2, Ac
 1894            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 126, OwnerActionId = 3, Ac
 895
 1896            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 127, OwnerActionId = 1, Ac
 1897            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 128, OwnerActionId = 2, Ac
 1898            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 129, OwnerActionId = 3, Ac
 899
 1900            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 130, OwnerActionId = 1, Ac
 1901            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 131, OwnerActionId = 2, Ac
 1902            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 132, OwnerActionId = 3, Ac
 903
 1904            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 133, OwnerActionId = 1, Ac
 1905            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 134, OwnerActionId = 2, Ac
 1906            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 135, OwnerActionId = 3, Ac
 907
 1908            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 159, OwnerActionId = 1, Act
 1909            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 160, OwnerActionId = 1,Acti
 1910            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 161, OwnerActionId = 1,Acti
 1911            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 162, OwnerActionId = 2,Acti
 1912            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 163, OwnerActionId = 3,Acti
 1913            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction {Id = 164, OwnerActionId = 3, Act
 914
 1915            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 165, OwnerActionId = 1, Ac
 1916            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 166, OwnerActionId = 1, Ac
 1917            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 167, OwnerActionId = 3, Ac
 1918            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 168, OwnerActionId = 1, Ac
 1919            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 169, OwnerActionId = 1, Ac
 1920            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 170, OwnerActionId = 3, Ac
 1921            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 171, OwnerActionId = 1, Ac
 1922            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 172, OwnerActionId = 3, Ac
 1923            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 173, OwnerActionId = 3, Ac
 1924            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 174, OwnerActionId = 2, Ac
 1925            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 175, OwnerActionId = 3, Ac
 1926            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 176, OwnerActionId = 1, Ac
 1927            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 177, OwnerActionId = 2, Ac
 1928            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 178, OwnerActionId = 3, Ac
 1929            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 179, OwnerActionId = 1, Ac
 1930            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 180, OwnerActionId = 2, Ac
 1931            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 181, OwnerActionId = 2, Ac
 1932            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 182, OwnerActionId = 3, Ac
 1933            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 183, OwnerActionId = 1, Ac
 1934            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 184, OwnerActionId = 2, Ac
 1935            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 185, OwnerActionId = 3, Ac
 1936            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 186, OwnerActionId = 1, Ac
 1937            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 187, OwnerActionId = 2, Ac
 1938            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 188, OwnerActionId = 3, Ac
 1939            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 189, OwnerActionId = 1, Ac
 1940            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 190, OwnerActionId = 2, Ac
 1941            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 191, OwnerActionId = 3, Ac
 1942            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 192, OwnerActionId = 1, Ac
 1943            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 193, OwnerActionId = 2, Ac
 1944            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 194, OwnerActionId = 3, Ac
 1945            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 195, OwnerActionId = 1, Ac
 1946            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 196, OwnerActionId = 2, Ac
 1947            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 197, OwnerActionId = 3, Ac
 1948            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 198, OwnerActionId = 1, Ac
 1949            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 199, OwnerActionId = 2, Ac
 1950            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 200, OwnerActionId = 3, Ac
 1951            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 201, OwnerActionId = 1, Ac
 1952            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 202, OwnerActionId = 2, Ac
 1953            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 203, OwnerActionId = 3, Ac
 1954            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 204, OwnerActionId = 1, Ac
 1955            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 205, OwnerActionId = 2, Ac
 1956            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 206, OwnerActionId = 3, Ac
 1957            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 207, OwnerActionId = 1, Ac
 1958            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 208, OwnerActionId = 2, Ac
 1959            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 209, OwnerActionId = 3, Ac
 1960            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 210, OwnerActionId = 1, Ac
 1961            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 211, OwnerActionId = 2, Ac
 1962            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 212, OwnerActionId = 3, Ac
 963
 964
 1965            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 213, OwnerActionId = 1, Ac
 1966            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 214, OwnerActionId = 1, Ac
 1967            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 215, OwnerActionId = 1, Ac
 1968            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 216, OwnerActionId = 1, Ac
 1969            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 217, OwnerActionId = 1, Ac
 1970            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 218, OwnerActionId = 1, Ac
 1971            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 219, OwnerActionId = 2, Ac
 1972            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 220, OwnerActionId = 2, Ac
 1973            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 221, OwnerActionId = 2, Ac
 1974            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 222, OwnerActionId = 2, Ac
 1975            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 223, OwnerActionId = 2, Ac
 1976            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 224, OwnerActionId = 3, Ac
 1977            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 225, OwnerActionId = 3, Ac
 1978            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 226, OwnerActionId = 3, Ac
 1979            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 227, OwnerActionId = 3, Ac
 980
 1981            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 228, OwnerActionId = 2, Ac
 982
 1983            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 229, OwnerActionId = 1, Ac
 1984            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 230, OwnerActionId = 2, Ac
 1985            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 231, OwnerActionId = 3, Ac
 1986            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 232, OwnerActionId = 1, Ac
 1987            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 233, OwnerActionId = 2, Ac
 1988            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 234, OwnerActionId = 3, Ac
 989
 1990            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 235, OwnerActionId = 1, Ac
 1991            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 236, OwnerActionId = 2, Ac
 1992            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 237, OwnerActionId = 3, Ac
 993
 1994            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 238, OwnerActionId = 1, Ac
 1995            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 239, OwnerActionId = 2, Ac
 1996            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 240, OwnerActionId = 3, Ac
 997
 1998            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 241, OwnerActionId = 1, Ac
 1999            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 242, OwnerActionId = 2, Ac
 11000            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 243, OwnerActionId = 3, Ac
 1001
 11002            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 244, OwnerActionId = 1, Ac
 11003            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 245, OwnerActionId = 2, Ac
 11004            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 246, OwnerActionId = 3, Ac
 1005
 11006            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 247, OwnerActionId = 1, Ac
 11007            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 248, OwnerActionId = 2, Ac
 11008            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 249, OwnerActionId = 3, Ac
 1009
 11010            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 250, OwnerActionId = 1, Ac
 11011            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 251, OwnerActionId = 2, Ac
 11012            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 252, OwnerActionId = 3, Ac
 1013
 11014            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 253, OwnerActionId = 1, Ac
 11015            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 254, OwnerActionId = 2, Ac
 11016            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 255, OwnerActionId = 3, Ac
 1017
 11018            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 256, OwnerActionId = 1, Ac
 11019            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 257, OwnerActionId = 2, Ac
 11020            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 258, OwnerActionId = 3, Ac
 1021
 11022            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 259, OwnerActionId = 1, Ac
 11023            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 260, OwnerActionId = 2, Ac
 11024            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 261, OwnerActionId = 3, Ac
 1025
 11026            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 262, OwnerActionId = 1, Ac
 11027            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 263, OwnerActionId = 2, Ac
 11028            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 264, OwnerActionId = 3, Ac
 1029
 11030            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 265, OwnerActionId = 1, Ac
 11031            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 266, OwnerActionId = 2, Ac
 11032            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 267, OwnerActionId = 3, Ac
 1033
 11034            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 268, OwnerActionId = 1, Ac
 11035            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 269, OwnerActionId = 2, Ac
 11036            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 270, OwnerActionId = 3, Ac
 1037
 11038            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 271, OwnerActionId = 1, Ac
 11039            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 272, OwnerActionId = 2, Ac
 11040            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 273, OwnerActionId = 3, Ac
 1041
 11042            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 274, OwnerActionId = 1, Ac
 11043            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 275, OwnerActionId = 2, Ac
 11044            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 276, OwnerActionId = 3, Ac
 1045
 11046            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 277, OwnerActionId = 1, Ac
 11047            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 278, OwnerActionId = 2, Ac
 11048            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 279, OwnerActionId = 3, Ac
 1049
 11050            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 280, OwnerActionId = 1, Ac
 11051            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 281, OwnerActionId = 2, Ac
 11052            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 282, OwnerActionId = 3, Ac
 1053
 11054            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 283, OwnerActionId = 1, Ac
 11055            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 284, OwnerActionId = 2, Ac
 11056            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 285, OwnerActionId = 3, Ac
 1057
 11058            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 286, OwnerActionId = 1, Ac
 11059            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 287, OwnerActionId = 2, Ac
 11060            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 288, OwnerActionId = 3, Ac
 1061
 11062            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 289, OwnerActionId = 1, Ac
 11063            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 290, OwnerActionId = 2, Ac
 11064            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 291, OwnerActionId = 3, Ac
 1065
 11066            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 292, OwnerActionId = 1, Ac
 11067            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 293, OwnerActionId = 2, Ac
 11068            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 294, OwnerActionId = 3, Ac
 1069
 11070            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 295, OwnerActionId = 1, Ac
 11071            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 296, OwnerActionId = 2, Ac
 11072            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 297, OwnerActionId = 3, Ac
 1073
 11074            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 298, OwnerActionId = 1, Ac
 11075            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 299, OwnerActionId = 2, Ac
 11076            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 300, OwnerActionId = 3, Ac
 1077
 1078
 11079            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 301, OwnerActionId = 1, Ac
 11080            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 302, OwnerActionId = 2, Ac
 11081            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 303, OwnerActionId = 3, Ac
 1082
 11083            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 304, OwnerActionId = 1, Ac
 11084            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 305, OwnerActionId = 2, Ac
 11085            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 306, OwnerActionId = 3, Ac
 1086
 11087            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 307, OwnerActionId = 1, Ac
 11088            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 308, OwnerActionId = 2, Ac
 11089            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 309, OwnerActionId = 3, Ac
 1090
 11091            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 310, OwnerActionId = 1, Ac
 11092            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 311, OwnerActionId = 2, Ac
 11093            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 312, OwnerActionId = 3, Ac
 1094
 11095            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 313, OwnerActionId = 1, Ac
 11096            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 314, OwnerActionId = 2, Ac
 11097            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 315, OwnerActionId = 3, Ac
 1098
 11099            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 316, OwnerActionId = 1, Ac
 11100            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 317, OwnerActionId = 2, Ac
 11101            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 318, OwnerActionId = 3, Ac
 1102
 11103            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 319, OwnerActionId = 1, Ac
 11104            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 320, OwnerActionId = 2, Ac
 11105            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 321, OwnerActionId = 3, Ac
 1106
 11107            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 322, OwnerActionId = 1, Ac
 11108            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 323, OwnerActionId = 2, Ac
 11109            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 324, OwnerActionId = 3, Ac
 1110
 11111            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 325, OwnerActionId = 3, Ac
 11112            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 326, OwnerActionId = 3, Ac
 11113            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 327, OwnerActionId = 3, Ac
 11114            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 328, OwnerActionId = 3, Ac
 11115            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 329, OwnerActionId = 3, Ac
 11116            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 330, OwnerActionId = 3, Ac
 1117
 11118            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 331, OwnerActionId = 3, Ac
 11119            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 332, OwnerActionId = 2, Ac
 11120            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 333, OwnerActionId = 3, Ac
 11121            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 334, OwnerActionId = 3, Ac
 11122            modelBuilder.Entity<MovementRouteAction>().HasData(new MovementRouteAction { Id = 335, OwnerActionId = 3, Ac
 1123
 1124
 11125            modelBuilder.Entity<FrontAction>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 11126            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 1, Name = "viewOrderDraft", Description = 
 11127            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 2, Name = "viewPricing", Description = "Ра
 11128            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 3, Name = "viewNotifications", Description
 11129            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 4, Name = "viewShipments", Description = "
 11130            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 5, Name = "viewSupport", Description = "Ра
 11131            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 6, Name = "viewAnalytics", Description = "
 11132            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 7, Name = "viewRests", Description = "Разр
 11133            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 8, Name = "viewOrders", Description = "Раз
 11134            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 9, Name = "viewUser", Description = "Разре
 11135            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 10, Name = "viewSelectionParameters", Desc
 11136            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 11, Name = "viewShowcase", Description = "
 11137            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 12, Name = "viewSystemManagement", Descrip
 11138            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 13, Name = "viewSettings", Description = "
 11139            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 14, Name = "viewDepartments", Description 
 11140            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 15, Name = "viewOrganisationPaymentAccount
 11141            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 16, Name = "viewNomenclature", Description
 11142            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 17, Name = "viewBrands", Description = "Ра
 11143            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 18, Name = "viewGoodsHierarchy", Descripti
 11144            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 19, Name = "addDepartment", Description = 
 11145            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 20, Name = "editContracts", Description = 
 11146            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 21, Name = "deleteContracts", Description 
 11147            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 22, Name = "viewAdministration", Descripti
 11148            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 23, Name = "editGoodHierarchy", Descriptio
 11149            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 24, Name = "editBrands", Description = "Ра
 11150            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 25, Name = "editNomenclature", Description
 11151            modelBuilder.Entity<FrontAction>().HasData(new FrontAction { Id = 26, Name = "viewAnonymousCache", Descripti
 1152
 11153            modelBuilder.Entity<ControlAccess>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 11154            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 26, RoleId = (long)1, ActionId = (long
 11155            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 27, RoleId = (long)1, ActionId = (long
 11156            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 28, RoleId = (long)1, ActionId = (long
 11157            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 29, RoleId = (long)1, ActionId = (long
 11158            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 30, RoleId = (long)1, ActionId = (long
 11159            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 31, RoleId = (long)1, ActionId = (long
 11160            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 32, RoleId = (long)1, ActionId = (long
 11161            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 33, RoleId = (long)1, ActionId = (long
 11162            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 34, RoleId = (long)2, ActionId = (long
 11163            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 35, RoleId = (long)2, ActionId = (long
 11164            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 36, RoleId = (long)2, ActionId = (long
 11165            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 37, RoleId = (long)2, ActionId = (long
 11166            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 38, RoleId = (long)2, ActionId = (long
 11167            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 39, RoleId = (long)2, ActionId = (long
 11168            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 40, RoleId = (long)2, ActionId = (long
 11169            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 41, RoleId = (long)2, ActionId = (long
 11170            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 42, RoleId = (long)6, ActionId = (long
 11171            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 43, RoleId = (long)6, ActionId = (long
 11172            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 44, RoleId = (long)6, ActionId = (long
 11173            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 45, RoleId = (long)6, ActionId = (long
 11174            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 46, RoleId = (long)6, ActionId = (long
 11175            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 47, RoleId = (long)6, ActionId = (long
 11176            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 48, RoleId = (long)6, ActionId = (long
 11177            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 49, RoleId = (long)7, ActionId = (long
 11178            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 50, RoleId = (long)7, ActionId = (long
 11179            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 51, RoleId = (long)7, ActionId = (long
 11180            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 52, RoleId = (long)7, ActionId = (long
 11181            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 53, RoleId = (long)7, ActionId = (long
 11182            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 54, RoleId = (long)7, ActionId = (long
 11183            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 55, RoleId = (long)7, ActionId = (long
 11184            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 56, RoleId = (long)8, ActionId = (long
 11185            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 57, RoleId = (long)8, ActionId = (long
 11186            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 58, RoleId = (long)8, ActionId = (long
 11187            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 59, RoleId = (long)8, ActionId = (long
 11188            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 60, RoleId = (long)8, ActionId = (long
 11189            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 61, RoleId = (long)8, ActionId = (long
 11190            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 62, RoleId = (long)8, ActionId = (long
 11191            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 63, RoleId = (long)3, ActionId = (long
 11192            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 64, RoleId = (long)3, ActionId = (long
 11193            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 65, RoleId = (long)3, ActionId = (long
 11194            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 66, RoleId = (long)3, ActionId = (long
 11195            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 67, RoleId = (long)3, ActionId = (long
 11196            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 69, RoleId = (long)4, ActionId = (long
 11197            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 70, RoleId = (long)4, ActionId = (long
 11198            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 71, RoleId = (long)4, ActionId = (long
 11199            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 72, RoleId = (long)4, ActionId = (long
 11200            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 73, RoleId = (long)4, ActionId = (long
 11201            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 75, RoleId = (long)5, ActionId = (long
 11202            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 76, RoleId = (long)5, ActionId = (long
 11203            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 77, RoleId = (long)5, ActionId = (long
 11204            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 78, RoleId = (long)5, ActionId = (long
 11205            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 79, RoleId = (long)5, ActionId = (long
 11206            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 82, RoleId = (long)9, ActionId = (long
 11207            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 83, RoleId = (long)1, ActionId = (long
 11208            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 84, RoleId = (long)2, ActionId = (long
 11209            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 85, RoleId = (long)3, ActionId = (long
 11210            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 86, RoleId = (long)4, ActionId = (long
 11211            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 87, RoleId = (long)5, ActionId = (long
 11212            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 88, RoleId = (long)6, ActionId = (long
 11213            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 89, RoleId = (long)7, ActionId = (long
 11214            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 90, RoleId = (long)8, ActionId = (long
 11215            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 95, RoleId = (long)7, ActionId = (long
 11216            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 96, RoleId = (long)7, ActionId = (long
 11217            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 97, RoleId = (long)7, ActionId = (long
 11218            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 98, RoleId = (long)1, ActionId = (long
 11219            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 99, RoleId = (long)1, ActionId = (long
 11220            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 100, RoleId = (long)1, ActionId = (lon
 11221            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 101, RoleId = (long)2, ActionId = (lon
 11222            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 102, RoleId = (long)2, ActionId = (lon
 11223            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 103, RoleId = (long)2, ActionId = (lon
 11224            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 104, RoleId = (long)3, ActionId = (lon
 11225            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 105, RoleId = (long)3, ActionId = (lon
 11226            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 106, RoleId = (long)3, ActionId = (lon
 11227            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 107, RoleId = (long)1, ActionId = (lon
 11228            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 108, RoleId = (long)2, ActionId = (lon
 11229            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 109, RoleId = (long)3, ActionId = (lon
 11230            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 110, RoleId = (long)7, ActionId = (lon
 11231            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 111, RoleId = (long)6, ActionId = (lon
 11232            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 112, RoleId = (long)6, ActionId = (lon
 11233            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 113, RoleId = (long)6, ActionId = (lon
 11234            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 114, RoleId = (long)6, ActionId = (lon
 11235            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 115, RoleId = (long)3, ActionId = (lon
 11236            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 116, RoleId = (long)4, ActionId = (lon
 11237            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 117, RoleId = (long)5, ActionId = (lon
 11238            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 118, RoleId = (long)3, ActionId = (lon
 11239            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 119, RoleId = (long)4, ActionId = (lon
 11240            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 120, RoleId = (long)4, ActionId = (lon
 11241            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 121, RoleId = (long)4, ActionId = (lon
 11242            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 122, RoleId = (long)5, ActionId = (lon
 11243            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 123, RoleId = (long)5, ActionId = (lon
 11244            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 124, RoleId = (long)5, ActionId = (lon
 11245            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 127, RoleId = (long)3, ActionId = (lon
 11246            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 130, RoleId = (long)6, ActionId = (lon
 11247            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 131, RoleId = (long)1, ActionId = (lon
 11248            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 132, RoleId = (long)3, ActionId = (lon
 11249            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 133, RoleId = (long)4, ActionId = (lon
 11250            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 134, RoleId = (long)5, ActionId = (lon
 11251            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 135, RoleId = (long)6, ActionId = (lon
 11252            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 136, RoleId = (long)7, ActionId = (lon
 11253            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 137, RoleId = (long)8, ActionId = (lon
 11254            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 138, RoleId = (long)1, ActionId = (lon
 11255            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 139, RoleId = (long)3, ActionId = (lon
 11256            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 140, RoleId = (long)4, ActionId = (lon
 11257            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 141, RoleId = (long)5, ActionId = (lon
 11258            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 142, RoleId = (long)6, ActionId = (lon
 11259            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 143, RoleId = (long)7, ActionId = (lon
 11260            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 144, RoleId = (long)8, ActionId = (lon
 11261            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 145, RoleId = (long)1, ActionId = (lon
 11262            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 146, RoleId = (long)3, ActionId = (lon
 11263            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 147, RoleId = (long)4, ActionId = (lon
 11264            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 148, RoleId = (long)5, ActionId = (lon
 11265            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 149, RoleId = (long)6, ActionId = (lon
 11266            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 150, RoleId = (long)7, ActionId = (lon
 11267            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 151, RoleId = (long)8, ActionId = (lon
 11268            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 152, RoleId = (long)1, ActionId = (lon
 11269            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 153, RoleId = (long)3, ActionId = (lon
 11270            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 154, RoleId = (long)4, ActionId = (lon
 11271            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 155, RoleId = (long)5, ActionId = (lon
 11272            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 156, RoleId = (long)6, ActionId = (lon
 11273            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 157, RoleId = (long)7, ActionId = (lon
 11274            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 158, RoleId = (long)8, ActionId = (lon
 11275            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 159, RoleId = (long)1, ActionId = (lon
 11276            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 160, RoleId = (long)3, ActionId = (lon
 11277            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 161, RoleId = (long)4, ActionId = (lon
 11278            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 162, RoleId = (long)5, ActionId = (lon
 11279            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 163, RoleId = (long)6, ActionId = (lon
 11280            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 164, RoleId = (long)7, ActionId = (lon
 11281            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 165, RoleId = (long)8, ActionId = (lon
 11282            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 166, RoleId = (long)1, ActionId = (lon
 11283            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 167, RoleId = (long)2, ActionId = (lon
 11284            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 168, RoleId = (long)3, ActionId = (lon
 11285            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 169, RoleId = (long)4, ActionId = (lon
 11286            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 170, RoleId = (long)5, ActionId = (lon
 11287            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 171, RoleId = (long)6, ActionId = (lon
 11288            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 172, RoleId = (long)8, ActionId = (lon
 11289            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 173, RoleId = (long)1, ActionId = (lon
 11290            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 174, RoleId = (long)2, ActionId = (lon
 11291            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 175, RoleId = (long)1, ActionId = (lon
 11292            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 176, RoleId = (long)1, ActionId = (lon
 11293            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 177, RoleId = (long)1, ActionId = (lon
 11294            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 179, RoleId = (long)9, ActionId = (lon
 11295            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 180, RoleId = (long)3, ActionId = (lon
 11296            modelBuilder.Entity<ControlAccess>().HasData(new ControlAccess { Id = 181, RoleId = (long)4, ActionId = (lon
 1297
 11298            modelBuilder.Entity<Configuration>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 11299            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 3, Section = "GlobalCorsSettings", Key
 11300            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 4, Section = "CrmSettings", Key = "Syn
 11301            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 10, Section = "EmailSettings", Key = "
 11302            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 11, Section = "EmailSettings", Key = "
 11303            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 12, Section = "EmailSettings", Key = "
 11304            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 13, Section = "EmailSettings", Key = "
 11305            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 14, Section = "EmailSettings", Key = "
 11306            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 15, Section = "WalletSettings", Key = 
 11307            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 16, Section = "WalletSettings", Key = 
 11308            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 17, Section = "WalletSettings", Key = 
 11309            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 18, Section = "WalletSettings", Key = 
 11310            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 22, Section = "WalletSettings", Key = 
 11311            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 23, Section = "WalletSettings", Key = 
 11312            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 24, Section = "WalletSettings", Key = 
 11313            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 25, Section = "WalletSettings", Key = 
 11314            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 26, Section = "AuthenticationSettings"
 11315            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 27, Section = "AuthenticationSettings"
 11316            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 28, Section = "FeedsSettings", Key = "
 11317            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 29, Section = "FeedsSettings", Key = "
 11318            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 30, Section = "FeedsSettings", Key = "
 11319            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 31, Section = "ImageSettings", Key = "
 11320            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 32, Section = "ImageSettings", Key = "
 11321            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 33, Section = "ImageSettings", Key = "
 11322            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 34, Section = "MovementAttachmentSetti
 11323            modelBuilder.Entity<Configuration>().HasData(new Configuration { Id = 35, Section = "MovementAttachmentSetti
 1324
 11325            modelBuilder.Entity<WorkSchedule>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 11326            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 1, BeginTime = DateTime.Parse("2020-05-1
 11327            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 2, BeginTime = DateTime.Parse("2020-05-1
 11328            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 3, BeginTime = DateTime.Parse("2020-05-2
 11329            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 4, BeginTime = DateTime.Parse("2020-05-2
 11330            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 5, BeginTime = DateTime.Parse("2020-05-2
 11331            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 6, BeginTime = DateTime.Parse("2020-05-2
 11332            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 7, BeginTime = DateTime.Parse("2020-05-2
 11333            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 8, BeginTime = DateTime.Parse("2020-05-2
 11334            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 9, BeginTime = DateTime.Parse("2020-05-2
 11335            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 10, BeginTime = DateTime.Parse("2020-05-
 11336            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 11, BeginTime = DateTime.Parse("2020-05-
 11337            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 12, BeginTime = DateTime.Parse("2020-05-
 11338            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 13, BeginTime = DateTime.Parse("2020-05-
 11339            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 14, BeginTime = DateTime.Parse("2020-05-
 11340            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 15, BeginTime = DateTime.Parse("2020-06-
 11341            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 16, BeginTime = DateTime.Parse("2020-06-
 11342            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 17, BeginTime = DateTime.Parse("2020-06-
 11343            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 18, BeginTime = DateTime.Parse("2020-06-
 11344            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 19, BeginTime = DateTime.Parse("2020-06-
 11345            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 20, BeginTime = DateTime.Parse("2020-06-
 11346            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 21, BeginTime = DateTime.Parse("2020-06-
 11347            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 22, BeginTime = DateTime.Parse("2020-06-
 11348            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 23, BeginTime = DateTime.Parse("2020-06-
 11349            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 24, BeginTime = DateTime.Parse("2020-06-
 11350            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 25, BeginTime = DateTime.Parse("2020-06-
 11351            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 26, BeginTime = DateTime.Parse("2020-06-
 11352            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 27, BeginTime = DateTime.Parse("2020-06-
 11353            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 28, BeginTime = DateTime.Parse("2020-06-
 11354            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 29, BeginTime = DateTime.Parse("2020-06-
 11355            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 30, BeginTime = DateTime.Parse("2020-06-
 11356            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 31, BeginTime = DateTime.Parse("2020-06-
 11357            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 32, BeginTime = DateTime.Parse("2020-06-
 11358            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 33, BeginTime = DateTime.Parse("2020-06-
 11359            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 34, BeginTime = DateTime.Parse("2020-06-
 11360            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 35, BeginTime = DateTime.Parse("2020-06-
 11361            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 36, BeginTime = DateTime.Parse("2020-06-
 11362            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 37, BeginTime = DateTime.Parse("2020-06-
 11363            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 38, BeginTime = DateTime.Parse("2020-06-
 11364            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 39, BeginTime = DateTime.Parse("2020-06-
 11365            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 40, BeginTime = DateTime.Parse("2020-06-
 11366            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 41, BeginTime = DateTime.Parse("2020-06-
 11367            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 42, BeginTime = DateTime.Parse("2020-06-
 11368            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 43, BeginTime = DateTime.Parse("2020-06-
 11369            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 44, BeginTime = DateTime.Parse("2020-06-
 11370            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 45, BeginTime = DateTime.Parse("2020-07-
 11371            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 46, BeginTime = DateTime.Parse("2020-07-
 11372            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 47, BeginTime = DateTime.Parse("2020-07-
 11373            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 48, BeginTime = DateTime.Parse("2020-07-
 11374            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 49, BeginTime = DateTime.Parse("2020-07-
 11375            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 50, BeginTime = DateTime.Parse("2020-07-
 11376            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 51, BeginTime = DateTime.Parse("2020-07-
 11377            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 52, BeginTime = DateTime.Parse("2020-07-
 11378            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 53, BeginTime = DateTime.Parse("2020-07-
 11379            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 54, BeginTime = DateTime.Parse("2020-07-
 11380            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 55, BeginTime = DateTime.Parse("2020-07-
 11381            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 56, BeginTime = DateTime.Parse("2020-07-
 11382            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 57, BeginTime = DateTime.Parse("2020-07-
 11383            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 58, BeginTime = DateTime.Parse("2020-07-
 11384            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 59, BeginTime = DateTime.Parse("2020-07-
 11385            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 60, BeginTime = DateTime.Parse("2020-07-
 11386            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 61, BeginTime = DateTime.Parse("2020-07-
 11387            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 62, BeginTime = DateTime.Parse("2020-07-
 11388            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 63, BeginTime = DateTime.Parse("2020-07-
 11389            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 64, BeginTime = DateTime.Parse("2020-07-
 11390            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 65, BeginTime = DateTime.Parse("2020-07-
 11391            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 66, BeginTime = DateTime.Parse("2020-07-
 11392            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 67, BeginTime = DateTime.Parse("2020-07-
 11393            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 68, BeginTime = DateTime.Parse("2020-07-
 11394            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 69, BeginTime = DateTime.Parse("2020-07-
 11395            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 70, BeginTime = DateTime.Parse("2020-07-
 11396            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 71, BeginTime = DateTime.Parse("2020-07-
 11397            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 72, BeginTime = DateTime.Parse("2020-07-
 11398            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 73, BeginTime = DateTime.Parse("2020-07-
 11399            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 74, BeginTime = DateTime.Parse("2020-07-
 11400            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 75, BeginTime = DateTime.Parse("2020-07-
 11401            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 76, BeginTime = DateTime.Parse("2020-08-
 11402            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 77, BeginTime = DateTime.Parse("2020-08-
 11403            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 78, BeginTime = DateTime.Parse("2020-08-
 11404            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 79, BeginTime = DateTime.Parse("2020-08-
 11405            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 80, BeginTime = DateTime.Parse("2020-08-
 11406            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 81, BeginTime = DateTime.Parse("2020-08-
 11407            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 82, BeginTime = DateTime.Parse("2020-08-
 11408            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 83, BeginTime = DateTime.Parse("2020-08-
 11409            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 84, BeginTime = DateTime.Parse("2020-08-
 11410            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 85, BeginTime = DateTime.Parse("2020-08-
 11411            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 86, BeginTime = DateTime.Parse("2020-08-
 11412            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 87, BeginTime = DateTime.Parse("2020-08-
 11413            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 88, BeginTime = DateTime.Parse("2020-08-
 11414            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 89, BeginTime = DateTime.Parse("2020-08-
 11415            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 90, BeginTime = DateTime.Parse("2020-08-
 11416            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 91, BeginTime = DateTime.Parse("2020-08-
 11417            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 92, BeginTime = DateTime.Parse("2020-08-
 11418            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 93, BeginTime = DateTime.Parse("2020-08-
 11419            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 94, BeginTime = DateTime.Parse("2020-08-
 11420            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 95, BeginTime = DateTime.Parse("2020-08-
 11421            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 96, BeginTime = DateTime.Parse("2020-08-
 11422            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 97, BeginTime = DateTime.Parse("2020-08-
 11423            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 98, BeginTime = DateTime.Parse("2020-08-
 11424            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 99, BeginTime = DateTime.Parse("2020-08-
 11425            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 100, BeginTime = DateTime.Parse("2020-08
 11426            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 101, BeginTime = DateTime.Parse("2020-08
 11427            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 102, BeginTime = DateTime.Parse("2020-08
 11428            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 103, BeginTime = DateTime.Parse("2020-08
 11429            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 104, BeginTime = DateTime.Parse("2020-08
 11430            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 105, BeginTime = DateTime.Parse("2020-08
 11431            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 106, BeginTime = DateTime.Parse("2020-08
 11432            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 107, BeginTime = DateTime.Parse("2020-09
 11433            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 108, BeginTime = DateTime.Parse("2020-09
 11434            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 109, BeginTime = DateTime.Parse("2020-09
 11435            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 110, BeginTime = DateTime.Parse("2020-09
 11436            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 111, BeginTime = DateTime.Parse("2020-09
 11437            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 112, BeginTime = DateTime.Parse("2020-09
 11438            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 113, BeginTime = DateTime.Parse("2020-09
 11439            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 114, BeginTime = DateTime.Parse("2020-09
 11440            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 115, BeginTime = DateTime.Parse("2020-09
 11441            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 116, BeginTime = DateTime.Parse("2020-09
 11442            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 117, BeginTime = DateTime.Parse("2020-09
 11443            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 118, BeginTime = DateTime.Parse("2020-09
 11444            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 119, BeginTime = DateTime.Parse("2020-09
 11445            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 120, BeginTime = DateTime.Parse("2020-09
 11446            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 121, BeginTime = DateTime.Parse("2020-09
 11447            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 122, BeginTime = DateTime.Parse("2020-09
 11448            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 123, BeginTime = DateTime.Parse("2020-09
 11449            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 124, BeginTime = DateTime.Parse("2020-09
 11450            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 125, BeginTime = DateTime.Parse("2020-09
 11451            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 126, BeginTime = DateTime.Parse("2020-09
 11452            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 127, BeginTime = DateTime.Parse("2020-09
 11453            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 128, BeginTime = DateTime.Parse("2020-09
 11454            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 129, BeginTime = DateTime.Parse("2020-09
 11455            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 130, BeginTime = DateTime.Parse("2020-09
 11456            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 131, BeginTime = DateTime.Parse("2020-09
 11457            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 132, BeginTime = DateTime.Parse("2020-09
 11458            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 133, BeginTime = DateTime.Parse("2020-09
 11459            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 134, BeginTime = DateTime.Parse("2020-09
 11460            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 135, BeginTime = DateTime.Parse("2020-09
 11461            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 136, BeginTime = DateTime.Parse("2020-09
 11462            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 137, BeginTime = DateTime.Parse("2020-10
 11463            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 138, BeginTime = DateTime.Parse("2020-10
 11464            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 139, BeginTime = DateTime.Parse("2020-10
 11465            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 140, BeginTime = DateTime.Parse("2020-10
 11466            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 141, BeginTime = DateTime.Parse("2020-10
 11467            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 142, BeginTime = DateTime.Parse("2020-10
 11468            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 143, BeginTime = DateTime.Parse("2020-10
 11469            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 144, BeginTime = DateTime.Parse("2020-10
 11470            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 145, BeginTime = DateTime.Parse("2020-10
 11471            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 146, BeginTime = DateTime.Parse("2020-10
 11472            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 147, BeginTime = DateTime.Parse("2020-10
 11473            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 148, BeginTime = DateTime.Parse("2020-10
 11474            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 149, BeginTime = DateTime.Parse("2020-10
 11475            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 150, BeginTime = DateTime.Parse("2020-10
 11476            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 151, BeginTime = DateTime.Parse("2020-10
 11477            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 152, BeginTime = DateTime.Parse("2020-10
 11478            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 153, BeginTime = DateTime.Parse("2020-10
 11479            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 154, BeginTime = DateTime.Parse("2020-10
 11480            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 155, BeginTime = DateTime.Parse("2020-10
 11481            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 156, BeginTime = DateTime.Parse("2020-10
 11482            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 157, BeginTime = DateTime.Parse("2020-10
 11483            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 158, BeginTime = DateTime.Parse("2020-10
 11484            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 159, BeginTime = DateTime.Parse("2020-10
 11485            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 160, BeginTime = DateTime.Parse("2020-10
 11486            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 161, BeginTime = DateTime.Parse("2020-10
 11487            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 162, BeginTime = DateTime.Parse("2020-10
 11488            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 163, BeginTime = DateTime.Parse("2020-10
 11489            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 164, BeginTime = DateTime.Parse("2020-10
 11490            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 165, BeginTime = DateTime.Parse("2020-10
 11491            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 166, BeginTime = DateTime.Parse("2020-10
 11492            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 167, BeginTime = DateTime.Parse("2020-10
 11493            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 168, BeginTime = DateTime.Parse("2020-11
 11494            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 169, BeginTime = DateTime.Parse("2020-11
 11495            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 170, BeginTime = DateTime.Parse("2020-11
 11496            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 171, BeginTime = DateTime.Parse("2020-11
 11497            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 172, BeginTime = DateTime.Parse("2020-11
 11498            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 173, BeginTime = DateTime.Parse("2020-11
 11499            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 174, BeginTime = DateTime.Parse("2020-11
 11500            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 175, BeginTime = DateTime.Parse("2020-11
 11501            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 176, BeginTime = DateTime.Parse("2020-11
 11502            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 177, BeginTime = DateTime.Parse("2020-11
 11503            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 178, BeginTime = DateTime.Parse("2020-11
 11504            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 179, BeginTime = DateTime.Parse("2020-11
 11505            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 180, BeginTime = DateTime.Parse("2020-11
 11506            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 181, BeginTime = DateTime.Parse("2020-11
 11507            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 182, BeginTime = DateTime.Parse("2020-11
 11508            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 183, BeginTime = DateTime.Parse("2020-11
 11509            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 184, BeginTime = DateTime.Parse("2020-11
 11510            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 185, BeginTime = DateTime.Parse("2020-11
 11511            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 186, BeginTime = DateTime.Parse("2020-11
 11512            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 187, BeginTime = DateTime.Parse("2020-11
 11513            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 188, BeginTime = DateTime.Parse("2020-11
 11514            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 189, BeginTime = DateTime.Parse("2020-11
 11515            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 190, BeginTime = DateTime.Parse("2020-11
 11516            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 191, BeginTime = DateTime.Parse("2020-11
 11517            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 192, BeginTime = DateTime.Parse("2020-11
 11518            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 193, BeginTime = DateTime.Parse("2020-11
 11519            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 194, BeginTime = DateTime.Parse("2020-11
 11520            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 195, BeginTime = DateTime.Parse("2020-11
 11521            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 196, BeginTime = DateTime.Parse("2020-11
 11522            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 197, BeginTime = DateTime.Parse("2020-11
 11523            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 198, BeginTime = DateTime.Parse("2020-12
 11524            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 199, BeginTime = DateTime.Parse("2020-12
 11525            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 200, BeginTime = DateTime.Parse("2020-12
 11526            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 201, BeginTime = DateTime.Parse("2020-12
 11527            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 202, BeginTime = DateTime.Parse("2020-12
 11528            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 203, BeginTime = DateTime.Parse("2020-12
 11529            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 204, BeginTime = DateTime.Parse("2020-12
 11530            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 205, BeginTime = DateTime.Parse("2020-12
 11531            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 206, BeginTime = DateTime.Parse("2020-12
 11532            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 207, BeginTime = DateTime.Parse("2020-12
 11533            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 208, BeginTime = DateTime.Parse("2020-12
 11534            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 209, BeginTime = DateTime.Parse("2020-12
 11535            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 210, BeginTime = DateTime.Parse("2020-12
 11536            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 211, BeginTime = DateTime.Parse("2020-12
 11537            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 212, BeginTime = DateTime.Parse("2020-12
 11538            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 213, BeginTime = DateTime.Parse("2020-12
 11539            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 214, BeginTime = DateTime.Parse("2020-12
 11540            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 215, BeginTime = DateTime.Parse("2020-12
 11541            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 216, BeginTime = DateTime.Parse("2020-12
 11542            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 217, BeginTime = DateTime.Parse("2020-12
 11543            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 218, BeginTime = DateTime.Parse("2020-12
 11544            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 219, BeginTime = DateTime.Parse("2020-12
 11545            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 220, BeginTime = DateTime.Parse("2020-12
 11546            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 221, BeginTime = DateTime.Parse("2020-12
 11547            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 222, BeginTime = DateTime.Parse("2020-12
 11548            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 223, BeginTime = DateTime.Parse("2020-12
 11549            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 224, BeginTime = DateTime.Parse("2020-12
 11550            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 225, BeginTime = DateTime.Parse("2020-12
 11551            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 226, BeginTime = DateTime.Parse("2020-12
 11552            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 227, BeginTime = DateTime.Parse("2020-12
 11553            modelBuilder.Entity<WorkSchedule>().HasData(new WorkSchedule { Id = 228, BeginTime = DateTime.Parse("2020-12
 1554
 1555
 11556            modelBuilder.Entity<DiscountColor>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 11557            modelBuilder.Entity<DiscountColor>().HasData(new DiscountColor { Id = 1, DiscountLevel= 20, LabelColor= "#EA
 11558            modelBuilder.Entity<DiscountColor>().HasData(new DiscountColor { Id = 2, DiscountLevel = 0, LabelColor = "#F
 1559
 11560            modelBuilder.Entity<ConfigurationsDataType>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 11561            modelBuilder.Entity<ConfigurationsDataType>().HasData(new ConfigurationsDataType { Id = 1, Name = "string", 
 11562            modelBuilder.Entity<ConfigurationsDataType>().HasData(new ConfigurationsDataType { Id = 2, Name = "int", Des
 11563            modelBuilder.Entity<ConfigurationsDataType>().HasData(new ConfigurationsDataType { Id = 3, Name = "datetime"
 11564            modelBuilder.Entity<ConfigurationsDataType>().HasData(new ConfigurationsDataType { Id = 4, Name = "bool", De
 11565            modelBuilder.Entity<ConfigurationsDataType>().HasData(new ConfigurationsDataType { Id = 5, Name = "guid", De
 1566
 11567            modelBuilder.Entity<TelegramNotification>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 11568            modelBuilder.Entity<TelegramNotification>().HasData(new TelegramNotification { Id = 1, HashTag = "#order", D
 11569            modelBuilder.Entity<TelegramNotification>().HasData(new TelegramNotification { Id = 2, HashTag = "#departmen
 11570            modelBuilder.Entity<TelegramNotification>().HasData(new TelegramNotification { Id = 3, HashTag = "#newclient
 1571
 11572            modelBuilder.Entity<DeliveryType>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 11573            modelBuilder.Entity<DeliveryType>().HasData(new DeliveryType { Id = 1, Name = "Доставка", Code = "Delivery",
 11574            modelBuilder.Entity<DeliveryType>().HasData(new DeliveryType { Id = 2, Name = "Самовывоз", Code = "Pickup", 
 1575
 11576            modelBuilder.Entity<DeliveryCostType>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 11577            modelBuilder.Entity<DeliveryCostType>().HasData(new DeliveryCostType { Id = 1, Name = "Сумма заказа", Code =
 11578            modelBuilder.Entity<DeliveryCostType>().HasData(new DeliveryCostType { Id = 2, Name = "Габаритные характерис
 1579
 11580            modelBuilder.Entity<Address>().HasData(new Address
 11581            {
 11582                Id = (long)-1,
 11583                Building = "1",
 11584                City = "Краснодар",
 11585                District = "Район 9",
 11586                FullAddress = "Краснодар 1",
 11587                House = "1",
 11588                Housing = "1",
 11589                Index = "1",
 11590                Locality = "1",
 11591                Office = "1",
 11592                Region = "1",
 11593                Street = "1",
 11594                CreationDateTime = dt,
 11595                ModificationDateTime = null,
 11596                GUID = guid,
 11597            });
 1598
 11599            modelBuilder.Entity<User>().HasData(new
 11600            {
 11601                Id = -1L,
 11602                ContragentId = (long?)-2,
 11603                Email = "EmbeddedSvetaAdmin@dd.com",
 11604                FirstName = "ServiceUser",
 11605                IsBlocked = false,
 11606                IsContactPerson = true,
 11607                LastName = "1",
 11608                Login = "svetaAdmin",
 11609                MiddleName = "1",
 11610                Phone = "1",
 11611                Position = "1",
 11612                IsDeleted = false,
 11613                CreationDateTime = dt,
 11614                ModificationDateTime = (DateTime?)null,
 11615                GUID = guid,
 11616                ExternalKey = new Guid("964c5734-ba34-43d0-8770-b22b665e9abd"), //не менять
 11617            });
 1618
 11619            modelBuilder.Entity<User>().HasData(new
 11620            {
 11621                Id = -2L,
 11622                ContragentId = (long?)-1,
 11623                Email = "EmbeddedAnonymUser@dd.com",
 11624                FirstName = "Demo User",
 11625                IsBlocked = false,
 11626                IsContactPerson = true,
 11627                LastName = "1",
 11628                Login = "Demo User",
 11629                MiddleName = "Demo User",
 11630                Phone = "1",
 11631                Position = "Демо УЗ, не удалять",
 11632                IsDeleted = false,
 11633                CreationDateTime = dt,
 11634                ModificationDateTime = (DateTime?)null,
 11635                GUID = guid,
 11636                ExternalKey = new Guid("3ce2ae32-9028-46b6-afbe-ad4feec0a016"), //не менять
 11637            });
 1638
 11639            modelBuilder.Entity<Contragent>().HasData(new
 11640            {
 11641                Id = (long)-1,
 11642                ChiefAccountant = "1",
 11643                ContragentsKindId = (long)2,
 11644                OwnerId = (long)-2,
 11645                Email = "example@email.ru",
 11646                FullName = "Общество с ограниченной ответственностью Демонстрационный контрагент",
 11647                Inn = "2",
 11648                JuridicAddressId = (long)-1,
 11649                Kpp = "2",
 11650                Ogrn = "2",
 11651                Okato = "1",
 11652                Okpo = "1",
 11653                Okved = "1",
 11654                PhoneNumber = "88008008000",
 11655                PhysicAddressId = (long)-1,
 11656                RecStateId = (long)2,
 11657                ShortName = "ООО Демонстрационный контрагент",
 11658                TaxSystemId = (long)1,
 11659                TaxSystemCRM = "",
 11660                WalletId = "",
 11661                WalletShortId = "",
 11662                WebSite = "www.example.com",
 11663                IsDeleted = false,
 11664                CreationDateTime = dt,
 11665                ModificationDateTime = (DateTime?)null,
 11666                GUID = guid,
 11667                ExternalKey = guid,
 11668            });
 1669
 11670            modelBuilder.Entity<Contragent>().HasData(new
 11671            {
 11672                Id = (long)-2,
 11673                ChiefAccountant = "1",
 11674                ContragentsKindId = (long)6,
 11675                OwnerId = (long)-1,
 11676                Email = "service@email.ru",
 11677                FullName = "ООО Сервисный контрагент",
 11678                Inn = "1",
 11679                JuridicAddressId = (long)-1,
 11680                Kpp = "1",
 11681                Ogrn = "1",
 11682                Okato = "1",
 11683                Okpo = "1",
 11684                Okved = "1",
 11685                PhoneNumber = "1",
 11686                PhysicAddressId = (long)-1,
 11687                RecStateId = (long)2,
 11688                ShortName = "Сервисный контрагент",
 11689                TaxSystemId = (long)1,
 11690                TaxSystemCRM = "",
 11691                WalletId="",
 11692                WalletShortId = "",
 11693                WebSite = "1",
 11694                IsDeleted = false,
 11695                CreationDateTime = dt,
 11696                ModificationDateTime = (DateTime?)null,
 11697                GUID = guid,
 11698                ExternalKey = guid,
 11699            });
 1700
 11701            modelBuilder.Entity<Department>().HasData(new
 11702            {
 11703                Id = (long)-2,
 11704                Name = "Сервисный департамент",
 11705                ActualAddressId = (long)-1,
 11706                PhoneNumber = "88008008000",
 11707                ContragentId = (long)-2,
 11708                Area = 100.0M,
 11709                Kpp = "4",
 11710                KindId = (long) 4,
 11711                StatusId = (long) 2,
 11712                IsDeleted = false,
 11713                CreationDateTime = dt,
 11714                ModificationDateTime = (DateTime?)null,
 11715                GUID = guid,
 11716                ExternalKey = guid
 11717            });
 1718
 11719            modelBuilder.Entity<Department>().HasData(new
 11720            {
 11721                Id = (long)-1,
 11722                Name = "Демонстрационный магазин №1",
 11723                ActualAddressId = (long)-1,
 11724                PhoneNumber = "88008008000",
 11725                ContragentId = (long)-1,
 11726                Area = 100.0M,
 11727                Kpp = "3",
 11728                KindId = (long) 2,
 11729                StatusId = (long) 2,
 11730                IsDeleted = false,
 11731                CreationDateTime = dt,
 11732                ModificationDateTime = (DateTime?)null,
 11733                GUID = guid,
 11734                ExternalKey = guid
 11735            });
 1736
 11737            modelBuilder.Entity<UserDepartment>().HasData(new
 11738            {
 11739                Id = (long)-1,
 11740                UserId = (long)-2,
 11741                DepartmentId = (long)-1,
 11742                CreationDateTime = dt,
 11743                GUID = guid,
 11744            });
 1745
 11746            modelBuilder.Entity<ExchangeToken>().Property(x => x.Id).HasIdentityOptions(startValue: 1000);
 11747            modelBuilder.Entity<ExchangeToken>().HasData(new
 11748            {
 11749                Id = (long)1,
 11750                DepartmentId = (long)-2,
 11751                Description = "Для синхронизации с CRM",
 11752                GUID = new Guid("8eea3bee-1f37-4654-a22f-f0b18b0c4588"), //не менять
 11753                CreationDateTime = dt,
 11754                IsDeleted = false,
 11755                RecStateId = (long)2,
 11756                ModificationDateTime = (DateTime?)null
 11757            });
 1758
 11759            base.OnModelCreating(modelBuilder);
 11760        }
 1761
 1762        public void NormalizeStringValues()
 01763        {
 01764            var entries = base.ChangeTracker.Entries().Where(x => x.Entity is BaseRecord && (x.State == EntityState.Modi
 01765            foreach (var entry in entries)
 01766            {
 01767                var propertyValues = entry.CurrentValues.Properties.Where(p => p.ClrType == typeof(string));
 1768
 01769                foreach (var prop in propertyValues)
 01770                {
 01771                    var val = (entry.CurrentValues[prop.Name]?.ToString() ?? string.Empty).Trim();
 1772
 01773                    if ((entry.Entity as BaseRecord).IsDeleted)
 01774                    {
 01775                        val = val.Corrupt((entry.Entity as BaseRecord).Id);
 01776                    }
 1777                    else
 01778                    {
 01779                        val = val.NormalizeName();
 01780                    }
 1781
 01782                    entry.CurrentValues[prop.Name] = val;
 01783                }
 01784            }
 01785        }
 1786
 1787        public void NormalizeStringValues(EntityEntry entry, ITrackableRecord trackable)
 420221788        {
 6109761789            var propertyValues = entry.CurrentValues.Properties.Where(p => p.ClrType == typeof(string));
 1790
 2163961791            foreach (var prop in propertyValues)
 451651792            {
 451651793                var val = (entry.CurrentValues[prop.Name]?.ToString() ?? string.Empty).Trim();
 1794
 451651795                if (trackable.IsDeleted)
 571796                {
 571797                    val = val.Corrupt(trackable.Id);
 571798                }
 1799                else
 451081800                {
 451081801                    val = val.NormalizeName();
 451081802                }
 1803
 451651804                entry.CurrentValues[prop.Name] = val;
 451651805            }
 420221806        }
 1807
 1808        public Task<int> SaveChangesAsync(long userId)
 95141809        {
 95141810            var eventList = new List<Event>();
 1125921811            foreach (var entity in ChangeTracker.Entries()
 59068031812                .Where(x => x.State == EntityState.Added || x.State == EntityState.Modified || x.State == EntityState.De
 420251813            {
 420251814                var trackable = entity.Entity as ITrackableRecord;
 01815                if(trackable == null) continue;
 1816
 420251817                switch(entity.State)
 1818                {
 1819                    case EntityState.Added:
 386931820                        trackable.CreatedByUserId = userId;
 386931821                        trackable.CreationDateTime = DateTime.UtcNow;
 386931822                        NormalizeStringValues(entity, trackable);
 386931823                        break;
 1824
 1825                    case EntityState.Modified:
 33291826                        trackable.ModifiedByUserId = userId;
 33291827                        trackable.ModificationDateTime = DateTime.UtcNow;
 33291828                        NormalizeStringValues(entity, trackable);
 33291829                        break;
 1830                }
 420251831                eventList.Add(GenerateEvent(entity, userId, trackable));
 420251832            }
 1833
 95141834            AddRange(eventList);
 95141835            return base.SaveChangesAsync();
 95141836        }
 1837
 1838        // закешированные статусы записей, для ускорения создания логов
 1839        // заполняются и используются в методе GenerateEvent
 01840        RecordsState recordsStateEmpty = null;
 01841        EventsKind eventsKindCreate = null;
 01842        EventsKind eventsKindUpdate = null;
 01843        EventsKind eventsKindDelete = null;
 01844        User currentUser = null;
 1845        //***
 1846
 1847        // Игнорируемые при записи логов свойства сущностей
 01848        string[] ignoredPropertiesAdded = new string[] { "Id", "ModifiedByUserId", "ModificationDateTime" };
 01849        string[] ignoredPropertiesDeleted = new string[] { "Id", "ModifiedByUserId", "ModificationDateTime", "CreatedByU
 01850        string[] ignoredPropertiesUpdated = new string[] { "CreatedByUserId", "CreationDateTime" };
 1851        //***
 1852
 1853        Dictionary<string, string> GetPropertiesValues(PropertyValues values, string[] ignoredProperties)
 453541854        {
 453541855            return values.Properties
 6824201856                .Where(x => !ignoredProperties.Contains(x.Name))
 10629521857                .ToDictionary(x => x.Name, x => (values[x.Name])?.ToString());
 453541858        }
 1859
 1860        private Event GenerateEvent(EntityEntry entity, long userId, ITrackableRecord trackable)
 420251861        {
 420251862            recordsStateEmpty ??= refRecordsState.FirstOrDefault(x => x.Id == (int)RecordState.Empty);
 420251863            currentUser ??= Users.FirstOrDefault(x => x.Id == userId);
 1864
 1865            //генерируем событие и записываем туда json данных, которые при создании пишем в БД. Либо json данных, котор
 420251866            var event_ = new Event()
 420251867            {
 420251868                CreatedByUserId = userId,
 420251869                CreationDateTime = DateTime.UtcNow,
 420251870                Entity = entity.Entity.GetType().Name,
 420251871                RecState = recordsStateEmpty,
 420251872                User = currentUser
 420251873            };
 420251874            event_.RecordGuid = trackable.GUID;
 1875
 420251876            dynamic json = null;
 420251877            switch(entity.State)
 1878            {
 1879                case EntityState.Added:
 386931880                    eventsKindCreate ??= refEventsKind.FirstOrDefault(x => x.Id == (int)EventKind.Create);
 386931881                    event_.EventsKind = eventsKindCreate;
 386931882                    json = new
 386931883                    {
 386931884                        New = GetPropertiesValues(entity.CurrentValues, ignoredPropertiesAdded)
 386931885                    };
 386931886                    break;
 1887
 1888                case EntityState.Deleted:
 31889                    eventsKindDelete ??= refEventsKind.FirstOrDefault(x => x.Id == (int)EventKind.Delete);
 31890                    event_.EventsKind = eventsKindDelete;
 31891                    json = new
 31892                    {
 31893                        Old = GetPropertiesValues(entity.OriginalValues, ignoredPropertiesDeleted)
 31894                    };
 31895                    break;
 1896
 1897                case EntityState.Modified:
 33291898                    eventsKindUpdate ??= refEventsKind.FirstOrDefault(x => x.Id == (int)EventKind.Update);
 33291899                    eventsKindDelete ??= refEventsKind.FirstOrDefault(x => x.Id == (int)EventKind.Delete);
 1900
 33291901                    event_.EventsKind = trackable.IsDeleted ? eventsKindDelete : eventsKindUpdate;
 33291902                    var currentJson = GetPropertiesValues(entity.CurrentValues, ignoredPropertiesUpdated);
 33291903                    var originJson = GetPropertiesValues(entity.OriginalValues, ignoredPropertiesUpdated);
 33291904                    json = new { Old = originJson, New = currentJson };
 33291905                    break;
 1906            }
 420251907            event_.ReasonJson = JsonSerializer.Serialize(json, json.GetType(),
 420251908                new JsonSerializerOptions() { Encoder = System.Text.Encodings.Web.JavaScriptEncoder.Create(System.Text.U
 1909
 420251910            return event_;
 420251911        }
 1912
 1913        /*
 1914        public Task<int> SaveChangesAsync(long userId)
 1915        {
 1916            NormalizeStringValues();
 1917
 1918            var eventList = new List<Event>();
 1919            var entries = base.ChangeTracker.Entries().Where(x => (x.Entity is BaseRecord || x.Entity is RelationRecord)
 1920            foreach (var entity in entries)
 1921            {
 1922                if (entity.Entity is BaseRecord)
 1923                {
 1924                    (entity.Entity as BaseRecord).CreatedByUserId = userId;
 1925                    (entity.Entity as BaseRecord).CreationDateTime = DateTime.UtcNow;
 1926                }
 1927                if (entity.Entity is RelationRecord)
 1928                {
 1929                    (entity.Entity as RelationRecord).CreatedByUserId = userId;
 1930                    (entity.Entity as RelationRecord).CreationDateTime = DateTime.UtcNow;
 1931                }
 1932                if (entity.Entity.GetType().Name != "Event" && entity.Entity.GetType().Name != "JobLogger")
 1933                {
 1934                    eventList.Add(GenerateEvent(entity, userId));
 1935                }
 1936            }
 1937
 1938            entries = base.ChangeTracker.Entries().Where(x => x.Entity is BaseRecord && x.State == EntityState.Modified)
 1939            foreach (var entity in entries)
 1940            {
 1941                (entity.Entity as BaseRecord).ModifiedByUserId = userId;
 1942                (entity.Entity as BaseRecord).ModificationDateTime = DateTime.UtcNow;
 1943                if (entity.Entity.GetType().Name != "Event" && entity.Entity.GetType().Name != "JobLogger")
 1944                {
 1945                    eventList.Add(GenerateEvent(entity, userId));
 1946                }
 1947            }
 1948
 1949            entries = base.ChangeTracker.Entries().Where(x => x.Entity is RelationRecord && x.State == EntityState.Delet
 1950            foreach (var entity in entries)
 1951            {
 1952                if (entity.Entity.GetType().Name != "Event" && entity.Entity.GetType().Name != "JobLogger")
 1953                {
 1954                    eventList.Add(GenerateEvent(entity, userId));
 1955                }
 1956            }
 1957
 1958            AddRange(eventList);
 1959            return base.SaveChangesAsync();
 1960        }
 1961        */
 1962
 1963        public Task<int> SaveChangesAsyncFast(long userId)
 1841964        {
 1841965            return base.SaveChangesAsync();
 1841966        }
 1967
 1968        /*
 1969        private Event GenerateEvent(Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry entity, long userId)
 1970        {
 1971            //генерируем событие и записываем туда json данных, которые при создании пишем в БД. Либо json данных, котор
 1972            var event_ = new Event()
 1973            {
 1974                CreatedByUserId = userId,
 1975                CreationDateTime = DateTime.UtcNow,
 1976                Entity = entity.Entity.GetType().Name,
 1977                RecState = refRecordsState.FirstOrDefault(x => x.Id == (int)RecordState.Empty),
 1978                User = Users.FirstOrDefault(x => x.Id == userId)
 1979            };
 1980            if(entity.Entity is RelationRecord)
 1981            {
 1982                event_.RecordGuid = (entity.Entity as RelationRecord).GUID;
 1983            }
 1984            else if(entity.Entity is ExternalRecord)
 1985            {
 1986                event_.RecordGuid = (entity.Entity as ExternalRecord).GUID;
 1987            }
 1988            else
 1989            {
 1990                event_.RecordGuid = Guid.Empty;
 1991            }
 1992
 1993            if (entity.State == EntityState.Added)
 1994            {
 1995                event_.EventsKind = refEventsKind.FirstOrDefault(x => x.Id == (int)EventKind.Create);
 1996                var json = new
 1997                {
 1998                    New = entity.CurrentValues.Properties
 1999                    .Where(x => x.Name != "Id" && x.Name != "ModifiedByUserId" && x.Name != "ModificationDateTime")
 2000                    .ToDictionary(x => x.Name, x => (entity.CurrentValues[x.Name])?.ToString())
 2001                };
 2002                event_.ReasonJson = JsonSerializer.Serialize(json, json.GetType(),
 2003                    new JsonSerializerOptions() { Encoder = System.Text.Encodings.Web.JavaScriptEncoder.Create(System.Te
 2004            }
 2005            else if (entity.State == EntityState.Deleted)
 2006            {
 2007                event_.EventsKind = refEventsKind.FirstOrDefault(x => x.Id == (int)EventKind.Delete);
 2008                var json = new
 2009                {
 2010                    Old = entity.OriginalValues.Properties
 2011                    .Where(x => x.Name != "CreatedByUserId" && x.Name != "CreationDateTime")
 2012                    .ToDictionary(x => x.Name, x => (entity.OriginalValues[x.Name])?.ToString())
 2013                };
 2014                event_.ReasonJson = JsonSerializer.Serialize(json, json.GetType(),
 2015                    new JsonSerializerOptions() { Encoder = System.Text.Encodings.Web.JavaScriptEncoder.Create(System.Te
 2016            }
 2017            else
 2018            {
 2019                if (entity.CurrentValues.GetValue<bool>("IsDeleted"))
 2020                    event_.EventsKind = refEventsKind.FirstOrDefault(x => x.Id == (int)EventKind.Delete);
 2021                else
 2022                    event_.EventsKind = refEventsKind.FirstOrDefault(x => x.Id == (int)EventKind.Update);
 2023                var currentJson = entity.CurrentValues.Properties
 2024                    .Where(x => x.Name != "CreatedByUserId" && x.Name != "CreationDateTime")
 2025                    .ToDictionary(x => x.Name, x => (entity.CurrentValues[x.Name])?.ToString());
 2026                var originJson = entity.OriginalValues.Properties
 2027                    .Where(x => x.Name != "CreatedByUserId" && x.Name != "CreationDateTime")
 2028                    .ToDictionary(x => x.Name, x => (entity.OriginalValues[x.Name])?.ToString());
 2029                var json = new { Old = originJson, New = currentJson };
 2030                event_.ReasonJson = JsonSerializer.Serialize(json, json.GetType(),
 2031                    new JsonSerializerOptions() { Encoder = System.Text.Encodings.Web.JavaScriptEncoder.Create(System.Te
 2032            }
 2033            return event_;
 2034        }
 2035        */
 2036
 2037        /// <summary>
 2038        /// Задачи по выгрузке изображений товаров
 2039        /// </summary>
 02040        public DbSet<DownloadGoodsImagesTask> DownloadGoodsImagesTasks { get; set; }
 2041
 2042        /// <summary>
 2043        /// Штрихкоды
 2044        /// </summary>
 2602045        public DbSet<BarCode> BarCodes { get; set; }
 2046
 2047        /// <summary>
 2048        /// Банковские счета
 2049        /// </summary>
 2762050        public DbSet<BankAccount> BankAccounts { get; set; }
 2051
 2052        /// <summary>
 2053        /// Брэнды
 2054        /// </summary>
 5592055        public DbSet<Brand> Brands { get; set; }
 2056
 2057        /// <summary>
 2058        /// Дерево категорий товаров
 2059        /// </summary>
 4362060        public DbSet<Category> Categories { get; set; }
 2061
 2062
 2063        /// <summary>
 2064        /// Контрагенты
 2065        /// </summary>
 21352066        public DbSet<Contragent> Contragents { get; set; }
 2067
 2068
 2069        /// <summary>
 2070        /// Страны
 2071        /// </summary>
 2322072        public DbSet<Country> refCountries { get; set; }
 2073
 2074
 2075        /// <summary>
 2076        /// Подразделения
 2077        /// </summary>
 22722078        public DbSet<Department> Departments { get; set; }
 2079
 2080
 2081        /// <summary>
 2082        /// Журнал событий
 2083        /// </summary>
 02084        public DbSet<Event> Events { get; set; }
 2085
 2086
 2087        /// <summary>
 2088        /// Товары
 2089        /// </summary>
 9132090        public DbSet<Good> Goods { get; set; }
 2091
 2092
 2093        /// <summary>
 2094        /// Инциденты
 2095        /// </summary>
 2232096        public DbSet<Incident> Incidents { get; set; }
 2097
 2098
 2099        /// <summary>
 2100        /// Движения товаров (заголовки)
 2101        /// </summary>
 18502102        public DbSet<Movement> Movements { get; set; }
 2103
 2104        /// <summary>
 2105        /// Комментарии к документам
 2106        /// </summary>
 02107        public DbSet<MovementNote> MovementNotes { get; set; }
 2108
 2109        /// <summary>
 2110        /// Движения товаров (товары)
 2111        /// </summary>
 2842112        public DbSet<MovementItem> MovementItems { get; set; }
 2113
 2114
 2115        /// <summary>
 2116        /// Фото
 2117        /// </summary>
 02118        public DbSet<Photo> Photos { get; set; }
 2119
 2120
 2121        /// <summary>
 2122        /// Текущие цены
 2123        /// </summary>
 02124        public DbSet<PriceCurrent> PricesCurrent { get; set; }
 2125
 2126
 2127        /// <summary>
 2128        /// Журнал переоценки
 2129        /// </summary>
 7732130        public DbSet<PriceTrend> PricesTrend { get; set; }
 2131
 2132        /// <summary>
 2133        /// Промо заявки
 2134        /// </summary>
 02135        public DbSet<PromoBid> PromoBids { get; set; }
 2136
 2137
 2138        /// <summary>
 2139        /// Промо предложения
 2140        /// </summary>
 02141        public DbSet<PromoOffer> PromoOffers { get; set; }
 2142
 2143
 2144
 2145        /// <summary>
 2146        /// Остатки товара
 2147        /// </summary>
 10352148        public DbSet<Rest> Rests { get; set; }
 2149
 2150
 2151        /// <summary>
 2152        /// Реестр договоров поставки
 2153        /// </summary>
 25602154        public DbSet<SupplyContract> SupplyContract { get; set; }
 2155
 2156
 2157        /// <summary>
 2158        /// Пользователи
 2159        /// </summary>
 36182160        public DbSet<User> Users { get; set; }
 2161
 2162
 2163        /// <summary>
 2164        /// Уведомления
 2165        /// </summary>
 9662166        public DbSet<Notification> Notifications { get; set; }
 2167
 2168
 2169        /// <summary>
 2170        /// Атрибуты товар - склад
 2171        /// </summary>
 02172        public DbSet<DepartmentGoodSetting> DepartmentGoodSetting { get; set; }
 2173
 2174        /// <summary>
 2175        /// Торговый коэффициент склада
 2176        /// </summary>
 2482177        public DbSet<DepartmentCategoryRatio> DepartmentCategoryRatio { get; set; }
 2178
 2179
 2180        /// <summary>
 2181        /// Кластеры
 2182        /// </summary>
 17802183        public DbSet<Cluster> Clusters { get; set; }
 2184
 2185
 2186        /// <summary>
 2187        /// Соеденение коммуникаций и пользователей
 2188        /// </summary>
 9662189        public DbSet<NotificationUsers> NotificationUsers { get; set; }
 2190
 2191        /// <summary>
 2192        /// Статусы подразделений
 2193        /// </summary>
 4092194        public DbSet<DepartmentsStatus> refDepartmentsStatus { get; set; }
 2195
 2196        /// <summary>
 2197        /// Виды подразделений
 2198        /// </summary>
 5942199        public DbSet<DepartmentsKind> refDepartmentsKind { get; set; }
 2200
 2201        /// <summary>
 2202        /// Адреса
 2203        /// </summary>
 19292204        public DbSet<Address> Address { get; set; }
 2205
 2206        /// <summary>
 2207        /// Статусы инцидентов
 2208        /// </summary>
 2222209        public DbSet<IncidentsStatus> refIncidentsStatus { get; set; }
 2210
 2211        /// <summary>
 2212        /// Виды инцидентов
 2213        /// </summary>
 2222214        public DbSet<IncidentsKind> refIncidentsKind { get; set; }
 2215
 2216        /// <summary>
 2217        /// Тип документа
 2218        /// </summary>
 5662219        public DbSet<MovementType> refMovementType { get; set; }
 2220
 2221        /// <summary>
 2222        /// Статус документа
 2223        /// </summary>
 4692224        public DbSet<MovementStatus> refMovementStatus { get; set; }
 2225
 2226        /// <summary>
 2227        /// Справочник валют
 2228        /// </summary>
 02229        public DbSet<Currency> refCurrency { get; set; }
 2230        /// <summary>
 2231        /// Роли
 2232        /// </summary>
 2232233        public DbSet<Roles> Roles { get; set; }
 2234
 2235        /// <summary>
 2236        /// Методы доступные для ролей
 2237        /// </summary>
 02238        public DbSet<Methods> Methods { get; set; }
 2239
 7732240        public DbSet<TaxSystem> TaxSystems { get; set; }
 2241
 2242        /// <summary>
 2243        /// Аплоады
 2244        /// </summary>
 02245        public DbSet<Upload> Uploads { get; set; }
 2246
 2247        /// <summary>
 2248        /// Статусы загрузок
 2249        /// </summary>
 2250      //  public DbSet<UploadsStatus> UploadsStatus { get; set; }
 2251
 2252
 2253        /// <summary>
 2254        /// Аплоады
 2255        /// </summary>
 02256        public DbSet<UploadItem> UploadItems { get; set; }
 2257
 2258        /// <summary>
 2259        /// Виды НДС
 2260        /// </summary>
 5902261        public DbSet<VatsKind> refVatsKind { get; set; }
 2262        /// <summary>
 2263        /// Виды измерений
 2264        /// </summary>
 6002265        public DbSet<UnitsKind> refUnitsKind { get; set; }
 2266        /// <summary>
 2267        /// Типы состояний записи
 2268        /// </summary>
 37002269        public DbSet<RecordsState> refRecordsState { get; set; }
 2270        /// <summary>
 2271        /// Типы уведомлений
 2272        /// </summary>
 9662273        public DbSet<NotificationsType> refNotificationsType { get; set; }
 2274        /// <summary>
 2275        /// Статусы уведомлений
 2276        /// </summary>
 9662277        public DbSet<NotificationsStatus> refNotificationsStatus { get; set; }
 2278        /// <summary>
 2279        /// Виды событий
 2280        /// </summary>
 8922281        public DbSet<EventsKind> refEventsKind { get; set; }
 2282        /// <summary>
 2283        /// Виды контрагентов
 2284        /// </summary>
 7942285        public DbSet<ContragentsKind> refContragentsKind { get; set; }
 2286        /// <summary>
 2287        /// Журнал перехода документов между статусами
 2288        /// </summary>
 9672289        public DbSet<MovementStatusJournal> MovementStatusJournals { get; set; }
 2290
 2291        /// <summary>
 2292        /// Рабочий график системы
 2293        /// </summary>
 6552294        public DbSet<WorkSchedule> WorkScheduler { get; set; }
 2295
 2296
 2297        /// <summary>
 2298        /// История платежей
 2299        /// </summary>
 2632300        public DbSet<WalletTransaction> WalletTransactions { get; set; }
 2301        /// <summary>
 2302        /// Статусы платежа
 2303        /// </summary>
 02304        public DbSet<WalletTransactionStatus> refWalletTransactionStatuses { get; set; }
 2305
 2306        /// <summary>
 2307        /// Владельцы статусов документов
 2308        /// </summary>
 02309        public DbSet<MovementStatusOwner> MovementStatusOwners { get; set; }
 2310
 2311        /// <summary>
 2312        /// Маршрутизация документов в системе
 2313        /// </summary>
 8872314        public DbSet<MovementStatusRoute> MovementStatusRoutes { get; set; }
 2315
 2316        /// <summary>
 2317        /// Действия доступные на статусе документа
 2318        /// </summary>
 3422319        public DbSet<MovementRouteAction> MovementRouteActions { get; set; }
 2320
 2321        /// <summary>
 2322        /// Доступ к контроллам на фронте
 2323        /// </summary>
 2332324        public DbSet<ControlAccess> ControlsAccess { get; set; }
 2325
 2326        /// <summary>
 2327        /// Детали журнала переоценки
 2328        /// </summary>
 9572329        public DbSet<PriceTrendDetail> PriceTrendDetails { get; set; }
 2330
 2331        /// <summary>
 2332        /// Логирование работы джобов
 2333        /// </summary>
 02334        public DbSet<JobLogger> JobLoggers { get; set; }
 2335
 2336        /// <summary>
 2337        /// Цвета скидок
 2338        /// </summary>
 3332339        public DbSet<DiscountColor> DiscountColors { get; set; }
 2340
 2341        /// <summary>
 2342        /// Токены для обмена с внешними системами
 2343        /// </summary>
 2632344        public DbSet<ExchangeToken> ExchangeTokens { get; set; }
 2345        /// <summary>
 2346        /// Письма для отправки джобом
 2347        /// </summary>
 7812348        public DbSet<Email> Emails { get; set; }
 2349
 2350        /// <summary>
 2351        /// Зарезервированные остатки
 2352        /// </summary>
 2932353        public DbSet<RestHold> RestHolds { get; set; }
 2354        /// <summary>
 2355        /// Конфигурации приложения
 2356        /// </summary>
 2472357        public DbSet<Configuration> sysConfigurations { get; set; }
 2358        /// <summary>
 2359        /// Доступы для фронта
 2360        /// </summary>
 2272361        public DbSet<FrontAction> FrontActions { get; set; }
 2362        /// <summary>
 2363        /// Типы данных для конфигураций приложения
 2364        /// </summary>
 2362365        public DbSet<ConfigurationsDataType> ConfigurationsDataTypes { get; set; }
 2366        /// <summary>
 2367        /// Ярлыки товаров
 2368        /// </summary>
 2392369        public DbSet<GoodLabel> GoodLabels { get; set; }
 2370
 2371        /// <summary>
 2372        /// Связка товаров со штрихкодами
 2373        /// </summary>
 02374        public DbSet<GoodBarcode> GoodBarcodes  { get; set; }
 2375
 2376        /// <summary>
 2377        /// Заявки анонимных пользователей
 2378        /// </summary>
 3342379        public DbSet<AnonymousMovement> AnonymousMovements { get; set; }
 2380        /// <summary>
 2381        /// Уведомления Telegram
 2382        /// </summary>
 7812383        public DbSet<TelegramNotification> TelegramNotifications { get; set; }
 2384
 2385        /// <summary>
 2386        /// Типы доставки
 2387        /// </summary>
 6352388        public DbSet<DeliveryType> DeliveryTypes { get; set; }
 2389        /// <summary>
 2390        /// Типы стоимости доставки
 2391        /// </summary>
 02392        public DbSet<DeliveryCostType> DeliveryCostTypes { get; set; }
 2393        /// <summary>
 2394        /// История отправки СМС
 2395        /// </summary>
 02396        public DbSet<SmsHistory> SmsHistory { get; set; }
 2397        /// <summary>
 2398        /// История отправки Email через EmailGate
 2399        /// </summary>
 02400        public DbSet<EmailGateHistory> EmailGateHistory { get; set; }
 2401
 2402        /// <summary>
 2403        /// Вложения в документ
 2404        /// </summary>
 02405        public DbSet<MovementAttachment> MovementAttachments { get; set; }
 2406    }
 2407}

Methods/Properties

.ctor(...)
.ctor()
OnConfiguring(...)
OnModelCreating(...)
NormalizeStringValues()
NormalizeStringValues(...)
SaveChangesAsync(...)
GetPropertiesValues(...)
GenerateEvent(...)
SaveChangesAsyncFast(...)
get_DownloadGoodsImagesTasks()
get_BarCodes()
get_BankAccounts()
get_Brands()
get_Categories()
get_Contragents()
get_refCountries()
get_Departments()
get_Events()
get_Goods()
get_Incidents()
get_Movements()
get_MovementNotes()
get_MovementItems()
get_Photos()
get_PricesCurrent()
get_PricesTrend()
get_PromoBids()
get_PromoOffers()
get_Rests()
get_SupplyContract()
get_Users()
get_Notifications()
get_DepartmentGoodSetting()
get_DepartmentCategoryRatio()
get_Clusters()
get_NotificationUsers()
get_refDepartmentsStatus()
get_refDepartmentsKind()
get_Address()
get_refIncidentsStatus()
get_refIncidentsKind()
get_refMovementType()
get_refMovementStatus()
get_refCurrency()
get_Roles()
get_Methods()
get_TaxSystems()
get_Uploads()
get_UploadItems()
get_refVatsKind()
get_refUnitsKind()
get_refRecordsState()
get_refNotificationsType()
get_refNotificationsStatus()
get_refEventsKind()
get_refContragentsKind()
get_MovementStatusJournals()
get_WorkScheduler()
get_WalletTransactions()
get_refWalletTransactionStatuses()
get_MovementStatusOwners()
get_MovementStatusRoutes()
get_MovementRouteActions()
get_ControlsAccess()
get_PriceTrendDetails()
get_JobLoggers()
get_DiscountColors()
get_ExchangeTokens()
get_Emails()
get_RestHolds()
get_sysConfigurations()
get_FrontActions()
get_ConfigurationsDataTypes()
get_GoodLabels()
get_GoodBarcodes()
get_AnonymousMovements()
get_TelegramNotifications()
get_DeliveryTypes()
get_DeliveryCostTypes()
get_SmsHistory()
get_EmailGateHistory()
get_MovementAttachments()