From c77e20c1e0a0335983a90659d60de1ebfeaeab03 Mon Sep 17 00:00:00 2001 From: Sergio Hinojosa Date: Thu, 10 Dec 2020 17:31:03 +0100 Subject: [PATCH 1/4] Building images for net5 --- .gitignore | 3 + Dockerfile | 7 +- Dockerfile-sqlite | 9 +- docker-entrypoint.sh | 3 + howto-build-docker.md | 40 + simpl-build.sh | 0 .../Extensions/ServiceCollectionExtensions.cs | 2 +- ...212090153_SimplCommerce_v1_0_0.Designer.cs | 3504 ---------------- ...050227_AddedCartLockOnCheckout.Designer.cs | 3506 ---------------- .../20190224050227_AddedCartLockOnCheckout.cs | 23 - .../20190302122027_MomoPayment.Designer.cs | 3515 ---------------- .../Migrations/20190302122027_MomoPayment.cs | 23 - ...14044223_AddedNganLuongPayment.Designer.cs | 3524 ---------------- .../20190314044223_AddedNganLuongPayment.cs | 23 - ...14_DefaultCultureConfiguration.Designer.cs | 3531 ---------------- ...90710165614_DefaultCultureConfiguration.cs | 23 - ...726221912_AddedCurrencySetting.Designer.cs | 3545 ---------------- .../20190726221912_AddedCurrencySetting.cs | 47 - ...83300_AddedContentLocalization.Designer.cs | 3587 ---------------- ...20190727083300_AddedContentLocalization.cs | 55 - ...801065533_AddedCashfreePayment.Designer.cs | 3596 ----------------- .../20190801065533_AddedCashfreePayment.cs | 23 - ...20190803175214_AddedAssetBundlingConfig.cs | 23 - ... 20201210143557_initialSchema.Designer.cs} | 2347 ++++++++--- ...0_0.cs => 20201210143557_initialSchema.cs} | 1545 +++---- .../Migrations/SimplDbContextModelSnapshot.cs | 2343 ++++++++--- src/SimplCommerce.WebHost/Program.cs | 2 +- .../SimplCommerce.WebHost.csproj | 113 +- .../appsettings.docker.json | 2 +- src/SimplCommerce.WebHost/appsettings.json | 3 +- .../logs\\log-20201210.txt" | 1 + 31 files changed, 4271 insertions(+), 30697 deletions(-) create mode 100644 howto-build-docker.md mode change 100644 => 100755 simpl-build.sh delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190212090153_SimplCommerce_v1_0_0.Designer.cs delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190224050227_AddedCartLockOnCheckout.Designer.cs delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190224050227_AddedCartLockOnCheckout.cs delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190302122027_MomoPayment.Designer.cs delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190302122027_MomoPayment.cs delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190314044223_AddedNganLuongPayment.Designer.cs delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190314044223_AddedNganLuongPayment.cs delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190710165614_DefaultCultureConfiguration.Designer.cs delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190710165614_DefaultCultureConfiguration.cs delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190726221912_AddedCurrencySetting.Designer.cs delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190726221912_AddedCurrencySetting.cs delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190727083300_AddedContentLocalization.Designer.cs delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190727083300_AddedContentLocalization.cs delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190801065533_AddedCashfreePayment.Designer.cs delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190801065533_AddedCashfreePayment.cs delete mode 100644 src/SimplCommerce.WebHost/Migrations/20190803175214_AddedAssetBundlingConfig.cs rename src/SimplCommerce.WebHost/Migrations/{20190803175214_AddedAssetBundlingConfig.Designer.cs => 20201210143557_initialSchema.Designer.cs} (55%) rename src/SimplCommerce.WebHost/Migrations/{20190212090153_SimplCommerce_v1_0_0.cs => 20201210143557_initialSchema.cs} (63%) create mode 100644 "src/SimplCommerce.WebHost/logs\\log-20201210.txt" diff --git a/.gitignore b/.gitignore index c275bdce05..b052a6f208 100644 --- a/.gitignore +++ b/.gitignore @@ -57,6 +57,9 @@ ipch/ *.sdf *.cachefile +*.csproj-e +*.cs-e + # Visual Studio profiler *.psess *.vsp diff --git a/Dockerfile b/Dockerfile index e965f3c9ce..9b9fe5b975 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env +FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env WORKDIR /app COPY . ./ @@ -9,7 +9,7 @@ RUN sed -i 's/UseSqlServer/UseNpgsql/' src/SimplCommerce.WebHost/Extensions/Serv RUN rm src/SimplCommerce.WebHost/Migrations/* && cp -f src/SimplCommerce.WebHost/appsettings.docker.json src/SimplCommerce.WebHost/appsettings.json -RUN dotnet tool install --global dotnet-ef --version 3.1.0 +RUN dotnet tool install --global dotnet-ef --version 5.0.1 ENV PATH="${PATH}:/root/.dotnet/tools" # ef core migrations run in debug, so we have to build in Debug for copying module correctly @@ -26,7 +26,7 @@ RUN dotnet build -c Release \ # remove BOM for psql RUN sed -i -e '1s/^\xEF\xBB\xBF//' /app/src/SimplCommerce.WebHost/dbscript.sql -FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 +FROM mcr.microsoft.com/dotnet/aspnet:5.0 # hack to make postgresql-client install work on slim RUN mkdir -p /usr/share/man/man1 \ @@ -35,6 +35,7 @@ RUN mkdir -p /usr/share/man/man1 \ RUN apt-get update \ && apt-get install -y --no-install-recommends postgresql-client \ && apt-get install libgdiplus -y \ + && apt-get install curl -y \ && rm -rf /var/lib/apt/lists/* WORKDIR /app diff --git a/Dockerfile-sqlite b/Dockerfile-sqlite index d744fd3184..81825d66c0 100644 --- a/Dockerfile-sqlite +++ b/Dockerfile-sqlite @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env +FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env WORKDIR /app COPY . ./ @@ -6,11 +6,13 @@ COPY . ./ RUN sed -i 's###' src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj RUN sed -i 's/UseSqlServer/UseSqlite/' src/SimplCommerce.WebHost/Program.cs RUN sed -i 's/UseSqlServer/UseSqlite/' src/SimplCommerce.WebHost/Extensions/ServiceCollectionExtensions.cs +RUN sed -i 's/UseNpgsql/UseSqlite/' src/SimplCommerce.WebHost/Program.cs +RUN sed -i 's/UseNpgsql/UseSqlite/' src/SimplCommerce.WebHost/Extensions/ServiceCollectionExtensions.cs RUN sed -i 's/"DefaultConnection": ".*"/"DefaultConnection": "Data Source=simplcommerce.db"/' src/SimplCommerce.WebHost/appsettings.json RUN rm src/SimplCommerce.WebHost/Migrations/* -RUN dotnet tool install --global dotnet-ef --version 3.1.0 +RUN dotnet tool install --global dotnet-ef --version 5.0.1 ENV PATH="${PATH}:/root/.dotnet/tools" # ef core migrations run in debug, so we have to build in Debug for copying module correctly @@ -24,10 +26,11 @@ RUN dotnet build -c Release \ && dotnet build -c Release \ && dotnet publish -c Release -o out -FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 +FROM mcr.microsoft.com/dotnet/aspnet:5.0 RUN apt-get update \ && apt-get install libgdiplus -y \ + && apt-get install curl -y \ && rm -rf /var/lib/apt/lists/* WORKDIR /app diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index d33dd17d25..4adf6bdb36 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,6 +1,9 @@ #!/bin/bash set -e +# Just for dev pourpouses. +export POSTGRES_PASSWORD=postgress + if psql -h simpldb --username postgres -lqt | cut -d \| -f 1 | grep -qw simplcommerce; then echo "simplcommerce database existed" else diff --git a/howto-build-docker.md b/howto-build-docker.md new file mode 100644 index 0000000000..4f10fab93c --- /dev/null +++ b/howto-build-docker.md @@ -0,0 +1,40 @@ + +## Online demo (Azure Website) +- Store front: http://demo.simplcommerce.com +- Administration: http://demo.simplcommerce.com/admin Email: admin@simplcommerce.com Password: 1qazZAQ! + + + +## Docker +For testing purpose only `docker build --rm -t shinojosa/simplcommerce-sqlite:5 -f Dockerfile-sqlite . ` +Continuous deployment: https://ci.simplcommerce.com + + +# PostgreSQL Database + +## Postgre containers +### Routing simpldb to localhost or wherever the DB is running +> For localhost we do a mapping in /etc/hosts +`127.0.0.1 simpldb` + +> For Docker-compose (hostname in the same network ) + +> For Kubernetes is just the name of the service exposing postgresql in the same ns + + +### Run postgre container for dev pourpouses standard ports on localhost (mount a postrgres-data directory for the Database) +`mkdir ${HOME}/postgres-data/` +`docker run -d --name postgres -e POSTGRES_PASSWORD=postgres -v ${HOME}/postgres-data/:/var/lib/postgresql/data -p 5432:5432 postgres` + +### Run PGAdming to access the UI and do dbadmin stuff +`docker run -p 8080:80 -e 'PGADMIN_DEFAULT_EMAIL=user@domain.local' -e 'PGADMIN_DEFAULT_PASSWORD=SuperSecret' --name pgadmin -d dpage/pgadmin4` + +Without docker-compose or defining a network you need to type the internal IP of the container so pgamin can connect it usually is something like 172.17.0.2 under IPAddress +`docker inspect postgres -f "{{json .NetworkSettings.Networks }}"` + +## For building with PostgreSQL +Npgsql.EntityFrameworkCore.PostgreSQL 3.1.0 + +## For building with SQLLite +Microsoft.EntityFrameworkCore.Sqlite 3.1.0 + diff --git a/simpl-build.sh b/simpl-build.sh old mode 100644 new mode 100755 diff --git a/src/SimplCommerce.WebHost/Extensions/ServiceCollectionExtensions.cs b/src/SimplCommerce.WebHost/Extensions/ServiceCollectionExtensions.cs index 274e36e822..091e09ecae 100644 --- a/src/SimplCommerce.WebHost/Extensions/ServiceCollectionExtensions.cs +++ b/src/SimplCommerce.WebHost/Extensions/ServiceCollectionExtensions.cs @@ -220,7 +220,7 @@ public static IServiceCollection AddCustomizedIdentity(this IServiceCollection s public static IServiceCollection AddCustomizedDataStore(this IServiceCollection services, IConfiguration configuration) { services.AddDbContextPool(options => - options.UseSqlServer(configuration.GetConnectionString("DefaultConnection"), + options.UseNpgsql(configuration.GetConnectionString("DefaultConnection"), b => b.MigrationsAssembly("SimplCommerce.WebHost"))); return services; } diff --git a/src/SimplCommerce.WebHost/Migrations/20190212090153_SimplCommerce_v1_0_0.Designer.cs b/src/SimplCommerce.WebHost/Migrations/20190212090153_SimplCommerce_v1_0_0.Designer.cs deleted file mode 100644 index 13c22acee4..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190212090153_SimplCommerce_v1_0_0.Designer.cs +++ /dev/null @@ -1,3504 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using SimplCommerce.Module.Core.Data; - -namespace SimplCommerce.WebHost.Migrations -{ - [DbContext(typeof(SimplDbContext))] - [Migration("20190212090153_SimplCommerce_v1_0_0")] - partial class SimplCommerce_v1_0_0 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.2.1-servicing-10028") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_RoleClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserLogin"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId"); - - b.Property("LoginProvider"); - - b.Property("Name"); - - b.Property("Value"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("Core_UserToken"); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Culture", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Localization_Culture"); - - b.HasData( - new - { - Id = "en-US", - Name = "English (US)" - }); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CultureId") - .IsRequired(); - - b.Property("Key") - .IsRequired() - .HasMaxLength(450); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("CultureId"); - - b.ToTable("Localization_Resource"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ActivityTypeId"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .IsRequired() - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ActivityTypeId"); - - b.ToTable("ActivityLog_Activity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.ActivityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("ActivityLog_ActivityType"); - - b.HasData( - new - { - Id = 1L, - Name = "EntityView" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Brand", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_Brand"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IncludeInMenu"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Category"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BrandId"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("Gtin") - .HasMaxLength(450); - - b.Property("HasOptions"); - - b.Property("IsAllowToOrder"); - - b.Property("IsCallForPricing"); - - b.Property("IsDeleted"); - - b.Property("IsFeatured"); - - b.Property("IsPublished"); - - b.Property("IsVisibleIndividually"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("NormalizedName") - .HasMaxLength(450); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("PublishedOn"); - - b.Property("RatingAverage"); - - b.Property("ReviewsCount"); - - b.Property("ShortDescription") - .HasMaxLength(450); - - b.Property("Sku") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.Property("Specification"); - - b.Property("StockQuantity"); - - b.Property("StockTrackingIsEnabled"); - - b.Property("TaxClassId"); - - b.Property("ThumbnailImageId"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BrandId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("TaxClassId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Product"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("GroupId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("GroupId"); - - b.ToTable("Catalog_ProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductAttributeGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AttributeId"); - - b.Property("ProductId"); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("AttributeId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductAttributeValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CategoryId"); - - b.Property("DisplayOrder"); - - b.Property("IsFeaturedProduct"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("CategoryId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LinkType"); - - b.Property("LinkedProductId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("LinkedProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductLink"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayOrder"); - - b.Property("MediaId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("MediaId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductMedia"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOption", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductOption"); - - b.HasData( - new - { - Id = 1L, - Name = "Color" - }, - new - { - Id = 2L, - Name = "Size" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionCombination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayType") - .HasMaxLength(450); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("ProductId"); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductPriceHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductTemplate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.Property("ProductTemplateId"); - - b.Property("ProductAttributeId"); - - b.HasKey("ProductTemplateId", "ProductAttributeId"); - - b.HasIndex("ProductAttributeId"); - - b.ToTable("Catalog_ProductTemplateProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Menu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsPublished"); - - b.Property("IsSystem"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Cms_Menu"); - - b.HasData( - new - { - Id = 1L, - IsPublished = true, - IsSystem = true, - Name = "Customer Services" - }, - new - { - Id = 2L, - IsPublished = true, - IsSystem = true, - Name = "Information" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CustomLink") - .HasMaxLength(450); - - b.Property("DisplayOrder"); - - b.Property("EntityId"); - - b.Property("MenuId"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.HasKey("Id"); - - b.HasIndex("EntityId"); - - b.HasIndex("MenuId"); - - b.HasIndex("ParentId"); - - b.ToTable("Cms_MenuItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Body"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.ToTable("Cms_Page"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CommentText"); - - b.Property("CommenterName") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("UserId"); - - b.ToTable("Comments_Comment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Address") - .HasMaxLength(450); - - b.Property("ContactAreaId"); - - b.Property("Content"); - - b.Property("CreatedOn"); - - b.Property("EmailAddress") - .HasMaxLength(450); - - b.Property("FullName") - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("PhoneNumber") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("ContactAreaId"); - - b.ToTable("Contacts_Contact"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.ContactArea", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsDeleted"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Contacts_ContactArea"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .IsRequired() - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_Address"); - - b.HasData( - new - { - Id = 1L, - AddressLine1 = "364 Cong Hoa", - ContactName = "Thien Nguyen", - CountryId = "VN", - StateOrProvinceId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.AppSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("IsVisibleInCommonSettingPage"); - - b.Property("Module") - .HasMaxLength(450); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_AppSetting"); - - b.HasData( - new - { - Id = "Catalog.ProductPageSize", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "10" - }, - new - { - Id = "Catalog.IsProductPriceIncludeTax", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "Catalog.IsCommentsRequireApproval", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "GoogleAppKey", - IsVisibleInCommonSettingPage = false, - Module = "Contact", - Value = "" - }, - new - { - Id = "Global.AssetVersion", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "1.0" - }, - new - { - Id = "Theme", - IsVisibleInCommonSettingPage = false, - Module = "Core", - Value = "Generic" - }, - new - { - Id = "SmtpServer", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "smtp.gmail.com" - }, - new - { - Id = "SmtpPort", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "587" - }, - new - { - Id = "SmtpUsername", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "SmtpPassword", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "News.PageSize", - IsVisibleInCommonSettingPage = true, - Module = "News", - Value = "10" - }, - new - { - Id = "Tax.DefaultTaxClassId", - IsVisibleInCommonSettingPage = true, - Module = "Tax", - Value = "1" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Country", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Code3") - .HasMaxLength(450); - - b.Property("IsBillingEnabled"); - - b.Property("IsCityEnabled"); - - b.Property("IsDistrictEnabled"); - - b.Property("IsShippingEnabled"); - - b.Property("IsZipCodeEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Country"); - - b.HasData( - new - { - Id = "VN", - Code3 = "VNM", - IsBillingEnabled = true, - IsCityEnabled = false, - IsDistrictEnabled = true, - IsShippingEnabled = true, - IsZipCodeEnabled = false, - Name = "Việt Nam" - }, - new - { - Id = "US", - Code3 = "USA", - IsBillingEnabled = true, - IsCityEnabled = true, - IsDistrictEnabled = false, - IsShippingEnabled = true, - IsZipCodeEnabled = true, - Name = "United States" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Core_CustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.Property("UserId"); - - b.Property("CustomerGroupId"); - - b.HasKey("UserId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Core_CustomerGroupUser"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Location"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_District"); - - b.HasData( - new - { - Id = 1L, - Name = "Quận 1", - StateOrProvinceId = 1L, - Type = "Quận" - }, - new - { - Id = 2L, - Name = "Quận 2", - StateOrProvinceId = 1L, - Type = "Quận" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("EntityTypeId"); - - b.ToTable("Core_Entity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.EntityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AreaName") - .HasMaxLength(450); - - b.Property("IsMenuable"); - - b.Property("RoutingAction") - .HasMaxLength(450); - - b.Property("RoutingController") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_EntityType"); - - b.HasData( - new - { - Id = "Category", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "CategoryDetail", - RoutingController = "Category" - }, - new - { - Id = "Brand", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "BrandDetail", - RoutingController = "Brand" - }, - new - { - Id = "Product", - AreaName = "Catalog", - IsMenuable = false, - RoutingAction = "ProductDetail", - RoutingController = "Product" - }, - new - { - Id = "Page", - AreaName = "Cms", - IsMenuable = true, - RoutingAction = "PageDetail", - RoutingController = "Page" - }, - new - { - Id = "Vendor", - AreaName = "Core", - IsMenuable = false, - RoutingAction = "VendorDetail", - RoutingController = "Vendor" - }, - new - { - Id = "NewsCategory", - AreaName = "News", - IsMenuable = true, - RoutingAction = "NewsCategoryDetail", - RoutingController = "NewsCategory" - }, - new - { - Id = "NewsItem", - AreaName = "News", - IsMenuable = false, - RoutingAction = "NewsItemDetail", - RoutingController = "NewsItem" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Media", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Caption") - .HasMaxLength(450); - - b.Property("FileName") - .HasMaxLength(450); - - b.Property("FileSize"); - - b.Property("MediaType"); - - b.HasKey("Id"); - - b.ToTable("Core_Media"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasMaxLength(256); - - b.Property("NormalizedName") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasName("RoleNameIndex") - .HasFilter("[NormalizedName] IS NOT NULL"); - - b.ToTable("Core_Role"); - - b.HasData( - new - { - Id = 1L, - ConcurrencyStamp = "4776a1b2-dbe4-4056-82ec-8bed211d1454", - Name = "admin", - NormalizedName = "ADMIN" - }, - new - { - Id = 2L, - ConcurrencyStamp = "00d172be-03a0-4856-8b12-26d63fcf4374", - Name = "customer", - NormalizedName = "CUSTOMER" - }, - new - { - Id = 3L, - ConcurrencyStamp = "d4754388-8355-4018-b728-218018836817", - Name = "guest", - NormalizedName = "GUEST" - }, - new - { - Id = 4L, - ConcurrencyStamp = "71f10604-8c4d-4a7d-ac4a-ffefb11cefeb", - Name = "vendor", - NormalizedName = "VENDOR" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Code") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.ToTable("Core_StateOrProvince"); - - b.HasData( - new - { - Id = 1L, - CountryId = "VN", - Name = "Hồ Chí Minh", - Type = "Thành Phố" - }, - new - { - Id = 2L, - Code = "WA", - CountryId = "US", - Name = "Washington" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("CreatedOn"); - - b.Property("Culture") - .HasMaxLength(450); - - b.Property("DefaultBillingAddressId"); - - b.Property("DefaultShippingAddressId"); - - b.Property("Email") - .HasMaxLength(256); - - b.Property("EmailConfirmed"); - - b.Property("ExtensionData"); - - b.Property("FullName") - .IsRequired() - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .HasMaxLength(256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("RefreshTokenHash") - .HasMaxLength(450); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserGuid"); - - b.Property("UserName") - .HasMaxLength(256); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("DefaultBillingAddressId"); - - b.HasIndex("DefaultShippingAddressId"); - - b.HasIndex("NormalizedEmail") - .HasName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasName("UserNameIndex") - .HasFilter("[NormalizedUserName] IS NOT NULL"); - - b.HasIndex("VendorId"); - - b.ToTable("Core_User"); - - b.HasData( - new - { - Id = 2L, - AccessFailedCount = 0, - ConcurrencyStamp = "101cd6ae-a8ef-4a37-97fd-04ac2dd630e4", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "system@simplcommerce.com", - EmailConfirmed = false, - FullName = "System User", - IsDeleted = true, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "SYSTEM@SIMPLCOMMERCE.COM", - NormalizedUserName = "SYSTEM@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "a9565acb-cee6-425f-9833-419a793f5fba", - TwoFactorEnabled = false, - UserGuid = new Guid("5f72f83b-7436-4221-869c-1b69b2e23aae"), - UserName = "system@simplcommerce.com" - }, - new - { - Id = 10L, - AccessFailedCount = 0, - ConcurrencyStamp = "c83afcbc-312c-4589-bad7-8686bd4754c0", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "admin@simplcommerce.com", - EmailConfirmed = false, - FullName = "Shop Admin", - IsDeleted = false, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "ADMIN@SIMPLCOMMERCE.COM", - NormalizedUserName = "ADMIN@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "d6847450-47f0-4c7a-9fed-0c66234bf61f", - TwoFactorEnabled = false, - UserGuid = new Guid("ed8210c3-24b0-4823-a744-80078cf12eb4"), - UserName = "admin@simplcommerce.com" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("AddressType"); - - b.Property("LastUsedOn"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_UserRole"); - - b.HasData( - new - { - UserId = 10L, - RoleId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Vendor", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("Email"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Vendor"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Widget", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CreateUrl") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EditUrl") - .HasMaxLength(450); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ViewComponentName") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Widget"); - - b.HasData( - new - { - Id = "CategoryWidget", - CreateUrl = "widget-category-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-category-edit", - IsPublished = false, - Name = "Category Widget", - ViewComponentName = "CategoryWidget" - }, - new - { - Id = "ProductWidget", - CreateUrl = "widget-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-product-edit", - IsPublished = false, - Name = "Product Widget", - ViewComponentName = "ProductWidget" - }, - new - { - Id = "SimpleProductWidget", - CreateUrl = "widget-simple-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-simple-product-edit", - IsPublished = false, - Name = "Simple Product Widget", - ViewComponentName = "SimpleProductWidget" - }, - new - { - Id = "HtmlWidget", - CreateUrl = "widget-html-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-html-edit", - IsPublished = false, - Name = "Html Widget", - ViewComponentName = "HtmlWidget" - }, - new - { - Id = "CarouselWidget", - CreateUrl = "widget-carousel-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-carousel-edit", - IsPublished = false, - Name = "Carousel Widget", - ViewComponentName = "CarouselWidget" - }, - new - { - Id = "SpaceBarWidget", - CreateUrl = "widget-spacebar-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-spacebar-edit", - IsPublished = false, - Name = "SpaceBar Widget", - ViewComponentName = "SpaceBarWidget" - }, - new - { - Id = "RecentlyViewedWidget", - CreateUrl = "widget-recently-viewed-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-recently-viewed-edit", - IsPublished = false, - Name = "Recently Viewed Widget", - ViewComponentName = "RecentlyViewedWidget" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Data"); - - b.Property("DisplayOrder"); - - b.Property("HtmlData"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("PublishEnd"); - - b.Property("PublishStart"); - - b.Property("WidgetId") - .HasMaxLength(450); - - b.Property("WidgetZoneId"); - - b.HasKey("Id"); - - b.HasIndex("WidgetId"); - - b.HasIndex("WidgetZoneId"); - - b.ToTable("Core_WidgetInstance"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetZone", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_WidgetZone"); - - b.HasData( - new - { - Id = 1L, - Name = "Home Featured" - }, - new - { - Id = 2L, - Name = "Home Main Content" - }, - new - { - Id = 3L, - Name = "Home After Main Content" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ReservedQuantity"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_Stock"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AdjustedQuantity"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("ProductId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_StockHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("VendorId"); - - b.ToTable("Inventory_Warehouse"); - - b.HasData( - new - { - Id = 1L, - AddressId = 1L, - Name = "Default warehouse" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("News_NewsCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("FullContent"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("ShortContent") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("News_NewsItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.Property("CategoryId"); - - b.Property("NewsItemId"); - - b.HasKey("CategoryId", "NewsItemId"); - - b.HasIndex("NewsItemId"); - - b.ToTable("News_NewsItemCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BillingAddressId"); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("DiscountAmount"); - - b.Property("IsMasterOrder"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("OrderStatus"); - - b.Property("OrderTotal"); - - b.Property("ParentId"); - - b.Property("PaymentFeeAmount"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("ShippingAddressId"); - - b.Property("ShippingFeeAmount"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("SubTotal"); - - b.Property("SubTotalWithDiscount"); - - b.Property("TaxAmount"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BillingAddressId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ParentId"); - - b.HasIndex("ShippingAddressId"); - - b.ToTable("Orders_Order"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Orders_OrderAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("NewStatus"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("OldStatus"); - - b.Property("OrderId"); - - b.Property("OrderSnapshot"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.ToTable("Orders_OrderHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DiscountAmount"); - - b.Property("OrderId"); - - b.Property("ProductId"); - - b.Property("ProductPrice"); - - b.Property("Quantity"); - - b.Property("TaxAmount"); - - b.Property("TaxPercent"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.HasIndex("ProductId"); - - b.ToTable("Orders_OrderItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Amount"); - - b.Property("CreatedOn"); - - b.Property("FailureMessage"); - - b.Property("GatewayTransactionId") - .HasMaxLength(450); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("PaymentFee"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("Status"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.ToTable("Payments_Payment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.PaymentProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("LandingViewComponentName") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Payments_PaymentProvider"); - - b.HasData( - new - { - Id = "Braintree", - AdditionalSettings = "{\"PublicKey\": \"6j4d7qspt5n48kx4\", \"PrivateKey\" : \"bd1c26e53a6d811243fcc3eb268113e1\", \"MerchantId\" : \"ncsh7wwqvzs3cx9q\", \"IsProduction\" : \"false\"}", - ConfigureUrl = "payments-braintree-config", - IsEnabled = true, - LandingViewComponentName = "BraintreeLanding", - Name = "Braintree" - }, - new - { - Id = "CoD", - ConfigureUrl = "payments-cod-config", - IsEnabled = true, - LandingViewComponentName = "CoDLanding", - Name = "Cash On Delivery" - }, - new - { - Id = "PaypalExpress", - AdditionalSettings = "{ \"IsSandbox\":true, \"ClientId\":\"\", \"ClientSecret\":\"\" }", - ConfigureUrl = "payments-paypalExpress-config", - IsEnabled = true, - LandingViewComponentName = "PaypalExpressLanding", - Name = "Paypal Express" - }, - new - { - Id = "Stripe", - AdditionalSettings = "{\"PublicKey\": \"pk_test_6pRNASCoBOKtIshFeQd4XMUh\", \"PrivateKey\" : \"sk_test_BQokikJOvBiI2HlWgH4olfQ2\"}", - ConfigureUrl = "payments-stripe-config", - IsEnabled = true, - LandingViewComponentName = "StripeLanding", - Name = "Stripe" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("DiscountStep"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("IsCouponRequired"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.Property("UsageLimitPerCoupon"); - - b.Property("UsageLimitPerCustomer"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CartRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.Property("CartRuleId"); - - b.Property("CategoryId"); - - b.HasKey("CartRuleId", "CategoryId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Pricing_CartRuleCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.Property("CartRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CartRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CartRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.Property("CartRuleId"); - - b.Property("ProductId"); - - b.HasKey("CartRuleId", "ProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Pricing_CartRuleProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("CouponId"); - - b.Property("CreatedOn"); - - b.Property("OrderId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.HasIndex("CouponId"); - - b.HasIndex("UserId"); - - b.ToTable("Pricing_CartRuleUsage"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CatalogRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.Property("CatalogRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CatalogRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CatalogRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.ToTable("Pricing_Coupon"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("UserId"); - - b.ToTable("ProductComparison_ComparingProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductRecentlyViewed.Models.RecentlyViewedProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LatestViewedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.ToTable("ProductRecentlyViewed_RecentlyViewedProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("ReplierName") - .HasMaxLength(450); - - b.Property("ReviewId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ReviewId"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Reply"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Rating"); - - b.Property("ReviewerName") - .HasMaxLength(450); - - b.Property("Status"); - - b.Property("Title") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Review"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Search.Models.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("QueryText") - .IsRequired() - .HasMaxLength(500); - - b.Property("ResultsCount"); - - b.HasKey("Id"); - - b.ToTable("Search_Query"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("TrackingNumber") - .HasMaxLength(450); - - b.Property("VendorId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Shipments_Shipment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OrderItemId"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ShipmentId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("ShipmentId"); - - b.ToTable("Shipments_ShipmentItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipping.Models.ShippingProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("OnlyCountryIdsString") - .HasMaxLength(1000); - - b.Property("OnlyStateOrProvinceIdsString") - .HasMaxLength(1000); - - b.Property("ShippingPriceServiceTypeName") - .HasMaxLength(450); - - b.Property("ToAllShippingEnabledCountries"); - - b.Property("ToAllShippingEnabledStatesOrProvinces"); - - b.HasKey("Id"); - - b.ToTable("Shipping_ShippingProvider"); - - b.HasData( - new - { - Id = "FreeShip", - AdditionalSettings = "{MinimumOrderAmount : 1}", - ConfigureUrl = "", - IsEnabled = true, - Name = "Free Ship", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingFree.Services.FreeShippingServiceProvider,SimplCommerce.Module.ShippingFree", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }, - new - { - Id = "TableRate", - ConfigureUrl = "shipping-table-rate-config", - IsEnabled = true, - Name = "Table Rate", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingTableRate.Services.TableRateShippingServiceProvider,SimplCommerce.Module.ShippingTableRate", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("MinOrderSubtotal"); - - b.Property("Note"); - - b.Property("ShippingPrice"); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("ShippingTableRate_PriceAndDestination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("IsActive"); - - b.Property("IsProductPriceIncludeTax"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("ShippingAmount"); - - b.Property("ShippingData"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("TaxAmount"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.ToTable("ShoppingCart_Cart"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartId"); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.HasKey("Id"); - - b.HasIndex("CartId"); - - b.HasIndex("ProductId"); - - b.ToTable("ShoppingCart_CartItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxClass", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Tax_TaxClass"); - - b.HasData( - new - { - Id = 1L, - Name = "Standard VAT" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Rate"); - - b.Property("StateOrProvinceId"); - - b.Property("TaxClassId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("StateOrProvinceId"); - - b.HasIndex("TaxClassId"); - - b.ToTable("Tax_TaxRate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("SharingCode") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("WishList_WishList"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("LatestUpdatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("WishListId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WishListId"); - - b.ToTable("WishList_WishListItem"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role") - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.HasOne("SimplCommerce.Infrastructure.Localization.Culture", "Culture") - .WithMany("Resources") - .HasForeignKey("CultureId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.HasOne("SimplCommerce.Module.ActivityLog.Models.ActivityType", "ActivityType") - .WithMany() - .HasForeignKey("ActivityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Brand", "Brand") - .WithMany() - .HasForeignKey("BrandId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", "Group") - .WithMany("Attributes") - .HasForeignKey("GroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "Attribute") - .WithMany() - .HasForeignKey("AttributeId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("AttributeValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Categories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "LinkedProduct") - .WithMany("LinkedProductLinks") - .HasForeignKey("LinkedProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("ProductLinks") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Media", "Media") - .WithMany() - .HasForeignKey("MediaId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Medias") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionCombinations") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("PriceHistories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "ProductAttribute") - .WithMany("ProductTemplates") - .HasForeignKey("ProductAttributeId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductTemplate", "ProductTemplate") - .WithMany("ProductAttributes") - .HasForeignKey("ProductTemplateId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Entity", "Entity") - .WithMany() - .HasForeignKey("EntityId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.Menu", "Menu") - .WithMany("MenuItems") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.MenuItem", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.HasOne("SimplCommerce.Module.Comments.Models.Comment", "Parent") - .WithMany("Replies") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.HasOne("SimplCommerce.Module.Contacts.Models.ContactArea", "ContactArea") - .WithMany() - .HasForeignKey("ContactAreaId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany("Users") - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("CustomerGroups") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.EntityType", "EntityType") - .WithMany() - .HasForeignKey("EntityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany("StatesOrProvinces") - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultBillingAddress") - .WithMany() - .HasForeignKey("DefaultBillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultShippingAddress") - .WithMany() - .HasForeignKey("DefaultShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor") - .WithMany("Users") - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany("UserAddresses") - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("UserAddresses") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role", "Role") - .WithMany("Users") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Widget", "Widget") - .WithMany() - .HasForeignKey("WidgetId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.WidgetZone", "WidgetZone") - .WithMany() - .HasForeignKey("WidgetZoneId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor", "Vendor") - .WithMany() - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.HasOne("SimplCommerce.Module.News.Models.NewsCategory", "Category") - .WithMany("NewsItems") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.News.Models.NewsItem", "NewsItem") - .WithMany("Categories") - .HasForeignKey("NewsItemId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "BillingAddress") - .WithMany() - .HasForeignKey("BillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "ShippingAddress") - .WithMany() - .HasForeignKey("ShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany("OrderItems") - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Categories") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("CustomerGroups") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Products") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany() - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Pricing.Models.Coupon", "Coupon") - .WithMany() - .HasForeignKey("CouponId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CatalogRule", "CatalogRule") - .WithMany("CustomerGroups") - .HasForeignKey("CatalogRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Coupons") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.HasOne("SimplCommerce.Module.Reviews.Models.Review", "Review") - .WithMany("Replies") - .HasForeignKey("ReviewId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Shipments.Models.Shipment", "Shipment") - .WithMany("Items") - .HasForeignKey("ShipmentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.HasOne("SimplCommerce.Module.ShoppingCart.Models.Cart", "Cart") - .WithMany("Items") - .HasForeignKey("CartId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.WishList.Models.WishList", "WishList") - .WithMany("Items") - .HasForeignKey("WishListId") - .OnDelete(DeleteBehavior.Restrict); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190224050227_AddedCartLockOnCheckout.Designer.cs b/src/SimplCommerce.WebHost/Migrations/20190224050227_AddedCartLockOnCheckout.Designer.cs deleted file mode 100644 index e3186988ef..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190224050227_AddedCartLockOnCheckout.Designer.cs +++ /dev/null @@ -1,3506 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using SimplCommerce.Module.Core.Data; - -namespace SimplCommerce.WebHost.Migrations -{ - [DbContext(typeof(SimplDbContext))] - [Migration("20190224050227_AddedCartLockOnCheckout")] - partial class AddedCartLockOnCheckout - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.2.1-servicing-10028") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_RoleClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserLogin"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId"); - - b.Property("LoginProvider"); - - b.Property("Name"); - - b.Property("Value"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("Core_UserToken"); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Culture", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Localization_Culture"); - - b.HasData( - new - { - Id = "en-US", - Name = "English (US)" - }); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CultureId") - .IsRequired(); - - b.Property("Key") - .IsRequired() - .HasMaxLength(450); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("CultureId"); - - b.ToTable("Localization_Resource"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ActivityTypeId"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .IsRequired() - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ActivityTypeId"); - - b.ToTable("ActivityLog_Activity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.ActivityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("ActivityLog_ActivityType"); - - b.HasData( - new - { - Id = 1L, - Name = "EntityView" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Brand", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_Brand"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IncludeInMenu"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Category"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BrandId"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("Gtin") - .HasMaxLength(450); - - b.Property("HasOptions"); - - b.Property("IsAllowToOrder"); - - b.Property("IsCallForPricing"); - - b.Property("IsDeleted"); - - b.Property("IsFeatured"); - - b.Property("IsPublished"); - - b.Property("IsVisibleIndividually"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("NormalizedName") - .HasMaxLength(450); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("PublishedOn"); - - b.Property("RatingAverage"); - - b.Property("ReviewsCount"); - - b.Property("ShortDescription") - .HasMaxLength(450); - - b.Property("Sku") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.Property("Specification"); - - b.Property("StockQuantity"); - - b.Property("StockTrackingIsEnabled"); - - b.Property("TaxClassId"); - - b.Property("ThumbnailImageId"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BrandId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("TaxClassId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Product"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("GroupId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("GroupId"); - - b.ToTable("Catalog_ProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductAttributeGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AttributeId"); - - b.Property("ProductId"); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("AttributeId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductAttributeValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CategoryId"); - - b.Property("DisplayOrder"); - - b.Property("IsFeaturedProduct"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("CategoryId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LinkType"); - - b.Property("LinkedProductId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("LinkedProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductLink"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayOrder"); - - b.Property("MediaId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("MediaId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductMedia"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOption", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductOption"); - - b.HasData( - new - { - Id = 1L, - Name = "Color" - }, - new - { - Id = 2L, - Name = "Size" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionCombination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayType") - .HasMaxLength(450); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("ProductId"); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductPriceHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductTemplate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.Property("ProductTemplateId"); - - b.Property("ProductAttributeId"); - - b.HasKey("ProductTemplateId", "ProductAttributeId"); - - b.HasIndex("ProductAttributeId"); - - b.ToTable("Catalog_ProductTemplateProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Menu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsPublished"); - - b.Property("IsSystem"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Cms_Menu"); - - b.HasData( - new - { - Id = 1L, - IsPublished = true, - IsSystem = true, - Name = "Customer Services" - }, - new - { - Id = 2L, - IsPublished = true, - IsSystem = true, - Name = "Information" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CustomLink") - .HasMaxLength(450); - - b.Property("DisplayOrder"); - - b.Property("EntityId"); - - b.Property("MenuId"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.HasKey("Id"); - - b.HasIndex("EntityId"); - - b.HasIndex("MenuId"); - - b.HasIndex("ParentId"); - - b.ToTable("Cms_MenuItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Body"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.ToTable("Cms_Page"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CommentText"); - - b.Property("CommenterName") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("UserId"); - - b.ToTable("Comments_Comment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Address") - .HasMaxLength(450); - - b.Property("ContactAreaId"); - - b.Property("Content"); - - b.Property("CreatedOn"); - - b.Property("EmailAddress") - .HasMaxLength(450); - - b.Property("FullName") - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("PhoneNumber") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("ContactAreaId"); - - b.ToTable("Contacts_Contact"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.ContactArea", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsDeleted"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Contacts_ContactArea"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .IsRequired() - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_Address"); - - b.HasData( - new - { - Id = 1L, - AddressLine1 = "364 Cong Hoa", - ContactName = "Thien Nguyen", - CountryId = "VN", - StateOrProvinceId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.AppSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("IsVisibleInCommonSettingPage"); - - b.Property("Module") - .HasMaxLength(450); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_AppSetting"); - - b.HasData( - new - { - Id = "Catalog.ProductPageSize", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "10" - }, - new - { - Id = "Catalog.IsProductPriceIncludeTax", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "Catalog.IsCommentsRequireApproval", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "GoogleAppKey", - IsVisibleInCommonSettingPage = false, - Module = "Contact", - Value = "" - }, - new - { - Id = "Global.AssetVersion", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "1.0" - }, - new - { - Id = "Theme", - IsVisibleInCommonSettingPage = false, - Module = "Core", - Value = "Generic" - }, - new - { - Id = "SmtpServer", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "smtp.gmail.com" - }, - new - { - Id = "SmtpPort", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "587" - }, - new - { - Id = "SmtpUsername", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "SmtpPassword", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "News.PageSize", - IsVisibleInCommonSettingPage = true, - Module = "News", - Value = "10" - }, - new - { - Id = "Tax.DefaultTaxClassId", - IsVisibleInCommonSettingPage = true, - Module = "Tax", - Value = "1" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Country", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Code3") - .HasMaxLength(450); - - b.Property("IsBillingEnabled"); - - b.Property("IsCityEnabled"); - - b.Property("IsDistrictEnabled"); - - b.Property("IsShippingEnabled"); - - b.Property("IsZipCodeEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Country"); - - b.HasData( - new - { - Id = "VN", - Code3 = "VNM", - IsBillingEnabled = true, - IsCityEnabled = false, - IsDistrictEnabled = true, - IsShippingEnabled = true, - IsZipCodeEnabled = false, - Name = "Việt Nam" - }, - new - { - Id = "US", - Code3 = "USA", - IsBillingEnabled = true, - IsCityEnabled = true, - IsDistrictEnabled = false, - IsShippingEnabled = true, - IsZipCodeEnabled = true, - Name = "United States" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Core_CustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.Property("UserId"); - - b.Property("CustomerGroupId"); - - b.HasKey("UserId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Core_CustomerGroupUser"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Location"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_District"); - - b.HasData( - new - { - Id = 1L, - Name = "Quận 1", - StateOrProvinceId = 1L, - Type = "Quận" - }, - new - { - Id = 2L, - Name = "Quận 2", - StateOrProvinceId = 1L, - Type = "Quận" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("EntityTypeId"); - - b.ToTable("Core_Entity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.EntityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AreaName") - .HasMaxLength(450); - - b.Property("IsMenuable"); - - b.Property("RoutingAction") - .HasMaxLength(450); - - b.Property("RoutingController") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_EntityType"); - - b.HasData( - new - { - Id = "Category", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "CategoryDetail", - RoutingController = "Category" - }, - new - { - Id = "Brand", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "BrandDetail", - RoutingController = "Brand" - }, - new - { - Id = "Product", - AreaName = "Catalog", - IsMenuable = false, - RoutingAction = "ProductDetail", - RoutingController = "Product" - }, - new - { - Id = "Page", - AreaName = "Cms", - IsMenuable = true, - RoutingAction = "PageDetail", - RoutingController = "Page" - }, - new - { - Id = "Vendor", - AreaName = "Core", - IsMenuable = false, - RoutingAction = "VendorDetail", - RoutingController = "Vendor" - }, - new - { - Id = "NewsCategory", - AreaName = "News", - IsMenuable = true, - RoutingAction = "NewsCategoryDetail", - RoutingController = "NewsCategory" - }, - new - { - Id = "NewsItem", - AreaName = "News", - IsMenuable = false, - RoutingAction = "NewsItemDetail", - RoutingController = "NewsItem" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Media", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Caption") - .HasMaxLength(450); - - b.Property("FileName") - .HasMaxLength(450); - - b.Property("FileSize"); - - b.Property("MediaType"); - - b.HasKey("Id"); - - b.ToTable("Core_Media"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasMaxLength(256); - - b.Property("NormalizedName") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasName("RoleNameIndex") - .HasFilter("[NormalizedName] IS NOT NULL"); - - b.ToTable("Core_Role"); - - b.HasData( - new - { - Id = 1L, - ConcurrencyStamp = "4776a1b2-dbe4-4056-82ec-8bed211d1454", - Name = "admin", - NormalizedName = "ADMIN" - }, - new - { - Id = 2L, - ConcurrencyStamp = "00d172be-03a0-4856-8b12-26d63fcf4374", - Name = "customer", - NormalizedName = "CUSTOMER" - }, - new - { - Id = 3L, - ConcurrencyStamp = "d4754388-8355-4018-b728-218018836817", - Name = "guest", - NormalizedName = "GUEST" - }, - new - { - Id = 4L, - ConcurrencyStamp = "71f10604-8c4d-4a7d-ac4a-ffefb11cefeb", - Name = "vendor", - NormalizedName = "VENDOR" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Code") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.ToTable("Core_StateOrProvince"); - - b.HasData( - new - { - Id = 1L, - CountryId = "VN", - Name = "Hồ Chí Minh", - Type = "Thành Phố" - }, - new - { - Id = 2L, - Code = "WA", - CountryId = "US", - Name = "Washington" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("CreatedOn"); - - b.Property("Culture") - .HasMaxLength(450); - - b.Property("DefaultBillingAddressId"); - - b.Property("DefaultShippingAddressId"); - - b.Property("Email") - .HasMaxLength(256); - - b.Property("EmailConfirmed"); - - b.Property("ExtensionData"); - - b.Property("FullName") - .IsRequired() - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .HasMaxLength(256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("RefreshTokenHash") - .HasMaxLength(450); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserGuid"); - - b.Property("UserName") - .HasMaxLength(256); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("DefaultBillingAddressId"); - - b.HasIndex("DefaultShippingAddressId"); - - b.HasIndex("NormalizedEmail") - .HasName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasName("UserNameIndex") - .HasFilter("[NormalizedUserName] IS NOT NULL"); - - b.HasIndex("VendorId"); - - b.ToTable("Core_User"); - - b.HasData( - new - { - Id = 2L, - AccessFailedCount = 0, - ConcurrencyStamp = "101cd6ae-a8ef-4a37-97fd-04ac2dd630e4", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "system@simplcommerce.com", - EmailConfirmed = false, - FullName = "System User", - IsDeleted = true, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "SYSTEM@SIMPLCOMMERCE.COM", - NormalizedUserName = "SYSTEM@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "a9565acb-cee6-425f-9833-419a793f5fba", - TwoFactorEnabled = false, - UserGuid = new Guid("5f72f83b-7436-4221-869c-1b69b2e23aae"), - UserName = "system@simplcommerce.com" - }, - new - { - Id = 10L, - AccessFailedCount = 0, - ConcurrencyStamp = "c83afcbc-312c-4589-bad7-8686bd4754c0", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "admin@simplcommerce.com", - EmailConfirmed = false, - FullName = "Shop Admin", - IsDeleted = false, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "ADMIN@SIMPLCOMMERCE.COM", - NormalizedUserName = "ADMIN@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "d6847450-47f0-4c7a-9fed-0c66234bf61f", - TwoFactorEnabled = false, - UserGuid = new Guid("ed8210c3-24b0-4823-a744-80078cf12eb4"), - UserName = "admin@simplcommerce.com" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("AddressType"); - - b.Property("LastUsedOn"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_UserRole"); - - b.HasData( - new - { - UserId = 10L, - RoleId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Vendor", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("Email"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Vendor"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Widget", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CreateUrl") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EditUrl") - .HasMaxLength(450); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ViewComponentName") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Widget"); - - b.HasData( - new - { - Id = "CategoryWidget", - CreateUrl = "widget-category-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-category-edit", - IsPublished = false, - Name = "Category Widget", - ViewComponentName = "CategoryWidget" - }, - new - { - Id = "ProductWidget", - CreateUrl = "widget-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-product-edit", - IsPublished = false, - Name = "Product Widget", - ViewComponentName = "ProductWidget" - }, - new - { - Id = "SimpleProductWidget", - CreateUrl = "widget-simple-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-simple-product-edit", - IsPublished = false, - Name = "Simple Product Widget", - ViewComponentName = "SimpleProductWidget" - }, - new - { - Id = "HtmlWidget", - CreateUrl = "widget-html-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-html-edit", - IsPublished = false, - Name = "Html Widget", - ViewComponentName = "HtmlWidget" - }, - new - { - Id = "CarouselWidget", - CreateUrl = "widget-carousel-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-carousel-edit", - IsPublished = false, - Name = "Carousel Widget", - ViewComponentName = "CarouselWidget" - }, - new - { - Id = "SpaceBarWidget", - CreateUrl = "widget-spacebar-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-spacebar-edit", - IsPublished = false, - Name = "SpaceBar Widget", - ViewComponentName = "SpaceBarWidget" - }, - new - { - Id = "RecentlyViewedWidget", - CreateUrl = "widget-recently-viewed-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-recently-viewed-edit", - IsPublished = false, - Name = "Recently Viewed Widget", - ViewComponentName = "RecentlyViewedWidget" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Data"); - - b.Property("DisplayOrder"); - - b.Property("HtmlData"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("PublishEnd"); - - b.Property("PublishStart"); - - b.Property("WidgetId") - .HasMaxLength(450); - - b.Property("WidgetZoneId"); - - b.HasKey("Id"); - - b.HasIndex("WidgetId"); - - b.HasIndex("WidgetZoneId"); - - b.ToTable("Core_WidgetInstance"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetZone", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_WidgetZone"); - - b.HasData( - new - { - Id = 1L, - Name = "Home Featured" - }, - new - { - Id = 2L, - Name = "Home Main Content" - }, - new - { - Id = 3L, - Name = "Home After Main Content" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ReservedQuantity"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_Stock"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AdjustedQuantity"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("ProductId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_StockHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("VendorId"); - - b.ToTable("Inventory_Warehouse"); - - b.HasData( - new - { - Id = 1L, - AddressId = 1L, - Name = "Default warehouse" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("News_NewsCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("FullContent"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("ShortContent") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("News_NewsItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.Property("CategoryId"); - - b.Property("NewsItemId"); - - b.HasKey("CategoryId", "NewsItemId"); - - b.HasIndex("NewsItemId"); - - b.ToTable("News_NewsItemCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BillingAddressId"); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("DiscountAmount"); - - b.Property("IsMasterOrder"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("OrderStatus"); - - b.Property("OrderTotal"); - - b.Property("ParentId"); - - b.Property("PaymentFeeAmount"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("ShippingAddressId"); - - b.Property("ShippingFeeAmount"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("SubTotal"); - - b.Property("SubTotalWithDiscount"); - - b.Property("TaxAmount"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BillingAddressId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ParentId"); - - b.HasIndex("ShippingAddressId"); - - b.ToTable("Orders_Order"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Orders_OrderAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("NewStatus"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("OldStatus"); - - b.Property("OrderId"); - - b.Property("OrderSnapshot"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.ToTable("Orders_OrderHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DiscountAmount"); - - b.Property("OrderId"); - - b.Property("ProductId"); - - b.Property("ProductPrice"); - - b.Property("Quantity"); - - b.Property("TaxAmount"); - - b.Property("TaxPercent"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.HasIndex("ProductId"); - - b.ToTable("Orders_OrderItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Amount"); - - b.Property("CreatedOn"); - - b.Property("FailureMessage"); - - b.Property("GatewayTransactionId") - .HasMaxLength(450); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("PaymentFee"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("Status"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.ToTable("Payments_Payment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.PaymentProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("LandingViewComponentName") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Payments_PaymentProvider"); - - b.HasData( - new - { - Id = "Braintree", - AdditionalSettings = "{\"PublicKey\": \"6j4d7qspt5n48kx4\", \"PrivateKey\" : \"bd1c26e53a6d811243fcc3eb268113e1\", \"MerchantId\" : \"ncsh7wwqvzs3cx9q\", \"IsProduction\" : \"false\"}", - ConfigureUrl = "payments-braintree-config", - IsEnabled = true, - LandingViewComponentName = "BraintreeLanding", - Name = "Braintree" - }, - new - { - Id = "CoD", - ConfigureUrl = "payments-cod-config", - IsEnabled = true, - LandingViewComponentName = "CoDLanding", - Name = "Cash On Delivery" - }, - new - { - Id = "PaypalExpress", - AdditionalSettings = "{ \"IsSandbox\":true, \"ClientId\":\"\", \"ClientSecret\":\"\" }", - ConfigureUrl = "payments-paypalExpress-config", - IsEnabled = true, - LandingViewComponentName = "PaypalExpressLanding", - Name = "Paypal Express" - }, - new - { - Id = "Stripe", - AdditionalSettings = "{\"PublicKey\": \"pk_test_6pRNASCoBOKtIshFeQd4XMUh\", \"PrivateKey\" : \"sk_test_BQokikJOvBiI2HlWgH4olfQ2\"}", - ConfigureUrl = "payments-stripe-config", - IsEnabled = true, - LandingViewComponentName = "StripeLanding", - Name = "Stripe" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("DiscountStep"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("IsCouponRequired"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.Property("UsageLimitPerCoupon"); - - b.Property("UsageLimitPerCustomer"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CartRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.Property("CartRuleId"); - - b.Property("CategoryId"); - - b.HasKey("CartRuleId", "CategoryId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Pricing_CartRuleCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.Property("CartRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CartRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CartRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.Property("CartRuleId"); - - b.Property("ProductId"); - - b.HasKey("CartRuleId", "ProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Pricing_CartRuleProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("CouponId"); - - b.Property("CreatedOn"); - - b.Property("OrderId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.HasIndex("CouponId"); - - b.HasIndex("UserId"); - - b.ToTable("Pricing_CartRuleUsage"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CatalogRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.Property("CatalogRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CatalogRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CatalogRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.ToTable("Pricing_Coupon"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("UserId"); - - b.ToTable("ProductComparison_ComparingProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductRecentlyViewed.Models.RecentlyViewedProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LatestViewedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.ToTable("ProductRecentlyViewed_RecentlyViewedProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("ReplierName") - .HasMaxLength(450); - - b.Property("ReviewId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ReviewId"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Reply"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Rating"); - - b.Property("ReviewerName") - .HasMaxLength(450); - - b.Property("Status"); - - b.Property("Title") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Review"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Search.Models.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("QueryText") - .IsRequired() - .HasMaxLength(500); - - b.Property("ResultsCount"); - - b.HasKey("Id"); - - b.ToTable("Search_Query"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("TrackingNumber") - .HasMaxLength(450); - - b.Property("VendorId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Shipments_Shipment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OrderItemId"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ShipmentId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("ShipmentId"); - - b.ToTable("Shipments_ShipmentItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipping.Models.ShippingProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("OnlyCountryIdsString") - .HasMaxLength(1000); - - b.Property("OnlyStateOrProvinceIdsString") - .HasMaxLength(1000); - - b.Property("ShippingPriceServiceTypeName") - .HasMaxLength(450); - - b.Property("ToAllShippingEnabledCountries"); - - b.Property("ToAllShippingEnabledStatesOrProvinces"); - - b.HasKey("Id"); - - b.ToTable("Shipping_ShippingProvider"); - - b.HasData( - new - { - Id = "FreeShip", - AdditionalSettings = "{MinimumOrderAmount : 1}", - ConfigureUrl = "", - IsEnabled = true, - Name = "Free Ship", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingFree.Services.FreeShippingServiceProvider,SimplCommerce.Module.ShippingFree", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }, - new - { - Id = "TableRate", - ConfigureUrl = "shipping-table-rate-config", - IsEnabled = true, - Name = "Table Rate", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingTableRate.Services.TableRateShippingServiceProvider,SimplCommerce.Module.ShippingTableRate", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("MinOrderSubtotal"); - - b.Property("Note"); - - b.Property("ShippingPrice"); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("ShippingTableRate_PriceAndDestination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("IsActive"); - - b.Property("IsProductPriceIncludeTax"); - - b.Property("LatestUpdatedOn"); - - b.Property("LockedOnCheckout"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("ShippingAmount"); - - b.Property("ShippingData"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("TaxAmount"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.ToTable("ShoppingCart_Cart"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartId"); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.HasKey("Id"); - - b.HasIndex("CartId"); - - b.HasIndex("ProductId"); - - b.ToTable("ShoppingCart_CartItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxClass", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Tax_TaxClass"); - - b.HasData( - new - { - Id = 1L, - Name = "Standard VAT" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Rate"); - - b.Property("StateOrProvinceId"); - - b.Property("TaxClassId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("StateOrProvinceId"); - - b.HasIndex("TaxClassId"); - - b.ToTable("Tax_TaxRate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("SharingCode") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("WishList_WishList"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("LatestUpdatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("WishListId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WishListId"); - - b.ToTable("WishList_WishListItem"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role") - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.HasOne("SimplCommerce.Infrastructure.Localization.Culture", "Culture") - .WithMany("Resources") - .HasForeignKey("CultureId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.HasOne("SimplCommerce.Module.ActivityLog.Models.ActivityType", "ActivityType") - .WithMany() - .HasForeignKey("ActivityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Brand", "Brand") - .WithMany() - .HasForeignKey("BrandId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", "Group") - .WithMany("Attributes") - .HasForeignKey("GroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "Attribute") - .WithMany() - .HasForeignKey("AttributeId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("AttributeValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Categories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "LinkedProduct") - .WithMany("LinkedProductLinks") - .HasForeignKey("LinkedProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("ProductLinks") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Media", "Media") - .WithMany() - .HasForeignKey("MediaId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Medias") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionCombinations") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("PriceHistories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "ProductAttribute") - .WithMany("ProductTemplates") - .HasForeignKey("ProductAttributeId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductTemplate", "ProductTemplate") - .WithMany("ProductAttributes") - .HasForeignKey("ProductTemplateId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Entity", "Entity") - .WithMany() - .HasForeignKey("EntityId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.Menu", "Menu") - .WithMany("MenuItems") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.MenuItem", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.HasOne("SimplCommerce.Module.Comments.Models.Comment", "Parent") - .WithMany("Replies") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.HasOne("SimplCommerce.Module.Contacts.Models.ContactArea", "ContactArea") - .WithMany() - .HasForeignKey("ContactAreaId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany("Users") - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("CustomerGroups") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.EntityType", "EntityType") - .WithMany() - .HasForeignKey("EntityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany("StatesOrProvinces") - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultBillingAddress") - .WithMany() - .HasForeignKey("DefaultBillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultShippingAddress") - .WithMany() - .HasForeignKey("DefaultShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor") - .WithMany("Users") - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany("UserAddresses") - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("UserAddresses") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role", "Role") - .WithMany("Users") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Widget", "Widget") - .WithMany() - .HasForeignKey("WidgetId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.WidgetZone", "WidgetZone") - .WithMany() - .HasForeignKey("WidgetZoneId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor", "Vendor") - .WithMany() - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.HasOne("SimplCommerce.Module.News.Models.NewsCategory", "Category") - .WithMany("NewsItems") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.News.Models.NewsItem", "NewsItem") - .WithMany("Categories") - .HasForeignKey("NewsItemId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "BillingAddress") - .WithMany() - .HasForeignKey("BillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "ShippingAddress") - .WithMany() - .HasForeignKey("ShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany("OrderItems") - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Categories") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("CustomerGroups") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Products") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany() - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Pricing.Models.Coupon", "Coupon") - .WithMany() - .HasForeignKey("CouponId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CatalogRule", "CatalogRule") - .WithMany("CustomerGroups") - .HasForeignKey("CatalogRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Coupons") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.HasOne("SimplCommerce.Module.Reviews.Models.Review", "Review") - .WithMany("Replies") - .HasForeignKey("ReviewId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Shipments.Models.Shipment", "Shipment") - .WithMany("Items") - .HasForeignKey("ShipmentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.HasOne("SimplCommerce.Module.ShoppingCart.Models.Cart", "Cart") - .WithMany("Items") - .HasForeignKey("CartId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.WishList.Models.WishList", "WishList") - .WithMany("Items") - .HasForeignKey("WishListId") - .OnDelete(DeleteBehavior.Restrict); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190224050227_AddedCartLockOnCheckout.cs b/src/SimplCommerce.WebHost/Migrations/20190224050227_AddedCartLockOnCheckout.cs deleted file mode 100644 index 85c972d2b8..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190224050227_AddedCartLockOnCheckout.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace SimplCommerce.WebHost.Migrations -{ - public partial class AddedCartLockOnCheckout : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "LockedOnCheckout", - table: "ShoppingCart_Cart", - nullable: false, - defaultValue: false); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "LockedOnCheckout", - table: "ShoppingCart_Cart"); - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190302122027_MomoPayment.Designer.cs b/src/SimplCommerce.WebHost/Migrations/20190302122027_MomoPayment.Designer.cs deleted file mode 100644 index 1ff5880623..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190302122027_MomoPayment.Designer.cs +++ /dev/null @@ -1,3515 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using SimplCommerce.Module.Core.Data; - -namespace SimplCommerce.WebHost.Migrations -{ - [DbContext(typeof(SimplDbContext))] - [Migration("20190302122027_MomoPayment")] - partial class MomoPayment - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.2.1-servicing-10028") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_RoleClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserLogin"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId"); - - b.Property("LoginProvider"); - - b.Property("Name"); - - b.Property("Value"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("Core_UserToken"); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Culture", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Localization_Culture"); - - b.HasData( - new - { - Id = "en-US", - Name = "English (US)" - }); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CultureId") - .IsRequired(); - - b.Property("Key") - .IsRequired() - .HasMaxLength(450); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("CultureId"); - - b.ToTable("Localization_Resource"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ActivityTypeId"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .IsRequired() - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ActivityTypeId"); - - b.ToTable("ActivityLog_Activity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.ActivityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("ActivityLog_ActivityType"); - - b.HasData( - new - { - Id = 1L, - Name = "EntityView" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Brand", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_Brand"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IncludeInMenu"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Category"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BrandId"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("Gtin") - .HasMaxLength(450); - - b.Property("HasOptions"); - - b.Property("IsAllowToOrder"); - - b.Property("IsCallForPricing"); - - b.Property("IsDeleted"); - - b.Property("IsFeatured"); - - b.Property("IsPublished"); - - b.Property("IsVisibleIndividually"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("NormalizedName") - .HasMaxLength(450); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("PublishedOn"); - - b.Property("RatingAverage"); - - b.Property("ReviewsCount"); - - b.Property("ShortDescription") - .HasMaxLength(450); - - b.Property("Sku") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.Property("Specification"); - - b.Property("StockQuantity"); - - b.Property("StockTrackingIsEnabled"); - - b.Property("TaxClassId"); - - b.Property("ThumbnailImageId"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BrandId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("TaxClassId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Product"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("GroupId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("GroupId"); - - b.ToTable("Catalog_ProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductAttributeGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AttributeId"); - - b.Property("ProductId"); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("AttributeId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductAttributeValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CategoryId"); - - b.Property("DisplayOrder"); - - b.Property("IsFeaturedProduct"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("CategoryId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LinkType"); - - b.Property("LinkedProductId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("LinkedProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductLink"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayOrder"); - - b.Property("MediaId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("MediaId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductMedia"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOption", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductOption"); - - b.HasData( - new - { - Id = 1L, - Name = "Color" - }, - new - { - Id = 2L, - Name = "Size" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionCombination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayType") - .HasMaxLength(450); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("ProductId"); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductPriceHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductTemplate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.Property("ProductTemplateId"); - - b.Property("ProductAttributeId"); - - b.HasKey("ProductTemplateId", "ProductAttributeId"); - - b.HasIndex("ProductAttributeId"); - - b.ToTable("Catalog_ProductTemplateProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Menu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsPublished"); - - b.Property("IsSystem"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Cms_Menu"); - - b.HasData( - new - { - Id = 1L, - IsPublished = true, - IsSystem = true, - Name = "Customer Services" - }, - new - { - Id = 2L, - IsPublished = true, - IsSystem = true, - Name = "Information" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CustomLink") - .HasMaxLength(450); - - b.Property("DisplayOrder"); - - b.Property("EntityId"); - - b.Property("MenuId"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.HasKey("Id"); - - b.HasIndex("EntityId"); - - b.HasIndex("MenuId"); - - b.HasIndex("ParentId"); - - b.ToTable("Cms_MenuItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Body"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.ToTable("Cms_Page"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CommentText"); - - b.Property("CommenterName") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("UserId"); - - b.ToTable("Comments_Comment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Address") - .HasMaxLength(450); - - b.Property("ContactAreaId"); - - b.Property("Content"); - - b.Property("CreatedOn"); - - b.Property("EmailAddress") - .HasMaxLength(450); - - b.Property("FullName") - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("PhoneNumber") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("ContactAreaId"); - - b.ToTable("Contacts_Contact"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.ContactArea", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsDeleted"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Contacts_ContactArea"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .IsRequired() - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_Address"); - - b.HasData( - new - { - Id = 1L, - AddressLine1 = "364 Cong Hoa", - ContactName = "Thien Nguyen", - CountryId = "VN", - StateOrProvinceId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.AppSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("IsVisibleInCommonSettingPage"); - - b.Property("Module") - .HasMaxLength(450); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_AppSetting"); - - b.HasData( - new - { - Id = "Catalog.ProductPageSize", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "10" - }, - new - { - Id = "Catalog.IsProductPriceIncludeTax", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "Catalog.IsCommentsRequireApproval", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "GoogleAppKey", - IsVisibleInCommonSettingPage = false, - Module = "Contact", - Value = "" - }, - new - { - Id = "Global.AssetVersion", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "1.0" - }, - new - { - Id = "Theme", - IsVisibleInCommonSettingPage = false, - Module = "Core", - Value = "Generic" - }, - new - { - Id = "SmtpServer", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "smtp.gmail.com" - }, - new - { - Id = "SmtpPort", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "587" - }, - new - { - Id = "SmtpUsername", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "SmtpPassword", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "News.PageSize", - IsVisibleInCommonSettingPage = true, - Module = "News", - Value = "10" - }, - new - { - Id = "Tax.DefaultTaxClassId", - IsVisibleInCommonSettingPage = true, - Module = "Tax", - Value = "1" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Country", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Code3") - .HasMaxLength(450); - - b.Property("IsBillingEnabled"); - - b.Property("IsCityEnabled"); - - b.Property("IsDistrictEnabled"); - - b.Property("IsShippingEnabled"); - - b.Property("IsZipCodeEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Country"); - - b.HasData( - new - { - Id = "VN", - Code3 = "VNM", - IsBillingEnabled = true, - IsCityEnabled = false, - IsDistrictEnabled = true, - IsShippingEnabled = true, - IsZipCodeEnabled = false, - Name = "Việt Nam" - }, - new - { - Id = "US", - Code3 = "USA", - IsBillingEnabled = true, - IsCityEnabled = true, - IsDistrictEnabled = false, - IsShippingEnabled = true, - IsZipCodeEnabled = true, - Name = "United States" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Core_CustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.Property("UserId"); - - b.Property("CustomerGroupId"); - - b.HasKey("UserId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Core_CustomerGroupUser"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Location"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_District"); - - b.HasData( - new - { - Id = 1L, - Name = "Quận 1", - StateOrProvinceId = 1L, - Type = "Quận" - }, - new - { - Id = 2L, - Name = "Quận 2", - StateOrProvinceId = 1L, - Type = "Quận" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("EntityTypeId"); - - b.ToTable("Core_Entity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.EntityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AreaName") - .HasMaxLength(450); - - b.Property("IsMenuable"); - - b.Property("RoutingAction") - .HasMaxLength(450); - - b.Property("RoutingController") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_EntityType"); - - b.HasData( - new - { - Id = "Category", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "CategoryDetail", - RoutingController = "Category" - }, - new - { - Id = "Brand", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "BrandDetail", - RoutingController = "Brand" - }, - new - { - Id = "Product", - AreaName = "Catalog", - IsMenuable = false, - RoutingAction = "ProductDetail", - RoutingController = "Product" - }, - new - { - Id = "Page", - AreaName = "Cms", - IsMenuable = true, - RoutingAction = "PageDetail", - RoutingController = "Page" - }, - new - { - Id = "Vendor", - AreaName = "Core", - IsMenuable = false, - RoutingAction = "VendorDetail", - RoutingController = "Vendor" - }, - new - { - Id = "NewsCategory", - AreaName = "News", - IsMenuable = true, - RoutingAction = "NewsCategoryDetail", - RoutingController = "NewsCategory" - }, - new - { - Id = "NewsItem", - AreaName = "News", - IsMenuable = false, - RoutingAction = "NewsItemDetail", - RoutingController = "NewsItem" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Media", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Caption") - .HasMaxLength(450); - - b.Property("FileName") - .HasMaxLength(450); - - b.Property("FileSize"); - - b.Property("MediaType"); - - b.HasKey("Id"); - - b.ToTable("Core_Media"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasMaxLength(256); - - b.Property("NormalizedName") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasName("RoleNameIndex") - .HasFilter("[NormalizedName] IS NOT NULL"); - - b.ToTable("Core_Role"); - - b.HasData( - new - { - Id = 1L, - ConcurrencyStamp = "4776a1b2-dbe4-4056-82ec-8bed211d1454", - Name = "admin", - NormalizedName = "ADMIN" - }, - new - { - Id = 2L, - ConcurrencyStamp = "00d172be-03a0-4856-8b12-26d63fcf4374", - Name = "customer", - NormalizedName = "CUSTOMER" - }, - new - { - Id = 3L, - ConcurrencyStamp = "d4754388-8355-4018-b728-218018836817", - Name = "guest", - NormalizedName = "GUEST" - }, - new - { - Id = 4L, - ConcurrencyStamp = "71f10604-8c4d-4a7d-ac4a-ffefb11cefeb", - Name = "vendor", - NormalizedName = "VENDOR" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Code") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.ToTable("Core_StateOrProvince"); - - b.HasData( - new - { - Id = 1L, - CountryId = "VN", - Name = "Hồ Chí Minh", - Type = "Thành Phố" - }, - new - { - Id = 2L, - Code = "WA", - CountryId = "US", - Name = "Washington" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("CreatedOn"); - - b.Property("Culture") - .HasMaxLength(450); - - b.Property("DefaultBillingAddressId"); - - b.Property("DefaultShippingAddressId"); - - b.Property("Email") - .HasMaxLength(256); - - b.Property("EmailConfirmed"); - - b.Property("ExtensionData"); - - b.Property("FullName") - .IsRequired() - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .HasMaxLength(256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("RefreshTokenHash") - .HasMaxLength(450); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserGuid"); - - b.Property("UserName") - .HasMaxLength(256); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("DefaultBillingAddressId"); - - b.HasIndex("DefaultShippingAddressId"); - - b.HasIndex("NormalizedEmail") - .HasName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasName("UserNameIndex") - .HasFilter("[NormalizedUserName] IS NOT NULL"); - - b.HasIndex("VendorId"); - - b.ToTable("Core_User"); - - b.HasData( - new - { - Id = 2L, - AccessFailedCount = 0, - ConcurrencyStamp = "101cd6ae-a8ef-4a37-97fd-04ac2dd630e4", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "system@simplcommerce.com", - EmailConfirmed = false, - FullName = "System User", - IsDeleted = true, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "SYSTEM@SIMPLCOMMERCE.COM", - NormalizedUserName = "SYSTEM@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "a9565acb-cee6-425f-9833-419a793f5fba", - TwoFactorEnabled = false, - UserGuid = new Guid("5f72f83b-7436-4221-869c-1b69b2e23aae"), - UserName = "system@simplcommerce.com" - }, - new - { - Id = 10L, - AccessFailedCount = 0, - ConcurrencyStamp = "c83afcbc-312c-4589-bad7-8686bd4754c0", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "admin@simplcommerce.com", - EmailConfirmed = false, - FullName = "Shop Admin", - IsDeleted = false, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "ADMIN@SIMPLCOMMERCE.COM", - NormalizedUserName = "ADMIN@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "d6847450-47f0-4c7a-9fed-0c66234bf61f", - TwoFactorEnabled = false, - UserGuid = new Guid("ed8210c3-24b0-4823-a744-80078cf12eb4"), - UserName = "admin@simplcommerce.com" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("AddressType"); - - b.Property("LastUsedOn"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_UserRole"); - - b.HasData( - new - { - UserId = 10L, - RoleId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Vendor", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("Email"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Vendor"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Widget", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CreateUrl") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EditUrl") - .HasMaxLength(450); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ViewComponentName") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Widget"); - - b.HasData( - new - { - Id = "CategoryWidget", - CreateUrl = "widget-category-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-category-edit", - IsPublished = false, - Name = "Category Widget", - ViewComponentName = "CategoryWidget" - }, - new - { - Id = "ProductWidget", - CreateUrl = "widget-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-product-edit", - IsPublished = false, - Name = "Product Widget", - ViewComponentName = "ProductWidget" - }, - new - { - Id = "SimpleProductWidget", - CreateUrl = "widget-simple-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-simple-product-edit", - IsPublished = false, - Name = "Simple Product Widget", - ViewComponentName = "SimpleProductWidget" - }, - new - { - Id = "HtmlWidget", - CreateUrl = "widget-html-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-html-edit", - IsPublished = false, - Name = "Html Widget", - ViewComponentName = "HtmlWidget" - }, - new - { - Id = "CarouselWidget", - CreateUrl = "widget-carousel-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-carousel-edit", - IsPublished = false, - Name = "Carousel Widget", - ViewComponentName = "CarouselWidget" - }, - new - { - Id = "SpaceBarWidget", - CreateUrl = "widget-spacebar-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-spacebar-edit", - IsPublished = false, - Name = "SpaceBar Widget", - ViewComponentName = "SpaceBarWidget" - }, - new - { - Id = "RecentlyViewedWidget", - CreateUrl = "widget-recently-viewed-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-recently-viewed-edit", - IsPublished = false, - Name = "Recently Viewed Widget", - ViewComponentName = "RecentlyViewedWidget" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Data"); - - b.Property("DisplayOrder"); - - b.Property("HtmlData"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("PublishEnd"); - - b.Property("PublishStart"); - - b.Property("WidgetId") - .HasMaxLength(450); - - b.Property("WidgetZoneId"); - - b.HasKey("Id"); - - b.HasIndex("WidgetId"); - - b.HasIndex("WidgetZoneId"); - - b.ToTable("Core_WidgetInstance"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetZone", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_WidgetZone"); - - b.HasData( - new - { - Id = 1L, - Name = "Home Featured" - }, - new - { - Id = 2L, - Name = "Home Main Content" - }, - new - { - Id = 3L, - Name = "Home After Main Content" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ReservedQuantity"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_Stock"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AdjustedQuantity"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("ProductId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_StockHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("VendorId"); - - b.ToTable("Inventory_Warehouse"); - - b.HasData( - new - { - Id = 1L, - AddressId = 1L, - Name = "Default warehouse" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("News_NewsCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("FullContent"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("ShortContent") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("News_NewsItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.Property("CategoryId"); - - b.Property("NewsItemId"); - - b.HasKey("CategoryId", "NewsItemId"); - - b.HasIndex("NewsItemId"); - - b.ToTable("News_NewsItemCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BillingAddressId"); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("DiscountAmount"); - - b.Property("IsMasterOrder"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("OrderStatus"); - - b.Property("OrderTotal"); - - b.Property("ParentId"); - - b.Property("PaymentFeeAmount"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("ShippingAddressId"); - - b.Property("ShippingFeeAmount"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("SubTotal"); - - b.Property("SubTotalWithDiscount"); - - b.Property("TaxAmount"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BillingAddressId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ParentId"); - - b.HasIndex("ShippingAddressId"); - - b.ToTable("Orders_Order"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Orders_OrderAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("NewStatus"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("OldStatus"); - - b.Property("OrderId"); - - b.Property("OrderSnapshot"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.ToTable("Orders_OrderHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DiscountAmount"); - - b.Property("OrderId"); - - b.Property("ProductId"); - - b.Property("ProductPrice"); - - b.Property("Quantity"); - - b.Property("TaxAmount"); - - b.Property("TaxPercent"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.HasIndex("ProductId"); - - b.ToTable("Orders_OrderItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Amount"); - - b.Property("CreatedOn"); - - b.Property("FailureMessage"); - - b.Property("GatewayTransactionId") - .HasMaxLength(450); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("PaymentFee"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("Status"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.ToTable("Payments_Payment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.PaymentProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("LandingViewComponentName") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Payments_PaymentProvider"); - - b.HasData( - new - { - Id = "Braintree", - AdditionalSettings = "{\"PublicKey\": \"6j4d7qspt5n48kx4\", \"PrivateKey\" : \"bd1c26e53a6d811243fcc3eb268113e1\", \"MerchantId\" : \"ncsh7wwqvzs3cx9q\", \"IsProduction\" : \"false\"}", - ConfigureUrl = "payments-braintree-config", - IsEnabled = true, - LandingViewComponentName = "BraintreeLanding", - Name = "Braintree" - }, - new - { - Id = "CoD", - ConfigureUrl = "payments-cod-config", - IsEnabled = true, - LandingViewComponentName = "CoDLanding", - Name = "Cash On Delivery" - }, - new - { - Id = "PaypalExpress", - AdditionalSettings = "{ \"IsSandbox\":true, \"ClientId\":\"\", \"ClientSecret\":\"\" }", - ConfigureUrl = "payments-paypalExpress-config", - IsEnabled = true, - LandingViewComponentName = "PaypalExpressLanding", - Name = "Paypal Express" - }, - new - { - Id = "Stripe", - AdditionalSettings = "{\"PublicKey\": \"pk_test_6pRNASCoBOKtIshFeQd4XMUh\", \"PrivateKey\" : \"sk_test_BQokikJOvBiI2HlWgH4olfQ2\"}", - ConfigureUrl = "payments-stripe-config", - IsEnabled = true, - LandingViewComponentName = "StripeLanding", - Name = "Stripe" - }, - new - { - Id = "MomoPayment", - AdditionalSettings = "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420180417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}", - ConfigureUrl = "payments-momo-config", - IsEnabled = true, - LandingViewComponentName = "MomoLanding", - Name = "Momo Payment" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("DiscountStep"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("IsCouponRequired"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.Property("UsageLimitPerCoupon"); - - b.Property("UsageLimitPerCustomer"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CartRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.Property("CartRuleId"); - - b.Property("CategoryId"); - - b.HasKey("CartRuleId", "CategoryId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Pricing_CartRuleCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.Property("CartRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CartRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CartRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.Property("CartRuleId"); - - b.Property("ProductId"); - - b.HasKey("CartRuleId", "ProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Pricing_CartRuleProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("CouponId"); - - b.Property("CreatedOn"); - - b.Property("OrderId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.HasIndex("CouponId"); - - b.HasIndex("UserId"); - - b.ToTable("Pricing_CartRuleUsage"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CatalogRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.Property("CatalogRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CatalogRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CatalogRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.ToTable("Pricing_Coupon"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("UserId"); - - b.ToTable("ProductComparison_ComparingProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductRecentlyViewed.Models.RecentlyViewedProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LatestViewedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.ToTable("ProductRecentlyViewed_RecentlyViewedProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("ReplierName") - .HasMaxLength(450); - - b.Property("ReviewId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ReviewId"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Reply"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Rating"); - - b.Property("ReviewerName") - .HasMaxLength(450); - - b.Property("Status"); - - b.Property("Title") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Review"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Search.Models.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("QueryText") - .IsRequired() - .HasMaxLength(500); - - b.Property("ResultsCount"); - - b.HasKey("Id"); - - b.ToTable("Search_Query"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("TrackingNumber") - .HasMaxLength(450); - - b.Property("VendorId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Shipments_Shipment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OrderItemId"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ShipmentId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("ShipmentId"); - - b.ToTable("Shipments_ShipmentItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipping.Models.ShippingProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("OnlyCountryIdsString") - .HasMaxLength(1000); - - b.Property("OnlyStateOrProvinceIdsString") - .HasMaxLength(1000); - - b.Property("ShippingPriceServiceTypeName") - .HasMaxLength(450); - - b.Property("ToAllShippingEnabledCountries"); - - b.Property("ToAllShippingEnabledStatesOrProvinces"); - - b.HasKey("Id"); - - b.ToTable("Shipping_ShippingProvider"); - - b.HasData( - new - { - Id = "FreeShip", - AdditionalSettings = "{MinimumOrderAmount : 1}", - ConfigureUrl = "", - IsEnabled = true, - Name = "Free Ship", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingFree.Services.FreeShippingServiceProvider,SimplCommerce.Module.ShippingFree", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }, - new - { - Id = "TableRate", - ConfigureUrl = "shipping-table-rate-config", - IsEnabled = true, - Name = "Table Rate", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingTableRate.Services.TableRateShippingServiceProvider,SimplCommerce.Module.ShippingTableRate", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("MinOrderSubtotal"); - - b.Property("Note"); - - b.Property("ShippingPrice"); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("ShippingTableRate_PriceAndDestination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("IsActive"); - - b.Property("IsProductPriceIncludeTax"); - - b.Property("LatestUpdatedOn"); - - b.Property("LockedOnCheckout"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("ShippingAmount"); - - b.Property("ShippingData"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("TaxAmount"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.ToTable("ShoppingCart_Cart"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartId"); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.HasKey("Id"); - - b.HasIndex("CartId"); - - b.HasIndex("ProductId"); - - b.ToTable("ShoppingCart_CartItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxClass", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Tax_TaxClass"); - - b.HasData( - new - { - Id = 1L, - Name = "Standard VAT" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Rate"); - - b.Property("StateOrProvinceId"); - - b.Property("TaxClassId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("StateOrProvinceId"); - - b.HasIndex("TaxClassId"); - - b.ToTable("Tax_TaxRate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("SharingCode") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("WishList_WishList"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("LatestUpdatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("WishListId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WishListId"); - - b.ToTable("WishList_WishListItem"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role") - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.HasOne("SimplCommerce.Infrastructure.Localization.Culture", "Culture") - .WithMany("Resources") - .HasForeignKey("CultureId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.HasOne("SimplCommerce.Module.ActivityLog.Models.ActivityType", "ActivityType") - .WithMany() - .HasForeignKey("ActivityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Brand", "Brand") - .WithMany() - .HasForeignKey("BrandId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", "Group") - .WithMany("Attributes") - .HasForeignKey("GroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "Attribute") - .WithMany() - .HasForeignKey("AttributeId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("AttributeValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Categories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "LinkedProduct") - .WithMany("LinkedProductLinks") - .HasForeignKey("LinkedProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("ProductLinks") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Media", "Media") - .WithMany() - .HasForeignKey("MediaId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Medias") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionCombinations") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("PriceHistories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "ProductAttribute") - .WithMany("ProductTemplates") - .HasForeignKey("ProductAttributeId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductTemplate", "ProductTemplate") - .WithMany("ProductAttributes") - .HasForeignKey("ProductTemplateId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Entity", "Entity") - .WithMany() - .HasForeignKey("EntityId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.Menu", "Menu") - .WithMany("MenuItems") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.MenuItem", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.HasOne("SimplCommerce.Module.Comments.Models.Comment", "Parent") - .WithMany("Replies") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.HasOne("SimplCommerce.Module.Contacts.Models.ContactArea", "ContactArea") - .WithMany() - .HasForeignKey("ContactAreaId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany("Users") - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("CustomerGroups") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.EntityType", "EntityType") - .WithMany() - .HasForeignKey("EntityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany("StatesOrProvinces") - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultBillingAddress") - .WithMany() - .HasForeignKey("DefaultBillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultShippingAddress") - .WithMany() - .HasForeignKey("DefaultShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor") - .WithMany("Users") - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany("UserAddresses") - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("UserAddresses") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role", "Role") - .WithMany("Users") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Widget", "Widget") - .WithMany() - .HasForeignKey("WidgetId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.WidgetZone", "WidgetZone") - .WithMany() - .HasForeignKey("WidgetZoneId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor", "Vendor") - .WithMany() - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.HasOne("SimplCommerce.Module.News.Models.NewsCategory", "Category") - .WithMany("NewsItems") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.News.Models.NewsItem", "NewsItem") - .WithMany("Categories") - .HasForeignKey("NewsItemId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "BillingAddress") - .WithMany() - .HasForeignKey("BillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "ShippingAddress") - .WithMany() - .HasForeignKey("ShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany("OrderItems") - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Categories") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("CustomerGroups") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Products") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany() - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Pricing.Models.Coupon", "Coupon") - .WithMany() - .HasForeignKey("CouponId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CatalogRule", "CatalogRule") - .WithMany("CustomerGroups") - .HasForeignKey("CatalogRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Coupons") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.HasOne("SimplCommerce.Module.Reviews.Models.Review", "Review") - .WithMany("Replies") - .HasForeignKey("ReviewId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Shipments.Models.Shipment", "Shipment") - .WithMany("Items") - .HasForeignKey("ShipmentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.HasOne("SimplCommerce.Module.ShoppingCart.Models.Cart", "Cart") - .WithMany("Items") - .HasForeignKey("CartId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.WishList.Models.WishList", "WishList") - .WithMany("Items") - .HasForeignKey("WishListId") - .OnDelete(DeleteBehavior.Restrict); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190302122027_MomoPayment.cs b/src/SimplCommerce.WebHost/Migrations/20190302122027_MomoPayment.cs deleted file mode 100644 index 15f0c73aa4..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190302122027_MomoPayment.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace SimplCommerce.WebHost.Migrations -{ - public partial class MomoPayment : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.InsertData( - table: "Payments_PaymentProvider", - columns: new[] { "Id", "AdditionalSettings", "ConfigureUrl", "IsEnabled", "LandingViewComponentName", "Name" }, - values: new object[] { "MomoPayment", "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420180417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}", "payments-momo-config", true, "MomoLanding", "Momo Payment" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Payments_PaymentProvider", - keyColumn: "Id", - keyValue: "MomoPayment"); - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190314044223_AddedNganLuongPayment.Designer.cs b/src/SimplCommerce.WebHost/Migrations/20190314044223_AddedNganLuongPayment.Designer.cs deleted file mode 100644 index 15a34673cb..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190314044223_AddedNganLuongPayment.Designer.cs +++ /dev/null @@ -1,3524 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using SimplCommerce.Module.Core.Data; - -namespace SimplCommerce.WebHost.Migrations -{ - [DbContext(typeof(SimplDbContext))] - [Migration("20190314044223_AddedNganLuongPayment")] - partial class AddedNganLuongPayment - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.2.2-servicing-10034") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_RoleClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserLogin"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId"); - - b.Property("LoginProvider"); - - b.Property("Name"); - - b.Property("Value"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("Core_UserToken"); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Culture", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Localization_Culture"); - - b.HasData( - new - { - Id = "en-US", - Name = "English (US)" - }); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CultureId") - .IsRequired(); - - b.Property("Key") - .IsRequired() - .HasMaxLength(450); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("CultureId"); - - b.ToTable("Localization_Resource"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ActivityTypeId"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .IsRequired() - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ActivityTypeId"); - - b.ToTable("ActivityLog_Activity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.ActivityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("ActivityLog_ActivityType"); - - b.HasData( - new - { - Id = 1L, - Name = "EntityView" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Brand", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_Brand"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IncludeInMenu"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Category"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BrandId"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("Gtin") - .HasMaxLength(450); - - b.Property("HasOptions"); - - b.Property("IsAllowToOrder"); - - b.Property("IsCallForPricing"); - - b.Property("IsDeleted"); - - b.Property("IsFeatured"); - - b.Property("IsPublished"); - - b.Property("IsVisibleIndividually"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("NormalizedName") - .HasMaxLength(450); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("PublishedOn"); - - b.Property("RatingAverage"); - - b.Property("ReviewsCount"); - - b.Property("ShortDescription") - .HasMaxLength(450); - - b.Property("Sku") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.Property("Specification"); - - b.Property("StockQuantity"); - - b.Property("StockTrackingIsEnabled"); - - b.Property("TaxClassId"); - - b.Property("ThumbnailImageId"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BrandId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("TaxClassId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Product"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("GroupId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("GroupId"); - - b.ToTable("Catalog_ProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductAttributeGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AttributeId"); - - b.Property("ProductId"); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("AttributeId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductAttributeValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CategoryId"); - - b.Property("DisplayOrder"); - - b.Property("IsFeaturedProduct"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("CategoryId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LinkType"); - - b.Property("LinkedProductId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("LinkedProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductLink"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayOrder"); - - b.Property("MediaId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("MediaId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductMedia"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOption", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductOption"); - - b.HasData( - new - { - Id = 1L, - Name = "Color" - }, - new - { - Id = 2L, - Name = "Size" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionCombination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayType") - .HasMaxLength(450); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("ProductId"); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductPriceHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductTemplate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.Property("ProductTemplateId"); - - b.Property("ProductAttributeId"); - - b.HasKey("ProductTemplateId", "ProductAttributeId"); - - b.HasIndex("ProductAttributeId"); - - b.ToTable("Catalog_ProductTemplateProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Menu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsPublished"); - - b.Property("IsSystem"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Cms_Menu"); - - b.HasData( - new - { - Id = 1L, - IsPublished = true, - IsSystem = true, - Name = "Customer Services" - }, - new - { - Id = 2L, - IsPublished = true, - IsSystem = true, - Name = "Information" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CustomLink") - .HasMaxLength(450); - - b.Property("DisplayOrder"); - - b.Property("EntityId"); - - b.Property("MenuId"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.HasKey("Id"); - - b.HasIndex("EntityId"); - - b.HasIndex("MenuId"); - - b.HasIndex("ParentId"); - - b.ToTable("Cms_MenuItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Body"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.ToTable("Cms_Page"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CommentText"); - - b.Property("CommenterName") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("UserId"); - - b.ToTable("Comments_Comment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Address") - .HasMaxLength(450); - - b.Property("ContactAreaId"); - - b.Property("Content"); - - b.Property("CreatedOn"); - - b.Property("EmailAddress") - .HasMaxLength(450); - - b.Property("FullName") - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("PhoneNumber") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("ContactAreaId"); - - b.ToTable("Contacts_Contact"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.ContactArea", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsDeleted"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Contacts_ContactArea"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .IsRequired() - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_Address"); - - b.HasData( - new - { - Id = 1L, - AddressLine1 = "364 Cong Hoa", - ContactName = "Thien Nguyen", - CountryId = "VN", - StateOrProvinceId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.AppSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("IsVisibleInCommonSettingPage"); - - b.Property("Module") - .HasMaxLength(450); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_AppSetting"); - - b.HasData( - new - { - Id = "Catalog.ProductPageSize", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "10" - }, - new - { - Id = "Catalog.IsProductPriceIncludeTax", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "Catalog.IsCommentsRequireApproval", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "GoogleAppKey", - IsVisibleInCommonSettingPage = false, - Module = "Contact", - Value = "" - }, - new - { - Id = "Global.AssetVersion", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "1.0" - }, - new - { - Id = "Theme", - IsVisibleInCommonSettingPage = false, - Module = "Core", - Value = "Generic" - }, - new - { - Id = "SmtpServer", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "smtp.gmail.com" - }, - new - { - Id = "SmtpPort", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "587" - }, - new - { - Id = "SmtpUsername", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "SmtpPassword", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "News.PageSize", - IsVisibleInCommonSettingPage = true, - Module = "News", - Value = "10" - }, - new - { - Id = "Tax.DefaultTaxClassId", - IsVisibleInCommonSettingPage = true, - Module = "Tax", - Value = "1" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Country", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Code3") - .HasMaxLength(450); - - b.Property("IsBillingEnabled"); - - b.Property("IsCityEnabled"); - - b.Property("IsDistrictEnabled"); - - b.Property("IsShippingEnabled"); - - b.Property("IsZipCodeEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Country"); - - b.HasData( - new - { - Id = "VN", - Code3 = "VNM", - IsBillingEnabled = true, - IsCityEnabled = false, - IsDistrictEnabled = true, - IsShippingEnabled = true, - IsZipCodeEnabled = false, - Name = "Việt Nam" - }, - new - { - Id = "US", - Code3 = "USA", - IsBillingEnabled = true, - IsCityEnabled = true, - IsDistrictEnabled = false, - IsShippingEnabled = true, - IsZipCodeEnabled = true, - Name = "United States" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Core_CustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.Property("UserId"); - - b.Property("CustomerGroupId"); - - b.HasKey("UserId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Core_CustomerGroupUser"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Location"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_District"); - - b.HasData( - new - { - Id = 1L, - Name = "Quận 1", - StateOrProvinceId = 1L, - Type = "Quận" - }, - new - { - Id = 2L, - Name = "Quận 2", - StateOrProvinceId = 1L, - Type = "Quận" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("EntityTypeId"); - - b.ToTable("Core_Entity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.EntityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AreaName") - .HasMaxLength(450); - - b.Property("IsMenuable"); - - b.Property("RoutingAction") - .HasMaxLength(450); - - b.Property("RoutingController") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_EntityType"); - - b.HasData( - new - { - Id = "Category", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "CategoryDetail", - RoutingController = "Category" - }, - new - { - Id = "Brand", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "BrandDetail", - RoutingController = "Brand" - }, - new - { - Id = "Product", - AreaName = "Catalog", - IsMenuable = false, - RoutingAction = "ProductDetail", - RoutingController = "Product" - }, - new - { - Id = "Page", - AreaName = "Cms", - IsMenuable = true, - RoutingAction = "PageDetail", - RoutingController = "Page" - }, - new - { - Id = "Vendor", - AreaName = "Core", - IsMenuable = false, - RoutingAction = "VendorDetail", - RoutingController = "Vendor" - }, - new - { - Id = "NewsCategory", - AreaName = "News", - IsMenuable = true, - RoutingAction = "NewsCategoryDetail", - RoutingController = "NewsCategory" - }, - new - { - Id = "NewsItem", - AreaName = "News", - IsMenuable = false, - RoutingAction = "NewsItemDetail", - RoutingController = "NewsItem" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Media", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Caption") - .HasMaxLength(450); - - b.Property("FileName") - .HasMaxLength(450); - - b.Property("FileSize"); - - b.Property("MediaType"); - - b.HasKey("Id"); - - b.ToTable("Core_Media"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasMaxLength(256); - - b.Property("NormalizedName") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasName("RoleNameIndex") - .HasFilter("[NormalizedName] IS NOT NULL"); - - b.ToTable("Core_Role"); - - b.HasData( - new - { - Id = 1L, - ConcurrencyStamp = "4776a1b2-dbe4-4056-82ec-8bed211d1454", - Name = "admin", - NormalizedName = "ADMIN" - }, - new - { - Id = 2L, - ConcurrencyStamp = "00d172be-03a0-4856-8b12-26d63fcf4374", - Name = "customer", - NormalizedName = "CUSTOMER" - }, - new - { - Id = 3L, - ConcurrencyStamp = "d4754388-8355-4018-b728-218018836817", - Name = "guest", - NormalizedName = "GUEST" - }, - new - { - Id = 4L, - ConcurrencyStamp = "71f10604-8c4d-4a7d-ac4a-ffefb11cefeb", - Name = "vendor", - NormalizedName = "VENDOR" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Code") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.ToTable("Core_StateOrProvince"); - - b.HasData( - new - { - Id = 1L, - CountryId = "VN", - Name = "Hồ Chí Minh", - Type = "Thành Phố" - }, - new - { - Id = 2L, - Code = "WA", - CountryId = "US", - Name = "Washington" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("CreatedOn"); - - b.Property("Culture") - .HasMaxLength(450); - - b.Property("DefaultBillingAddressId"); - - b.Property("DefaultShippingAddressId"); - - b.Property("Email") - .HasMaxLength(256); - - b.Property("EmailConfirmed"); - - b.Property("ExtensionData"); - - b.Property("FullName") - .IsRequired() - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .HasMaxLength(256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("RefreshTokenHash") - .HasMaxLength(450); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserGuid"); - - b.Property("UserName") - .HasMaxLength(256); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("DefaultBillingAddressId"); - - b.HasIndex("DefaultShippingAddressId"); - - b.HasIndex("NormalizedEmail") - .HasName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasName("UserNameIndex") - .HasFilter("[NormalizedUserName] IS NOT NULL"); - - b.HasIndex("VendorId"); - - b.ToTable("Core_User"); - - b.HasData( - new - { - Id = 2L, - AccessFailedCount = 0, - ConcurrencyStamp = "101cd6ae-a8ef-4a37-97fd-04ac2dd630e4", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "system@simplcommerce.com", - EmailConfirmed = false, - FullName = "System User", - IsDeleted = true, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "SYSTEM@SIMPLCOMMERCE.COM", - NormalizedUserName = "SYSTEM@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "a9565acb-cee6-425f-9833-419a793f5fba", - TwoFactorEnabled = false, - UserGuid = new Guid("5f72f83b-7436-4221-869c-1b69b2e23aae"), - UserName = "system@simplcommerce.com" - }, - new - { - Id = 10L, - AccessFailedCount = 0, - ConcurrencyStamp = "c83afcbc-312c-4589-bad7-8686bd4754c0", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "admin@simplcommerce.com", - EmailConfirmed = false, - FullName = "Shop Admin", - IsDeleted = false, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "ADMIN@SIMPLCOMMERCE.COM", - NormalizedUserName = "ADMIN@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "d6847450-47f0-4c7a-9fed-0c66234bf61f", - TwoFactorEnabled = false, - UserGuid = new Guid("ed8210c3-24b0-4823-a744-80078cf12eb4"), - UserName = "admin@simplcommerce.com" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("AddressType"); - - b.Property("LastUsedOn"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_UserRole"); - - b.HasData( - new - { - UserId = 10L, - RoleId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Vendor", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("Email"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Vendor"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Widget", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CreateUrl") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EditUrl") - .HasMaxLength(450); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ViewComponentName") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Widget"); - - b.HasData( - new - { - Id = "CategoryWidget", - CreateUrl = "widget-category-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-category-edit", - IsPublished = false, - Name = "Category Widget", - ViewComponentName = "CategoryWidget" - }, - new - { - Id = "ProductWidget", - CreateUrl = "widget-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-product-edit", - IsPublished = false, - Name = "Product Widget", - ViewComponentName = "ProductWidget" - }, - new - { - Id = "SimpleProductWidget", - CreateUrl = "widget-simple-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-simple-product-edit", - IsPublished = false, - Name = "Simple Product Widget", - ViewComponentName = "SimpleProductWidget" - }, - new - { - Id = "HtmlWidget", - CreateUrl = "widget-html-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-html-edit", - IsPublished = false, - Name = "Html Widget", - ViewComponentName = "HtmlWidget" - }, - new - { - Id = "CarouselWidget", - CreateUrl = "widget-carousel-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-carousel-edit", - IsPublished = false, - Name = "Carousel Widget", - ViewComponentName = "CarouselWidget" - }, - new - { - Id = "SpaceBarWidget", - CreateUrl = "widget-spacebar-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-spacebar-edit", - IsPublished = false, - Name = "SpaceBar Widget", - ViewComponentName = "SpaceBarWidget" - }, - new - { - Id = "RecentlyViewedWidget", - CreateUrl = "widget-recently-viewed-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-recently-viewed-edit", - IsPublished = false, - Name = "Recently Viewed Widget", - ViewComponentName = "RecentlyViewedWidget" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Data"); - - b.Property("DisplayOrder"); - - b.Property("HtmlData"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("PublishEnd"); - - b.Property("PublishStart"); - - b.Property("WidgetId") - .HasMaxLength(450); - - b.Property("WidgetZoneId"); - - b.HasKey("Id"); - - b.HasIndex("WidgetId"); - - b.HasIndex("WidgetZoneId"); - - b.ToTable("Core_WidgetInstance"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetZone", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_WidgetZone"); - - b.HasData( - new - { - Id = 1L, - Name = "Home Featured" - }, - new - { - Id = 2L, - Name = "Home Main Content" - }, - new - { - Id = 3L, - Name = "Home After Main Content" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ReservedQuantity"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_Stock"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AdjustedQuantity"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("ProductId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_StockHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("VendorId"); - - b.ToTable("Inventory_Warehouse"); - - b.HasData( - new - { - Id = 1L, - AddressId = 1L, - Name = "Default warehouse" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("News_NewsCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("FullContent"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("ShortContent") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("News_NewsItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.Property("CategoryId"); - - b.Property("NewsItemId"); - - b.HasKey("CategoryId", "NewsItemId"); - - b.HasIndex("NewsItemId"); - - b.ToTable("News_NewsItemCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BillingAddressId"); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("DiscountAmount"); - - b.Property("IsMasterOrder"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("OrderStatus"); - - b.Property("OrderTotal"); - - b.Property("ParentId"); - - b.Property("PaymentFeeAmount"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("ShippingAddressId"); - - b.Property("ShippingFeeAmount"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("SubTotal"); - - b.Property("SubTotalWithDiscount"); - - b.Property("TaxAmount"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BillingAddressId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ParentId"); - - b.HasIndex("ShippingAddressId"); - - b.ToTable("Orders_Order"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Orders_OrderAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("NewStatus"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("OldStatus"); - - b.Property("OrderId"); - - b.Property("OrderSnapshot"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.ToTable("Orders_OrderHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DiscountAmount"); - - b.Property("OrderId"); - - b.Property("ProductId"); - - b.Property("ProductPrice"); - - b.Property("Quantity"); - - b.Property("TaxAmount"); - - b.Property("TaxPercent"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.HasIndex("ProductId"); - - b.ToTable("Orders_OrderItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Amount"); - - b.Property("CreatedOn"); - - b.Property("FailureMessage"); - - b.Property("GatewayTransactionId") - .HasMaxLength(450); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("PaymentFee"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("Status"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.ToTable("Payments_Payment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.PaymentProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("LandingViewComponentName") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Payments_PaymentProvider"); - - b.HasData( - new - { - Id = "Braintree", - AdditionalSettings = "{\"PublicKey\": \"6j4d7qspt5n48kx4\", \"PrivateKey\" : \"bd1c26e53a6d811243fcc3eb268113e1\", \"MerchantId\" : \"ncsh7wwqvzs3cx9q\", \"IsProduction\" : \"false\"}", - ConfigureUrl = "payments-braintree-config", - IsEnabled = true, - LandingViewComponentName = "BraintreeLanding", - Name = "Braintree" - }, - new - { - Id = "CoD", - ConfigureUrl = "payments-cod-config", - IsEnabled = true, - LandingViewComponentName = "CoDLanding", - Name = "Cash On Delivery" - }, - new - { - Id = "PaypalExpress", - AdditionalSettings = "{ \"IsSandbox\":true, \"ClientId\":\"\", \"ClientSecret\":\"\" }", - ConfigureUrl = "payments-paypalExpress-config", - IsEnabled = true, - LandingViewComponentName = "PaypalExpressLanding", - Name = "Paypal Express" - }, - new - { - Id = "Stripe", - AdditionalSettings = "{\"PublicKey\": \"pk_test_6pRNASCoBOKtIshFeQd4XMUh\", \"PrivateKey\" : \"sk_test_BQokikJOvBiI2HlWgH4olfQ2\"}", - ConfigureUrl = "payments-stripe-config", - IsEnabled = true, - LandingViewComponentName = "StripeLanding", - Name = "Stripe" - }, - new - { - Id = "MomoPayment", - AdditionalSettings = "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420180417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}", - ConfigureUrl = "payments-momo-config", - IsEnabled = true, - LandingViewComponentName = "MomoLanding", - Name = "Momo Payment" - }, - new - { - Id = "NganLuong", - AdditionalSettings = "{\"IsSandbox\":true, \"MerchantId\": 47249, \"MerchantPassword\": \"e530745693dbde678f9da98a7c821a07\", \"ReceiverEmail\": \"nlqthien@gmail.com\"}", - ConfigureUrl = "payments-nganluong-config", - IsEnabled = true, - LandingViewComponentName = "NganLuongLanding", - Name = "Ngan Luong Payment" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("DiscountStep"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("IsCouponRequired"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.Property("UsageLimitPerCoupon"); - - b.Property("UsageLimitPerCustomer"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CartRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.Property("CartRuleId"); - - b.Property("CategoryId"); - - b.HasKey("CartRuleId", "CategoryId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Pricing_CartRuleCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.Property("CartRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CartRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CartRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.Property("CartRuleId"); - - b.Property("ProductId"); - - b.HasKey("CartRuleId", "ProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Pricing_CartRuleProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("CouponId"); - - b.Property("CreatedOn"); - - b.Property("OrderId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.HasIndex("CouponId"); - - b.HasIndex("UserId"); - - b.ToTable("Pricing_CartRuleUsage"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CatalogRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.Property("CatalogRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CatalogRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CatalogRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.ToTable("Pricing_Coupon"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("UserId"); - - b.ToTable("ProductComparison_ComparingProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductRecentlyViewed.Models.RecentlyViewedProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LatestViewedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.ToTable("ProductRecentlyViewed_RecentlyViewedProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("ReplierName") - .HasMaxLength(450); - - b.Property("ReviewId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ReviewId"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Reply"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Rating"); - - b.Property("ReviewerName") - .HasMaxLength(450); - - b.Property("Status"); - - b.Property("Title") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Review"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Search.Models.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("QueryText") - .IsRequired() - .HasMaxLength(500); - - b.Property("ResultsCount"); - - b.HasKey("Id"); - - b.ToTable("Search_Query"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("TrackingNumber") - .HasMaxLength(450); - - b.Property("VendorId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Shipments_Shipment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OrderItemId"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ShipmentId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("ShipmentId"); - - b.ToTable("Shipments_ShipmentItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipping.Models.ShippingProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("OnlyCountryIdsString") - .HasMaxLength(1000); - - b.Property("OnlyStateOrProvinceIdsString") - .HasMaxLength(1000); - - b.Property("ShippingPriceServiceTypeName") - .HasMaxLength(450); - - b.Property("ToAllShippingEnabledCountries"); - - b.Property("ToAllShippingEnabledStatesOrProvinces"); - - b.HasKey("Id"); - - b.ToTable("Shipping_ShippingProvider"); - - b.HasData( - new - { - Id = "FreeShip", - AdditionalSettings = "{MinimumOrderAmount : 1}", - ConfigureUrl = "", - IsEnabled = true, - Name = "Free Ship", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingFree.Services.FreeShippingServiceProvider,SimplCommerce.Module.ShippingFree", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }, - new - { - Id = "TableRate", - ConfigureUrl = "shipping-table-rate-config", - IsEnabled = true, - Name = "Table Rate", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingTableRate.Services.TableRateShippingServiceProvider,SimplCommerce.Module.ShippingTableRate", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("MinOrderSubtotal"); - - b.Property("Note"); - - b.Property("ShippingPrice"); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("ShippingTableRate_PriceAndDestination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("IsActive"); - - b.Property("IsProductPriceIncludeTax"); - - b.Property("LatestUpdatedOn"); - - b.Property("LockedOnCheckout"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("ShippingAmount"); - - b.Property("ShippingData"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("TaxAmount"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.ToTable("ShoppingCart_Cart"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartId"); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.HasKey("Id"); - - b.HasIndex("CartId"); - - b.HasIndex("ProductId"); - - b.ToTable("ShoppingCart_CartItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxClass", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Tax_TaxClass"); - - b.HasData( - new - { - Id = 1L, - Name = "Standard VAT" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Rate"); - - b.Property("StateOrProvinceId"); - - b.Property("TaxClassId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("StateOrProvinceId"); - - b.HasIndex("TaxClassId"); - - b.ToTable("Tax_TaxRate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("SharingCode") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("WishList_WishList"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("LatestUpdatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("WishListId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WishListId"); - - b.ToTable("WishList_WishListItem"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role") - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.HasOne("SimplCommerce.Infrastructure.Localization.Culture", "Culture") - .WithMany("Resources") - .HasForeignKey("CultureId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.HasOne("SimplCommerce.Module.ActivityLog.Models.ActivityType", "ActivityType") - .WithMany() - .HasForeignKey("ActivityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Brand", "Brand") - .WithMany() - .HasForeignKey("BrandId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", "Group") - .WithMany("Attributes") - .HasForeignKey("GroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "Attribute") - .WithMany() - .HasForeignKey("AttributeId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("AttributeValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Categories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "LinkedProduct") - .WithMany("LinkedProductLinks") - .HasForeignKey("LinkedProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("ProductLinks") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Media", "Media") - .WithMany() - .HasForeignKey("MediaId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Medias") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionCombinations") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("PriceHistories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "ProductAttribute") - .WithMany("ProductTemplates") - .HasForeignKey("ProductAttributeId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductTemplate", "ProductTemplate") - .WithMany("ProductAttributes") - .HasForeignKey("ProductTemplateId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Entity", "Entity") - .WithMany() - .HasForeignKey("EntityId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.Menu", "Menu") - .WithMany("MenuItems") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.MenuItem", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.HasOne("SimplCommerce.Module.Comments.Models.Comment", "Parent") - .WithMany("Replies") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.HasOne("SimplCommerce.Module.Contacts.Models.ContactArea", "ContactArea") - .WithMany() - .HasForeignKey("ContactAreaId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany("Users") - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("CustomerGroups") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.EntityType", "EntityType") - .WithMany() - .HasForeignKey("EntityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany("StatesOrProvinces") - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultBillingAddress") - .WithMany() - .HasForeignKey("DefaultBillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultShippingAddress") - .WithMany() - .HasForeignKey("DefaultShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor") - .WithMany("Users") - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany("UserAddresses") - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("UserAddresses") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role", "Role") - .WithMany("Users") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Widget", "Widget") - .WithMany() - .HasForeignKey("WidgetId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.WidgetZone", "WidgetZone") - .WithMany() - .HasForeignKey("WidgetZoneId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor", "Vendor") - .WithMany() - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.HasOne("SimplCommerce.Module.News.Models.NewsCategory", "Category") - .WithMany("NewsItems") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.News.Models.NewsItem", "NewsItem") - .WithMany("Categories") - .HasForeignKey("NewsItemId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "BillingAddress") - .WithMany() - .HasForeignKey("BillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "ShippingAddress") - .WithMany() - .HasForeignKey("ShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany("OrderItems") - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Categories") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("CustomerGroups") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Products") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany() - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Pricing.Models.Coupon", "Coupon") - .WithMany() - .HasForeignKey("CouponId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CatalogRule", "CatalogRule") - .WithMany("CustomerGroups") - .HasForeignKey("CatalogRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Coupons") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.HasOne("SimplCommerce.Module.Reviews.Models.Review", "Review") - .WithMany("Replies") - .HasForeignKey("ReviewId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Shipments.Models.Shipment", "Shipment") - .WithMany("Items") - .HasForeignKey("ShipmentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.HasOne("SimplCommerce.Module.ShoppingCart.Models.Cart", "Cart") - .WithMany("Items") - .HasForeignKey("CartId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.WishList.Models.WishList", "WishList") - .WithMany("Items") - .HasForeignKey("WishListId") - .OnDelete(DeleteBehavior.Restrict); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190314044223_AddedNganLuongPayment.cs b/src/SimplCommerce.WebHost/Migrations/20190314044223_AddedNganLuongPayment.cs deleted file mode 100644 index 5513b4e818..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190314044223_AddedNganLuongPayment.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace SimplCommerce.WebHost.Migrations -{ - public partial class AddedNganLuongPayment : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.InsertData( - table: "Payments_PaymentProvider", - columns: new[] { "Id", "AdditionalSettings", "ConfigureUrl", "IsEnabled", "LandingViewComponentName", "Name" }, - values: new object[] { "NganLuong", "{\"IsSandbox\":true, \"MerchantId\": 47249, \"MerchantPassword\": \"e530745693dbde678f9da98a7c821a07\", \"ReceiverEmail\": \"nlqthien@gmail.com\"}", "payments-nganluong-config", true, "NganLuongLanding", "Ngan Luong Payment" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Payments_PaymentProvider", - keyColumn: "Id", - keyValue: "NganLuong"); - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190710165614_DefaultCultureConfiguration.Designer.cs b/src/SimplCommerce.WebHost/Migrations/20190710165614_DefaultCultureConfiguration.Designer.cs deleted file mode 100644 index 06651706a5..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190710165614_DefaultCultureConfiguration.Designer.cs +++ /dev/null @@ -1,3531 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using SimplCommerce.Module.Core.Data; - -namespace SimplCommerce.WebHost.Migrations -{ - [DbContext(typeof(SimplDbContext))] - [Migration("20190710165614_DefaultCultureConfiguration")] - partial class DefaultCultureConfiguration - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.2.6-servicing-10079") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_RoleClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserLogin"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId"); - - b.Property("LoginProvider"); - - b.Property("Name"); - - b.Property("Value"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("Core_UserToken"); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Culture", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Localization_Culture"); - - b.HasData( - new - { - Id = "en-US", - Name = "English (US)" - }); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CultureId") - .IsRequired(); - - b.Property("Key") - .IsRequired() - .HasMaxLength(450); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("CultureId"); - - b.ToTable("Localization_Resource"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ActivityTypeId"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .IsRequired() - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ActivityTypeId"); - - b.ToTable("ActivityLog_Activity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.ActivityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("ActivityLog_ActivityType"); - - b.HasData( - new - { - Id = 1L, - Name = "EntityView" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Brand", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_Brand"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IncludeInMenu"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Category"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BrandId"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("Gtin") - .HasMaxLength(450); - - b.Property("HasOptions"); - - b.Property("IsAllowToOrder"); - - b.Property("IsCallForPricing"); - - b.Property("IsDeleted"); - - b.Property("IsFeatured"); - - b.Property("IsPublished"); - - b.Property("IsVisibleIndividually"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("NormalizedName") - .HasMaxLength(450); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("PublishedOn"); - - b.Property("RatingAverage"); - - b.Property("ReviewsCount"); - - b.Property("ShortDescription") - .HasMaxLength(450); - - b.Property("Sku") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.Property("Specification"); - - b.Property("StockQuantity"); - - b.Property("StockTrackingIsEnabled"); - - b.Property("TaxClassId"); - - b.Property("ThumbnailImageId"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BrandId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("TaxClassId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Product"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("GroupId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("GroupId"); - - b.ToTable("Catalog_ProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductAttributeGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AttributeId"); - - b.Property("ProductId"); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("AttributeId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductAttributeValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CategoryId"); - - b.Property("DisplayOrder"); - - b.Property("IsFeaturedProduct"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("CategoryId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LinkType"); - - b.Property("LinkedProductId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("LinkedProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductLink"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayOrder"); - - b.Property("MediaId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("MediaId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductMedia"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOption", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductOption"); - - b.HasData( - new - { - Id = 1L, - Name = "Color" - }, - new - { - Id = 2L, - Name = "Size" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionCombination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayType") - .HasMaxLength(450); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("ProductId"); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductPriceHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductTemplate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.Property("ProductTemplateId"); - - b.Property("ProductAttributeId"); - - b.HasKey("ProductTemplateId", "ProductAttributeId"); - - b.HasIndex("ProductAttributeId"); - - b.ToTable("Catalog_ProductTemplateProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Menu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsPublished"); - - b.Property("IsSystem"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Cms_Menu"); - - b.HasData( - new - { - Id = 1L, - IsPublished = true, - IsSystem = true, - Name = "Customer Services" - }, - new - { - Id = 2L, - IsPublished = true, - IsSystem = true, - Name = "Information" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CustomLink") - .HasMaxLength(450); - - b.Property("DisplayOrder"); - - b.Property("EntityId"); - - b.Property("MenuId"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.HasKey("Id"); - - b.HasIndex("EntityId"); - - b.HasIndex("MenuId"); - - b.HasIndex("ParentId"); - - b.ToTable("Cms_MenuItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Body"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.ToTable("Cms_Page"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CommentText"); - - b.Property("CommenterName") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("UserId"); - - b.ToTable("Comments_Comment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Address") - .HasMaxLength(450); - - b.Property("ContactAreaId"); - - b.Property("Content"); - - b.Property("CreatedOn"); - - b.Property("EmailAddress") - .HasMaxLength(450); - - b.Property("FullName") - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("PhoneNumber") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("ContactAreaId"); - - b.ToTable("Contacts_Contact"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.ContactArea", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsDeleted"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Contacts_ContactArea"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .IsRequired() - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_Address"); - - b.HasData( - new - { - Id = 1L, - AddressLine1 = "364 Cong Hoa", - ContactName = "Thien Nguyen", - CountryId = "VN", - StateOrProvinceId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.AppSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("IsVisibleInCommonSettingPage"); - - b.Property("Module") - .HasMaxLength(450); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_AppSetting"); - - b.HasData( - new - { - Id = "Catalog.ProductPageSize", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "10" - }, - new - { - Id = "Catalog.IsProductPriceIncludeTax", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "Catalog.IsCommentsRequireApproval", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "GoogleAppKey", - IsVisibleInCommonSettingPage = false, - Module = "Contact", - Value = "" - }, - new - { - Id = "Global.AssetVersion", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "1.0" - }, - new - { - Id = "Theme", - IsVisibleInCommonSettingPage = false, - Module = "Core", - Value = "Generic" - }, - new - { - Id = "Global.DefaultCultureUI", - IsVisibleInCommonSettingPage = true, - Module = "Global", - Value = "en-US" - }, - new - { - Id = "SmtpServer", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "smtp.gmail.com" - }, - new - { - Id = "SmtpPort", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "587" - }, - new - { - Id = "SmtpUsername", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "SmtpPassword", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "News.PageSize", - IsVisibleInCommonSettingPage = true, - Module = "News", - Value = "10" - }, - new - { - Id = "Tax.DefaultTaxClassId", - IsVisibleInCommonSettingPage = true, - Module = "Tax", - Value = "1" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Country", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Code3") - .HasMaxLength(450); - - b.Property("IsBillingEnabled"); - - b.Property("IsCityEnabled"); - - b.Property("IsDistrictEnabled"); - - b.Property("IsShippingEnabled"); - - b.Property("IsZipCodeEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Country"); - - b.HasData( - new - { - Id = "VN", - Code3 = "VNM", - IsBillingEnabled = true, - IsCityEnabled = false, - IsDistrictEnabled = true, - IsShippingEnabled = true, - IsZipCodeEnabled = false, - Name = "Việt Nam" - }, - new - { - Id = "US", - Code3 = "USA", - IsBillingEnabled = true, - IsCityEnabled = true, - IsDistrictEnabled = false, - IsShippingEnabled = true, - IsZipCodeEnabled = true, - Name = "United States" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Core_CustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.Property("UserId"); - - b.Property("CustomerGroupId"); - - b.HasKey("UserId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Core_CustomerGroupUser"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Location"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_District"); - - b.HasData( - new - { - Id = 1L, - Name = "Quận 1", - StateOrProvinceId = 1L, - Type = "Quận" - }, - new - { - Id = 2L, - Name = "Quận 2", - StateOrProvinceId = 1L, - Type = "Quận" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("EntityTypeId"); - - b.ToTable("Core_Entity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.EntityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AreaName") - .HasMaxLength(450); - - b.Property("IsMenuable"); - - b.Property("RoutingAction") - .HasMaxLength(450); - - b.Property("RoutingController") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_EntityType"); - - b.HasData( - new - { - Id = "Category", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "CategoryDetail", - RoutingController = "Category" - }, - new - { - Id = "Brand", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "BrandDetail", - RoutingController = "Brand" - }, - new - { - Id = "Product", - AreaName = "Catalog", - IsMenuable = false, - RoutingAction = "ProductDetail", - RoutingController = "Product" - }, - new - { - Id = "Page", - AreaName = "Cms", - IsMenuable = true, - RoutingAction = "PageDetail", - RoutingController = "Page" - }, - new - { - Id = "Vendor", - AreaName = "Core", - IsMenuable = false, - RoutingAction = "VendorDetail", - RoutingController = "Vendor" - }, - new - { - Id = "NewsCategory", - AreaName = "News", - IsMenuable = true, - RoutingAction = "NewsCategoryDetail", - RoutingController = "NewsCategory" - }, - new - { - Id = "NewsItem", - AreaName = "News", - IsMenuable = false, - RoutingAction = "NewsItemDetail", - RoutingController = "NewsItem" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Media", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Caption") - .HasMaxLength(450); - - b.Property("FileName") - .HasMaxLength(450); - - b.Property("FileSize"); - - b.Property("MediaType"); - - b.HasKey("Id"); - - b.ToTable("Core_Media"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasMaxLength(256); - - b.Property("NormalizedName") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasName("RoleNameIndex") - .HasFilter("[NormalizedName] IS NOT NULL"); - - b.ToTable("Core_Role"); - - b.HasData( - new - { - Id = 1L, - ConcurrencyStamp = "4776a1b2-dbe4-4056-82ec-8bed211d1454", - Name = "admin", - NormalizedName = "ADMIN" - }, - new - { - Id = 2L, - ConcurrencyStamp = "00d172be-03a0-4856-8b12-26d63fcf4374", - Name = "customer", - NormalizedName = "CUSTOMER" - }, - new - { - Id = 3L, - ConcurrencyStamp = "d4754388-8355-4018-b728-218018836817", - Name = "guest", - NormalizedName = "GUEST" - }, - new - { - Id = 4L, - ConcurrencyStamp = "71f10604-8c4d-4a7d-ac4a-ffefb11cefeb", - Name = "vendor", - NormalizedName = "VENDOR" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Code") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.ToTable("Core_StateOrProvince"); - - b.HasData( - new - { - Id = 1L, - CountryId = "VN", - Name = "Hồ Chí Minh", - Type = "Thành Phố" - }, - new - { - Id = 2L, - Code = "WA", - CountryId = "US", - Name = "Washington" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("CreatedOn"); - - b.Property("Culture") - .HasMaxLength(450); - - b.Property("DefaultBillingAddressId"); - - b.Property("DefaultShippingAddressId"); - - b.Property("Email") - .HasMaxLength(256); - - b.Property("EmailConfirmed"); - - b.Property("ExtensionData"); - - b.Property("FullName") - .IsRequired() - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .HasMaxLength(256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("RefreshTokenHash") - .HasMaxLength(450); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserGuid"); - - b.Property("UserName") - .HasMaxLength(256); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("DefaultBillingAddressId"); - - b.HasIndex("DefaultShippingAddressId"); - - b.HasIndex("NormalizedEmail") - .HasName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasName("UserNameIndex") - .HasFilter("[NormalizedUserName] IS NOT NULL"); - - b.HasIndex("VendorId"); - - b.ToTable("Core_User"); - - b.HasData( - new - { - Id = 2L, - AccessFailedCount = 0, - ConcurrencyStamp = "101cd6ae-a8ef-4a37-97fd-04ac2dd630e4", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "system@simplcommerce.com", - EmailConfirmed = false, - FullName = "System User", - IsDeleted = true, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "SYSTEM@SIMPLCOMMERCE.COM", - NormalizedUserName = "SYSTEM@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "a9565acb-cee6-425f-9833-419a793f5fba", - TwoFactorEnabled = false, - UserGuid = new Guid("5f72f83b-7436-4221-869c-1b69b2e23aae"), - UserName = "system@simplcommerce.com" - }, - new - { - Id = 10L, - AccessFailedCount = 0, - ConcurrencyStamp = "c83afcbc-312c-4589-bad7-8686bd4754c0", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "admin@simplcommerce.com", - EmailConfirmed = false, - FullName = "Shop Admin", - IsDeleted = false, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "ADMIN@SIMPLCOMMERCE.COM", - NormalizedUserName = "ADMIN@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "d6847450-47f0-4c7a-9fed-0c66234bf61f", - TwoFactorEnabled = false, - UserGuid = new Guid("ed8210c3-24b0-4823-a744-80078cf12eb4"), - UserName = "admin@simplcommerce.com" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("AddressType"); - - b.Property("LastUsedOn"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_UserRole"); - - b.HasData( - new - { - UserId = 10L, - RoleId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Vendor", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("Email"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Vendor"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Widget", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CreateUrl") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EditUrl") - .HasMaxLength(450); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ViewComponentName") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Widget"); - - b.HasData( - new - { - Id = "CategoryWidget", - CreateUrl = "widget-category-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-category-edit", - IsPublished = false, - Name = "Category Widget", - ViewComponentName = "CategoryWidget" - }, - new - { - Id = "ProductWidget", - CreateUrl = "widget-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-product-edit", - IsPublished = false, - Name = "Product Widget", - ViewComponentName = "ProductWidget" - }, - new - { - Id = "SimpleProductWidget", - CreateUrl = "widget-simple-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-simple-product-edit", - IsPublished = false, - Name = "Simple Product Widget", - ViewComponentName = "SimpleProductWidget" - }, - new - { - Id = "HtmlWidget", - CreateUrl = "widget-html-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-html-edit", - IsPublished = false, - Name = "Html Widget", - ViewComponentName = "HtmlWidget" - }, - new - { - Id = "CarouselWidget", - CreateUrl = "widget-carousel-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-carousel-edit", - IsPublished = false, - Name = "Carousel Widget", - ViewComponentName = "CarouselWidget" - }, - new - { - Id = "SpaceBarWidget", - CreateUrl = "widget-spacebar-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-spacebar-edit", - IsPublished = false, - Name = "SpaceBar Widget", - ViewComponentName = "SpaceBarWidget" - }, - new - { - Id = "RecentlyViewedWidget", - CreateUrl = "widget-recently-viewed-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-recently-viewed-edit", - IsPublished = false, - Name = "Recently Viewed Widget", - ViewComponentName = "RecentlyViewedWidget" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Data"); - - b.Property("DisplayOrder"); - - b.Property("HtmlData"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("PublishEnd"); - - b.Property("PublishStart"); - - b.Property("WidgetId") - .HasMaxLength(450); - - b.Property("WidgetZoneId"); - - b.HasKey("Id"); - - b.HasIndex("WidgetId"); - - b.HasIndex("WidgetZoneId"); - - b.ToTable("Core_WidgetInstance"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetZone", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_WidgetZone"); - - b.HasData( - new - { - Id = 1L, - Name = "Home Featured" - }, - new - { - Id = 2L, - Name = "Home Main Content" - }, - new - { - Id = 3L, - Name = "Home After Main Content" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ReservedQuantity"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_Stock"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AdjustedQuantity"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("ProductId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_StockHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("VendorId"); - - b.ToTable("Inventory_Warehouse"); - - b.HasData( - new - { - Id = 1L, - AddressId = 1L, - Name = "Default warehouse" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("News_NewsCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("FullContent"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("ShortContent") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("News_NewsItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.Property("CategoryId"); - - b.Property("NewsItemId"); - - b.HasKey("CategoryId", "NewsItemId"); - - b.HasIndex("NewsItemId"); - - b.ToTable("News_NewsItemCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BillingAddressId"); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("DiscountAmount"); - - b.Property("IsMasterOrder"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("OrderStatus"); - - b.Property("OrderTotal"); - - b.Property("ParentId"); - - b.Property("PaymentFeeAmount"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("ShippingAddressId"); - - b.Property("ShippingFeeAmount"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("SubTotal"); - - b.Property("SubTotalWithDiscount"); - - b.Property("TaxAmount"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BillingAddressId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ParentId"); - - b.HasIndex("ShippingAddressId"); - - b.ToTable("Orders_Order"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Orders_OrderAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("NewStatus"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("OldStatus"); - - b.Property("OrderId"); - - b.Property("OrderSnapshot"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.ToTable("Orders_OrderHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DiscountAmount"); - - b.Property("OrderId"); - - b.Property("ProductId"); - - b.Property("ProductPrice"); - - b.Property("Quantity"); - - b.Property("TaxAmount"); - - b.Property("TaxPercent"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.HasIndex("ProductId"); - - b.ToTable("Orders_OrderItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Amount"); - - b.Property("CreatedOn"); - - b.Property("FailureMessage"); - - b.Property("GatewayTransactionId") - .HasMaxLength(450); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("PaymentFee"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("Status"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.ToTable("Payments_Payment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.PaymentProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("LandingViewComponentName") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Payments_PaymentProvider"); - - b.HasData( - new - { - Id = "Braintree", - AdditionalSettings = "{\"PublicKey\": \"6j4d7qspt5n48kx4\", \"PrivateKey\" : \"bd1c26e53a6d811243fcc3eb268113e1\", \"MerchantId\" : \"ncsh7wwqvzs3cx9q\", \"IsProduction\" : \"false\"}", - ConfigureUrl = "payments-braintree-config", - IsEnabled = true, - LandingViewComponentName = "BraintreeLanding", - Name = "Braintree" - }, - new - { - Id = "CoD", - ConfigureUrl = "payments-cod-config", - IsEnabled = true, - LandingViewComponentName = "CoDLanding", - Name = "Cash On Delivery" - }, - new - { - Id = "PaypalExpress", - AdditionalSettings = "{ \"IsSandbox\":true, \"ClientId\":\"\", \"ClientSecret\":\"\" }", - ConfigureUrl = "payments-paypalExpress-config", - IsEnabled = true, - LandingViewComponentName = "PaypalExpressLanding", - Name = "Paypal Express" - }, - new - { - Id = "Stripe", - AdditionalSettings = "{\"PublicKey\": \"pk_test_6pRNASCoBOKtIshFeQd4XMUh\", \"PrivateKey\" : \"sk_test_BQokikJOvBiI2HlWgH4olfQ2\"}", - ConfigureUrl = "payments-stripe-config", - IsEnabled = true, - LandingViewComponentName = "StripeLanding", - Name = "Stripe" - }, - new - { - Id = "MomoPayment", - AdditionalSettings = "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420180417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}", - ConfigureUrl = "payments-momo-config", - IsEnabled = true, - LandingViewComponentName = "MomoLanding", - Name = "Momo Payment" - }, - new - { - Id = "NganLuong", - AdditionalSettings = "{\"IsSandbox\":true, \"MerchantId\": 47249, \"MerchantPassword\": \"e530745693dbde678f9da98a7c821a07\", \"ReceiverEmail\": \"nlqthien@gmail.com\"}", - ConfigureUrl = "payments-nganluong-config", - IsEnabled = true, - LandingViewComponentName = "NganLuongLanding", - Name = "Ngan Luong Payment" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("DiscountStep"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("IsCouponRequired"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.Property("UsageLimitPerCoupon"); - - b.Property("UsageLimitPerCustomer"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CartRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.Property("CartRuleId"); - - b.Property("CategoryId"); - - b.HasKey("CartRuleId", "CategoryId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Pricing_CartRuleCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.Property("CartRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CartRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CartRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.Property("CartRuleId"); - - b.Property("ProductId"); - - b.HasKey("CartRuleId", "ProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Pricing_CartRuleProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("CouponId"); - - b.Property("CreatedOn"); - - b.Property("OrderId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.HasIndex("CouponId"); - - b.HasIndex("UserId"); - - b.ToTable("Pricing_CartRuleUsage"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CatalogRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.Property("CatalogRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CatalogRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CatalogRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.ToTable("Pricing_Coupon"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("UserId"); - - b.ToTable("ProductComparison_ComparingProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductRecentlyViewed.Models.RecentlyViewedProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LatestViewedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.ToTable("ProductRecentlyViewed_RecentlyViewedProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("ReplierName") - .HasMaxLength(450); - - b.Property("ReviewId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ReviewId"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Reply"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Rating"); - - b.Property("ReviewerName") - .HasMaxLength(450); - - b.Property("Status"); - - b.Property("Title") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Review"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Search.Models.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("QueryText") - .IsRequired() - .HasMaxLength(500); - - b.Property("ResultsCount"); - - b.HasKey("Id"); - - b.ToTable("Search_Query"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("TrackingNumber") - .HasMaxLength(450); - - b.Property("VendorId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Shipments_Shipment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OrderItemId"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ShipmentId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("ShipmentId"); - - b.ToTable("Shipments_ShipmentItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipping.Models.ShippingProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("OnlyCountryIdsString") - .HasMaxLength(1000); - - b.Property("OnlyStateOrProvinceIdsString") - .HasMaxLength(1000); - - b.Property("ShippingPriceServiceTypeName") - .HasMaxLength(450); - - b.Property("ToAllShippingEnabledCountries"); - - b.Property("ToAllShippingEnabledStatesOrProvinces"); - - b.HasKey("Id"); - - b.ToTable("Shipping_ShippingProvider"); - - b.HasData( - new - { - Id = "FreeShip", - AdditionalSettings = "{MinimumOrderAmount : 1}", - ConfigureUrl = "", - IsEnabled = true, - Name = "Free Ship", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingFree.Services.FreeShippingServiceProvider,SimplCommerce.Module.ShippingFree", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }, - new - { - Id = "TableRate", - ConfigureUrl = "shipping-table-rate-config", - IsEnabled = true, - Name = "Table Rate", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingTableRate.Services.TableRateShippingServiceProvider,SimplCommerce.Module.ShippingTableRate", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("MinOrderSubtotal"); - - b.Property("Note"); - - b.Property("ShippingPrice"); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("ShippingTableRate_PriceAndDestination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("IsActive"); - - b.Property("IsProductPriceIncludeTax"); - - b.Property("LatestUpdatedOn"); - - b.Property("LockedOnCheckout"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("ShippingAmount"); - - b.Property("ShippingData"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("TaxAmount"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.ToTable("ShoppingCart_Cart"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartId"); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.HasKey("Id"); - - b.HasIndex("CartId"); - - b.HasIndex("ProductId"); - - b.ToTable("ShoppingCart_CartItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxClass", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Tax_TaxClass"); - - b.HasData( - new - { - Id = 1L, - Name = "Standard VAT" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Rate"); - - b.Property("StateOrProvinceId"); - - b.Property("TaxClassId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("StateOrProvinceId"); - - b.HasIndex("TaxClassId"); - - b.ToTable("Tax_TaxRate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("SharingCode") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("WishList_WishList"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("LatestUpdatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("WishListId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WishListId"); - - b.ToTable("WishList_WishListItem"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role") - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.HasOne("SimplCommerce.Infrastructure.Localization.Culture", "Culture") - .WithMany("Resources") - .HasForeignKey("CultureId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.HasOne("SimplCommerce.Module.ActivityLog.Models.ActivityType", "ActivityType") - .WithMany() - .HasForeignKey("ActivityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Brand", "Brand") - .WithMany() - .HasForeignKey("BrandId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", "Group") - .WithMany("Attributes") - .HasForeignKey("GroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "Attribute") - .WithMany() - .HasForeignKey("AttributeId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("AttributeValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Categories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "LinkedProduct") - .WithMany("LinkedProductLinks") - .HasForeignKey("LinkedProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("ProductLinks") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Media", "Media") - .WithMany() - .HasForeignKey("MediaId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Medias") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionCombinations") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("PriceHistories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "ProductAttribute") - .WithMany("ProductTemplates") - .HasForeignKey("ProductAttributeId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductTemplate", "ProductTemplate") - .WithMany("ProductAttributes") - .HasForeignKey("ProductTemplateId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Entity", "Entity") - .WithMany() - .HasForeignKey("EntityId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.Menu", "Menu") - .WithMany("MenuItems") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.MenuItem", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.HasOne("SimplCommerce.Module.Comments.Models.Comment", "Parent") - .WithMany("Replies") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.HasOne("SimplCommerce.Module.Contacts.Models.ContactArea", "ContactArea") - .WithMany() - .HasForeignKey("ContactAreaId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany("Users") - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("CustomerGroups") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.EntityType", "EntityType") - .WithMany() - .HasForeignKey("EntityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany("StatesOrProvinces") - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultBillingAddress") - .WithMany() - .HasForeignKey("DefaultBillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultShippingAddress") - .WithMany() - .HasForeignKey("DefaultShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor") - .WithMany("Users") - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany("UserAddresses") - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("UserAddresses") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role", "Role") - .WithMany("Users") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Widget", "Widget") - .WithMany() - .HasForeignKey("WidgetId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.WidgetZone", "WidgetZone") - .WithMany() - .HasForeignKey("WidgetZoneId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor", "Vendor") - .WithMany() - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.HasOne("SimplCommerce.Module.News.Models.NewsCategory", "Category") - .WithMany("NewsItems") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.News.Models.NewsItem", "NewsItem") - .WithMany("Categories") - .HasForeignKey("NewsItemId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "BillingAddress") - .WithMany() - .HasForeignKey("BillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "ShippingAddress") - .WithMany() - .HasForeignKey("ShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany("OrderItems") - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Categories") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("CustomerGroups") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Products") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany() - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Pricing.Models.Coupon", "Coupon") - .WithMany() - .HasForeignKey("CouponId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CatalogRule", "CatalogRule") - .WithMany("CustomerGroups") - .HasForeignKey("CatalogRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Coupons") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.HasOne("SimplCommerce.Module.Reviews.Models.Review", "Review") - .WithMany("Replies") - .HasForeignKey("ReviewId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Shipments.Models.Shipment", "Shipment") - .WithMany("Items") - .HasForeignKey("ShipmentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.HasOne("SimplCommerce.Module.ShoppingCart.Models.Cart", "Cart") - .WithMany("Items") - .HasForeignKey("CartId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.WishList.Models.WishList", "WishList") - .WithMany("Items") - .HasForeignKey("WishListId") - .OnDelete(DeleteBehavior.Restrict); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190710165614_DefaultCultureConfiguration.cs b/src/SimplCommerce.WebHost/Migrations/20190710165614_DefaultCultureConfiguration.cs deleted file mode 100644 index a457e41c60..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190710165614_DefaultCultureConfiguration.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace SimplCommerce.WebHost.Migrations -{ - public partial class DefaultCultureConfiguration : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.InsertData( - table: "Core_AppSetting", - columns: new[] { "Id", "IsVisibleInCommonSettingPage", "Module", "Value" }, - values: new object[] { "Global.DefaultCultureUI", true, "Core", "en-US" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Core_AppSetting", - keyColumn: "Id", - keyValue: "Global.DefaultCultureUI"); - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190726221912_AddedCurrencySetting.Designer.cs b/src/SimplCommerce.WebHost/Migrations/20190726221912_AddedCurrencySetting.Designer.cs deleted file mode 100644 index 75cfb8d5de..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190726221912_AddedCurrencySetting.Designer.cs +++ /dev/null @@ -1,3545 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using SimplCommerce.Module.Core.Data; - -namespace SimplCommerce.WebHost.Migrations -{ - [DbContext(typeof(SimplDbContext))] - [Migration("20190726221912_AddedCurrencySetting")] - partial class AddedCurrencySetting - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.2.1-servicing-10028") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_RoleClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserLogin"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId"); - - b.Property("LoginProvider"); - - b.Property("Name"); - - b.Property("Value"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("Core_UserToken"); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Culture", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Localization_Culture"); - - b.HasData( - new - { - Id = "en-US", - Name = "English (US)" - }); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CultureId") - .IsRequired(); - - b.Property("Key") - .IsRequired() - .HasMaxLength(450); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("CultureId"); - - b.ToTable("Localization_Resource"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ActivityTypeId"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .IsRequired() - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ActivityTypeId"); - - b.ToTable("ActivityLog_Activity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.ActivityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("ActivityLog_ActivityType"); - - b.HasData( - new - { - Id = 1L, - Name = "EntityView" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Brand", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_Brand"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IncludeInMenu"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Category"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BrandId"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("Gtin") - .HasMaxLength(450); - - b.Property("HasOptions"); - - b.Property("IsAllowToOrder"); - - b.Property("IsCallForPricing"); - - b.Property("IsDeleted"); - - b.Property("IsFeatured"); - - b.Property("IsPublished"); - - b.Property("IsVisibleIndividually"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("NormalizedName") - .HasMaxLength(450); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("PublishedOn"); - - b.Property("RatingAverage"); - - b.Property("ReviewsCount"); - - b.Property("ShortDescription") - .HasMaxLength(450); - - b.Property("Sku") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.Property("Specification"); - - b.Property("StockQuantity"); - - b.Property("StockTrackingIsEnabled"); - - b.Property("TaxClassId"); - - b.Property("ThumbnailImageId"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BrandId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("TaxClassId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Product"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("GroupId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("GroupId"); - - b.ToTable("Catalog_ProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductAttributeGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AttributeId"); - - b.Property("ProductId"); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("AttributeId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductAttributeValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CategoryId"); - - b.Property("DisplayOrder"); - - b.Property("IsFeaturedProduct"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("CategoryId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LinkType"); - - b.Property("LinkedProductId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("LinkedProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductLink"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayOrder"); - - b.Property("MediaId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("MediaId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductMedia"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOption", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductOption"); - - b.HasData( - new - { - Id = 1L, - Name = "Color" - }, - new - { - Id = 2L, - Name = "Size" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionCombination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayType") - .HasMaxLength(450); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("ProductId"); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductPriceHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductTemplate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.Property("ProductTemplateId"); - - b.Property("ProductAttributeId"); - - b.HasKey("ProductTemplateId", "ProductAttributeId"); - - b.HasIndex("ProductAttributeId"); - - b.ToTable("Catalog_ProductTemplateProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Menu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsPublished"); - - b.Property("IsSystem"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Cms_Menu"); - - b.HasData( - new - { - Id = 1L, - IsPublished = true, - IsSystem = true, - Name = "Customer Services" - }, - new - { - Id = 2L, - IsPublished = true, - IsSystem = true, - Name = "Information" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CustomLink") - .HasMaxLength(450); - - b.Property("DisplayOrder"); - - b.Property("EntityId"); - - b.Property("MenuId"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.HasKey("Id"); - - b.HasIndex("EntityId"); - - b.HasIndex("MenuId"); - - b.HasIndex("ParentId"); - - b.ToTable("Cms_MenuItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Body"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.ToTable("Cms_Page"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CommentText"); - - b.Property("CommenterName") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("UserId"); - - b.ToTable("Comments_Comment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Address") - .HasMaxLength(450); - - b.Property("ContactAreaId"); - - b.Property("Content"); - - b.Property("CreatedOn"); - - b.Property("EmailAddress") - .HasMaxLength(450); - - b.Property("FullName") - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("PhoneNumber") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("ContactAreaId"); - - b.ToTable("Contacts_Contact"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.ContactArea", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsDeleted"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Contacts_ContactArea"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .IsRequired() - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_Address"); - - b.HasData( - new - { - Id = 1L, - AddressLine1 = "364 Cong Hoa", - ContactName = "Thien Nguyen", - CountryId = "VN", - StateOrProvinceId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.AppSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("IsVisibleInCommonSettingPage"); - - b.Property("Module") - .HasMaxLength(450); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_AppSetting"); - - b.HasData( - new - { - Id = "Catalog.ProductPageSize", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "10" - }, - new - { - Id = "Catalog.IsProductPriceIncludeTax", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "Catalog.IsCommentsRequireApproval", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "GoogleAppKey", - IsVisibleInCommonSettingPage = false, - Module = "Contact", - Value = "" - }, - new - { - Id = "Global.AssetVersion", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "1.0" - }, - new - { - Id = "Theme", - IsVisibleInCommonSettingPage = false, - Module = "Core", - Value = "Generic" - }, - new - { - Id = "Global.DefaultCultureUI", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "en-US" - }, - new - { - Id = "Global.CurrencyCulture", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "en-US" - }, - new - { - Id = "Global.CurrencyDecimalPlace", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "2" - }, - new - { - Id = "SmtpServer", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "smtp.gmail.com" - }, - new - { - Id = "SmtpPort", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "587" - }, - new - { - Id = "SmtpUsername", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "SmtpPassword", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "News.PageSize", - IsVisibleInCommonSettingPage = true, - Module = "News", - Value = "10" - }, - new - { - Id = "Tax.DefaultTaxClassId", - IsVisibleInCommonSettingPage = true, - Module = "Tax", - Value = "1" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Country", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Code3") - .HasMaxLength(450); - - b.Property("IsBillingEnabled"); - - b.Property("IsCityEnabled"); - - b.Property("IsDistrictEnabled"); - - b.Property("IsShippingEnabled"); - - b.Property("IsZipCodeEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Country"); - - b.HasData( - new - { - Id = "VN", - Code3 = "VNM", - IsBillingEnabled = true, - IsCityEnabled = false, - IsDistrictEnabled = true, - IsShippingEnabled = true, - IsZipCodeEnabled = false, - Name = "Việt Nam" - }, - new - { - Id = "US", - Code3 = "USA", - IsBillingEnabled = true, - IsCityEnabled = true, - IsDistrictEnabled = false, - IsShippingEnabled = true, - IsZipCodeEnabled = true, - Name = "United States" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Core_CustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.Property("UserId"); - - b.Property("CustomerGroupId"); - - b.HasKey("UserId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Core_CustomerGroupUser"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Location"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_District"); - - b.HasData( - new - { - Id = 1L, - Name = "Quận 1", - StateOrProvinceId = 1L, - Type = "Quận" - }, - new - { - Id = 2L, - Name = "Quận 2", - StateOrProvinceId = 1L, - Type = "Quận" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("EntityTypeId"); - - b.ToTable("Core_Entity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.EntityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AreaName") - .HasMaxLength(450); - - b.Property("IsMenuable"); - - b.Property("RoutingAction") - .HasMaxLength(450); - - b.Property("RoutingController") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_EntityType"); - - b.HasData( - new - { - Id = "Category", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "CategoryDetail", - RoutingController = "Category" - }, - new - { - Id = "Brand", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "BrandDetail", - RoutingController = "Brand" - }, - new - { - Id = "Product", - AreaName = "Catalog", - IsMenuable = false, - RoutingAction = "ProductDetail", - RoutingController = "Product" - }, - new - { - Id = "Page", - AreaName = "Cms", - IsMenuable = true, - RoutingAction = "PageDetail", - RoutingController = "Page" - }, - new - { - Id = "Vendor", - AreaName = "Core", - IsMenuable = false, - RoutingAction = "VendorDetail", - RoutingController = "Vendor" - }, - new - { - Id = "NewsCategory", - AreaName = "News", - IsMenuable = true, - RoutingAction = "NewsCategoryDetail", - RoutingController = "NewsCategory" - }, - new - { - Id = "NewsItem", - AreaName = "News", - IsMenuable = false, - RoutingAction = "NewsItemDetail", - RoutingController = "NewsItem" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Media", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Caption") - .HasMaxLength(450); - - b.Property("FileName") - .HasMaxLength(450); - - b.Property("FileSize"); - - b.Property("MediaType"); - - b.HasKey("Id"); - - b.ToTable("Core_Media"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasMaxLength(256); - - b.Property("NormalizedName") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasName("RoleNameIndex") - .HasFilter("[NormalizedName] IS NOT NULL"); - - b.ToTable("Core_Role"); - - b.HasData( - new - { - Id = 1L, - ConcurrencyStamp = "4776a1b2-dbe4-4056-82ec-8bed211d1454", - Name = "admin", - NormalizedName = "ADMIN" - }, - new - { - Id = 2L, - ConcurrencyStamp = "00d172be-03a0-4856-8b12-26d63fcf4374", - Name = "customer", - NormalizedName = "CUSTOMER" - }, - new - { - Id = 3L, - ConcurrencyStamp = "d4754388-8355-4018-b728-218018836817", - Name = "guest", - NormalizedName = "GUEST" - }, - new - { - Id = 4L, - ConcurrencyStamp = "71f10604-8c4d-4a7d-ac4a-ffefb11cefeb", - Name = "vendor", - NormalizedName = "VENDOR" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Code") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.ToTable("Core_StateOrProvince"); - - b.HasData( - new - { - Id = 1L, - CountryId = "VN", - Name = "Hồ Chí Minh", - Type = "Thành Phố" - }, - new - { - Id = 2L, - Code = "WA", - CountryId = "US", - Name = "Washington" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("CreatedOn"); - - b.Property("Culture") - .HasMaxLength(450); - - b.Property("DefaultBillingAddressId"); - - b.Property("DefaultShippingAddressId"); - - b.Property("Email") - .HasMaxLength(256); - - b.Property("EmailConfirmed"); - - b.Property("ExtensionData"); - - b.Property("FullName") - .IsRequired() - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .HasMaxLength(256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("RefreshTokenHash") - .HasMaxLength(450); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserGuid"); - - b.Property("UserName") - .HasMaxLength(256); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("DefaultBillingAddressId"); - - b.HasIndex("DefaultShippingAddressId"); - - b.HasIndex("NormalizedEmail") - .HasName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasName("UserNameIndex") - .HasFilter("[NormalizedUserName] IS NOT NULL"); - - b.HasIndex("VendorId"); - - b.ToTable("Core_User"); - - b.HasData( - new - { - Id = 2L, - AccessFailedCount = 0, - ConcurrencyStamp = "101cd6ae-a8ef-4a37-97fd-04ac2dd630e4", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "system@simplcommerce.com", - EmailConfirmed = false, - FullName = "System User", - IsDeleted = true, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "SYSTEM@SIMPLCOMMERCE.COM", - NormalizedUserName = "SYSTEM@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "a9565acb-cee6-425f-9833-419a793f5fba", - TwoFactorEnabled = false, - UserGuid = new Guid("5f72f83b-7436-4221-869c-1b69b2e23aae"), - UserName = "system@simplcommerce.com" - }, - new - { - Id = 10L, - AccessFailedCount = 0, - ConcurrencyStamp = "c83afcbc-312c-4589-bad7-8686bd4754c0", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "admin@simplcommerce.com", - EmailConfirmed = false, - FullName = "Shop Admin", - IsDeleted = false, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "ADMIN@SIMPLCOMMERCE.COM", - NormalizedUserName = "ADMIN@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "d6847450-47f0-4c7a-9fed-0c66234bf61f", - TwoFactorEnabled = false, - UserGuid = new Guid("ed8210c3-24b0-4823-a744-80078cf12eb4"), - UserName = "admin@simplcommerce.com" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("AddressType"); - - b.Property("LastUsedOn"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_UserRole"); - - b.HasData( - new - { - UserId = 10L, - RoleId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Vendor", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("Email"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Vendor"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Widget", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CreateUrl") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EditUrl") - .HasMaxLength(450); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ViewComponentName") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Widget"); - - b.HasData( - new - { - Id = "CategoryWidget", - CreateUrl = "widget-category-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-category-edit", - IsPublished = false, - Name = "Category Widget", - ViewComponentName = "CategoryWidget" - }, - new - { - Id = "ProductWidget", - CreateUrl = "widget-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-product-edit", - IsPublished = false, - Name = "Product Widget", - ViewComponentName = "ProductWidget" - }, - new - { - Id = "SimpleProductWidget", - CreateUrl = "widget-simple-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-simple-product-edit", - IsPublished = false, - Name = "Simple Product Widget", - ViewComponentName = "SimpleProductWidget" - }, - new - { - Id = "HtmlWidget", - CreateUrl = "widget-html-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-html-edit", - IsPublished = false, - Name = "Html Widget", - ViewComponentName = "HtmlWidget" - }, - new - { - Id = "CarouselWidget", - CreateUrl = "widget-carousel-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-carousel-edit", - IsPublished = false, - Name = "Carousel Widget", - ViewComponentName = "CarouselWidget" - }, - new - { - Id = "SpaceBarWidget", - CreateUrl = "widget-spacebar-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-spacebar-edit", - IsPublished = false, - Name = "SpaceBar Widget", - ViewComponentName = "SpaceBarWidget" - }, - new - { - Id = "RecentlyViewedWidget", - CreateUrl = "widget-recently-viewed-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-recently-viewed-edit", - IsPublished = false, - Name = "Recently Viewed Widget", - ViewComponentName = "RecentlyViewedWidget" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Data"); - - b.Property("DisplayOrder"); - - b.Property("HtmlData"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("PublishEnd"); - - b.Property("PublishStart"); - - b.Property("WidgetId") - .HasMaxLength(450); - - b.Property("WidgetZoneId"); - - b.HasKey("Id"); - - b.HasIndex("WidgetId"); - - b.HasIndex("WidgetZoneId"); - - b.ToTable("Core_WidgetInstance"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetZone", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_WidgetZone"); - - b.HasData( - new - { - Id = 1L, - Name = "Home Featured" - }, - new - { - Id = 2L, - Name = "Home Main Content" - }, - new - { - Id = 3L, - Name = "Home After Main Content" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ReservedQuantity"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_Stock"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AdjustedQuantity"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("ProductId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_StockHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("VendorId"); - - b.ToTable("Inventory_Warehouse"); - - b.HasData( - new - { - Id = 1L, - AddressId = 1L, - Name = "Default warehouse" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("News_NewsCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("FullContent"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("ShortContent") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("News_NewsItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.Property("CategoryId"); - - b.Property("NewsItemId"); - - b.HasKey("CategoryId", "NewsItemId"); - - b.HasIndex("NewsItemId"); - - b.ToTable("News_NewsItemCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BillingAddressId"); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("DiscountAmount"); - - b.Property("IsMasterOrder"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("OrderStatus"); - - b.Property("OrderTotal"); - - b.Property("ParentId"); - - b.Property("PaymentFeeAmount"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("ShippingAddressId"); - - b.Property("ShippingFeeAmount"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("SubTotal"); - - b.Property("SubTotalWithDiscount"); - - b.Property("TaxAmount"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BillingAddressId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ParentId"); - - b.HasIndex("ShippingAddressId"); - - b.ToTable("Orders_Order"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Orders_OrderAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("NewStatus"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("OldStatus"); - - b.Property("OrderId"); - - b.Property("OrderSnapshot"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.ToTable("Orders_OrderHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DiscountAmount"); - - b.Property("OrderId"); - - b.Property("ProductId"); - - b.Property("ProductPrice"); - - b.Property("Quantity"); - - b.Property("TaxAmount"); - - b.Property("TaxPercent"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.HasIndex("ProductId"); - - b.ToTable("Orders_OrderItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Amount"); - - b.Property("CreatedOn"); - - b.Property("FailureMessage"); - - b.Property("GatewayTransactionId") - .HasMaxLength(450); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("PaymentFee"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("Status"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.ToTable("Payments_Payment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.PaymentProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("LandingViewComponentName") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Payments_PaymentProvider"); - - b.HasData( - new - { - Id = "Braintree", - AdditionalSettings = "{\"PublicKey\": \"6j4d7qspt5n48kx4\", \"PrivateKey\" : \"bd1c26e53a6d811243fcc3eb268113e1\", \"MerchantId\" : \"ncsh7wwqvzs3cx9q\", \"IsProduction\" : \"false\"}", - ConfigureUrl = "payments-braintree-config", - IsEnabled = true, - LandingViewComponentName = "BraintreeLanding", - Name = "Braintree" - }, - new - { - Id = "CoD", - ConfigureUrl = "payments-cod-config", - IsEnabled = true, - LandingViewComponentName = "CoDLanding", - Name = "Cash On Delivery" - }, - new - { - Id = "PaypalExpress", - AdditionalSettings = "{ \"IsSandbox\":true, \"ClientId\":\"\", \"ClientSecret\":\"\" }", - ConfigureUrl = "payments-paypalExpress-config", - IsEnabled = true, - LandingViewComponentName = "PaypalExpressLanding", - Name = "Paypal Express" - }, - new - { - Id = "Stripe", - AdditionalSettings = "{\"PublicKey\": \"pk_test_6pRNASCoBOKtIshFeQd4XMUh\", \"PrivateKey\" : \"sk_test_BQokikJOvBiI2HlWgH4olfQ2\"}", - ConfigureUrl = "payments-stripe-config", - IsEnabled = true, - LandingViewComponentName = "StripeLanding", - Name = "Stripe" - }, - new - { - Id = "MomoPayment", - AdditionalSettings = "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420180417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}", - ConfigureUrl = "payments-momo-config", - IsEnabled = true, - LandingViewComponentName = "MomoLanding", - Name = "Momo Payment" - }, - new - { - Id = "NganLuong", - AdditionalSettings = "{\"IsSandbox\":true, \"MerchantId\": 47249, \"MerchantPassword\": \"e530745693dbde678f9da98a7c821a07\", \"ReceiverEmail\": \"nlqthien@gmail.com\"}", - ConfigureUrl = "payments-nganluong-config", - IsEnabled = true, - LandingViewComponentName = "NganLuongLanding", - Name = "Ngan Luong Payment" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("DiscountStep"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("IsCouponRequired"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.Property("UsageLimitPerCoupon"); - - b.Property("UsageLimitPerCustomer"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CartRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.Property("CartRuleId"); - - b.Property("CategoryId"); - - b.HasKey("CartRuleId", "CategoryId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Pricing_CartRuleCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.Property("CartRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CartRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CartRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.Property("CartRuleId"); - - b.Property("ProductId"); - - b.HasKey("CartRuleId", "ProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Pricing_CartRuleProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("CouponId"); - - b.Property("CreatedOn"); - - b.Property("OrderId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.HasIndex("CouponId"); - - b.HasIndex("UserId"); - - b.ToTable("Pricing_CartRuleUsage"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CatalogRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.Property("CatalogRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CatalogRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CatalogRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.ToTable("Pricing_Coupon"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("UserId"); - - b.ToTable("ProductComparison_ComparingProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductRecentlyViewed.Models.RecentlyViewedProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LatestViewedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.ToTable("ProductRecentlyViewed_RecentlyViewedProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("ReplierName") - .HasMaxLength(450); - - b.Property("ReviewId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ReviewId"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Reply"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Rating"); - - b.Property("ReviewerName") - .HasMaxLength(450); - - b.Property("Status"); - - b.Property("Title") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Review"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Search.Models.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("QueryText") - .IsRequired() - .HasMaxLength(500); - - b.Property("ResultsCount"); - - b.HasKey("Id"); - - b.ToTable("Search_Query"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("TrackingNumber") - .HasMaxLength(450); - - b.Property("VendorId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Shipments_Shipment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OrderItemId"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ShipmentId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("ShipmentId"); - - b.ToTable("Shipments_ShipmentItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipping.Models.ShippingProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("OnlyCountryIdsString") - .HasMaxLength(1000); - - b.Property("OnlyStateOrProvinceIdsString") - .HasMaxLength(1000); - - b.Property("ShippingPriceServiceTypeName") - .HasMaxLength(450); - - b.Property("ToAllShippingEnabledCountries"); - - b.Property("ToAllShippingEnabledStatesOrProvinces"); - - b.HasKey("Id"); - - b.ToTable("Shipping_ShippingProvider"); - - b.HasData( - new - { - Id = "FreeShip", - AdditionalSettings = "{MinimumOrderAmount : 1}", - ConfigureUrl = "", - IsEnabled = true, - Name = "Free Ship", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingFree.Services.FreeShippingServiceProvider,SimplCommerce.Module.ShippingFree", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }, - new - { - Id = "TableRate", - ConfigureUrl = "shipping-table-rate-config", - IsEnabled = true, - Name = "Table Rate", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingTableRate.Services.TableRateShippingServiceProvider,SimplCommerce.Module.ShippingTableRate", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("MinOrderSubtotal"); - - b.Property("Note"); - - b.Property("ShippingPrice"); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("ShippingTableRate_PriceAndDestination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("IsActive"); - - b.Property("IsProductPriceIncludeTax"); - - b.Property("LatestUpdatedOn"); - - b.Property("LockedOnCheckout"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("ShippingAmount"); - - b.Property("ShippingData"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("TaxAmount"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.ToTable("ShoppingCart_Cart"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartId"); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.HasKey("Id"); - - b.HasIndex("CartId"); - - b.HasIndex("ProductId"); - - b.ToTable("ShoppingCart_CartItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxClass", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Tax_TaxClass"); - - b.HasData( - new - { - Id = 1L, - Name = "Standard VAT" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Rate"); - - b.Property("StateOrProvinceId"); - - b.Property("TaxClassId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("StateOrProvinceId"); - - b.HasIndex("TaxClassId"); - - b.ToTable("Tax_TaxRate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("SharingCode") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("WishList_WishList"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("LatestUpdatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("WishListId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WishListId"); - - b.ToTable("WishList_WishListItem"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role") - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.HasOne("SimplCommerce.Infrastructure.Localization.Culture", "Culture") - .WithMany("Resources") - .HasForeignKey("CultureId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.HasOne("SimplCommerce.Module.ActivityLog.Models.ActivityType", "ActivityType") - .WithMany() - .HasForeignKey("ActivityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Brand", "Brand") - .WithMany() - .HasForeignKey("BrandId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", "Group") - .WithMany("Attributes") - .HasForeignKey("GroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "Attribute") - .WithMany() - .HasForeignKey("AttributeId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("AttributeValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Categories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "LinkedProduct") - .WithMany("LinkedProductLinks") - .HasForeignKey("LinkedProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("ProductLinks") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Media", "Media") - .WithMany() - .HasForeignKey("MediaId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Medias") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionCombinations") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("PriceHistories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "ProductAttribute") - .WithMany("ProductTemplates") - .HasForeignKey("ProductAttributeId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductTemplate", "ProductTemplate") - .WithMany("ProductAttributes") - .HasForeignKey("ProductTemplateId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Entity", "Entity") - .WithMany() - .HasForeignKey("EntityId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.Menu", "Menu") - .WithMany("MenuItems") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.MenuItem", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.HasOne("SimplCommerce.Module.Comments.Models.Comment", "Parent") - .WithMany("Replies") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.HasOne("SimplCommerce.Module.Contacts.Models.ContactArea", "ContactArea") - .WithMany() - .HasForeignKey("ContactAreaId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany("Users") - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("CustomerGroups") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.EntityType", "EntityType") - .WithMany() - .HasForeignKey("EntityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany("StatesOrProvinces") - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultBillingAddress") - .WithMany() - .HasForeignKey("DefaultBillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultShippingAddress") - .WithMany() - .HasForeignKey("DefaultShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor") - .WithMany("Users") - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany("UserAddresses") - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("UserAddresses") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role", "Role") - .WithMany("Users") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Widget", "Widget") - .WithMany() - .HasForeignKey("WidgetId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.WidgetZone", "WidgetZone") - .WithMany() - .HasForeignKey("WidgetZoneId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor", "Vendor") - .WithMany() - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.HasOne("SimplCommerce.Module.News.Models.NewsCategory", "Category") - .WithMany("NewsItems") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.News.Models.NewsItem", "NewsItem") - .WithMany("Categories") - .HasForeignKey("NewsItemId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "BillingAddress") - .WithMany() - .HasForeignKey("BillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "ShippingAddress") - .WithMany() - .HasForeignKey("ShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany("OrderItems") - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Categories") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("CustomerGroups") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Products") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany() - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Pricing.Models.Coupon", "Coupon") - .WithMany() - .HasForeignKey("CouponId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CatalogRule", "CatalogRule") - .WithMany("CustomerGroups") - .HasForeignKey("CatalogRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Coupons") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.HasOne("SimplCommerce.Module.Reviews.Models.Review", "Review") - .WithMany("Replies") - .HasForeignKey("ReviewId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Shipments.Models.Shipment", "Shipment") - .WithMany("Items") - .HasForeignKey("ShipmentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.HasOne("SimplCommerce.Module.ShoppingCart.Models.Cart", "Cart") - .WithMany("Items") - .HasForeignKey("CartId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.WishList.Models.WishList", "WishList") - .WithMany("Items") - .HasForeignKey("WishListId") - .OnDelete(DeleteBehavior.Restrict); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190726221912_AddedCurrencySetting.cs b/src/SimplCommerce.WebHost/Migrations/20190726221912_AddedCurrencySetting.cs deleted file mode 100644 index 2229c8af6c..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190726221912_AddedCurrencySetting.cs +++ /dev/null @@ -1,47 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace SimplCommerce.WebHost.Migrations -{ - public partial class AddedCurrencySetting : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.UpdateData( - table: "Core_AppSetting", - keyColumn: "Id", - keyValue: "Global.DefaultCultureUI", - column: "Module", - value: "Core"); - - migrationBuilder.InsertData( - table: "Core_AppSetting", - columns: new[] { "Id", "IsVisibleInCommonSettingPage", "Module", "Value" }, - values: new object[] { "Global.CurrencyCulture", true, "Core", "en-US" }); - - migrationBuilder.InsertData( - table: "Core_AppSetting", - columns: new[] { "Id", "IsVisibleInCommonSettingPage", "Module", "Value" }, - values: new object[] { "Global.CurrencyDecimalPlace", true, "Core", "2" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Core_AppSetting", - keyColumn: "Id", - keyValue: "Global.CurrencyCulture"); - - migrationBuilder.DeleteData( - table: "Core_AppSetting", - keyColumn: "Id", - keyValue: "Global.CurrencyDecimalPlace"); - - migrationBuilder.UpdateData( - table: "Core_AppSetting", - keyColumn: "Id", - keyValue: "Global.DefaultCultureUI", - column: "Module", - value: "Global"); - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190727083300_AddedContentLocalization.Designer.cs b/src/SimplCommerce.WebHost/Migrations/20190727083300_AddedContentLocalization.Designer.cs deleted file mode 100644 index 77e9fc7d54..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190727083300_AddedContentLocalization.Designer.cs +++ /dev/null @@ -1,3587 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using SimplCommerce.Module.Core.Data; - -namespace SimplCommerce.WebHost.Migrations -{ - [DbContext(typeof(SimplDbContext))] - [Migration("20190727083300_AddedContentLocalization")] - partial class AddedContentLocalization - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.2.1-servicing-10028") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_RoleClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserLogin"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId"); - - b.Property("LoginProvider"); - - b.Property("Name"); - - b.Property("Value"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("Core_UserToken"); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Culture", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Localization_Culture"); - - b.HasData( - new - { - Id = "en-US", - Name = "English (US)" - }); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.LocalizedContentProperty", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CultureId") - .IsRequired(); - - b.Property("EntityId"); - - b.Property("EntityType") - .HasMaxLength(450); - - b.Property("ProperyName") - .IsRequired() - .HasMaxLength(450); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("CultureId"); - - b.ToTable("Localization_LocalizedContentProperty"); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CultureId") - .IsRequired(); - - b.Property("Key") - .IsRequired() - .HasMaxLength(450); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("CultureId"); - - b.ToTable("Localization_Resource"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ActivityTypeId"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .IsRequired() - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ActivityTypeId"); - - b.ToTable("ActivityLog_Activity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.ActivityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("ActivityLog_ActivityType"); - - b.HasData( - new - { - Id = 1L, - Name = "EntityView" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Brand", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_Brand"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IncludeInMenu"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Category"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BrandId"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("Gtin") - .HasMaxLength(450); - - b.Property("HasOptions"); - - b.Property("IsAllowToOrder"); - - b.Property("IsCallForPricing"); - - b.Property("IsDeleted"); - - b.Property("IsFeatured"); - - b.Property("IsPublished"); - - b.Property("IsVisibleIndividually"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("NormalizedName") - .HasMaxLength(450); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("PublishedOn"); - - b.Property("RatingAverage"); - - b.Property("ReviewsCount"); - - b.Property("ShortDescription") - .HasMaxLength(450); - - b.Property("Sku") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.Property("Specification"); - - b.Property("StockQuantity"); - - b.Property("StockTrackingIsEnabled"); - - b.Property("TaxClassId"); - - b.Property("ThumbnailImageId"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BrandId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("TaxClassId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Product"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("GroupId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("GroupId"); - - b.ToTable("Catalog_ProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductAttributeGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AttributeId"); - - b.Property("ProductId"); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("AttributeId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductAttributeValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CategoryId"); - - b.Property("DisplayOrder"); - - b.Property("IsFeaturedProduct"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("CategoryId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LinkType"); - - b.Property("LinkedProductId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("LinkedProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductLink"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayOrder"); - - b.Property("MediaId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("MediaId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductMedia"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOption", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductOption"); - - b.HasData( - new - { - Id = 1L, - Name = "Color" - }, - new - { - Id = 2L, - Name = "Size" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionCombination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayType") - .HasMaxLength(450); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("ProductId"); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductPriceHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductTemplate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.Property("ProductTemplateId"); - - b.Property("ProductAttributeId"); - - b.HasKey("ProductTemplateId", "ProductAttributeId"); - - b.HasIndex("ProductAttributeId"); - - b.ToTable("Catalog_ProductTemplateProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Menu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsPublished"); - - b.Property("IsSystem"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Cms_Menu"); - - b.HasData( - new - { - Id = 1L, - IsPublished = true, - IsSystem = true, - Name = "Customer Services" - }, - new - { - Id = 2L, - IsPublished = true, - IsSystem = true, - Name = "Information" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CustomLink") - .HasMaxLength(450); - - b.Property("DisplayOrder"); - - b.Property("EntityId"); - - b.Property("MenuId"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.HasKey("Id"); - - b.HasIndex("EntityId"); - - b.HasIndex("MenuId"); - - b.HasIndex("ParentId"); - - b.ToTable("Cms_MenuItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Body"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.ToTable("Cms_Page"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CommentText"); - - b.Property("CommenterName") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("UserId"); - - b.ToTable("Comments_Comment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Address") - .HasMaxLength(450); - - b.Property("ContactAreaId"); - - b.Property("Content"); - - b.Property("CreatedOn"); - - b.Property("EmailAddress") - .HasMaxLength(450); - - b.Property("FullName") - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("PhoneNumber") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("ContactAreaId"); - - b.ToTable("Contacts_Contact"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.ContactArea", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsDeleted"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Contacts_ContactArea"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .IsRequired() - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_Address"); - - b.HasData( - new - { - Id = 1L, - AddressLine1 = "364 Cong Hoa", - ContactName = "Thien Nguyen", - CountryId = "VN", - StateOrProvinceId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.AppSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("IsVisibleInCommonSettingPage"); - - b.Property("Module") - .HasMaxLength(450); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_AppSetting"); - - b.HasData( - new - { - Id = "Catalog.ProductPageSize", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "10" - }, - new - { - Id = "Catalog.IsProductPriceIncludeTax", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "Catalog.IsCommentsRequireApproval", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "GoogleAppKey", - IsVisibleInCommonSettingPage = false, - Module = "Contact", - Value = "" - }, - new - { - Id = "Global.AssetVersion", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "1.0" - }, - new - { - Id = "Theme", - IsVisibleInCommonSettingPage = false, - Module = "Core", - Value = "Generic" - }, - new - { - Id = "Global.DefaultCultureUI", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "en-US" - }, - new - { - Id = "Global.CurrencyCulture", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "en-US" - }, - new - { - Id = "Global.CurrencyDecimalPlace", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "2" - }, - new - { - Id = "SmtpServer", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "smtp.gmail.com" - }, - new - { - Id = "SmtpPort", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "587" - }, - new - { - Id = "SmtpUsername", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "SmtpPassword", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "Localization.LocalizedConentEnable", - IsVisibleInCommonSettingPage = true, - Module = "Localization", - Value = "true" - }, - new - { - Id = "News.PageSize", - IsVisibleInCommonSettingPage = true, - Module = "News", - Value = "10" - }, - new - { - Id = "Tax.DefaultTaxClassId", - IsVisibleInCommonSettingPage = true, - Module = "Tax", - Value = "1" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Country", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Code3") - .HasMaxLength(450); - - b.Property("IsBillingEnabled"); - - b.Property("IsCityEnabled"); - - b.Property("IsDistrictEnabled"); - - b.Property("IsShippingEnabled"); - - b.Property("IsZipCodeEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Country"); - - b.HasData( - new - { - Id = "VN", - Code3 = "VNM", - IsBillingEnabled = true, - IsCityEnabled = false, - IsDistrictEnabled = true, - IsShippingEnabled = true, - IsZipCodeEnabled = false, - Name = "Việt Nam" - }, - new - { - Id = "US", - Code3 = "USA", - IsBillingEnabled = true, - IsCityEnabled = true, - IsDistrictEnabled = false, - IsShippingEnabled = true, - IsZipCodeEnabled = true, - Name = "United States" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Core_CustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.Property("UserId"); - - b.Property("CustomerGroupId"); - - b.HasKey("UserId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Core_CustomerGroupUser"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Location"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_District"); - - b.HasData( - new - { - Id = 1L, - Name = "Quận 1", - StateOrProvinceId = 1L, - Type = "Quận" - }, - new - { - Id = 2L, - Name = "Quận 2", - StateOrProvinceId = 1L, - Type = "Quận" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("EntityTypeId"); - - b.ToTable("Core_Entity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.EntityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AreaName") - .HasMaxLength(450); - - b.Property("IsMenuable"); - - b.Property("RoutingAction") - .HasMaxLength(450); - - b.Property("RoutingController") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_EntityType"); - - b.HasData( - new - { - Id = "Category", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "CategoryDetail", - RoutingController = "Category" - }, - new - { - Id = "Brand", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "BrandDetail", - RoutingController = "Brand" - }, - new - { - Id = "Product", - AreaName = "Catalog", - IsMenuable = false, - RoutingAction = "ProductDetail", - RoutingController = "Product" - }, - new - { - Id = "Page", - AreaName = "Cms", - IsMenuable = true, - RoutingAction = "PageDetail", - RoutingController = "Page" - }, - new - { - Id = "Vendor", - AreaName = "Core", - IsMenuable = false, - RoutingAction = "VendorDetail", - RoutingController = "Vendor" - }, - new - { - Id = "NewsCategory", - AreaName = "News", - IsMenuable = true, - RoutingAction = "NewsCategoryDetail", - RoutingController = "NewsCategory" - }, - new - { - Id = "NewsItem", - AreaName = "News", - IsMenuable = false, - RoutingAction = "NewsItemDetail", - RoutingController = "NewsItem" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Media", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Caption") - .HasMaxLength(450); - - b.Property("FileName") - .HasMaxLength(450); - - b.Property("FileSize"); - - b.Property("MediaType"); - - b.HasKey("Id"); - - b.ToTable("Core_Media"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasMaxLength(256); - - b.Property("NormalizedName") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasName("RoleNameIndex") - .HasFilter("[NormalizedName] IS NOT NULL"); - - b.ToTable("Core_Role"); - - b.HasData( - new - { - Id = 1L, - ConcurrencyStamp = "4776a1b2-dbe4-4056-82ec-8bed211d1454", - Name = "admin", - NormalizedName = "ADMIN" - }, - new - { - Id = 2L, - ConcurrencyStamp = "00d172be-03a0-4856-8b12-26d63fcf4374", - Name = "customer", - NormalizedName = "CUSTOMER" - }, - new - { - Id = 3L, - ConcurrencyStamp = "d4754388-8355-4018-b728-218018836817", - Name = "guest", - NormalizedName = "GUEST" - }, - new - { - Id = 4L, - ConcurrencyStamp = "71f10604-8c4d-4a7d-ac4a-ffefb11cefeb", - Name = "vendor", - NormalizedName = "VENDOR" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Code") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.ToTable("Core_StateOrProvince"); - - b.HasData( - new - { - Id = 1L, - CountryId = "VN", - Name = "Hồ Chí Minh", - Type = "Thành Phố" - }, - new - { - Id = 2L, - Code = "WA", - CountryId = "US", - Name = "Washington" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("CreatedOn"); - - b.Property("Culture") - .HasMaxLength(450); - - b.Property("DefaultBillingAddressId"); - - b.Property("DefaultShippingAddressId"); - - b.Property("Email") - .HasMaxLength(256); - - b.Property("EmailConfirmed"); - - b.Property("ExtensionData"); - - b.Property("FullName") - .IsRequired() - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .HasMaxLength(256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("RefreshTokenHash") - .HasMaxLength(450); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserGuid"); - - b.Property("UserName") - .HasMaxLength(256); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("DefaultBillingAddressId"); - - b.HasIndex("DefaultShippingAddressId"); - - b.HasIndex("NormalizedEmail") - .HasName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasName("UserNameIndex") - .HasFilter("[NormalizedUserName] IS NOT NULL"); - - b.HasIndex("VendorId"); - - b.ToTable("Core_User"); - - b.HasData( - new - { - Id = 2L, - AccessFailedCount = 0, - ConcurrencyStamp = "101cd6ae-a8ef-4a37-97fd-04ac2dd630e4", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "system@simplcommerce.com", - EmailConfirmed = false, - FullName = "System User", - IsDeleted = true, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "SYSTEM@SIMPLCOMMERCE.COM", - NormalizedUserName = "SYSTEM@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "a9565acb-cee6-425f-9833-419a793f5fba", - TwoFactorEnabled = false, - UserGuid = new Guid("5f72f83b-7436-4221-869c-1b69b2e23aae"), - UserName = "system@simplcommerce.com" - }, - new - { - Id = 10L, - AccessFailedCount = 0, - ConcurrencyStamp = "c83afcbc-312c-4589-bad7-8686bd4754c0", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "admin@simplcommerce.com", - EmailConfirmed = false, - FullName = "Shop Admin", - IsDeleted = false, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "ADMIN@SIMPLCOMMERCE.COM", - NormalizedUserName = "ADMIN@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "d6847450-47f0-4c7a-9fed-0c66234bf61f", - TwoFactorEnabled = false, - UserGuid = new Guid("ed8210c3-24b0-4823-a744-80078cf12eb4"), - UserName = "admin@simplcommerce.com" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("AddressType"); - - b.Property("LastUsedOn"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_UserRole"); - - b.HasData( - new - { - UserId = 10L, - RoleId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Vendor", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("Email"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Vendor"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Widget", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CreateUrl") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EditUrl") - .HasMaxLength(450); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ViewComponentName") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Widget"); - - b.HasData( - new - { - Id = "CategoryWidget", - CreateUrl = "widget-category-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-category-edit", - IsPublished = false, - Name = "Category Widget", - ViewComponentName = "CategoryWidget" - }, - new - { - Id = "ProductWidget", - CreateUrl = "widget-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-product-edit", - IsPublished = false, - Name = "Product Widget", - ViewComponentName = "ProductWidget" - }, - new - { - Id = "SimpleProductWidget", - CreateUrl = "widget-simple-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-simple-product-edit", - IsPublished = false, - Name = "Simple Product Widget", - ViewComponentName = "SimpleProductWidget" - }, - new - { - Id = "HtmlWidget", - CreateUrl = "widget-html-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-html-edit", - IsPublished = false, - Name = "Html Widget", - ViewComponentName = "HtmlWidget" - }, - new - { - Id = "CarouselWidget", - CreateUrl = "widget-carousel-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-carousel-edit", - IsPublished = false, - Name = "Carousel Widget", - ViewComponentName = "CarouselWidget" - }, - new - { - Id = "SpaceBarWidget", - CreateUrl = "widget-spacebar-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-spacebar-edit", - IsPublished = false, - Name = "SpaceBar Widget", - ViewComponentName = "SpaceBarWidget" - }, - new - { - Id = "RecentlyViewedWidget", - CreateUrl = "widget-recently-viewed-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-recently-viewed-edit", - IsPublished = false, - Name = "Recently Viewed Widget", - ViewComponentName = "RecentlyViewedWidget" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Data"); - - b.Property("DisplayOrder"); - - b.Property("HtmlData"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("PublishEnd"); - - b.Property("PublishStart"); - - b.Property("WidgetId") - .HasMaxLength(450); - - b.Property("WidgetZoneId"); - - b.HasKey("Id"); - - b.HasIndex("WidgetId"); - - b.HasIndex("WidgetZoneId"); - - b.ToTable("Core_WidgetInstance"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetZone", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_WidgetZone"); - - b.HasData( - new - { - Id = 1L, - Name = "Home Featured" - }, - new - { - Id = 2L, - Name = "Home Main Content" - }, - new - { - Id = 3L, - Name = "Home After Main Content" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ReservedQuantity"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_Stock"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AdjustedQuantity"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("ProductId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_StockHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("VendorId"); - - b.ToTable("Inventory_Warehouse"); - - b.HasData( - new - { - Id = 1L, - AddressId = 1L, - Name = "Default warehouse" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("News_NewsCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("FullContent"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("ShortContent") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("News_NewsItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.Property("CategoryId"); - - b.Property("NewsItemId"); - - b.HasKey("CategoryId", "NewsItemId"); - - b.HasIndex("NewsItemId"); - - b.ToTable("News_NewsItemCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BillingAddressId"); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("DiscountAmount"); - - b.Property("IsMasterOrder"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("OrderStatus"); - - b.Property("OrderTotal"); - - b.Property("ParentId"); - - b.Property("PaymentFeeAmount"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("ShippingAddressId"); - - b.Property("ShippingFeeAmount"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("SubTotal"); - - b.Property("SubTotalWithDiscount"); - - b.Property("TaxAmount"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BillingAddressId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ParentId"); - - b.HasIndex("ShippingAddressId"); - - b.ToTable("Orders_Order"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Orders_OrderAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("NewStatus"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("OldStatus"); - - b.Property("OrderId"); - - b.Property("OrderSnapshot"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.ToTable("Orders_OrderHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DiscountAmount"); - - b.Property("OrderId"); - - b.Property("ProductId"); - - b.Property("ProductPrice"); - - b.Property("Quantity"); - - b.Property("TaxAmount"); - - b.Property("TaxPercent"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.HasIndex("ProductId"); - - b.ToTable("Orders_OrderItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Amount"); - - b.Property("CreatedOn"); - - b.Property("FailureMessage"); - - b.Property("GatewayTransactionId") - .HasMaxLength(450); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("PaymentFee"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("Status"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.ToTable("Payments_Payment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.PaymentProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("LandingViewComponentName") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Payments_PaymentProvider"); - - b.HasData( - new - { - Id = "Braintree", - AdditionalSettings = "{\"PublicKey\": \"6j4d7qspt5n48kx4\", \"PrivateKey\" : \"bd1c26e53a6d811243fcc3eb268113e1\", \"MerchantId\" : \"ncsh7wwqvzs3cx9q\", \"IsProduction\" : \"false\"}", - ConfigureUrl = "payments-braintree-config", - IsEnabled = true, - LandingViewComponentName = "BraintreeLanding", - Name = "Braintree" - }, - new - { - Id = "CoD", - ConfigureUrl = "payments-cod-config", - IsEnabled = true, - LandingViewComponentName = "CoDLanding", - Name = "Cash On Delivery" - }, - new - { - Id = "PaypalExpress", - AdditionalSettings = "{ \"IsSandbox\":true, \"ClientId\":\"\", \"ClientSecret\":\"\" }", - ConfigureUrl = "payments-paypalExpress-config", - IsEnabled = true, - LandingViewComponentName = "PaypalExpressLanding", - Name = "Paypal Express" - }, - new - { - Id = "Stripe", - AdditionalSettings = "{\"PublicKey\": \"pk_test_6pRNASCoBOKtIshFeQd4XMUh\", \"PrivateKey\" : \"sk_test_BQokikJOvBiI2HlWgH4olfQ2\"}", - ConfigureUrl = "payments-stripe-config", - IsEnabled = true, - LandingViewComponentName = "StripeLanding", - Name = "Stripe" - }, - new - { - Id = "MomoPayment", - AdditionalSettings = "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420180417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}", - ConfigureUrl = "payments-momo-config", - IsEnabled = true, - LandingViewComponentName = "MomoLanding", - Name = "Momo Payment" - }, - new - { - Id = "NganLuong", - AdditionalSettings = "{\"IsSandbox\":true, \"MerchantId\": 47249, \"MerchantPassword\": \"e530745693dbde678f9da98a7c821a07\", \"ReceiverEmail\": \"nlqthien@gmail.com\"}", - ConfigureUrl = "payments-nganluong-config", - IsEnabled = true, - LandingViewComponentName = "NganLuongLanding", - Name = "Ngan Luong Payment" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("DiscountStep"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("IsCouponRequired"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.Property("UsageLimitPerCoupon"); - - b.Property("UsageLimitPerCustomer"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CartRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.Property("CartRuleId"); - - b.Property("CategoryId"); - - b.HasKey("CartRuleId", "CategoryId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Pricing_CartRuleCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.Property("CartRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CartRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CartRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.Property("CartRuleId"); - - b.Property("ProductId"); - - b.HasKey("CartRuleId", "ProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Pricing_CartRuleProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("CouponId"); - - b.Property("CreatedOn"); - - b.Property("OrderId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.HasIndex("CouponId"); - - b.HasIndex("UserId"); - - b.ToTable("Pricing_CartRuleUsage"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CatalogRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.Property("CatalogRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CatalogRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CatalogRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.ToTable("Pricing_Coupon"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("UserId"); - - b.ToTable("ProductComparison_ComparingProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductRecentlyViewed.Models.RecentlyViewedProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LatestViewedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.ToTable("ProductRecentlyViewed_RecentlyViewedProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("ReplierName") - .HasMaxLength(450); - - b.Property("ReviewId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ReviewId"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Reply"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Rating"); - - b.Property("ReviewerName") - .HasMaxLength(450); - - b.Property("Status"); - - b.Property("Title") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Review"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Search.Models.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("QueryText") - .IsRequired() - .HasMaxLength(500); - - b.Property("ResultsCount"); - - b.HasKey("Id"); - - b.ToTable("Search_Query"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("TrackingNumber") - .HasMaxLength(450); - - b.Property("VendorId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Shipments_Shipment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OrderItemId"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ShipmentId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("ShipmentId"); - - b.ToTable("Shipments_ShipmentItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipping.Models.ShippingProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("OnlyCountryIdsString") - .HasMaxLength(1000); - - b.Property("OnlyStateOrProvinceIdsString") - .HasMaxLength(1000); - - b.Property("ShippingPriceServiceTypeName") - .HasMaxLength(450); - - b.Property("ToAllShippingEnabledCountries"); - - b.Property("ToAllShippingEnabledStatesOrProvinces"); - - b.HasKey("Id"); - - b.ToTable("Shipping_ShippingProvider"); - - b.HasData( - new - { - Id = "FreeShip", - AdditionalSettings = "{MinimumOrderAmount : 1}", - ConfigureUrl = "", - IsEnabled = true, - Name = "Free Ship", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingFree.Services.FreeShippingServiceProvider,SimplCommerce.Module.ShippingFree", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }, - new - { - Id = "TableRate", - ConfigureUrl = "shipping-table-rate-config", - IsEnabled = true, - Name = "Table Rate", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingTableRate.Services.TableRateShippingServiceProvider,SimplCommerce.Module.ShippingTableRate", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("MinOrderSubtotal"); - - b.Property("Note"); - - b.Property("ShippingPrice"); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("ShippingTableRate_PriceAndDestination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("IsActive"); - - b.Property("IsProductPriceIncludeTax"); - - b.Property("LatestUpdatedOn"); - - b.Property("LockedOnCheckout"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("ShippingAmount"); - - b.Property("ShippingData"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("TaxAmount"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.ToTable("ShoppingCart_Cart"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartId"); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.HasKey("Id"); - - b.HasIndex("CartId"); - - b.HasIndex("ProductId"); - - b.ToTable("ShoppingCart_CartItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxClass", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Tax_TaxClass"); - - b.HasData( - new - { - Id = 1L, - Name = "Standard VAT" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Rate"); - - b.Property("StateOrProvinceId"); - - b.Property("TaxClassId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("StateOrProvinceId"); - - b.HasIndex("TaxClassId"); - - b.ToTable("Tax_TaxRate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("SharingCode") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("WishList_WishList"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("LatestUpdatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("WishListId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WishListId"); - - b.ToTable("WishList_WishListItem"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role") - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.LocalizedContentProperty", b => - { - b.HasOne("SimplCommerce.Infrastructure.Localization.Culture", "Culture") - .WithMany() - .HasForeignKey("CultureId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.HasOne("SimplCommerce.Infrastructure.Localization.Culture", "Culture") - .WithMany("Resources") - .HasForeignKey("CultureId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.HasOne("SimplCommerce.Module.ActivityLog.Models.ActivityType", "ActivityType") - .WithMany() - .HasForeignKey("ActivityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Brand", "Brand") - .WithMany() - .HasForeignKey("BrandId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", "Group") - .WithMany("Attributes") - .HasForeignKey("GroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "Attribute") - .WithMany() - .HasForeignKey("AttributeId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("AttributeValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Categories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "LinkedProduct") - .WithMany("LinkedProductLinks") - .HasForeignKey("LinkedProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("ProductLinks") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Media", "Media") - .WithMany() - .HasForeignKey("MediaId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Medias") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionCombinations") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("PriceHistories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "ProductAttribute") - .WithMany("ProductTemplates") - .HasForeignKey("ProductAttributeId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductTemplate", "ProductTemplate") - .WithMany("ProductAttributes") - .HasForeignKey("ProductTemplateId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Entity", "Entity") - .WithMany() - .HasForeignKey("EntityId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.Menu", "Menu") - .WithMany("MenuItems") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.MenuItem", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.HasOne("SimplCommerce.Module.Comments.Models.Comment", "Parent") - .WithMany("Replies") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.HasOne("SimplCommerce.Module.Contacts.Models.ContactArea", "ContactArea") - .WithMany() - .HasForeignKey("ContactAreaId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany("Users") - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("CustomerGroups") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.EntityType", "EntityType") - .WithMany() - .HasForeignKey("EntityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany("StatesOrProvinces") - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultBillingAddress") - .WithMany() - .HasForeignKey("DefaultBillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultShippingAddress") - .WithMany() - .HasForeignKey("DefaultShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor") - .WithMany("Users") - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany("UserAddresses") - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("UserAddresses") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role", "Role") - .WithMany("Users") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Widget", "Widget") - .WithMany() - .HasForeignKey("WidgetId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.WidgetZone", "WidgetZone") - .WithMany() - .HasForeignKey("WidgetZoneId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor", "Vendor") - .WithMany() - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.HasOne("SimplCommerce.Module.News.Models.NewsCategory", "Category") - .WithMany("NewsItems") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.News.Models.NewsItem", "NewsItem") - .WithMany("Categories") - .HasForeignKey("NewsItemId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "BillingAddress") - .WithMany() - .HasForeignKey("BillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "ShippingAddress") - .WithMany() - .HasForeignKey("ShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany("OrderItems") - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Categories") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("CustomerGroups") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Products") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany() - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Pricing.Models.Coupon", "Coupon") - .WithMany() - .HasForeignKey("CouponId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CatalogRule", "CatalogRule") - .WithMany("CustomerGroups") - .HasForeignKey("CatalogRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Coupons") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.HasOne("SimplCommerce.Module.Reviews.Models.Review", "Review") - .WithMany("Replies") - .HasForeignKey("ReviewId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Shipments.Models.Shipment", "Shipment") - .WithMany("Items") - .HasForeignKey("ShipmentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.HasOne("SimplCommerce.Module.ShoppingCart.Models.Cart", "Cart") - .WithMany("Items") - .HasForeignKey("CartId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.WishList.Models.WishList", "WishList") - .WithMany("Items") - .HasForeignKey("WishListId") - .OnDelete(DeleteBehavior.Restrict); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190727083300_AddedContentLocalization.cs b/src/SimplCommerce.WebHost/Migrations/20190727083300_AddedContentLocalization.cs deleted file mode 100644 index 283edaca43..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190727083300_AddedContentLocalization.cs +++ /dev/null @@ -1,55 +0,0 @@ -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace SimplCommerce.WebHost.Migrations -{ - public partial class AddedContentLocalization : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Localization_LocalizedContentProperty", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - EntityId = table.Column(nullable: false), - EntityType = table.Column(maxLength: 450, nullable: true), - CultureId = table.Column(nullable: false), - ProperyName = table.Column(maxLength: 450, nullable: false), - Value = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Localization_LocalizedContentProperty", x => x.Id); - table.ForeignKey( - name: "FK_Localization_LocalizedContentProperty_Localization_Culture_CultureId", - column: x => x.CultureId, - principalTable: "Localization_Culture", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.InsertData( - table: "Core_AppSetting", - columns: new[] { "Id", "IsVisibleInCommonSettingPage", "Module", "Value" }, - values: new object[] { "Localization.LocalizedConentEnable", true, "Localization", "true" }); - - migrationBuilder.CreateIndex( - name: "IX_Localization_LocalizedContentProperty_CultureId", - table: "Localization_LocalizedContentProperty", - column: "CultureId"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Localization_LocalizedContentProperty"); - - migrationBuilder.DeleteData( - table: "Core_AppSetting", - keyColumn: "Id", - keyValue: "Localization.LocalizedConentEnable"); - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190801065533_AddedCashfreePayment.Designer.cs b/src/SimplCommerce.WebHost/Migrations/20190801065533_AddedCashfreePayment.Designer.cs deleted file mode 100644 index 6811cfcef2..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190801065533_AddedCashfreePayment.Designer.cs +++ /dev/null @@ -1,3596 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using SimplCommerce.Module.Core.Data; - -namespace SimplCommerce.WebHost.Migrations -{ - [DbContext(typeof(SimplDbContext))] - [Migration("20190801065533_AddedCashfreePayment")] - partial class AddedCashfreePayment - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "2.2.6-servicing-10079") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_RoleClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserClaim"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserLogin"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId"); - - b.Property("LoginProvider"); - - b.Property("Name"); - - b.Property("Value"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("Core_UserToken"); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Culture", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Localization_Culture"); - - b.HasData( - new - { - Id = "en-US", - Name = "English (US)" - }); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.LocalizedContentProperty", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CultureId") - .IsRequired(); - - b.Property("EntityId"); - - b.Property("EntityType") - .HasMaxLength(450); - - b.Property("ProperyName") - .IsRequired() - .HasMaxLength(450); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("CultureId"); - - b.ToTable("Localization_LocalizedContentProperty"); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CultureId") - .IsRequired(); - - b.Property("Key") - .IsRequired() - .HasMaxLength(450); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("CultureId"); - - b.ToTable("Localization_Resource"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ActivityTypeId"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .IsRequired() - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ActivityTypeId"); - - b.ToTable("ActivityLog_Activity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.ActivityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("ActivityLog_ActivityType"); - - b.HasData( - new - { - Id = 1L, - Name = "EntityView" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Brand", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_Brand"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IncludeInMenu"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Category"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BrandId"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("Gtin") - .HasMaxLength(450); - - b.Property("HasOptions"); - - b.Property("IsAllowToOrder"); - - b.Property("IsCallForPricing"); - - b.Property("IsDeleted"); - - b.Property("IsFeatured"); - - b.Property("IsPublished"); - - b.Property("IsVisibleIndividually"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("NormalizedName") - .HasMaxLength(450); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("PublishedOn"); - - b.Property("RatingAverage"); - - b.Property("ReviewsCount"); - - b.Property("ShortDescription") - .HasMaxLength(450); - - b.Property("Sku") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.Property("Specification"); - - b.Property("StockQuantity"); - - b.Property("StockTrackingIsEnabled"); - - b.Property("TaxClassId"); - - b.Property("ThumbnailImageId"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BrandId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("TaxClassId"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("Catalog_Product"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("GroupId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("GroupId"); - - b.ToTable("Catalog_ProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductAttributeGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AttributeId"); - - b.Property("ProductId"); - - b.Property("Value"); - - b.HasKey("Id"); - - b.HasIndex("AttributeId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductAttributeValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CategoryId"); - - b.Property("DisplayOrder"); - - b.Property("IsFeaturedProduct"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("CategoryId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LinkType"); - - b.Property("LinkedProductId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("LinkedProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductLink"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayOrder"); - - b.Property("MediaId"); - - b.Property("ProductId"); - - b.HasKey("Id"); - - b.HasIndex("MediaId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductMedia"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOption", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductOption"); - - b.HasData( - new - { - Id = 1L, - Name = "Color" - }, - new - { - Id = 2L, - Name = "Size" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionCombination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DisplayType") - .HasMaxLength(450); - - b.Property("OptionId"); - - b.Property("ProductId"); - - b.Property("SortIndex"); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("OptionId"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductOptionValue"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("OldPrice"); - - b.Property("Price"); - - b.Property("ProductId"); - - b.Property("SpecialPrice"); - - b.Property("SpecialPriceEnd"); - - b.Property("SpecialPriceStart"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.ToTable("Catalog_ProductPriceHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Catalog_ProductTemplate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.Property("ProductTemplateId"); - - b.Property("ProductAttributeId"); - - b.HasKey("ProductTemplateId", "ProductAttributeId"); - - b.HasIndex("ProductAttributeId"); - - b.ToTable("Catalog_ProductTemplateProductAttribute"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Menu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsPublished"); - - b.Property("IsSystem"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Cms_Menu"); - - b.HasData( - new - { - Id = 1L, - IsPublished = true, - IsSystem = true, - Name = "Customer Services" - }, - new - { - Id = 2L, - IsPublished = true, - IsSystem = true, - Name = "Information" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CustomLink") - .HasMaxLength(450); - - b.Property("DisplayOrder"); - - b.Property("EntityId"); - - b.Property("MenuId"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.HasKey("Id"); - - b.HasIndex("EntityId"); - - b.HasIndex("MenuId"); - - b.HasIndex("ParentId"); - - b.ToTable("Cms_MenuItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Body"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.ToTable("Cms_Page"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CommentText"); - - b.Property("CommenterName") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("ParentId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ParentId"); - - b.HasIndex("UserId"); - - b.ToTable("Comments_Comment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Address") - .HasMaxLength(450); - - b.Property("ContactAreaId"); - - b.Property("Content"); - - b.Property("CreatedOn"); - - b.Property("EmailAddress") - .HasMaxLength(450); - - b.Property("FullName") - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("PhoneNumber") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("ContactAreaId"); - - b.ToTable("Contacts_Contact"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.ContactArea", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("IsDeleted"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Contacts_ContactArea"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .IsRequired() - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_Address"); - - b.HasData( - new - { - Id = 1L, - AddressLine1 = "364 Cong Hoa", - ContactName = "Thien Nguyen", - CountryId = "VN", - StateOrProvinceId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.AppSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("IsVisibleInCommonSettingPage"); - - b.Property("Module") - .HasMaxLength(450); - - b.Property("Value") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_AppSetting"); - - b.HasData( - new - { - Id = "Catalog.ProductPageSize", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "10" - }, - new - { - Id = "Catalog.IsProductPriceIncludeTax", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "Catalog.IsCommentsRequireApproval", - IsVisibleInCommonSettingPage = true, - Module = "Catalog", - Value = "true" - }, - new - { - Id = "GoogleAppKey", - IsVisibleInCommonSettingPage = false, - Module = "Contact", - Value = "" - }, - new - { - Id = "Global.AssetVersion", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "1.0" - }, - new - { - Id = "Theme", - IsVisibleInCommonSettingPage = false, - Module = "Core", - Value = "Generic" - }, - new - { - Id = "Global.DefaultCultureUI", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "en-US" - }, - new - { - Id = "Global.CurrencyCulture", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "en-US" - }, - new - { - Id = "Global.CurrencyDecimalPlace", - IsVisibleInCommonSettingPage = true, - Module = "Core", - Value = "2" - }, - new - { - Id = "SmtpServer", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "smtp.gmail.com" - }, - new - { - Id = "SmtpPort", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "587" - }, - new - { - Id = "SmtpUsername", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "SmtpPassword", - IsVisibleInCommonSettingPage = false, - Module = "EmailSenderSmpt", - Value = "" - }, - new - { - Id = "Localization.LocalizedConentEnable", - IsVisibleInCommonSettingPage = true, - Module = "Localization", - Value = "true" - }, - new - { - Id = "News.PageSize", - IsVisibleInCommonSettingPage = true, - Module = "News", - Value = "10" - }, - new - { - Id = "Tax.DefaultTaxClassId", - IsVisibleInCommonSettingPage = true, - Module = "Tax", - Value = "1" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Country", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Code3") - .HasMaxLength(450); - - b.Property("IsBillingEnabled"); - - b.Property("IsCityEnabled"); - - b.Property("IsDistrictEnabled"); - - b.Property("IsShippingEnabled"); - - b.Property("IsZipCodeEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Country"); - - b.HasData( - new - { - Id = "VN", - Code3 = "VNM", - IsBillingEnabled = true, - IsCityEnabled = false, - IsDistrictEnabled = true, - IsShippingEnabled = true, - IsZipCodeEnabled = false, - Name = "Việt Nam" - }, - new - { - Id = "US", - Code3 = "USA", - IsBillingEnabled = true, - IsCityEnabled = true, - IsDistrictEnabled = false, - IsShippingEnabled = true, - IsZipCodeEnabled = true, - Name = "United States" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("Core_CustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.Property("UserId"); - - b.Property("CustomerGroupId"); - - b.HasKey("UserId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Core_CustomerGroupUser"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Location"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Core_District"); - - b.HasData( - new - { - Id = 1L, - Name = "Quận 1", - StateOrProvinceId = 1L, - Type = "Quận" - }, - new - { - Id = 2L, - Name = "Quận 2", - StateOrProvinceId = 1L, - Type = "Quận" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("EntityTypeId"); - - b.ToTable("Core_Entity"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.EntityType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AreaName") - .HasMaxLength(450); - - b.Property("IsMenuable"); - - b.Property("RoutingAction") - .HasMaxLength(450); - - b.Property("RoutingController") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_EntityType"); - - b.HasData( - new - { - Id = "Category", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "CategoryDetail", - RoutingController = "Category" - }, - new - { - Id = "Brand", - AreaName = "Catalog", - IsMenuable = true, - RoutingAction = "BrandDetail", - RoutingController = "Brand" - }, - new - { - Id = "Product", - AreaName = "Catalog", - IsMenuable = false, - RoutingAction = "ProductDetail", - RoutingController = "Product" - }, - new - { - Id = "Page", - AreaName = "Cms", - IsMenuable = true, - RoutingAction = "PageDetail", - RoutingController = "Page" - }, - new - { - Id = "Vendor", - AreaName = "Core", - IsMenuable = false, - RoutingAction = "VendorDetail", - RoutingController = "Vendor" - }, - new - { - Id = "NewsCategory", - AreaName = "News", - IsMenuable = true, - RoutingAction = "NewsCategoryDetail", - RoutingController = "NewsCategory" - }, - new - { - Id = "NewsItem", - AreaName = "News", - IsMenuable = false, - RoutingAction = "NewsItemDetail", - RoutingController = "NewsItem" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Media", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Caption") - .HasMaxLength(450); - - b.Property("FileName") - .HasMaxLength(450); - - b.Property("FileSize"); - - b.Property("MediaType"); - - b.HasKey("Id"); - - b.ToTable("Core_Media"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Role", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasMaxLength(256); - - b.Property("NormalizedName") - .HasMaxLength(256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasName("RoleNameIndex") - .HasFilter("[NormalizedName] IS NOT NULL"); - - b.ToTable("Core_Role"); - - b.HasData( - new - { - Id = 1L, - ConcurrencyStamp = "4776a1b2-dbe4-4056-82ec-8bed211d1454", - Name = "admin", - NormalizedName = "ADMIN" - }, - new - { - Id = 2L, - ConcurrencyStamp = "00d172be-03a0-4856-8b12-26d63fcf4374", - Name = "customer", - NormalizedName = "CUSTOMER" - }, - new - { - Id = 3L, - ConcurrencyStamp = "d4754388-8355-4018-b728-218018836817", - Name = "guest", - NormalizedName = "GUEST" - }, - new - { - Id = 4L, - ConcurrencyStamp = "71f10604-8c4d-4a7d-ac4a-ffefb11cefeb", - Name = "vendor", - NormalizedName = "VENDOR" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Code") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Type") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.ToTable("Core_StateOrProvince"); - - b.HasData( - new - { - Id = 1L, - CountryId = "VN", - Name = "Hồ Chí Minh", - Type = "Thành Phố" - }, - new - { - Id = 2L, - Code = "WA", - CountryId = "US", - Name = "Washington" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("CreatedOn"); - - b.Property("Culture") - .HasMaxLength(450); - - b.Property("DefaultBillingAddressId"); - - b.Property("DefaultShippingAddressId"); - - b.Property("Email") - .HasMaxLength(256); - - b.Property("EmailConfirmed"); - - b.Property("ExtensionData"); - - b.Property("FullName") - .IsRequired() - .HasMaxLength(450); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasMaxLength(256); - - b.Property("NormalizedUserName") - .HasMaxLength(256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("RefreshTokenHash") - .HasMaxLength(450); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserGuid"); - - b.Property("UserName") - .HasMaxLength(256); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("DefaultBillingAddressId"); - - b.HasIndex("DefaultShippingAddressId"); - - b.HasIndex("NormalizedEmail") - .HasName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasName("UserNameIndex") - .HasFilter("[NormalizedUserName] IS NOT NULL"); - - b.HasIndex("VendorId"); - - b.ToTable("Core_User"); - - b.HasData( - new - { - Id = 2L, - AccessFailedCount = 0, - ConcurrencyStamp = "101cd6ae-a8ef-4a37-97fd-04ac2dd630e4", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "system@simplcommerce.com", - EmailConfirmed = false, - FullName = "System User", - IsDeleted = true, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "SYSTEM@SIMPLCOMMERCE.COM", - NormalizedUserName = "SYSTEM@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "a9565acb-cee6-425f-9833-419a793f5fba", - TwoFactorEnabled = false, - UserGuid = new Guid("5f72f83b-7436-4221-869c-1b69b2e23aae"), - UserName = "system@simplcommerce.com" - }, - new - { - Id = 10L, - AccessFailedCount = 0, - ConcurrencyStamp = "c83afcbc-312c-4589-bad7-8686bd4754c0", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - Email = "admin@simplcommerce.com", - EmailConfirmed = false, - FullName = "Shop Admin", - IsDeleted = false, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - LockoutEnabled = false, - NormalizedEmail = "ADMIN@SIMPLCOMMERCE.COM", - NormalizedUserName = "ADMIN@SIMPLCOMMERCE.COM", - PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", - PhoneNumberConfirmed = false, - SecurityStamp = "d6847450-47f0-4c7a-9fed-0c66234bf61f", - TwoFactorEnabled = false, - UserGuid = new Guid("ed8210c3-24b0-4823-a744-80078cf12eb4"), - UserName = "admin@simplcommerce.com" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("AddressType"); - - b.Property("LastUsedOn"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("UserId"); - - b.ToTable("Core_UserAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("Core_UserRole"); - - b.HasData( - new - { - UserId = 10L, - RoleId = 1L - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Vendor", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("Email"); - - b.Property("IsActive"); - - b.Property("IsDeleted"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Vendor"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Widget", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CreateUrl") - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.Property("EditUrl") - .HasMaxLength(450); - - b.Property("IsPublished"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("ViewComponentName") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_Widget"); - - b.HasData( - new - { - Id = "CategoryWidget", - CreateUrl = "widget-category-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-category-edit", - IsPublished = false, - Name = "Category Widget", - ViewComponentName = "CategoryWidget" - }, - new - { - Id = "ProductWidget", - CreateUrl = "widget-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-product-edit", - IsPublished = false, - Name = "Product Widget", - ViewComponentName = "ProductWidget" - }, - new - { - Id = "SimpleProductWidget", - CreateUrl = "widget-simple-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-simple-product-edit", - IsPublished = false, - Name = "Simple Product Widget", - ViewComponentName = "SimpleProductWidget" - }, - new - { - Id = "HtmlWidget", - CreateUrl = "widget-html-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-html-edit", - IsPublished = false, - Name = "Html Widget", - ViewComponentName = "HtmlWidget" - }, - new - { - Id = "CarouselWidget", - CreateUrl = "widget-carousel-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-carousel-edit", - IsPublished = false, - Name = "Carousel Widget", - ViewComponentName = "CarouselWidget" - }, - new - { - Id = "SpaceBarWidget", - CreateUrl = "widget-spacebar-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-spacebar-edit", - IsPublished = false, - Name = "SpaceBar Widget", - ViewComponentName = "SpaceBarWidget" - }, - new - { - Id = "RecentlyViewedWidget", - CreateUrl = "widget-recently-viewed-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), - EditUrl = "widget-recently-viewed-edit", - IsPublished = false, - Name = "Recently Viewed Widget", - ViewComponentName = "RecentlyViewedWidget" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Data"); - - b.Property("DisplayOrder"); - - b.Property("HtmlData"); - - b.Property("LatestUpdatedOn"); - - b.Property("Name") - .HasMaxLength(450); - - b.Property("PublishEnd"); - - b.Property("PublishStart"); - - b.Property("WidgetId") - .HasMaxLength(450); - - b.Property("WidgetZoneId"); - - b.HasKey("Id"); - - b.HasIndex("WidgetId"); - - b.HasIndex("WidgetZoneId"); - - b.ToTable("Core_WidgetInstance"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetZone", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Core_WidgetZone"); - - b.HasData( - new - { - Id = 1L, - Name = "Home Featured" - }, - new - { - Id = 2L, - Name = "Home Main Content" - }, - new - { - Id = 3L, - Name = "Home After Main Content" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ReservedQuantity"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_Stock"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AdjustedQuantity"); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("ProductId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("ProductId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Inventory_StockHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("AddressId"); - - b.HasIndex("VendorId"); - - b.ToTable("Inventory_Warehouse"); - - b.HasData( - new - { - Id = 1L, - AddressId = 1L, - Name = "Default warehouse" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsCategory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DisplayOrder"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("News_NewsCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("FullContent"); - - b.Property("IsDeleted"); - - b.Property("IsPublished"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("MetaDescription"); - - b.Property("MetaKeywords") - .HasMaxLength(450); - - b.Property("MetaTitle") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("PublishedOn"); - - b.Property("ShortContent") - .HasMaxLength(450); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(450); - - b.Property("ThumbnailImageId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ThumbnailImageId"); - - b.ToTable("News_NewsItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.Property("CategoryId"); - - b.Property("NewsItemId"); - - b.HasKey("CategoryId", "NewsItemId"); - - b.HasIndex("NewsItemId"); - - b.ToTable("News_NewsItemCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("BillingAddressId"); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("DiscountAmount"); - - b.Property("IsMasterOrder"); - - b.Property("LatestUpdatedById"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("OrderStatus"); - - b.Property("OrderTotal"); - - b.Property("ParentId"); - - b.Property("PaymentFeeAmount"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("ShippingAddressId"); - - b.Property("ShippingFeeAmount"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("SubTotal"); - - b.Property("SubTotalWithDiscount"); - - b.Property("TaxAmount"); - - b.Property("VendorId"); - - b.HasKey("Id"); - - b.HasIndex("BillingAddressId"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.HasIndex("LatestUpdatedById"); - - b.HasIndex("ParentId"); - - b.HasIndex("ShippingAddressId"); - - b.ToTable("Orders_Order"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("AddressLine1") - .HasMaxLength(450); - - b.Property("AddressLine2") - .HasMaxLength(450); - - b.Property("City") - .HasMaxLength(450); - - b.Property("ContactName") - .HasMaxLength(450); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("Phone") - .HasMaxLength(450); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("Orders_OrderAddress"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("NewStatus"); - - b.Property("Note") - .HasMaxLength(1000); - - b.Property("OldStatus"); - - b.Property("OrderId"); - - b.Property("OrderSnapshot"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.ToTable("Orders_OrderHistory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("DiscountAmount"); - - b.Property("OrderId"); - - b.Property("ProductId"); - - b.Property("ProductPrice"); - - b.Property("Quantity"); - - b.Property("TaxAmount"); - - b.Property("TaxPercent"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.HasIndex("ProductId"); - - b.ToTable("Orders_OrderItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Amount"); - - b.Property("CreatedOn"); - - b.Property("FailureMessage"); - - b.Property("GatewayTransactionId") - .HasMaxLength(450); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("PaymentFee"); - - b.Property("PaymentMethod") - .HasMaxLength(450); - - b.Property("Status"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.ToTable("Payments_Payment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.PaymentProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("LandingViewComponentName") - .HasMaxLength(450); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Payments_PaymentProvider"); - - b.HasData( - new - { - Id = "Braintree", - AdditionalSettings = "{\"PublicKey\": \"6j4d7qspt5n48kx4\", \"PrivateKey\" : \"bd1c26e53a6d811243fcc3eb268113e1\", \"MerchantId\" : \"ncsh7wwqvzs3cx9q\", \"IsProduction\" : \"false\"}", - ConfigureUrl = "payments-braintree-config", - IsEnabled = true, - LandingViewComponentName = "BraintreeLanding", - Name = "Braintree" - }, - new - { - Id = "CoD", - ConfigureUrl = "payments-cod-config", - IsEnabled = true, - LandingViewComponentName = "CoDLanding", - Name = "Cash On Delivery" - }, - new - { - Id = "PaypalExpress", - AdditionalSettings = "{ \"IsSandbox\":true, \"ClientId\":\"\", \"ClientSecret\":\"\" }", - ConfigureUrl = "payments-paypalExpress-config", - IsEnabled = true, - LandingViewComponentName = "PaypalExpressLanding", - Name = "Paypal Express" - }, - new - { - Id = "Stripe", - AdditionalSettings = "{\"PublicKey\": \"pk_test_6pRNASCoBOKtIshFeQd4XMUh\", \"PrivateKey\" : \"sk_test_BQokikJOvBiI2HlWgH4olfQ2\"}", - ConfigureUrl = "payments-stripe-config", - IsEnabled = true, - LandingViewComponentName = "StripeLanding", - Name = "Stripe" - }, - new - { - Id = "MomoPayment", - AdditionalSettings = "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420180417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}", - ConfigureUrl = "payments-momo-config", - IsEnabled = true, - LandingViewComponentName = "MomoLanding", - Name = "Momo Payment" - }, - new - { - Id = "NganLuong", - AdditionalSettings = "{\"IsSandbox\":true, \"MerchantId\": 47249, \"MerchantPassword\": \"e530745693dbde678f9da98a7c821a07\", \"ReceiverEmail\": \"nlqthien@gmail.com\"}", - ConfigureUrl = "payments-nganluong-config", - IsEnabled = true, - LandingViewComponentName = "NganLuongLanding", - Name = "Ngan Luong Payment" - }, - new - { - Id = "Cashfree", - AdditionalSettings = "{ \"IsSandbox\":true, \"AppId\":\"358035b02486f36ca27904540853\", \"SecretKey\":\"26f48dcd6a27f89f59f28e65849e587916dd57b9\" }", - ConfigureUrl = "payments-cashfree-config", - IsEnabled = true, - LandingViewComponentName = "CashfreeLanding", - Name = "Cashfree Payment Gateway" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("DiscountStep"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("IsCouponRequired"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.Property("UsageLimitPerCoupon"); - - b.Property("UsageLimitPerCustomer"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CartRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.Property("CartRuleId"); - - b.Property("CategoryId"); - - b.HasKey("CartRuleId", "CategoryId"); - - b.HasIndex("CategoryId"); - - b.ToTable("Pricing_CartRuleCategory"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.Property("CartRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CartRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CartRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.Property("CartRuleId"); - - b.Property("ProductId"); - - b.HasKey("CartRuleId", "ProductId"); - - b.HasIndex("ProductId"); - - b.ToTable("Pricing_CartRuleProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("CouponId"); - - b.Property("CreatedOn"); - - b.Property("OrderId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.HasIndex("CouponId"); - - b.HasIndex("UserId"); - - b.ToTable("Pricing_CartRuleUsage"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Description"); - - b.Property("DiscountAmount"); - - b.Property("EndOn"); - - b.Property("IsActive"); - - b.Property("MaxDiscountAmount"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("RuleToApply") - .HasMaxLength(450); - - b.Property("StartOn"); - - b.HasKey("Id"); - - b.ToTable("Pricing_CatalogRule"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.Property("CatalogRuleId"); - - b.Property("CustomerGroupId"); - - b.HasKey("CatalogRuleId", "CustomerGroupId"); - - b.HasIndex("CustomerGroupId"); - - b.ToTable("Pricing_CatalogRuleCustomerGroup"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartRuleId"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(450); - - b.Property("CreatedOn"); - - b.HasKey("Id"); - - b.HasIndex("CartRuleId"); - - b.ToTable("Pricing_Coupon"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("UserId"); - - b.ToTable("ProductComparison_ComparingProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductRecentlyViewed.Models.RecentlyViewedProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("LatestViewedOn"); - - b.Property("ProductId"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.ToTable("ProductRecentlyViewed_RecentlyViewedProduct"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("ReplierName") - .HasMaxLength(450); - - b.Property("ReviewId"); - - b.Property("Status"); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("ReviewId"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Reply"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Comment"); - - b.Property("CreatedOn"); - - b.Property("EntityId"); - - b.Property("EntityTypeId") - .HasMaxLength(450); - - b.Property("Rating"); - - b.Property("ReviewerName") - .HasMaxLength(450); - - b.Property("Status"); - - b.Property("Title") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("Reviews_Review"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Search.Models.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("QueryText") - .IsRequired() - .HasMaxLength(500); - - b.Property("ResultsCount"); - - b.HasKey("Id"); - - b.ToTable("Search_Query"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("OrderId"); - - b.Property("TrackingNumber") - .HasMaxLength(450); - - b.Property("VendorId"); - - b.Property("WarehouseId"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("OrderId"); - - b.HasIndex("WarehouseId"); - - b.ToTable("Shipments_Shipment"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("OrderItemId"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("ShipmentId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("ShipmentId"); - - b.ToTable("Shipments_ShipmentItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipping.Models.ShippingProvider", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AdditionalSettings"); - - b.Property("ConfigureUrl") - .HasMaxLength(450); - - b.Property("IsEnabled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.Property("OnlyCountryIdsString") - .HasMaxLength(1000); - - b.Property("OnlyStateOrProvinceIdsString") - .HasMaxLength(1000); - - b.Property("ShippingPriceServiceTypeName") - .HasMaxLength(450); - - b.Property("ToAllShippingEnabledCountries"); - - b.Property("ToAllShippingEnabledStatesOrProvinces"); - - b.HasKey("Id"); - - b.ToTable("Shipping_ShippingProvider"); - - b.HasData( - new - { - Id = "FreeShip", - AdditionalSettings = "{MinimumOrderAmount : 1}", - ConfigureUrl = "", - IsEnabled = true, - Name = "Free Ship", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingFree.Services.FreeShippingServiceProvider,SimplCommerce.Module.ShippingFree", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }, - new - { - Id = "TableRate", - ConfigureUrl = "shipping-table-rate-config", - IsEnabled = true, - Name = "Table Rate", - ShippingPriceServiceTypeName = "SimplCommerce.Module.ShippingTableRate.Services.TableRateShippingServiceProvider,SimplCommerce.Module.ShippingTableRate", - ToAllShippingEnabledCountries = true, - ToAllShippingEnabledStatesOrProvinces = true - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("DistrictId"); - - b.Property("MinOrderSubtotal"); - - b.Property("Note"); - - b.Property("ShippingPrice"); - - b.Property("StateOrProvinceId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("DistrictId"); - - b.HasIndex("StateOrProvinceId"); - - b.ToTable("ShippingTableRate_PriceAndDestination"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CouponCode") - .HasMaxLength(450); - - b.Property("CouponRuleName") - .HasMaxLength(450); - - b.Property("CreatedById"); - - b.Property("CreatedOn"); - - b.Property("CustomerId"); - - b.Property("IsActive"); - - b.Property("IsProductPriceIncludeTax"); - - b.Property("LatestUpdatedOn"); - - b.Property("LockedOnCheckout"); - - b.Property("OrderNote") - .HasMaxLength(1000); - - b.Property("ShippingAmount"); - - b.Property("ShippingData"); - - b.Property("ShippingMethod") - .HasMaxLength(450); - - b.Property("TaxAmount"); - - b.HasKey("Id"); - - b.HasIndex("CreatedById"); - - b.HasIndex("CustomerId"); - - b.ToTable("ShoppingCart_Cart"); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CartId"); - - b.Property("CreatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.HasKey("Id"); - - b.HasIndex("CartId"); - - b.HasIndex("ProductId"); - - b.ToTable("ShoppingCart_CartItem"); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxClass", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(450); - - b.HasKey("Id"); - - b.ToTable("Tax_TaxClass"); - - b.HasData( - new - { - Id = 1L, - Name = "Standard VAT" - }); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CountryId") - .HasMaxLength(450); - - b.Property("Rate"); - - b.Property("StateOrProvinceId"); - - b.Property("TaxClassId"); - - b.Property("ZipCode") - .HasMaxLength(450); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("StateOrProvinceId"); - - b.HasIndex("TaxClassId"); - - b.ToTable("Tax_TaxRate"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("LatestUpdatedOn"); - - b.Property("SharingCode") - .HasMaxLength(450); - - b.Property("UserId"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("WishList_WishList"); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("CreatedOn"); - - b.Property("Description"); - - b.Property("LatestUpdatedOn"); - - b.Property("ProductId"); - - b.Property("Quantity"); - - b.Property("WishListId"); - - b.HasKey("Id"); - - b.HasIndex("ProductId"); - - b.HasIndex("WishListId"); - - b.ToTable("WishList_WishListItem"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role") - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.LocalizedContentProperty", b => - { - b.HasOne("SimplCommerce.Infrastructure.Localization.Culture", "Culture") - .WithMany() - .HasForeignKey("CultureId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => - { - b.HasOne("SimplCommerce.Infrastructure.Localization.Culture", "Culture") - .WithMany("Resources") - .HasForeignKey("CultureId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => - { - b.HasOne("SimplCommerce.Module.ActivityLog.Models.ActivityType", "ActivityType") - .WithMany() - .HasForeignKey("ActivityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Brand", "Brand") - .WithMany() - .HasForeignKey("BrandId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", "Group") - .WithMany("Attributes") - .HasForeignKey("GroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "Attribute") - .WithMany() - .HasForeignKey("AttributeId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("AttributeValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Categories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "LinkedProduct") - .WithMany("LinkedProductLinks") - .HasForeignKey("LinkedProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("ProductLinks") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Media", "Media") - .WithMany() - .HasForeignKey("MediaId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("Medias") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionCombinations") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") - .WithMany() - .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("OptionValues") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany("PriceHistories") - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "ProductAttribute") - .WithMany("ProductTemplates") - .HasForeignKey("ProductAttributeId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.ProductTemplate", "ProductTemplate") - .WithMany("ProductAttributes") - .HasForeignKey("ProductTemplateId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Entity", "Entity") - .WithMany() - .HasForeignKey("EntityId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.Menu", "Menu") - .WithMany("MenuItems") - .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Cms.Models.MenuItem", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => - { - b.HasOne("SimplCommerce.Module.Comments.Models.Comment", "Parent") - .WithMany("Replies") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => - { - b.HasOne("SimplCommerce.Module.Contacts.Models.ContactArea", "ContactArea") - .WithMany() - .HasForeignKey("ContactAreaId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany("Users") - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("CustomerGroups") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.EntityType", "EntityType") - .WithMany() - .HasForeignKey("EntityTypeId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany("StatesOrProvinces") - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultBillingAddress") - .WithMany() - .HasForeignKey("DefaultBillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.UserAddress", "DefaultShippingAddress") - .WithMany() - .HasForeignKey("DefaultShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor") - .WithMany("Users") - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany("UserAddresses") - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("UserAddresses") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Role", "Role") - .WithMany("Users") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Widget", "Widget") - .WithMany() - .HasForeignKey("WidgetId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.WidgetZone", "WidgetZone") - .WithMany() - .HasForeignKey("WidgetZoneId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Vendor", "Vendor") - .WithMany() - .HasForeignKey("VendorId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") - .WithMany() - .HasForeignKey("ThumbnailImageId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => - { - b.HasOne("SimplCommerce.Module.News.Models.NewsCategory", "Category") - .WithMany("NewsItems") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.News.Models.NewsItem", "NewsItem") - .WithMany("Categories") - .HasForeignKey("NewsItemId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "BillingAddress") - .WithMany() - .HasForeignKey("BillingAddressId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") - .WithMany() - .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "ShippingAddress") - .WithMany() - .HasForeignKey("ShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany("OrderItems") - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => - { - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Categories") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") - .WithMany() - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("CustomerGroups") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Products") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany() - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Pricing.Models.Coupon", "Coupon") - .WithMany() - .HasForeignKey("CouponId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CatalogRule", "CatalogRule") - .WithMany("CustomerGroups") - .HasForeignKey("CatalogRuleId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") - .WithMany() - .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => - { - b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") - .WithMany("Coupons") - .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); - }); - - modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => - { - b.HasOne("SimplCommerce.Module.Reviews.Models.Review", "Review") - .WithMany("Replies") - .HasForeignKey("ReviewId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") - .WithMany() - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") - .WithMany() - .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Shipments.Models.Shipment", "Shipment") - .WithMany("Items") - .HasForeignKey("ShipmentId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") - .WithMany() - .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => - { - b.HasOne("SimplCommerce.Module.ShoppingCart.Models.Cart", "Cart") - .WithMany("Items") - .HasForeignKey("CartId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") - .WithMany() - .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") - .WithMany() - .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") - .WithMany() - .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => - { - b.HasOne("SimplCommerce.Module.Core.Models.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => - { - b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") - .WithMany() - .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("SimplCommerce.Module.WishList.Models.WishList", "WishList") - .WithMany("Items") - .HasForeignKey("WishListId") - .OnDelete(DeleteBehavior.Restrict); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190801065533_AddedCashfreePayment.cs b/src/SimplCommerce.WebHost/Migrations/20190801065533_AddedCashfreePayment.cs deleted file mode 100644 index 47a58a8057..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190801065533_AddedCashfreePayment.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace SimplCommerce.WebHost.Migrations -{ - public partial class AddedCashfreePayment : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.InsertData( - table: "Payments_PaymentProvider", - columns: new[] { "Id", "AdditionalSettings", "ConfigureUrl", "IsEnabled", "LandingViewComponentName", "Name" }, - values: new object[] { "Cashfree", "{ \"IsSandbox\":true, \"AppId\":\"358035b02486f36ca27904540853\", \"SecretKey\":\"26f48dcd6a27f89f59f28e65849e587916dd57b9\" }", "payments-cashfree-config", true, "CashfreeLanding", "Cashfree Payment Gateway" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Payments_PaymentProvider", - keyColumn: "Id", - keyValue: "Cashfree"); - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190803175214_AddedAssetBundlingConfig.cs b/src/SimplCommerce.WebHost/Migrations/20190803175214_AddedAssetBundlingConfig.cs deleted file mode 100644 index f95b94de04..0000000000 --- a/src/SimplCommerce.WebHost/Migrations/20190803175214_AddedAssetBundlingConfig.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace SimplCommerce.WebHost.Migrations -{ - public partial class AddedAssetBundlingConfig : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.InsertData( - table: "Core_AppSetting", - columns: new[] { "Id", "IsVisibleInCommonSettingPage", "Module", "Value" }, - values: new object[] { "Global.AssetBundling", true, "Core", "false" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DeleteData( - table: "Core_AppSetting", - keyColumn: "Id", - keyValue: "Global.AssetBundling"); - } - } -} diff --git a/src/SimplCommerce.WebHost/Migrations/20190803175214_AddedAssetBundlingConfig.Designer.cs b/src/SimplCommerce.WebHost/Migrations/20201210143557_initialSchema.Designer.cs similarity index 55% rename from src/SimplCommerce.WebHost/Migrations/20190803175214_AddedAssetBundlingConfig.Designer.cs rename to src/SimplCommerce.WebHost/Migrations/20201210143557_initialSchema.Designer.cs index 4f485d4b8c..865232581d 100644 --- a/src/SimplCommerce.WebHost/Migrations/20190803175214_AddedAssetBundlingConfig.Designer.cs +++ b/src/SimplCommerce.WebHost/Migrations/20201210143557_initialSchema.Designer.cs @@ -2,36 +2,40 @@ using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using SimplCommerce.Module.Core.Data; namespace SimplCommerce.WebHost.Migrations { [DbContext(typeof(SimplDbContext))] - [Migration("20190803175214_AddedAssetBundlingConfig")] - partial class AddedAssetBundlingConfig + [Migration("20201210143557_initialSchema")] + partial class initialSchema { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("ProductVersion", "2.2.6-servicing-10079") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .UseIdentityByDefaultColumns() + .HasAnnotation("Relational:MaxIdentifierLength", 63) + .HasAnnotation("ProductVersion", "5.0.0"); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("integer") + .UseIdentityByDefaultColumn(); - b.Property("ClaimType"); + b.Property("ClaimType") + .HasColumnType("text"); - b.Property("ClaimValue"); + b.Property("ClaimValue") + .HasColumnType("text"); - b.Property("RoleId"); + b.Property("RoleId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -44,13 +48,17 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("integer") + .UseIdentityByDefaultColumn(); - b.Property("ClaimType"); + b.Property("ClaimType") + .HasColumnType("text"); - b.Property("ClaimValue"); + b.Property("ClaimValue") + .HasColumnType("text"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -61,13 +69,17 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { - b.Property("LoginProvider"); + b.Property("LoginProvider") + .HasColumnType("text"); - b.Property("ProviderKey"); + b.Property("ProviderKey") + .HasColumnType("text"); - b.Property("ProviderDisplayName"); + b.Property("ProviderDisplayName") + .HasColumnType("text"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("LoginProvider", "ProviderKey"); @@ -78,13 +90,17 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); - b.Property("LoginProvider"); + b.Property("LoginProvider") + .HasColumnType("text"); - b.Property("Name"); + b.Property("Name") + .HasColumnType("text"); - b.Property("Value"); + b.Property("Value") + .HasColumnType("text"); b.HasKey("UserId", "LoginProvider", "Name"); @@ -94,11 +110,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Culture", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .HasColumnType("text"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -116,21 +133,27 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("CultureId") - .IsRequired(); + .IsRequired() + .HasColumnType("text"); - b.Property("EntityId"); + b.Property("EntityId") + .HasColumnType("bigint"); b.Property("EntityType") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("ProperyName") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("Value"); + b.Property("Value") + .HasColumnType("text"); b.HasKey("Id"); @@ -143,16 +166,20 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("CultureId") - .IsRequired(); + .IsRequired() + .HasColumnType("text"); b.Property("Key") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("Value"); + b.Property("Value") + .HasColumnType("text"); b.HasKey("Id"); @@ -165,19 +192,25 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("ActivityTypeId"); + b.Property("ActivityTypeId") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("EntityId"); + b.Property("EntityId") + .HasColumnType("bigint"); b.Property("EntityTypeId") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -190,11 +223,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -212,21 +247,27 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -237,37 +278,50 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("DisplayOrder"); + b.Property("DisplayOrder") + .HasColumnType("integer"); - b.Property("IncludeInMenu"); + b.Property("IncludeInMenu") + .HasColumnType("boolean"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); - b.Property("MetaDescription"); + b.Property("MetaDescription") + .HasColumnType("text"); b.Property("MetaKeywords") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("MetaTitle") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ParentId"); + b.Property("ParentId") + .HasColumnType("bigint"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ThumbnailImageId"); + b.Property("ThumbnailImageId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -282,91 +336,129 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("BrandId"); + b.Property("BrandId") + .HasColumnType("bigint"); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("DisplayOrder"); + b.Property("DisplayOrder") + .HasColumnType("integer"); b.Property("Gtin") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("HasOptions"); + b.Property("HasOptions") + .HasColumnType("boolean"); - b.Property("IsAllowToOrder"); + b.Property("IsAllowToOrder") + .HasColumnType("boolean"); - b.Property("IsCallForPricing"); + b.Property("IsCallForPricing") + .HasColumnType("boolean"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("IsFeatured"); + b.Property("IsFeatured") + .HasColumnType("boolean"); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); - b.Property("IsVisibleIndividually"); + b.Property("IsVisibleIndividually") + .HasColumnType("boolean"); - b.Property("LatestUpdatedById"); + b.Property("LatestUpdatedById") + .HasColumnType("bigint"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("MetaDescription"); + b.Property("MetaDescription") + .HasColumnType("text"); b.Property("MetaKeywords") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("MetaTitle") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("NormalizedName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("OldPrice"); + b.Property("OldPrice") + .HasColumnType("numeric"); - b.Property("Price"); + b.Property("Price") + .HasColumnType("numeric"); - b.Property("PublishedOn"); + b.Property("PublishedOn") + .HasColumnType("timestamp with time zone"); - b.Property("RatingAverage"); + b.Property("RatingAverage") + .HasColumnType("double precision"); - b.Property("ReviewsCount"); + b.Property("ReviewsCount") + .HasColumnType("integer"); b.Property("ShortDescription") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Sku") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("SpecialPrice"); + b.Property("SpecialPrice") + .HasColumnType("numeric"); - b.Property("SpecialPriceEnd"); + b.Property("SpecialPriceEnd") + .HasColumnType("timestamp with time zone"); - b.Property("SpecialPriceStart"); + b.Property("SpecialPriceStart") + .HasColumnType("timestamp with time zone"); - b.Property("Specification"); + b.Property("Specification") + .HasColumnType("text"); - b.Property("StockQuantity"); + b.Property("StockQuantity") + .HasColumnType("integer"); - b.Property("StockTrackingIsEnabled"); + b.Property("StockTrackingIsEnabled") + .HasColumnType("boolean"); - b.Property("TaxClassId"); + b.Property("TaxClassId") + .HasColumnType("bigint"); - b.Property("ThumbnailImageId"); + b.Property("ThumbnailImageId") + .HasColumnType("bigint"); - b.Property("VendorId"); + b.Property("VendorId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -387,13 +479,16 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("GroupId"); + b.Property("GroupId") + .HasColumnType("bigint"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -406,11 +501,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -421,13 +518,17 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("AttributeId"); + b.Property("AttributeId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("Value"); + b.Property("Value") + .HasColumnType("text"); b.HasKey("Id"); @@ -442,15 +543,20 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CategoryId"); + b.Property("CategoryId") + .HasColumnType("bigint"); - b.Property("DisplayOrder"); + b.Property("DisplayOrder") + .HasColumnType("integer"); - b.Property("IsFeaturedProduct"); + b.Property("IsFeaturedProduct") + .HasColumnType("boolean"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -465,13 +571,17 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("LinkType"); + b.Property("LinkType") + .HasColumnType("integer"); - b.Property("LinkedProductId"); + b.Property("LinkedProductId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -486,13 +596,17 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("DisplayOrder"); + b.Property("DisplayOrder") + .HasColumnType("integer"); - b.Property("MediaId"); + b.Property("MediaId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -507,11 +621,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -534,16 +650,21 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("OptionId"); + b.Property("OptionId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("SortIndex"); + b.Property("SortIndex") + .HasColumnType("integer"); b.Property("Value") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -558,19 +679,25 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("DisplayType") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("OptionId"); + b.Property("OptionId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("SortIndex"); + b.Property("SortIndex") + .HasColumnType("integer"); b.Property("Value") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -585,23 +712,32 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("OldPrice"); + b.Property("OldPrice") + .HasColumnType("numeric"); - b.Property("Price"); + b.Property("Price") + .HasColumnType("numeric"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("SpecialPrice"); + b.Property("SpecialPrice") + .HasColumnType("numeric"); - b.Property("SpecialPriceEnd"); + b.Property("SpecialPriceEnd") + .HasColumnType("timestamp with time zone"); - b.Property("SpecialPriceStart"); + b.Property("SpecialPriceStart") + .HasColumnType("timestamp with time zone"); b.HasKey("Id"); @@ -616,11 +752,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -629,9 +767,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => { - b.Property("ProductTemplateId"); + b.Property("ProductTemplateId") + .HasColumnType("bigint"); - b.Property("ProductAttributeId"); + b.Property("ProductAttributeId") + .HasColumnType("bigint"); b.HasKey("ProductTemplateId", "ProductAttributeId"); @@ -644,15 +784,19 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); - b.Property("IsSystem"); + b.Property("IsSystem") + .HasColumnType("boolean"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -679,21 +823,28 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("CustomLink") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("DisplayOrder"); + b.Property("DisplayOrder") + .HasColumnType("integer"); - b.Property("EntityId"); + b.Property("EntityId") + .HasColumnType("bigint"); - b.Property("MenuId"); + b.Property("MenuId") + .HasColumnType("bigint"); b.Property("Name") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ParentId"); + b.Property("ParentId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -710,39 +861,53 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Body"); + b.Property("Body") + .HasColumnType("text"); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); - b.Property("LatestUpdatedById"); + b.Property("LatestUpdatedById") + .HasColumnType("bigint"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("MetaDescription"); + b.Property("MetaDescription") + .HasColumnType("text"); b.Property("MetaKeywords") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("MetaTitle") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("PublishedOn"); + b.Property("PublishedOn") + .HasColumnType("timestamp with time zone"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -757,25 +922,34 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CommentText"); + b.Property("CommentText") + .HasColumnType("text"); b.Property("CommenterName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("EntityId"); + b.Property("EntityId") + .HasColumnType("bigint"); b.Property("EntityTypeId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ParentId"); + b.Property("ParentId") + .HasColumnType("bigint"); - b.Property("Status"); + b.Property("Status") + .HasColumnType("integer"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -790,27 +964,36 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Address") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ContactAreaId"); + b.Property("ContactAreaId") + .HasColumnType("bigint"); - b.Property("Content"); + b.Property("Content") + .HasColumnType("text"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); b.Property("EmailAddress") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("FullName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); b.Property("PhoneNumber") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -823,13 +1006,16 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -840,33 +1026,43 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("AddressLine1") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("AddressLine2") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("City") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("ContactName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("CountryId") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("DistrictId"); + b.Property("DistrictId") + .HasColumnType("bigint"); b.Property("Phone") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("StateOrProvinceId"); + b.Property("StateOrProvinceId") + .HasColumnType("bigint"); b.Property("ZipCode") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -892,15 +1088,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Core.Models.AppSetting", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .HasColumnType("text"); - b.Property("IsVisibleInCommonSettingPage"); + b.Property("IsVisibleInCommonSettingPage") + .HasColumnType("boolean"); b.Property("Module") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Value") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -964,6 +1163,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) Value = "en-US" }, new + { + Id = "Global.DefaultCultureAdminUI", + IsVisibleInCommonSettingPage = true, + Module = "Core", + Value = "en-US" + }, + new { Id = "Global.CurrencyCulture", IsVisibleInCommonSettingPage = true, @@ -1031,24 +1237,31 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Core.Models.Country", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .HasColumnType("text"); b.Property("Code3") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("IsBillingEnabled"); + b.Property("IsBillingEnabled") + .HasColumnType("boolean"); - b.Property("IsCityEnabled"); + b.Property("IsCityEnabled") + .HasColumnType("boolean"); - b.Property("IsDistrictEnabled"); + b.Property("IsDistrictEnabled") + .HasColumnType("boolean"); - b.Property("IsShippingEnabled"); + b.Property("IsShippingEnabled") + .HasColumnType("boolean"); - b.Property("IsZipCodeEnabled"); + b.Property("IsZipCodeEnabled") + .HasColumnType("boolean"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1083,21 +1296,28 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("IsActive"); + b.Property("IsActive") + .HasColumnType("boolean"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1109,9 +1329,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => { - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); - b.Property("CustomerGroupId"); + b.Property("CustomerGroupId") + .HasColumnType("bigint"); b.HasKey("UserId", "CustomerGroupId"); @@ -1124,18 +1346,23 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Location"); + b.Property("Location") + .HasColumnType("text"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("StateOrProvinceId"); + b.Property("StateOrProvinceId") + .HasColumnType("bigint"); b.Property("Type") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1164,20 +1391,25 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("EntityId"); + b.Property("EntityId") + .HasColumnType("bigint"); b.Property("EntityTypeId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1189,18 +1421,22 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Core.Models.EntityType", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .HasColumnType("text"); b.Property("AreaName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("IsMenuable"); + b.Property("IsMenuable") + .HasColumnType("boolean"); b.Property("RoutingAction") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("RoutingController") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1269,17 +1505,22 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Caption") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("FileName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("FileSize"); + b.Property("FileSize") + .HasColumnType("integer"); - b.Property("MediaType"); + b.Property("MediaType") + .HasColumnType("integer"); b.HasKey("Id"); @@ -1290,23 +1531,26 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); + .IsConcurrencyToken() + .HasColumnType("text"); b.Property("Name") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("character varying(256)"); b.Property("NormalizedName") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("character varying(256)"); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() - .HasName("RoleNameIndex") - .HasFilter("[NormalizedName] IS NOT NULL"); + .HasDatabaseName("RoleNameIndex"); b.ToTable("Core_Role"); @@ -1345,20 +1589,25 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Code") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("CountryId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Type") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1387,66 +1636,92 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("AccessFailedCount"); + b.Property("AccessFailedCount") + .HasColumnType("integer"); b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); + .IsConcurrencyToken() + .HasColumnType("text"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); b.Property("Culture") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("DefaultBillingAddressId"); + b.Property("DefaultBillingAddressId") + .HasColumnType("bigint"); - b.Property("DefaultShippingAddressId"); + b.Property("DefaultShippingAddressId") + .HasColumnType("bigint"); b.Property("Email") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("character varying(256)"); - b.Property("EmailConfirmed"); + b.Property("EmailConfirmed") + .HasColumnType("boolean"); - b.Property("ExtensionData"); + b.Property("ExtensionData") + .HasColumnType("text"); b.Property("FullName") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("LockoutEnabled"); + b.Property("LockoutEnabled") + .HasColumnType("boolean"); - b.Property("LockoutEnd"); + b.Property("LockoutEnd") + .HasColumnType("timestamp with time zone"); b.Property("NormalizedEmail") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("character varying(256)"); b.Property("NormalizedUserName") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("character varying(256)"); - b.Property("PasswordHash"); + b.Property("PasswordHash") + .HasColumnType("text"); - b.Property("PhoneNumber"); + b.Property("PhoneNumber") + .HasColumnType("text"); - b.Property("PhoneNumberConfirmed"); + b.Property("PhoneNumberConfirmed") + .HasColumnType("boolean"); b.Property("RefreshTokenHash") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("SecurityStamp"); + b.Property("SecurityStamp") + .HasColumnType("text"); - b.Property("TwoFactorEnabled"); + b.Property("TwoFactorEnabled") + .HasColumnType("boolean"); - b.Property("UserGuid"); + b.Property("UserGuid") + .HasColumnType("uuid"); b.Property("UserName") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("character varying(256)"); - b.Property("VendorId"); + b.Property("VendorId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -1455,12 +1730,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasIndex("DefaultShippingAddressId"); b.HasIndex("NormalizedEmail") - .HasName("EmailIndex"); + .HasDatabaseName("EmailIndex"); b.HasIndex("NormalizedUserName") .IsUnique() - .HasName("UserNameIndex") - .HasFilter("[NormalizedUserName] IS NOT NULL"); + .HasDatabaseName("UserNameIndex"); b.HasIndex("VendorId"); @@ -1515,15 +1789,20 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("AddressId"); + b.Property("AddressId") + .HasColumnType("bigint"); - b.Property("AddressType"); + b.Property("AddressType") + .HasColumnType("integer"); - b.Property("LastUsedOn"); + b.Property("LastUsedOn") + .HasColumnType("timestamp with time zone"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -1536,9 +1815,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => { - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); - b.Property("RoleId"); + b.Property("RoleId") + .HasColumnType("bigint"); b.HasKey("UserId", "RoleId"); @@ -1558,27 +1839,36 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("Email"); + b.Property("Email") + .HasColumnType("text"); - b.Property("IsActive"); + b.Property("IsActive") + .HasColumnType("boolean"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1588,24 +1878,30 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Core.Models.Widget", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .HasColumnType("text"); b.Property("CreateUrl") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); b.Property("EditUrl") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("ViewComponentName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1688,29 +1984,40 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("Data"); + b.Property("Data") + .HasColumnType("text"); - b.Property("DisplayOrder"); + b.Property("DisplayOrder") + .HasColumnType("integer"); - b.Property("HtmlData"); + b.Property("HtmlData") + .HasColumnType("text"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); b.Property("Name") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("PublishEnd"); + b.Property("PublishEnd") + .HasColumnType("timestamp with time zone"); - b.Property("PublishStart"); + b.Property("PublishStart") + .HasColumnType("timestamp with time zone"); b.Property("WidgetId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("WidgetZoneId"); + b.Property("WidgetZoneId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -1725,13 +2032,16 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1759,15 +2069,20 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("Quantity"); + b.Property("Quantity") + .HasColumnType("integer"); - b.Property("ReservedQuantity"); + b.Property("ReservedQuantity") + .HasColumnType("integer"); - b.Property("WarehouseId"); + b.Property("WarehouseId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -1782,20 +2097,27 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("AdjustedQuantity"); + b.Property("AdjustedQuantity") + .HasColumnType("bigint"); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); b.Property("Note") - .HasMaxLength(1000); + .HasMaxLength(1000) + .HasColumnType("character varying(1000)"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("WarehouseId"); + b.Property("WarehouseId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -1812,15 +2134,19 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("AddressId"); + b.Property("AddressId") + .HasColumnType("bigint"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("VendorId"); + b.Property("VendorId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -1843,31 +2169,41 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("DisplayOrder"); + b.Property("DisplayOrder") + .HasColumnType("integer"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); - b.Property("MetaDescription"); + b.Property("MetaDescription") + .HasColumnType("text"); b.Property("MetaKeywords") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("MetaTitle") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1878,44 +2214,60 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("FullContent"); + b.Property("FullContent") + .HasColumnType("text"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); - b.Property("LatestUpdatedById"); + b.Property("LatestUpdatedById") + .HasColumnType("bigint"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("MetaDescription"); + b.Property("MetaDescription") + .HasColumnType("text"); b.Property("MetaKeywords") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("MetaTitle") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("PublishedOn"); + b.Property("PublishedOn") + .HasColumnType("timestamp with time zone"); b.Property("ShortContent") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ThumbnailImageId"); + b.Property("ThumbnailImageId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -1930,9 +2282,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => { - b.Property("CategoryId"); + b.Property("CategoryId") + .HasColumnType("bigint"); - b.Property("NewsItemId"); + b.Property("NewsItemId") + .HasColumnType("bigint"); b.HasKey("CategoryId", "NewsItemId"); @@ -1945,58 +2299,82 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("BillingAddressId"); + b.Property("BillingAddressId") + .HasColumnType("bigint"); b.Property("CouponCode") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("CouponRuleName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("CustomerId"); + b.Property("CustomerId") + .HasColumnType("bigint"); - b.Property("DiscountAmount"); + b.Property("DiscountAmount") + .HasColumnType("numeric"); - b.Property("IsMasterOrder"); + b.Property("IsMasterOrder") + .HasColumnType("boolean"); - b.Property("LatestUpdatedById"); + b.Property("LatestUpdatedById") + .HasColumnType("bigint"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); b.Property("OrderNote") - .HasMaxLength(1000); + .HasMaxLength(1000) + .HasColumnType("character varying(1000)"); - b.Property("OrderStatus"); + b.Property("OrderStatus") + .HasColumnType("integer"); - b.Property("OrderTotal"); + b.Property("OrderTotal") + .HasColumnType("numeric"); - b.Property("ParentId"); + b.Property("ParentId") + .HasColumnType("bigint"); - b.Property("PaymentFeeAmount"); + b.Property("PaymentFeeAmount") + .HasColumnType("numeric"); b.Property("PaymentMethod") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ShippingAddressId"); + b.Property("ShippingAddressId") + .HasColumnType("bigint"); - b.Property("ShippingFeeAmount"); + b.Property("ShippingFeeAmount") + .HasColumnType("numeric"); b.Property("ShippingMethod") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("SubTotal"); + b.Property("SubTotal") + .HasColumnType("numeric"); - b.Property("SubTotalWithDiscount"); + b.Property("SubTotalWithDiscount") + .HasColumnType("numeric"); - b.Property("TaxAmount"); + b.Property("TaxAmount") + .HasColumnType("numeric"); - b.Property("VendorId"); + b.Property("VendorId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2019,32 +2397,42 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("AddressLine1") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("AddressLine2") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("City") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("ContactName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("CountryId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("DistrictId"); + b.Property("DistrictId") + .HasColumnType("bigint"); b.Property("Phone") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("StateOrProvinceId"); + b.Property("StateOrProvinceId") + .HasColumnType("bigint"); b.Property("ZipCode") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -2061,22 +2449,30 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("NewStatus"); + b.Property("NewStatus") + .HasColumnType("integer"); b.Property("Note") - .HasMaxLength(1000); + .HasMaxLength(1000) + .HasColumnType("character varying(1000)"); - b.Property("OldStatus"); + b.Property("OldStatus") + .HasColumnType("integer"); - b.Property("OrderId"); + b.Property("OrderId") + .HasColumnType("bigint"); - b.Property("OrderSnapshot"); + b.Property("OrderSnapshot") + .HasColumnType("text"); b.HasKey("Id"); @@ -2091,21 +2487,29 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("DiscountAmount"); + b.Property("DiscountAmount") + .HasColumnType("numeric"); - b.Property("OrderId"); + b.Property("OrderId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("ProductPrice"); + b.Property("ProductPrice") + .HasColumnType("numeric"); - b.Property("Quantity"); + b.Property("Quantity") + .HasColumnType("integer"); - b.Property("TaxAmount"); + b.Property("TaxAmount") + .HasColumnType("numeric"); - b.Property("TaxPercent"); + b.Property("TaxPercent") + .HasColumnType("numeric"); b.HasKey("Id"); @@ -2120,27 +2524,37 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Amount"); + b.Property("Amount") + .HasColumnType("numeric"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("FailureMessage"); + b.Property("FailureMessage") + .HasColumnType("text"); b.Property("GatewayTransactionId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("OrderId"); + b.Property("OrderId") + .HasColumnType("bigint"); - b.Property("PaymentFee"); + b.Property("PaymentFee") + .HasColumnType("numeric"); b.Property("PaymentMethod") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("Status"); + b.Property("Status") + .HasColumnType("integer"); b.HasKey("Id"); @@ -2152,21 +2566,26 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Payments.Models.PaymentProvider", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .HasColumnType("text"); - b.Property("AdditionalSettings"); + b.Property("AdditionalSettings") + .HasColumnType("text"); b.Property("ConfigureUrl") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("IsEnabled"); + b.Property("IsEnabled") + .HasColumnType("boolean"); b.Property("LandingViewComponentName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -2241,34 +2660,47 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("DiscountAmount"); + b.Property("DiscountAmount") + .HasColumnType("numeric"); - b.Property("DiscountStep"); + b.Property("DiscountStep") + .HasColumnType("integer"); - b.Property("EndOn"); + b.Property("EndOn") + .HasColumnType("timestamp with time zone"); - b.Property("IsActive"); + b.Property("IsActive") + .HasColumnType("boolean"); - b.Property("IsCouponRequired"); + b.Property("IsCouponRequired") + .HasColumnType("boolean"); - b.Property("MaxDiscountAmount"); + b.Property("MaxDiscountAmount") + .HasColumnType("numeric"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("RuleToApply") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("StartOn"); + b.Property("StartOn") + .HasColumnType("timestamp with time zone"); - b.Property("UsageLimitPerCoupon"); + b.Property("UsageLimitPerCoupon") + .HasColumnType("integer"); - b.Property("UsageLimitPerCustomer"); + b.Property("UsageLimitPerCustomer") + .HasColumnType("integer"); b.HasKey("Id"); @@ -2277,9 +2709,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => { - b.Property("CartRuleId"); + b.Property("CartRuleId") + .HasColumnType("bigint"); - b.Property("CategoryId"); + b.Property("CategoryId") + .HasColumnType("bigint"); b.HasKey("CartRuleId", "CategoryId"); @@ -2290,9 +2724,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => { - b.Property("CartRuleId"); + b.Property("CartRuleId") + .HasColumnType("bigint"); - b.Property("CustomerGroupId"); + b.Property("CustomerGroupId") + .HasColumnType("bigint"); b.HasKey("CartRuleId", "CustomerGroupId"); @@ -2303,9 +2739,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => { - b.Property("CartRuleId"); + b.Property("CartRuleId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); b.HasKey("CartRuleId", "ProductId"); @@ -2318,17 +2756,23 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CartRuleId"); + b.Property("CartRuleId") + .HasColumnType("bigint"); - b.Property("CouponId"); + b.Property("CouponId") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("OrderId"); + b.Property("OrderId") + .HasColumnType("bigint"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2345,26 +2789,35 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("DiscountAmount"); + b.Property("DiscountAmount") + .HasColumnType("numeric"); - b.Property("EndOn"); + b.Property("EndOn") + .HasColumnType("timestamp with time zone"); - b.Property("IsActive"); + b.Property("IsActive") + .HasColumnType("boolean"); - b.Property("MaxDiscountAmount"); + b.Property("MaxDiscountAmount") + .HasColumnType("numeric"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("RuleToApply") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("StartOn"); + b.Property("StartOn") + .HasColumnType("timestamp with time zone"); b.HasKey("Id"); @@ -2373,9 +2826,11 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => { - b.Property("CatalogRuleId"); + b.Property("CatalogRuleId") + .HasColumnType("bigint"); - b.Property("CustomerGroupId"); + b.Property("CustomerGroupId") + .HasColumnType("bigint"); b.HasKey("CatalogRuleId", "CustomerGroupId"); @@ -2388,15 +2843,19 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CartRuleId"); + b.Property("CartRuleId") + .HasColumnType("bigint"); b.Property("Code") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); b.HasKey("Id"); @@ -2409,13 +2868,17 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2430,13 +2893,17 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("LatestViewedOn"); + b.Property("LatestViewedOn") + .HasColumnType("timestamp with time zone"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2447,20 +2914,27 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Comment"); + b.Property("Comment") + .HasColumnType("text"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); b.Property("ReplierName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ReviewId"); + b.Property("ReviewId") + .HasColumnType("bigint"); - b.Property("Status"); + b.Property("Status") + .HasColumnType("integer"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2475,28 +2949,38 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Comment"); + b.Property("Comment") + .HasColumnType("text"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("EntityId"); + b.Property("EntityId") + .HasColumnType("bigint"); b.Property("EntityTypeId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("Rating"); + b.Property("Rating") + .HasColumnType("integer"); b.Property("ReviewerName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("Status"); + b.Property("Status") + .HasColumnType("integer"); b.Property("Title") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2509,15 +2993,19 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); b.Property("QueryText") .IsRequired() - .HasMaxLength(500); + .HasMaxLength(500) + .HasColumnType("character varying(500)"); - b.Property("ResultsCount"); + b.Property("ResultsCount") + .HasColumnType("integer"); b.HasKey("Id"); @@ -2528,22 +3016,30 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("OrderId"); + b.Property("OrderId") + .HasColumnType("bigint"); b.Property("TrackingNumber") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("VendorId"); + b.Property("VendorId") + .HasColumnType("bigint"); - b.Property("WarehouseId"); + b.Property("WarehouseId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2560,15 +3056,20 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("OrderItemId"); + b.Property("OrderItemId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("Quantity"); + b.Property("Quantity") + .HasColumnType("integer"); - b.Property("ShipmentId"); + b.Property("ShipmentId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2582,31 +3083,40 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Shipping.Models.ShippingProvider", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .HasColumnType("text"); - b.Property("AdditionalSettings"); + b.Property("AdditionalSettings") + .HasColumnType("text"); b.Property("ConfigureUrl") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("IsEnabled"); + b.Property("IsEnabled") + .HasColumnType("boolean"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("OnlyCountryIdsString") - .HasMaxLength(1000); + .HasMaxLength(1000) + .HasColumnType("character varying(1000)"); b.Property("OnlyStateOrProvinceIdsString") - .HasMaxLength(1000); + .HasMaxLength(1000) + .HasColumnType("character varying(1000)"); b.Property("ShippingPriceServiceTypeName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ToAllShippingEnabledCountries"); + b.Property("ToAllShippingEnabledCountries") + .HasColumnType("boolean"); - b.Property("ToAllShippingEnabledStatesOrProvinces"); + b.Property("ToAllShippingEnabledStatesOrProvinces") + .HasColumnType("boolean"); b.HasKey("Id"); @@ -2640,23 +3150,31 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("CountryId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("DistrictId"); + b.Property("DistrictId") + .HasColumnType("bigint"); - b.Property("MinOrderSubtotal"); + b.Property("MinOrderSubtotal") + .HasColumnType("numeric"); - b.Property("Note"); + b.Property("Note") + .HasColumnType("text"); - b.Property("ShippingPrice"); + b.Property("ShippingPrice") + .HasColumnType("numeric"); - b.Property("StateOrProvinceId"); + b.Property("StateOrProvinceId") + .HasColumnType("bigint"); b.Property("ZipCode") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -2673,39 +3191,54 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("CouponCode") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("CouponRuleName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("CustomerId"); + b.Property("CustomerId") + .HasColumnType("bigint"); - b.Property("IsActive"); + b.Property("IsActive") + .HasColumnType("boolean"); - b.Property("IsProductPriceIncludeTax"); + b.Property("IsProductPriceIncludeTax") + .HasColumnType("boolean"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("LockedOnCheckout"); + b.Property("LockedOnCheckout") + .HasColumnType("boolean"); b.Property("OrderNote") - .HasMaxLength(1000); + .HasMaxLength(1000) + .HasColumnType("character varying(1000)"); - b.Property("ShippingAmount"); + b.Property("ShippingAmount") + .HasColumnType("numeric"); - b.Property("ShippingData"); + b.Property("ShippingData") + .HasColumnType("text"); b.Property("ShippingMethod") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("TaxAmount"); + b.Property("TaxAmount") + .HasColumnType("numeric"); b.HasKey("Id"); @@ -2720,15 +3253,20 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CartId"); + b.Property("CartId") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("Quantity"); + b.Property("Quantity") + .HasColumnType("integer"); b.HasKey("Id"); @@ -2743,11 +3281,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -2765,19 +3305,25 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("CountryId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("Rate"); + b.Property("Rate") + .HasColumnType("numeric"); - b.Property("StateOrProvinceId"); + b.Property("StateOrProvinceId") + .HasColumnType("bigint"); - b.Property("TaxClassId"); + b.Property("TaxClassId") + .HasColumnType("bigint"); b.Property("ZipCode") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -2794,16 +3340,21 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); b.Property("SharingCode") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2816,19 +3367,26 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("Quantity"); + b.Property("Quantity") + .HasColumnType("integer"); - b.Property("WishListId"); + b.Property("WishListId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2841,34 +3399,38 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { - b.HasOne("SimplCommerce.Module.Core.Models.Role") + b.HasOne("SimplCommerce.Module.Core.Models.Role", null) .WithMany() .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { - b.HasOne("SimplCommerce.Module.Core.Models.User") + b.HasOne("SimplCommerce.Module.Core.Models.User", null) .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { - b.HasOne("SimplCommerce.Module.Core.Models.User") + b.HasOne("SimplCommerce.Module.Core.Models.User", null) .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { - b.HasOne("SimplCommerce.Module.Core.Models.User") + b.HasOne("SimplCommerce.Module.Core.Models.User", null) .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.LocalizedContentProperty", b => @@ -2876,7 +3438,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Infrastructure.Localization.Culture", "Culture") .WithMany() .HasForeignKey("CultureId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Culture"); }); modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => @@ -2884,7 +3449,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Infrastructure.Localization.Culture", "Culture") .WithMany("Resources") .HasForeignKey("CultureId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Culture"); }); modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => @@ -2892,7 +3460,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.ActivityLog.Models.ActivityType", "ActivityType") .WithMany() .HasForeignKey("ActivityTypeId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("ActivityType"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => @@ -2906,6 +3477,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .WithMany() .HasForeignKey("ThumbnailImageId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("Parent"); + + b.Navigation("ThumbnailImage"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => @@ -2918,12 +3493,14 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") .WithMany() .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") .WithMany() @@ -2934,6 +3511,16 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .WithMany() .HasForeignKey("ThumbnailImageId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("Brand"); + + b.Navigation("CreatedBy"); + + b.Navigation("LatestUpdatedBy"); + + b.Navigation("TaxClass"); + + b.Navigation("ThumbnailImage"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => @@ -2941,7 +3528,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", "Group") .WithMany("Attributes") .HasForeignKey("GroupId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Group"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => @@ -2949,12 +3539,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "Attribute") .WithMany() .HasForeignKey("AttributeId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany("AttributeValues") .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Attribute"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => @@ -2962,12 +3558,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") .WithMany() .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany("Categories") .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Category"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => @@ -2975,12 +3577,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "LinkedProduct") .WithMany("LinkedProductLinks") .HasForeignKey("LinkedProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany("ProductLinks") .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("LinkedProduct"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => @@ -2988,12 +3596,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.Media", "Media") .WithMany() .HasForeignKey("MediaId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany("Medias") .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Media"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => @@ -3001,12 +3615,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") .WithMany() .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany("OptionCombinations") .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Option"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => @@ -3014,12 +3634,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") .WithMany() .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany("OptionValues") .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Option"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => @@ -3027,12 +3653,17 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany("PriceHistories") .HasForeignKey("ProductId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("CreatedBy"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => @@ -3040,12 +3671,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "ProductAttribute") .WithMany("ProductTemplates") .HasForeignKey("ProductAttributeId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.ProductTemplate", "ProductTemplate") .WithMany("ProductAttributes") .HasForeignKey("ProductTemplateId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("ProductAttribute"); + + b.Navigation("ProductTemplate"); }); modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => @@ -3058,12 +3695,19 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Cms.Models.Menu", "Menu") .WithMany("MenuItems") .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Cms.Models.MenuItem", "Parent") .WithMany("Children") .HasForeignKey("ParentId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("Entity"); + + b.Navigation("Menu"); + + b.Navigation("Parent"); }); modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => @@ -3071,12 +3715,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") .WithMany() .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CreatedBy"); + + b.Navigation("LatestUpdatedBy"); }); modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => @@ -3089,7 +3739,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Parent"); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => @@ -3097,7 +3752,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Contacts.Models.ContactArea", "ContactArea") .WithMany() .HasForeignKey("ContactAreaId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("ContactArea"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => @@ -3105,7 +3763,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") .WithMany() .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.District", "District") .WithMany() @@ -3115,7 +3774,14 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") .WithMany() .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Country"); + + b.Navigation("District"); + + b.Navigation("StateOrProvince"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => @@ -3123,12 +3789,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") .WithMany("Users") .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany("CustomerGroups") .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CustomerGroup"); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => @@ -3136,7 +3808,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") .WithMany() .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("StateOrProvince"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => @@ -3145,6 +3820,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .WithMany() .HasForeignKey("EntityTypeId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("EntityType"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => @@ -3153,6 +3830,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .WithMany("StatesOrProvinces") .HasForeignKey("CountryId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("Country"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => @@ -3167,10 +3846,14 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasForeignKey("DefaultShippingAddressId") .OnDelete(DeleteBehavior.Restrict); - b.HasOne("SimplCommerce.Module.Core.Models.Vendor") + b.HasOne("SimplCommerce.Module.Core.Models.Vendor", null) .WithMany("Users") .HasForeignKey("VendorId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("DefaultBillingAddress"); + + b.Navigation("DefaultShippingAddress"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => @@ -3178,12 +3861,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") .WithMany("UserAddresses") .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany("UserAddresses") .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Address"); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => @@ -3191,12 +3880,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.Role", "Role") .WithMany("Users") .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany("Roles") .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Role"); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => @@ -3209,7 +3904,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.WidgetZone", "WidgetZone") .WithMany() .HasForeignKey("WidgetZoneId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Widget"); + + b.Navigation("WidgetZone"); }); modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => @@ -3217,12 +3917,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") .WithMany() .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Product"); + + b.Navigation("Warehouse"); }); modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => @@ -3230,17 +3936,26 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") .WithMany() .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CreatedBy"); + + b.Navigation("Product"); + + b.Navigation("Warehouse"); }); modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => @@ -3248,12 +3963,17 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") .WithMany() .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.Vendor", "Vendor") .WithMany() .HasForeignKey("VendorId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("Address"); + + b.Navigation("Vendor"); }); modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => @@ -3261,17 +3981,25 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") .WithMany() .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") .WithMany() .HasForeignKey("ThumbnailImageId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("CreatedBy"); + + b.Navigation("LatestUpdatedBy"); + + b.Navigation("ThumbnailImage"); }); modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => @@ -3279,12 +4007,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.News.Models.NewsCategory", "Category") .WithMany("NewsItems") .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); b.HasOne("SimplCommerce.Module.News.Models.NewsItem", "NewsItem") .WithMany("Categories") .HasForeignKey("NewsItemId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Category"); + + b.Navigation("NewsItem"); }); modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => @@ -3292,22 +4026,26 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "BillingAddress") .WithMany() .HasForeignKey("BillingAddressId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") .WithMany() .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") .WithMany() .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Parent") .WithMany("Children") @@ -3317,7 +4055,20 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "ShippingAddress") .WithMany() .HasForeignKey("ShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("BillingAddress"); + + b.Navigation("CreatedBy"); + + b.Navigation("Customer"); + + b.Navigation("LatestUpdatedBy"); + + b.Navigation("Parent"); + + b.Navigation("ShippingAddress"); }); modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => @@ -3335,7 +4086,14 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") .WithMany() .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Country"); + + b.Navigation("District"); + + b.Navigation("StateOrProvince"); }); modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => @@ -3343,12 +4101,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") .WithMany() .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CreatedBy"); + + b.Navigation("Order"); }); modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => @@ -3361,7 +4125,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Order"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => @@ -3369,7 +4138,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") .WithMany() .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Order"); }); modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => @@ -3377,12 +4149,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") .WithMany("Categories") .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") .WithMany() .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CartRule"); + + b.Navigation("Category"); }); modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => @@ -3390,12 +4168,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") .WithMany("CustomerGroups") .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") .WithMany() .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CartRule"); + + b.Navigation("CustomerGroup"); }); modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => @@ -3403,12 +4187,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") .WithMany("Products") .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CartRule"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => @@ -3416,7 +4206,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") .WithMany() .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Pricing.Models.Coupon", "Coupon") .WithMany() @@ -3426,7 +4217,14 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CartRule"); + + b.Navigation("Coupon"); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => @@ -3434,12 +4232,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Pricing.Models.CatalogRule", "CatalogRule") .WithMany("CustomerGroups") .HasForeignKey("CatalogRuleId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") .WithMany() .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CatalogRule"); + + b.Navigation("CustomerGroup"); }); modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => @@ -3447,7 +4251,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") .WithMany("Coupons") .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CartRule"); }); modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => @@ -3455,12 +4262,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Product"); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => @@ -3468,12 +4281,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Reviews.Models.Review", "Review") .WithMany("Replies") .HasForeignKey("ReviewId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Review"); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => @@ -3481,7 +4300,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => @@ -3489,17 +4311,26 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") .WithMany() .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") .WithMany() .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CreatedBy"); + + b.Navigation("Order"); + + b.Navigation("Warehouse"); }); modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => @@ -3507,12 +4338,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Shipments.Models.Shipment", "Shipment") .WithMany("Items") .HasForeignKey("ShipmentId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Product"); + + b.Navigation("Shipment"); }); modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => @@ -3531,6 +4368,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .WithMany() .HasForeignKey("StateOrProvinceId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("Country"); + + b.Navigation("District"); + + b.Navigation("StateOrProvince"); }); modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => @@ -3538,12 +4381,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") .WithMany() .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CreatedBy"); + + b.Navigation("Customer"); }); modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => @@ -3551,12 +4400,18 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.ShoppingCart.Models.Cart", "Cart") .WithMany("Items") .HasForeignKey("CartId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Cart"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => @@ -3574,7 +4429,14 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") .WithMany() .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Country"); + + b.Navigation("StateOrProvince"); + + b.Navigation("TaxClass"); }); modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => @@ -3582,7 +4444,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => @@ -3590,12 +4455,164 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.WishList.Models.WishList", "WishList") .WithMany("Items") .HasForeignKey("WishListId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Product"); + + b.Navigation("WishList"); + }); + + modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Culture", b => + { + b.Navigation("Resources"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => + { + b.Navigation("Children"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => + { + b.Navigation("AttributeValues"); + + b.Navigation("Categories"); + + b.Navigation("LinkedProductLinks"); + + b.Navigation("Medias"); + + b.Navigation("OptionCombinations"); + + b.Navigation("OptionValues"); + + b.Navigation("PriceHistories"); + + b.Navigation("ProductLinks"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => + { + b.Navigation("ProductTemplates"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", b => + { + b.Navigation("Attributes"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplate", b => + { + b.Navigation("ProductAttributes"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Menu", b => + { + b.Navigation("MenuItems"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => + { + b.Navigation("Children"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => + { + b.Navigation("Replies"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => + { + b.Navigation("UserAddresses"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Core.Models.Country", b => + { + b.Navigation("StatesOrProvinces"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroup", b => + { + b.Navigation("Users"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Core.Models.Role", b => + { + b.Navigation("Users"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => + { + b.Navigation("CustomerGroups"); + + b.Navigation("Roles"); + + b.Navigation("UserAddresses"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Core.Models.Vendor", b => + { + b.Navigation("Users"); + }); + + modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsCategory", b => + { + b.Navigation("NewsItems"); + }); + + modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => + { + b.Navigation("Categories"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => + { + b.Navigation("Children"); + + b.Navigation("OrderItems"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRule", b => + { + b.Navigation("Categories"); + + b.Navigation("Coupons"); + + b.Navigation("CustomerGroups"); + + b.Navigation("Products"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRule", b => + { + b.Navigation("CustomerGroups"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => + { + b.Navigation("Replies"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => + { + b.Navigation("Items"); + }); + + modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => + { + b.Navigation("Items"); + }); + + modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => + { + b.Navigation("Items"); }); #pragma warning restore 612, 618 } diff --git a/src/SimplCommerce.WebHost/Migrations/20190212090153_SimplCommerce_v1_0_0.cs b/src/SimplCommerce.WebHost/Migrations/20201210143557_initialSchema.cs similarity index 63% rename from src/SimplCommerce.WebHost/Migrations/20190212090153_SimplCommerce_v1_0_0.cs rename to src/SimplCommerce.WebHost/Migrations/20201210143557_initialSchema.cs index 572ca3f207..a13cc64340 100644 --- a/src/SimplCommerce.WebHost/Migrations/20190212090153_SimplCommerce_v1_0_0.cs +++ b/src/SimplCommerce.WebHost/Migrations/20201210143557_initialSchema.cs @@ -1,10 +1,10 @@ using System; -using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace SimplCommerce.WebHost.Migrations { - public partial class SimplCommerce_v1_0_0 : Migration + public partial class initialSchema : Migration { protected override void Up(MigrationBuilder migrationBuilder) { @@ -12,9 +12,9 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "ActivityLog_ActivityType", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false) }, constraints: table => { @@ -25,13 +25,13 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Catalog_Brand", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false), - Slug = table.Column(maxLength: 450, nullable: false), - Description = table.Column(nullable: true), - IsPublished = table.Column(nullable: false), - IsDeleted = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Slug = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Description = table.Column(type: "text", nullable: true), + IsPublished = table.Column(type: "boolean", nullable: false), + IsDeleted = table.Column(type: "boolean", nullable: false) }, constraints: table => { @@ -42,9 +42,9 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Catalog_ProductAttributeGroup", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false) }, constraints: table => { @@ -55,9 +55,9 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Catalog_ProductOption", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false) }, constraints: table => { @@ -68,9 +68,9 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Catalog_ProductTemplate", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false) }, constraints: table => { @@ -81,11 +81,11 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Cms_Menu", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false), - IsPublished = table.Column(nullable: false), - IsSystem = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + IsPublished = table.Column(type: "boolean", nullable: false), + IsSystem = table.Column(type: "boolean", nullable: false) }, constraints: table => { @@ -96,10 +96,10 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Contacts_ContactArea", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false), - IsDeleted = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + IsDeleted = table.Column(type: "boolean", nullable: false) }, constraints: table => { @@ -110,10 +110,10 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_AppSetting", columns: table => new { - Id = table.Column(nullable: false), - Value = table.Column(maxLength: 450, nullable: true), - Module = table.Column(maxLength: 450, nullable: true), - IsVisibleInCommonSettingPage = table.Column(nullable: false) + Id = table.Column(type: "text", nullable: false), + Value = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Module = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + IsVisibleInCommonSettingPage = table.Column(type: "boolean", nullable: false) }, constraints: table => { @@ -124,14 +124,14 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_Country", columns: table => new { - Id = table.Column(nullable: false), - Name = table.Column(maxLength: 450, nullable: false), - Code3 = table.Column(maxLength: 450, nullable: true), - IsBillingEnabled = table.Column(nullable: false), - IsShippingEnabled = table.Column(nullable: false), - IsCityEnabled = table.Column(nullable: false), - IsZipCodeEnabled = table.Column(nullable: false), - IsDistrictEnabled = table.Column(nullable: false) + Id = table.Column(type: "text", nullable: false), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Code3 = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + IsBillingEnabled = table.Column(type: "boolean", nullable: false), + IsShippingEnabled = table.Column(type: "boolean", nullable: false), + IsCityEnabled = table.Column(type: "boolean", nullable: false), + IsZipCodeEnabled = table.Column(type: "boolean", nullable: false), + IsDistrictEnabled = table.Column(type: "boolean", nullable: false) }, constraints: table => { @@ -142,14 +142,14 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_CustomerGroup", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false), - Description = table.Column(nullable: true), - IsActive = table.Column(nullable: false), - IsDeleted = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false), - LatestUpdatedOn = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Description = table.Column(type: "text", nullable: true), + IsActive = table.Column(type: "boolean", nullable: false), + IsDeleted = table.Column(type: "boolean", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedOn = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { @@ -160,11 +160,11 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_EntityType", columns: table => new { - Id = table.Column(nullable: false), - IsMenuable = table.Column(nullable: false), - AreaName = table.Column(maxLength: 450, nullable: true), - RoutingController = table.Column(maxLength: 450, nullable: true), - RoutingAction = table.Column(maxLength: 450, nullable: true) + Id = table.Column(type: "text", nullable: false), + IsMenuable = table.Column(type: "boolean", nullable: false), + AreaName = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + RoutingController = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + RoutingAction = table.Column(type: "character varying(450)", maxLength: 450, nullable: true) }, constraints: table => { @@ -175,12 +175,12 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_Media", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Caption = table.Column(maxLength: 450, nullable: true), - FileSize = table.Column(nullable: false), - FileName = table.Column(maxLength: 450, nullable: true), - MediaType = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Caption = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + FileSize = table.Column(type: "integer", nullable: false), + FileName = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + MediaType = table.Column(type: "integer", nullable: false) }, constraints: table => { @@ -191,11 +191,11 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_Role", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 256, nullable: true), - NormalizedName = table.Column(maxLength: 256, nullable: true), - ConcurrencyStamp = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + NormalizedName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + ConcurrencyStamp = table.Column(type: "text", nullable: true) }, constraints: table => { @@ -206,16 +206,16 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_Vendor", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false), - Slug = table.Column(maxLength: 450, nullable: false), - Description = table.Column(nullable: true), - Email = table.Column(nullable: true), - CreatedOn = table.Column(nullable: false), - LatestUpdatedOn = table.Column(nullable: false), - IsActive = table.Column(nullable: false), - IsDeleted = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Slug = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Description = table.Column(type: "text", nullable: true), + Email = table.Column(type: "text", nullable: true), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedOn = table.Column(type: "timestamp with time zone", nullable: false), + IsActive = table.Column(type: "boolean", nullable: false), + IsDeleted = table.Column(type: "boolean", nullable: false) }, constraints: table => { @@ -226,13 +226,13 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_Widget", columns: table => new { - Id = table.Column(nullable: false), - Name = table.Column(maxLength: 450, nullable: false), - ViewComponentName = table.Column(maxLength: 450, nullable: true), - CreateUrl = table.Column(maxLength: 450, nullable: true), - EditUrl = table.Column(maxLength: 450, nullable: true), - CreatedOn = table.Column(nullable: false), - IsPublished = table.Column(nullable: false) + Id = table.Column(type: "text", nullable: false), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + ViewComponentName = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + CreateUrl = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + EditUrl = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + IsPublished = table.Column(type: "boolean", nullable: false) }, constraints: table => { @@ -243,10 +243,10 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_WidgetZone", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false), - Description = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Description = table.Column(type: "text", nullable: true) }, constraints: table => { @@ -257,8 +257,8 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Localization_Culture", columns: table => new { - Id = table.Column(nullable: false), - Name = table.Column(maxLength: 450, nullable: false) + Id = table.Column(type: "text", nullable: false), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false) }, constraints: table => { @@ -269,17 +269,17 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "News_NewsCategory", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false), - Slug = table.Column(maxLength: 450, nullable: false), - MetaTitle = table.Column(maxLength: 450, nullable: true), - MetaKeywords = table.Column(maxLength: 450, nullable: true), - MetaDescription = table.Column(nullable: true), - Description = table.Column(nullable: true), - DisplayOrder = table.Column(nullable: false), - IsPublished = table.Column(nullable: false), - IsDeleted = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Slug = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + MetaTitle = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + MetaKeywords = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + MetaDescription = table.Column(type: "text", nullable: true), + Description = table.Column(type: "text", nullable: true), + DisplayOrder = table.Column(type: "integer", nullable: false), + IsPublished = table.Column(type: "boolean", nullable: false), + IsDeleted = table.Column(type: "boolean", nullable: false) }, constraints: table => { @@ -290,12 +290,12 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Payments_PaymentProvider", columns: table => new { - Id = table.Column(nullable: false), - Name = table.Column(maxLength: 450, nullable: false), - IsEnabled = table.Column(nullable: false), - ConfigureUrl = table.Column(maxLength: 450, nullable: true), - LandingViewComponentName = table.Column(maxLength: 450, nullable: true), - AdditionalSettings = table.Column(nullable: true) + Id = table.Column(type: "text", nullable: false), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + IsEnabled = table.Column(type: "boolean", nullable: false), + ConfigureUrl = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + LandingViewComponentName = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + AdditionalSettings = table.Column(type: "text", nullable: true) }, constraints: table => { @@ -306,20 +306,20 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Pricing_CartRule", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false), - Description = table.Column(nullable: true), - IsActive = table.Column(nullable: false), - StartOn = table.Column(nullable: true), - EndOn = table.Column(nullable: true), - IsCouponRequired = table.Column(nullable: false), - RuleToApply = table.Column(maxLength: 450, nullable: true), - DiscountAmount = table.Column(nullable: false), - MaxDiscountAmount = table.Column(nullable: true), - DiscountStep = table.Column(nullable: true), - UsageLimitPerCoupon = table.Column(nullable: true), - UsageLimitPerCustomer = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Description = table.Column(type: "text", nullable: true), + IsActive = table.Column(type: "boolean", nullable: false), + StartOn = table.Column(type: "timestamp with time zone", nullable: true), + EndOn = table.Column(type: "timestamp with time zone", nullable: true), + IsCouponRequired = table.Column(type: "boolean", nullable: false), + RuleToApply = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + DiscountAmount = table.Column(type: "numeric", nullable: false), + MaxDiscountAmount = table.Column(type: "numeric", nullable: true), + DiscountStep = table.Column(type: "integer", nullable: true), + UsageLimitPerCoupon = table.Column(type: "integer", nullable: true), + UsageLimitPerCustomer = table.Column(type: "integer", nullable: true) }, constraints: table => { @@ -330,16 +330,16 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Pricing_CatalogRule", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false), - Description = table.Column(nullable: true), - IsActive = table.Column(nullable: false), - StartOn = table.Column(nullable: true), - EndOn = table.Column(nullable: true), - RuleToApply = table.Column(maxLength: 450, nullable: true), - DiscountAmount = table.Column(nullable: false), - MaxDiscountAmount = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Description = table.Column(type: "text", nullable: true), + IsActive = table.Column(type: "boolean", nullable: false), + StartOn = table.Column(type: "timestamp with time zone", nullable: true), + EndOn = table.Column(type: "timestamp with time zone", nullable: true), + RuleToApply = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + DiscountAmount = table.Column(type: "numeric", nullable: false), + MaxDiscountAmount = table.Column(type: "numeric", nullable: true) }, constraints: table => { @@ -350,11 +350,11 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "ProductRecentlyViewed_RecentlyViewedProduct", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - UserId = table.Column(nullable: false), - ProductId = table.Column(nullable: false), - LatestViewedOn = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + UserId = table.Column(type: "bigint", nullable: false), + ProductId = table.Column(type: "bigint", nullable: false), + LatestViewedOn = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { @@ -365,11 +365,11 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Search_Query", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - QueryText = table.Column(maxLength: 500, nullable: false), - ResultsCount = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + QueryText = table.Column(type: "character varying(500)", maxLength: 500, nullable: false), + ResultsCount = table.Column(type: "integer", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { @@ -380,16 +380,16 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Shipping_ShippingProvider", columns: table => new { - Id = table.Column(nullable: false), - Name = table.Column(maxLength: 450, nullable: false), - IsEnabled = table.Column(nullable: false), - ConfigureUrl = table.Column(maxLength: 450, nullable: true), - ToAllShippingEnabledCountries = table.Column(nullable: false), - OnlyCountryIdsString = table.Column(maxLength: 1000, nullable: true), - ToAllShippingEnabledStatesOrProvinces = table.Column(nullable: false), - OnlyStateOrProvinceIdsString = table.Column(maxLength: 1000, nullable: true), - AdditionalSettings = table.Column(nullable: true), - ShippingPriceServiceTypeName = table.Column(maxLength: 450, nullable: true) + Id = table.Column(type: "text", nullable: false), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + IsEnabled = table.Column(type: "boolean", nullable: false), + ConfigureUrl = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + ToAllShippingEnabledCountries = table.Column(type: "boolean", nullable: false), + OnlyCountryIdsString = table.Column(type: "character varying(1000)", maxLength: 1000, nullable: true), + ToAllShippingEnabledStatesOrProvinces = table.Column(type: "boolean", nullable: false), + OnlyStateOrProvinceIdsString = table.Column(type: "character varying(1000)", maxLength: 1000, nullable: true), + AdditionalSettings = table.Column(type: "text", nullable: true), + ShippingPriceServiceTypeName = table.Column(type: "character varying(450)", maxLength: 450, nullable: true) }, constraints: table => { @@ -400,9 +400,9 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Tax_TaxClass", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false) }, constraints: table => { @@ -413,13 +413,13 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "ActivityLog_Activity", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ActivityTypeId = table.Column(nullable: false), - UserId = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false), - EntityId = table.Column(nullable: false), - EntityTypeId = table.Column(maxLength: 450, nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ActivityTypeId = table.Column(type: "bigint", nullable: false), + UserId = table.Column(type: "bigint", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + EntityId = table.Column(type: "bigint", nullable: false), + EntityTypeId = table.Column(type: "character varying(450)", maxLength: 450, nullable: false) }, constraints: table => { @@ -436,16 +436,16 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Catalog_ProductAttribute", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false), - GroupId = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + GroupId = table.Column(type: "bigint", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Catalog_ProductAttribute", x => x.Id); table.ForeignKey( - name: "FK_Catalog_ProductAttribute_Catalog_ProductAttributeGroup_GroupId", + name: "FK_Catalog_ProductAttribute_Catalog_ProductAttributeGroup_Grou~", column: x => x.GroupId, principalTable: "Catalog_ProductAttributeGroup", principalColumn: "Id", @@ -456,16 +456,16 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Contacts_Contact", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - FullName = table.Column(maxLength: 450, nullable: true), - PhoneNumber = table.Column(maxLength: 450, nullable: true), - EmailAddress = table.Column(maxLength: 450, nullable: true), - Address = table.Column(maxLength: 450, nullable: true), - Content = table.Column(nullable: true), - ContactAreaId = table.Column(nullable: false), - IsDeleted = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + FullName = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + PhoneNumber = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + EmailAddress = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Address = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Content = table.Column(type: "text", nullable: true), + ContactAreaId = table.Column(type: "bigint", nullable: false), + IsDeleted = table.Column(type: "boolean", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { @@ -482,12 +482,12 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_StateOrProvince", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CountryId = table.Column(maxLength: 450, nullable: true), - Code = table.Column(maxLength: 450, nullable: true), - Name = table.Column(maxLength: 450, nullable: false), - Type = table.Column(maxLength: 450, nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + CountryId = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Code = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Type = table.Column(type: "character varying(450)", maxLength: 450, nullable: true) }, constraints: table => { @@ -504,12 +504,12 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_Entity", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Slug = table.Column(maxLength: 450, nullable: false), - Name = table.Column(maxLength: 450, nullable: false), - EntityId = table.Column(nullable: false), - EntityTypeId = table.Column(maxLength: 450, nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Slug = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + EntityId = table.Column(type: "bigint", nullable: false), + EntityTypeId = table.Column(type: "character varying(450)", maxLength: 450, nullable: true) }, constraints: table => { @@ -526,20 +526,20 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Catalog_Category", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false), - Slug = table.Column(maxLength: 450, nullable: false), - MetaTitle = table.Column(maxLength: 450, nullable: true), - MetaKeywords = table.Column(maxLength: 450, nullable: true), - MetaDescription = table.Column(nullable: true), - Description = table.Column(nullable: true), - DisplayOrder = table.Column(nullable: false), - IsPublished = table.Column(nullable: false), - IncludeInMenu = table.Column(nullable: false), - IsDeleted = table.Column(nullable: false), - ParentId = table.Column(nullable: true), - ThumbnailImageId = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Slug = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + MetaTitle = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + MetaKeywords = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + MetaDescription = table.Column(type: "text", nullable: true), + Description = table.Column(type: "text", nullable: true), + DisplayOrder = table.Column(type: "integer", nullable: false), + IsPublished = table.Column(type: "boolean", nullable: false), + IncludeInMenu = table.Column(type: "boolean", nullable: false), + IsDeleted = table.Column(type: "boolean", nullable: false), + ParentId = table.Column(type: "bigint", nullable: true), + ThumbnailImageId = table.Column(type: "bigint", nullable: true) }, constraints: table => { @@ -562,11 +562,11 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_RoleClaim", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - RoleId = table.Column(nullable: false), - ClaimType = table.Column(nullable: true), - ClaimValue = table.Column(nullable: true) + Id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + RoleId = table.Column(type: "bigint", nullable: false), + ClaimType = table.Column(type: "text", nullable: true), + ClaimValue = table.Column(type: "text", nullable: true) }, constraints: table => { @@ -583,18 +583,18 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_WidgetInstance", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: true), - CreatedOn = table.Column(nullable: false), - LatestUpdatedOn = table.Column(nullable: false), - PublishStart = table.Column(nullable: true), - PublishEnd = table.Column(nullable: true), - WidgetId = table.Column(maxLength: 450, nullable: true), - WidgetZoneId = table.Column(nullable: false), - DisplayOrder = table.Column(nullable: false), - Data = table.Column(nullable: true), - HtmlData = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedOn = table.Column(type: "timestamp with time zone", nullable: false), + PublishStart = table.Column(type: "timestamp with time zone", nullable: true), + PublishEnd = table.Column(type: "timestamp with time zone", nullable: true), + WidgetId = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + WidgetZoneId = table.Column(type: "bigint", nullable: false), + DisplayOrder = table.Column(type: "integer", nullable: false), + Data = table.Column(type: "text", nullable: true), + HtmlData = table.Column(type: "text", nullable: true) }, constraints: table => { @@ -613,15 +613,38 @@ protected override void Up(MigrationBuilder migrationBuilder) onDelete: ReferentialAction.Restrict); }); + migrationBuilder.CreateTable( + name: "Localization_LocalizedContentProperty", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + EntityId = table.Column(type: "bigint", nullable: false), + EntityType = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + CultureId = table.Column(type: "text", nullable: false), + ProperyName = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Value = table.Column(type: "text", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Localization_LocalizedContentProperty", x => x.Id); + table.ForeignKey( + name: "FK_Localization_LocalizedContentProperty_Localization_Culture_~", + column: x => x.CultureId, + principalTable: "Localization_Culture", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + migrationBuilder.CreateTable( name: "Localization_Resource", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Key = table.Column(maxLength: 450, nullable: false), - Value = table.Column(nullable: true), - CultureId = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Key = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Value = table.Column(type: "text", nullable: true), + CultureId = table.Column(type: "text", nullable: false) }, constraints: table => { @@ -638,35 +661,35 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Pricing_CartRuleCustomerGroup", columns: table => new { - CartRuleId = table.Column(nullable: false), - CustomerGroupId = table.Column(nullable: false) + CartRuleId = table.Column(type: "bigint", nullable: false), + CustomerGroupId = table.Column(type: "bigint", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Pricing_CartRuleCustomerGroup", x => new { x.CartRuleId, x.CustomerGroupId }); + table.ForeignKey( + name: "FK_Pricing_CartRuleCustomerGroup_Core_CustomerGroup_CustomerGr~", + column: x => x.CustomerGroupId, + principalTable: "Core_CustomerGroup", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_Pricing_CartRuleCustomerGroup_Pricing_CartRule_CartRuleId", column: x => x.CartRuleId, principalTable: "Pricing_CartRule", principalColumn: "Id", onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Pricing_CartRuleCustomerGroup_Core_CustomerGroup_CustomerGroupId", - column: x => x.CustomerGroupId, - principalTable: "Core_CustomerGroup", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable( name: "Pricing_Coupon", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CartRuleId = table.Column(nullable: false), - Code = table.Column(maxLength: 450, nullable: false), - CreatedOn = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + CartRuleId = table.Column(type: "bigint", nullable: false), + Code = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { @@ -683,22 +706,22 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Pricing_CatalogRuleCustomerGroup", columns: table => new { - CatalogRuleId = table.Column(nullable: false), - CustomerGroupId = table.Column(nullable: false) + CatalogRuleId = table.Column(type: "bigint", nullable: false), + CustomerGroupId = table.Column(type: "bigint", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Pricing_CatalogRuleCustomerGroup", x => new { x.CatalogRuleId, x.CustomerGroupId }); table.ForeignKey( - name: "FK_Pricing_CatalogRuleCustomerGroup_Pricing_CatalogRule_CatalogRuleId", - column: x => x.CatalogRuleId, - principalTable: "Pricing_CatalogRule", + name: "FK_Pricing_CatalogRuleCustomerGroup_Core_CustomerGroup_Custome~", + column: x => x.CustomerGroupId, + principalTable: "Core_CustomerGroup", principalColumn: "Id", onDelete: ReferentialAction.Restrict); table.ForeignKey( - name: "FK_Pricing_CatalogRuleCustomerGroup_Core_CustomerGroup_CustomerGroupId", - column: x => x.CustomerGroupId, - principalTable: "Core_CustomerGroup", + name: "FK_Pricing_CatalogRuleCustomerGroup_Pricing_CatalogRule_Catalo~", + column: x => x.CatalogRuleId, + principalTable: "Pricing_CatalogRule", principalColumn: "Id", onDelete: ReferentialAction.Restrict); }); @@ -707,20 +730,20 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Catalog_ProductTemplateProductAttribute", columns: table => new { - ProductTemplateId = table.Column(nullable: false), - ProductAttributeId = table.Column(nullable: false) + ProductTemplateId = table.Column(type: "bigint", nullable: false), + ProductAttributeId = table.Column(type: "bigint", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Catalog_ProductTemplateProductAttribute", x => new { x.ProductTemplateId, x.ProductAttributeId }); table.ForeignKey( - name: "FK_Catalog_ProductTemplateProductAttribute_Catalog_ProductAttribute_ProductAttributeId", + name: "FK_Catalog_ProductTemplateProductAttribute_Catalog_ProductAttr~", column: x => x.ProductAttributeId, principalTable: "Catalog_ProductAttribute", principalColumn: "Id", onDelete: ReferentialAction.Cascade); table.ForeignKey( - name: "FK_Catalog_ProductTemplateProductAttribute_Catalog_ProductTemplate_ProductTemplateId", + name: "FK_Catalog_ProductTemplateProductAttribute_Catalog_ProductTemp~", column: x => x.ProductTemplateId, principalTable: "Catalog_ProductTemplate", principalColumn: "Id", @@ -731,12 +754,12 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_District", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - StateOrProvinceId = table.Column(nullable: false), - Name = table.Column(maxLength: 450, nullable: false), - Type = table.Column(maxLength: 450, nullable: true), - Location = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + StateOrProvinceId = table.Column(type: "bigint", nullable: false), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Type = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Location = table.Column(type: "text", nullable: true) }, constraints: table => { @@ -753,13 +776,13 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Tax_TaxRate", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - TaxClassId = table.Column(nullable: false), - CountryId = table.Column(maxLength: 450, nullable: true), - StateOrProvinceId = table.Column(nullable: true), - Rate = table.Column(nullable: false), - ZipCode = table.Column(maxLength: 450, nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + TaxClassId = table.Column(type: "bigint", nullable: false), + CountryId = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + StateOrProvinceId = table.Column(type: "bigint", nullable: true), + Rate = table.Column(type: "numeric", nullable: false), + ZipCode = table.Column(type: "character varying(450)", maxLength: 450, nullable: true) }, constraints: table => { @@ -788,24 +811,18 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Cms_MenuItem", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ParentId = table.Column(nullable: true), - MenuId = table.Column(nullable: false), - EntityId = table.Column(nullable: true), - CustomLink = table.Column(maxLength: 450, nullable: true), - Name = table.Column(maxLength: 450, nullable: true), - DisplayOrder = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ParentId = table.Column(type: "bigint", nullable: true), + MenuId = table.Column(type: "bigint", nullable: false), + EntityId = table.Column(type: "bigint", nullable: true), + CustomLink = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + DisplayOrder = table.Column(type: "integer", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Cms_MenuItem", x => x.Id); - table.ForeignKey( - name: "FK_Cms_MenuItem_Core_Entity_EntityId", - column: x => x.EntityId, - principalTable: "Core_Entity", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_Cms_MenuItem_Cms_Menu_MenuId", column: x => x.MenuId, @@ -818,47 +835,53 @@ protected override void Up(MigrationBuilder migrationBuilder) principalTable: "Cms_MenuItem", principalColumn: "Id", onDelete: ReferentialAction.Restrict); + table.ForeignKey( + name: "FK_Cms_MenuItem_Core_Entity_EntityId", + column: x => x.EntityId, + principalTable: "Core_Entity", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable( name: "Pricing_CartRuleCategory", columns: table => new { - CategoryId = table.Column(nullable: false), - CartRuleId = table.Column(nullable: false) + CategoryId = table.Column(type: "bigint", nullable: false), + CartRuleId = table.Column(type: "bigint", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Pricing_CartRuleCategory", x => new { x.CartRuleId, x.CategoryId }); - table.ForeignKey( - name: "FK_Pricing_CartRuleCategory_Pricing_CartRule_CartRuleId", - column: x => x.CartRuleId, - principalTable: "Pricing_CartRule", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); table.ForeignKey( name: "FK_Pricing_CartRuleCategory_Catalog_Category_CategoryId", column: x => x.CategoryId, principalTable: "Catalog_Category", principalColumn: "Id", onDelete: ReferentialAction.Restrict); + table.ForeignKey( + name: "FK_Pricing_CartRuleCategory_Pricing_CartRule_CartRuleId", + column: x => x.CartRuleId, + principalTable: "Pricing_CartRule", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "Core_Address", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ContactName = table.Column(maxLength: 450, nullable: true), - Phone = table.Column(maxLength: 450, nullable: true), - AddressLine1 = table.Column(maxLength: 450, nullable: true), - AddressLine2 = table.Column(maxLength: 450, nullable: true), - City = table.Column(maxLength: 450, nullable: true), - ZipCode = table.Column(maxLength: 450, nullable: true), - DistrictId = table.Column(nullable: true), - StateOrProvinceId = table.Column(nullable: false), - CountryId = table.Column(maxLength: 450, nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ContactName = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Phone = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + AddressLine1 = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + AddressLine2 = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + City = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + ZipCode = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + DistrictId = table.Column(type: "bigint", nullable: true), + StateOrProvinceId = table.Column(type: "bigint", nullable: false), + CountryId = table.Column(type: "character varying(450)", maxLength: 450, nullable: false) }, constraints: table => { @@ -887,17 +910,17 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Orders_OrderAddress", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ContactName = table.Column(maxLength: 450, nullable: true), - Phone = table.Column(maxLength: 450, nullable: true), - AddressLine1 = table.Column(maxLength: 450, nullable: true), - AddressLine2 = table.Column(maxLength: 450, nullable: true), - City = table.Column(maxLength: 450, nullable: true), - ZipCode = table.Column(maxLength: 450, nullable: true), - DistrictId = table.Column(nullable: true), - StateOrProvinceId = table.Column(nullable: false), - CountryId = table.Column(maxLength: 450, nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ContactName = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Phone = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + AddressLine1 = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + AddressLine2 = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + City = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + ZipCode = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + DistrictId = table.Column(type: "bigint", nullable: true), + StateOrProvinceId = table.Column(type: "bigint", nullable: false), + CountryId = table.Column(type: "character varying(450)", maxLength: 450, nullable: true) }, constraints: table => { @@ -926,15 +949,15 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "ShippingTableRate_PriceAndDestination", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CountryId = table.Column(maxLength: 450, nullable: true), - StateOrProvinceId = table.Column(nullable: true), - DistrictId = table.Column(nullable: true), - ZipCode = table.Column(maxLength: 450, nullable: true), - Note = table.Column(nullable: true), - MinOrderSubtotal = table.Column(nullable: false), - ShippingPrice = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + CountryId = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + StateOrProvinceId = table.Column(type: "bigint", nullable: true), + DistrictId = table.Column(type: "bigint", nullable: true), + ZipCode = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Note = table.Column(type: "text", nullable: true), + MinOrderSubtotal = table.Column(type: "numeric", nullable: false), + ShippingPrice = table.Column(type: "numeric", nullable: false) }, constraints: table => { @@ -946,13 +969,13 @@ protected override void Up(MigrationBuilder migrationBuilder) principalColumn: "Id", onDelete: ReferentialAction.Restrict); table.ForeignKey( - name: "FK_ShippingTableRate_PriceAndDestination_Core_District_DistrictId", + name: "FK_ShippingTableRate_PriceAndDestination_Core_District_Distric~", column: x => x.DistrictId, principalTable: "Core_District", principalColumn: "Id", onDelete: ReferentialAction.Restrict); table.ForeignKey( - name: "FK_ShippingTableRate_PriceAndDestination_Core_StateOrProvince_StateOrProvinceId", + name: "FK_ShippingTableRate_PriceAndDestination_Core_StateOrProvince_~", column: x => x.StateOrProvinceId, principalTable: "Core_StateOrProvince", principalColumn: "Id", @@ -963,11 +986,11 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Inventory_Warehouse", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false), - AddressId = table.Column(nullable: false), - VendorId = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + AddressId = table.Column(type: "bigint", nullable: false), + VendorId = table.Column(type: "bigint", nullable: true) }, constraints: table => { @@ -990,45 +1013,45 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Catalog_Product", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false), - Slug = table.Column(maxLength: 450, nullable: false), - MetaTitle = table.Column(maxLength: 450, nullable: true), - MetaKeywords = table.Column(maxLength: 450, nullable: true), - MetaDescription = table.Column(nullable: true), - IsPublished = table.Column(nullable: false), - PublishedOn = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), - CreatedById = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false), - LatestUpdatedOn = table.Column(nullable: false), - LatestUpdatedById = table.Column(nullable: false), - ShortDescription = table.Column(maxLength: 450, nullable: true), - Description = table.Column(nullable: true), - Specification = table.Column(nullable: true), - Price = table.Column(nullable: false), - OldPrice = table.Column(nullable: true), - SpecialPrice = table.Column(nullable: true), - SpecialPriceStart = table.Column(nullable: true), - SpecialPriceEnd = table.Column(nullable: true), - HasOptions = table.Column(nullable: false), - IsVisibleIndividually = table.Column(nullable: false), - IsFeatured = table.Column(nullable: false), - IsCallForPricing = table.Column(nullable: false), - IsAllowToOrder = table.Column(nullable: false), - StockTrackingIsEnabled = table.Column(nullable: false), - StockQuantity = table.Column(nullable: false), - Sku = table.Column(maxLength: 450, nullable: true), - Gtin = table.Column(maxLength: 450, nullable: true), - NormalizedName = table.Column(maxLength: 450, nullable: true), - DisplayOrder = table.Column(nullable: false), - VendorId = table.Column(nullable: true), - ThumbnailImageId = table.Column(nullable: true), - ReviewsCount = table.Column(nullable: false), - RatingAverage = table.Column(nullable: true), - BrandId = table.Column(nullable: true), - TaxClassId = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ShortDescription = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Description = table.Column(type: "text", nullable: true), + Specification = table.Column(type: "text", nullable: true), + Price = table.Column(type: "numeric", nullable: false), + OldPrice = table.Column(type: "numeric", nullable: true), + SpecialPrice = table.Column(type: "numeric", nullable: true), + SpecialPriceStart = table.Column(type: "timestamp with time zone", nullable: true), + SpecialPriceEnd = table.Column(type: "timestamp with time zone", nullable: true), + HasOptions = table.Column(type: "boolean", nullable: false), + IsVisibleIndividually = table.Column(type: "boolean", nullable: false), + IsFeatured = table.Column(type: "boolean", nullable: false), + IsCallForPricing = table.Column(type: "boolean", nullable: false), + IsAllowToOrder = table.Column(type: "boolean", nullable: false), + StockTrackingIsEnabled = table.Column(type: "boolean", nullable: false), + StockQuantity = table.Column(type: "integer", nullable: false), + Sku = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Gtin = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + NormalizedName = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + DisplayOrder = table.Column(type: "integer", nullable: false), + VendorId = table.Column(type: "bigint", nullable: true), + ThumbnailImageId = table.Column(type: "bigint", nullable: true), + ReviewsCount = table.Column(type: "integer", nullable: false), + RatingAverage = table.Column(type: "double precision", nullable: true), + BrandId = table.Column(type: "bigint", nullable: true), + TaxClassId = table.Column(type: "bigint", nullable: true), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Slug = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + MetaTitle = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + MetaKeywords = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + MetaDescription = table.Column(type: "text", nullable: true), + IsPublished = table.Column(type: "boolean", nullable: false), + PublishedOn = table.Column(type: "timestamp with time zone", nullable: true), + IsDeleted = table.Column(type: "boolean", nullable: false), + CreatedById = table.Column(type: "bigint", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedById = table.Column(type: "bigint", nullable: false) }, constraints: table => { @@ -1039,57 +1062,57 @@ protected override void Up(MigrationBuilder migrationBuilder) principalTable: "Catalog_Brand", principalColumn: "Id", onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_Catalog_Product_Tax_TaxClass_TaxClassId", - column: x => x.TaxClassId, - principalTable: "Tax_TaxClass", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_Catalog_Product_Core_Media_ThumbnailImageId", column: x => x.ThumbnailImageId, principalTable: "Core_Media", principalColumn: "Id", onDelete: ReferentialAction.Restrict); + table.ForeignKey( + name: "FK_Catalog_Product_Tax_TaxClass_TaxClassId", + column: x => x.TaxClassId, + principalTable: "Tax_TaxClass", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable( name: "Catalog_ProductAttributeValue", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - AttributeId = table.Column(nullable: false), - ProductId = table.Column(nullable: false), - Value = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + AttributeId = table.Column(type: "bigint", nullable: false), + ProductId = table.Column(type: "bigint", nullable: false), + Value = table.Column(type: "text", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Catalog_ProductAttributeValue", x => x.Id); - table.ForeignKey( - name: "FK_Catalog_ProductAttributeValue_Catalog_ProductAttribute_AttributeId", - column: x => x.AttributeId, - principalTable: "Catalog_ProductAttribute", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_Catalog_ProductAttributeValue_Catalog_Product_ProductId", column: x => x.ProductId, principalTable: "Catalog_Product", principalColumn: "Id", onDelete: ReferentialAction.Restrict); + table.ForeignKey( + name: "FK_Catalog_ProductAttributeValue_Catalog_ProductAttribute_Attr~", + column: x => x.AttributeId, + principalTable: "Catalog_ProductAttribute", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable( name: "Catalog_ProductCategory", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - IsFeaturedProduct = table.Column(nullable: false), - DisplayOrder = table.Column(nullable: false), - CategoryId = table.Column(nullable: false), - ProductId = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + IsFeaturedProduct = table.Column(type: "boolean", nullable: false), + DisplayOrder = table.Column(type: "integer", nullable: false), + CategoryId = table.Column(type: "bigint", nullable: false), + ProductId = table.Column(type: "bigint", nullable: false) }, constraints: table => { @@ -1112,11 +1135,11 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Catalog_ProductLink", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ProductId = table.Column(nullable: false), - LinkedProductId = table.Column(nullable: false), - LinkType = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ProductId = table.Column(type: "bigint", nullable: false), + LinkedProductId = table.Column(type: "bigint", nullable: false), + LinkType = table.Column(type: "integer", nullable: false) }, constraints: table => { @@ -1139,96 +1162,96 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Catalog_ProductMedia", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ProductId = table.Column(nullable: false), - MediaId = table.Column(nullable: false), - DisplayOrder = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ProductId = table.Column(type: "bigint", nullable: false), + MediaId = table.Column(type: "bigint", nullable: false), + DisplayOrder = table.Column(type: "integer", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Catalog_ProductMedia", x => x.Id); - table.ForeignKey( - name: "FK_Catalog_ProductMedia_Core_Media_MediaId", - column: x => x.MediaId, - principalTable: "Core_Media", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_Catalog_ProductMedia_Catalog_Product_ProductId", column: x => x.ProductId, principalTable: "Catalog_Product", principalColumn: "Id", onDelete: ReferentialAction.Restrict); + table.ForeignKey( + name: "FK_Catalog_ProductMedia_Core_Media_MediaId", + column: x => x.MediaId, + principalTable: "Core_Media", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable( name: "Catalog_ProductOptionCombination", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ProductId = table.Column(nullable: false), - OptionId = table.Column(nullable: false), - Value = table.Column(maxLength: 450, nullable: true), - SortIndex = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ProductId = table.Column(type: "bigint", nullable: false), + OptionId = table.Column(type: "bigint", nullable: false), + Value = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + SortIndex = table.Column(type: "integer", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Catalog_ProductOptionCombination", x => x.Id); - table.ForeignKey( - name: "FK_Catalog_ProductOptionCombination_Catalog_ProductOption_OptionId", - column: x => x.OptionId, - principalTable: "Catalog_ProductOption", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_Catalog_ProductOptionCombination_Catalog_Product_ProductId", column: x => x.ProductId, principalTable: "Catalog_Product", principalColumn: "Id", onDelete: ReferentialAction.Restrict); + table.ForeignKey( + name: "FK_Catalog_ProductOptionCombination_Catalog_ProductOption_Opti~", + column: x => x.OptionId, + principalTable: "Catalog_ProductOption", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable( name: "Catalog_ProductOptionValue", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - OptionId = table.Column(nullable: false), - ProductId = table.Column(nullable: false), - Value = table.Column(maxLength: 450, nullable: true), - DisplayType = table.Column(maxLength: 450, nullable: true), - SortIndex = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + OptionId = table.Column(type: "bigint", nullable: false), + ProductId = table.Column(type: "bigint", nullable: false), + Value = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + DisplayType = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + SortIndex = table.Column(type: "integer", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Catalog_ProductOptionValue", x => x.Id); - table.ForeignKey( - name: "FK_Catalog_ProductOptionValue_Catalog_ProductOption_OptionId", - column: x => x.OptionId, - principalTable: "Catalog_ProductOption", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_Catalog_ProductOptionValue_Catalog_Product_ProductId", column: x => x.ProductId, principalTable: "Catalog_Product", principalColumn: "Id", onDelete: ReferentialAction.Restrict); + table.ForeignKey( + name: "FK_Catalog_ProductOptionValue_Catalog_ProductOption_OptionId", + column: x => x.OptionId, + principalTable: "Catalog_ProductOption", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable( name: "Inventory_Stock", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ProductId = table.Column(nullable: false), - WarehouseId = table.Column(nullable: false), - Quantity = table.Column(nullable: false), - ReservedQuantity = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ProductId = table.Column(type: "bigint", nullable: false), + WarehouseId = table.Column(type: "bigint", nullable: false), + Quantity = table.Column(type: "integer", nullable: false), + ReservedQuantity = table.Column(type: "integer", nullable: false) }, constraints: table => { @@ -1251,40 +1274,40 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Pricing_CartRuleProduct", columns: table => new { - ProductId = table.Column(nullable: false), - CartRuleId = table.Column(nullable: false) + ProductId = table.Column(type: "bigint", nullable: false), + CartRuleId = table.Column(type: "bigint", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Pricing_CartRuleProduct", x => new { x.CartRuleId, x.ProductId }); - table.ForeignKey( - name: "FK_Pricing_CartRuleProduct_Pricing_CartRule_CartRuleId", - column: x => x.CartRuleId, - principalTable: "Pricing_CartRule", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); table.ForeignKey( name: "FK_Pricing_CartRuleProduct_Catalog_Product_ProductId", column: x => x.ProductId, principalTable: "Catalog_Product", principalColumn: "Id", onDelete: ReferentialAction.Restrict); + table.ForeignKey( + name: "FK_Pricing_CartRuleProduct_Pricing_CartRule_CartRuleId", + column: x => x.CartRuleId, + principalTable: "Pricing_CartRule", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "Catalog_ProductPriceHistory", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ProductId = table.Column(nullable: true), - CreatedById = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false), - Price = table.Column(nullable: true), - OldPrice = table.Column(nullable: true), - SpecialPrice = table.Column(nullable: true), - SpecialPriceStart = table.Column(nullable: true), - SpecialPriceEnd = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ProductId = table.Column(type: "bigint", nullable: true), + CreatedById = table.Column(type: "bigint", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + Price = table.Column(type: "numeric", nullable: true), + OldPrice = table.Column(type: "numeric", nullable: true), + SpecialPrice = table.Column(type: "numeric", nullable: true), + SpecialPriceStart = table.Column(type: "timestamp with time zone", nullable: true), + SpecialPriceEnd = table.Column(type: "timestamp with time zone", nullable: true) }, constraints: table => { @@ -1301,14 +1324,14 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Inventory_StockHistory", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ProductId = table.Column(nullable: false), - WarehouseId = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false), - CreatedById = table.Column(nullable: false), - AdjustedQuantity = table.Column(nullable: false), - Note = table.Column(maxLength: 1000, nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ProductId = table.Column(type: "bigint", nullable: false), + WarehouseId = table.Column(type: "bigint", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + CreatedById = table.Column(type: "bigint", nullable: false), + AdjustedQuantity = table.Column(type: "bigint", nullable: false), + Note = table.Column(type: "character varying(1000)", maxLength: 1000, nullable: true) }, constraints: table => { @@ -1331,15 +1354,15 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Orders_OrderItem", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - OrderId = table.Column(nullable: true), - ProductId = table.Column(nullable: false), - ProductPrice = table.Column(nullable: false), - Quantity = table.Column(nullable: false), - DiscountAmount = table.Column(nullable: false), - TaxAmount = table.Column(nullable: false), - TaxPercent = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + OrderId = table.Column(type: "bigint", nullable: true), + ProductId = table.Column(type: "bigint", nullable: false), + ProductPrice = table.Column(type: "numeric", nullable: false), + Quantity = table.Column(type: "integer", nullable: false), + DiscountAmount = table.Column(type: "numeric", nullable: false), + TaxAmount = table.Column(type: "numeric", nullable: false), + TaxPercent = table.Column(type: "numeric", nullable: false) }, constraints: table => { @@ -1356,11 +1379,11 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "ProductComparison_ComparingProduct", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CreatedOn = table.Column(nullable: false), - UserId = table.Column(nullable: false), - ProductId = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + UserId = table.Column(type: "bigint", nullable: false), + ProductId = table.Column(type: "bigint", nullable: false) }, constraints: table => { @@ -1377,12 +1400,12 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Shipments_ShipmentItem", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ShipmentId = table.Column(nullable: false), - OrderItemId = table.Column(nullable: false), - ProductId = table.Column(nullable: false), - Quantity = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ShipmentId = table.Column(type: "bigint", nullable: false), + OrderItemId = table.Column(type: "bigint", nullable: false), + ProductId = table.Column(type: "bigint", nullable: false), + Quantity = table.Column(type: "integer", nullable: false) }, constraints: table => { @@ -1399,12 +1422,12 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "ShoppingCart_CartItem", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CreatedOn = table.Column(nullable: false), - ProductId = table.Column(nullable: false), - Quantity = table.Column(nullable: false), - CartId = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + ProductId = table.Column(type: "bigint", nullable: false), + Quantity = table.Column(type: "integer", nullable: false), + CartId = table.Column(type: "bigint", nullable: false) }, constraints: table => { @@ -1421,14 +1444,14 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "WishList_WishListItem", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - WishListId = table.Column(nullable: false), - ProductId = table.Column(nullable: false), - Description = table.Column(nullable: true), - Quantity = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false), - LatestUpdatedOn = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + WishListId = table.Column(type: "bigint", nullable: false), + ProductId = table.Column(type: "bigint", nullable: false), + Description = table.Column(type: "text", nullable: true), + Quantity = table.Column(type: "integer", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedOn = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { @@ -1445,12 +1468,12 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_UserAddress", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - UserId = table.Column(nullable: false), - AddressId = table.Column(nullable: false), - AddressType = table.Column(nullable: false), - LastUsedOn = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + UserId = table.Column(type: "bigint", nullable: false), + AddressId = table.Column(type: "bigint", nullable: false), + AddressType = table.Column(type: "integer", nullable: false), + LastUsedOn = table.Column(type: "timestamp with time zone", nullable: true) }, constraints: table => { @@ -1467,33 +1490,33 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_User", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - UserName = table.Column(maxLength: 256, nullable: true), - NormalizedUserName = table.Column(maxLength: 256, nullable: true), - Email = table.Column(maxLength: 256, nullable: true), - NormalizedEmail = table.Column(maxLength: 256, nullable: true), - EmailConfirmed = table.Column(nullable: false), - PasswordHash = table.Column(nullable: true), - SecurityStamp = table.Column(nullable: true), - ConcurrencyStamp = table.Column(nullable: true), - PhoneNumber = table.Column(nullable: true), - PhoneNumberConfirmed = table.Column(nullable: false), - TwoFactorEnabled = table.Column(nullable: false), - LockoutEnd = table.Column(nullable: true), - LockoutEnabled = table.Column(nullable: false), - AccessFailedCount = table.Column(nullable: false), - UserGuid = table.Column(nullable: false), - FullName = table.Column(maxLength: 450, nullable: false), - VendorId = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false), - LatestUpdatedOn = table.Column(nullable: false), - DefaultShippingAddressId = table.Column(nullable: true), - DefaultBillingAddressId = table.Column(nullable: true), - RefreshTokenHash = table.Column(maxLength: 450, nullable: true), - Culture = table.Column(maxLength: 450, nullable: true), - ExtensionData = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + UserGuid = table.Column(type: "uuid", nullable: false), + FullName = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + VendorId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "boolean", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedOn = table.Column(type: "timestamp with time zone", nullable: false), + DefaultShippingAddressId = table.Column(type: "bigint", nullable: true), + DefaultBillingAddressId = table.Column(type: "bigint", nullable: true), + RefreshTokenHash = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Culture = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + ExtensionData = table.Column(type: "text", nullable: true), + UserName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + NormalizedUserName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + Email = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + NormalizedEmail = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + EmailConfirmed = table.Column(type: "boolean", nullable: false), + PasswordHash = table.Column(type: "text", nullable: true), + SecurityStamp = table.Column(type: "text", nullable: true), + ConcurrencyStamp = table.Column(type: "text", nullable: true), + PhoneNumber = table.Column(type: "text", nullable: true), + PhoneNumberConfirmed = table.Column(type: "boolean", nullable: false), + TwoFactorEnabled = table.Column(type: "boolean", nullable: false), + LockoutEnd = table.Column(type: "timestamp with time zone", nullable: true), + LockoutEnabled = table.Column(type: "boolean", nullable: false), + AccessFailedCount = table.Column(type: "integer", nullable: false) }, constraints: table => { @@ -1522,21 +1545,21 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Cms_Page", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false), - Slug = table.Column(maxLength: 450, nullable: false), - MetaTitle = table.Column(maxLength: 450, nullable: true), - MetaKeywords = table.Column(maxLength: 450, nullable: true), - MetaDescription = table.Column(nullable: true), - IsPublished = table.Column(nullable: false), - PublishedOn = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), - CreatedById = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false), - LatestUpdatedOn = table.Column(nullable: false), - LatestUpdatedById = table.Column(nullable: false), - Body = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Body = table.Column(type: "text", nullable: true), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Slug = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + MetaTitle = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + MetaKeywords = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + MetaDescription = table.Column(type: "text", nullable: true), + IsPublished = table.Column(type: "boolean", nullable: false), + PublishedOn = table.Column(type: "timestamp with time zone", nullable: true), + IsDeleted = table.Column(type: "boolean", nullable: false), + CreatedById = table.Column(type: "bigint", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedById = table.Column(type: "bigint", nullable: false) }, constraints: table => { @@ -1559,16 +1582,16 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Comments_Comment", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - UserId = table.Column(nullable: false), - CommentText = table.Column(nullable: true), - CommenterName = table.Column(maxLength: 450, nullable: true), - Status = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false), - EntityTypeId = table.Column(maxLength: 450, nullable: true), - EntityId = table.Column(nullable: false), - ParentId = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + UserId = table.Column(type: "bigint", nullable: false), + CommentText = table.Column(type: "text", nullable: true), + CommenterName = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Status = table.Column(type: "integer", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + EntityTypeId = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + EntityId = table.Column(type: "bigint", nullable: false), + ParentId = table.Column(type: "bigint", nullable: true) }, constraints: table => { @@ -1591,8 +1614,8 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_CustomerGroupUser", columns: table => new { - UserId = table.Column(nullable: false), - CustomerGroupId = table.Column(nullable: false) + UserId = table.Column(type: "bigint", nullable: false), + CustomerGroupId = table.Column(type: "bigint", nullable: false) }, constraints: table => { @@ -1615,11 +1638,11 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_UserClaim", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - UserId = table.Column(nullable: false), - ClaimType = table.Column(nullable: true), - ClaimValue = table.Column(nullable: true) + Id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + UserId = table.Column(type: "bigint", nullable: false), + ClaimType = table.Column(type: "text", nullable: true), + ClaimValue = table.Column(type: "text", nullable: true) }, constraints: table => { @@ -1636,10 +1659,10 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_UserLogin", columns: table => new { - LoginProvider = table.Column(nullable: false), - ProviderKey = table.Column(nullable: false), - ProviderDisplayName = table.Column(nullable: true), - UserId = table.Column(nullable: false) + LoginProvider = table.Column(type: "text", nullable: false), + ProviderKey = table.Column(type: "text", nullable: false), + ProviderDisplayName = table.Column(type: "text", nullable: true), + UserId = table.Column(type: "bigint", nullable: false) }, constraints: table => { @@ -1656,8 +1679,8 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_UserRole", columns: table => new { - UserId = table.Column(nullable: false), - RoleId = table.Column(nullable: false) + UserId = table.Column(type: "bigint", nullable: false), + RoleId = table.Column(type: "bigint", nullable: false) }, constraints: table => { @@ -1680,10 +1703,10 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Core_UserToken", columns: table => new { - UserId = table.Column(nullable: false), - LoginProvider = table.Column(nullable: false), - Name = table.Column(nullable: false), - Value = table.Column(nullable: true) + UserId = table.Column(type: "bigint", nullable: false), + LoginProvider = table.Column(type: "text", nullable: false), + Name = table.Column(type: "text", nullable: false), + Value = table.Column(type: "text", nullable: true) }, constraints: table => { @@ -1700,27 +1723,33 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "News_NewsItem", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - Name = table.Column(maxLength: 450, nullable: false), - Slug = table.Column(maxLength: 450, nullable: false), - MetaTitle = table.Column(maxLength: 450, nullable: true), - MetaKeywords = table.Column(maxLength: 450, nullable: true), - MetaDescription = table.Column(nullable: true), - IsPublished = table.Column(nullable: false), - PublishedOn = table.Column(nullable: true), - IsDeleted = table.Column(nullable: false), - CreatedById = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false), - LatestUpdatedOn = table.Column(nullable: false), - LatestUpdatedById = table.Column(nullable: false), - ShortContent = table.Column(maxLength: 450, nullable: true), - FullContent = table.Column(nullable: true), - ThumbnailImageId = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ShortContent = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + FullContent = table.Column(type: "text", nullable: true), + ThumbnailImageId = table.Column(type: "bigint", nullable: true), + Name = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + Slug = table.Column(type: "character varying(450)", maxLength: 450, nullable: false), + MetaTitle = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + MetaKeywords = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + MetaDescription = table.Column(type: "text", nullable: true), + IsPublished = table.Column(type: "boolean", nullable: false), + PublishedOn = table.Column(type: "timestamp with time zone", nullable: true), + IsDeleted = table.Column(type: "boolean", nullable: false), + CreatedById = table.Column(type: "bigint", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedById = table.Column(type: "bigint", nullable: false) }, constraints: table => { table.PrimaryKey("PK_News_NewsItem", x => x.Id); + table.ForeignKey( + name: "FK_News_NewsItem_Core_Media_ThumbnailImageId", + column: x => x.ThumbnailImageId, + principalTable: "Core_Media", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_News_NewsItem_Core_User_CreatedById", column: x => x.CreatedById, @@ -1733,53 +1762,41 @@ protected override void Up(MigrationBuilder migrationBuilder) principalTable: "Core_User", principalColumn: "Id", onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_News_NewsItem_Core_Media_ThumbnailImageId", - column: x => x.ThumbnailImageId, - principalTable: "Core_Media", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable( name: "Orders_Order", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CustomerId = table.Column(nullable: false), - LatestUpdatedOn = table.Column(nullable: false), - LatestUpdatedById = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false), - CreatedById = table.Column(nullable: false), - VendorId = table.Column(nullable: true), - CouponCode = table.Column(maxLength: 450, nullable: true), - CouponRuleName = table.Column(maxLength: 450, nullable: true), - DiscountAmount = table.Column(nullable: false), - SubTotal = table.Column(nullable: false), - SubTotalWithDiscount = table.Column(nullable: false), - ShippingAddressId = table.Column(nullable: false), - BillingAddressId = table.Column(nullable: false), - OrderStatus = table.Column(nullable: false), - OrderNote = table.Column(maxLength: 1000, nullable: true), - ParentId = table.Column(nullable: true), - IsMasterOrder = table.Column(nullable: false), - ShippingMethod = table.Column(maxLength: 450, nullable: true), - ShippingFeeAmount = table.Column(nullable: false), - TaxAmount = table.Column(nullable: false), - OrderTotal = table.Column(nullable: false), - PaymentMethod = table.Column(maxLength: 450, nullable: true), - PaymentFeeAmount = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + CustomerId = table.Column(type: "bigint", nullable: false), + LatestUpdatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedById = table.Column(type: "bigint", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + CreatedById = table.Column(type: "bigint", nullable: false), + VendorId = table.Column(type: "bigint", nullable: true), + CouponCode = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + CouponRuleName = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + DiscountAmount = table.Column(type: "numeric", nullable: false), + SubTotal = table.Column(type: "numeric", nullable: false), + SubTotalWithDiscount = table.Column(type: "numeric", nullable: false), + ShippingAddressId = table.Column(type: "bigint", nullable: false), + BillingAddressId = table.Column(type: "bigint", nullable: false), + OrderStatus = table.Column(type: "integer", nullable: false), + OrderNote = table.Column(type: "character varying(1000)", maxLength: 1000, nullable: true), + ParentId = table.Column(type: "bigint", nullable: true), + IsMasterOrder = table.Column(type: "boolean", nullable: false), + ShippingMethod = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + ShippingFeeAmount = table.Column(type: "numeric", nullable: false), + TaxAmount = table.Column(type: "numeric", nullable: false), + OrderTotal = table.Column(type: "numeric", nullable: false), + PaymentMethod = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + PaymentFeeAmount = table.Column(type: "numeric", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Orders_Order", x => x.Id); - table.ForeignKey( - name: "FK_Orders_Order_Orders_OrderAddress_BillingAddressId", - column: x => x.BillingAddressId, - principalTable: "Orders_OrderAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_Orders_Order_Core_User_CreatedById", column: x => x.CreatedById, @@ -1804,6 +1821,12 @@ protected override void Up(MigrationBuilder migrationBuilder) principalTable: "Orders_Order", principalColumn: "Id", onDelete: ReferentialAction.Restrict); + table.ForeignKey( + name: "FK_Orders_Order_Orders_OrderAddress_BillingAddressId", + column: x => x.BillingAddressId, + principalTable: "Orders_OrderAddress", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_Orders_Order_Orders_OrderAddress_ShippingAddressId", column: x => x.ShippingAddressId, @@ -1816,17 +1839,23 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Pricing_CartRuleUsage", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CartRuleId = table.Column(nullable: false), - CouponId = table.Column(nullable: true), - UserId = table.Column(nullable: false), - OrderId = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + CartRuleId = table.Column(type: "bigint", nullable: false), + CouponId = table.Column(type: "bigint", nullable: true), + UserId = table.Column(type: "bigint", nullable: false), + OrderId = table.Column(type: "bigint", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Pricing_CartRuleUsage", x => x.Id); + table.ForeignKey( + name: "FK_Pricing_CartRuleUsage_Core_User_UserId", + column: x => x.UserId, + principalTable: "Core_User", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_Pricing_CartRuleUsage_Pricing_CartRule_CartRuleId", column: x => x.CartRuleId, @@ -1839,29 +1868,23 @@ protected override void Up(MigrationBuilder migrationBuilder) principalTable: "Pricing_Coupon", principalColumn: "Id", onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_Pricing_CartRuleUsage_Core_User_UserId", - column: x => x.UserId, - principalTable: "Core_User", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable( name: "Reviews_Review", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - UserId = table.Column(nullable: false), - Title = table.Column(maxLength: 450, nullable: true), - Comment = table.Column(nullable: true), - Rating = table.Column(nullable: false), - ReviewerName = table.Column(maxLength: 450, nullable: true), - Status = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false), - EntityTypeId = table.Column(maxLength: 450, nullable: true), - EntityId = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + UserId = table.Column(type: "bigint", nullable: false), + Title = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Comment = table.Column(type: "text", nullable: true), + Rating = table.Column(type: "integer", nullable: false), + ReviewerName = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Status = table.Column(type: "integer", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + EntityTypeId = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + EntityId = table.Column(type: "bigint", nullable: false) }, constraints: table => { @@ -1878,21 +1901,22 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "ShoppingCart_Cart", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - CustomerId = table.Column(nullable: false), - CreatedById = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false), - LatestUpdatedOn = table.Column(nullable: false), - IsActive = table.Column(nullable: false), - CouponCode = table.Column(maxLength: 450, nullable: true), - CouponRuleName = table.Column(maxLength: 450, nullable: true), - ShippingMethod = table.Column(maxLength: 450, nullable: true), - IsProductPriceIncludeTax = table.Column(nullable: false), - ShippingAmount = table.Column(nullable: true), - TaxAmount = table.Column(nullable: true), - ShippingData = table.Column(nullable: true), - OrderNote = table.Column(maxLength: 1000, nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + CustomerId = table.Column(type: "bigint", nullable: false), + CreatedById = table.Column(type: "bigint", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedOn = table.Column(type: "timestamp with time zone", nullable: false), + IsActive = table.Column(type: "boolean", nullable: false), + LockedOnCheckout = table.Column(type: "boolean", nullable: false), + CouponCode = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + CouponRuleName = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + ShippingMethod = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + IsProductPriceIncludeTax = table.Column(type: "boolean", nullable: false), + ShippingAmount = table.Column(type: "numeric", nullable: true), + TaxAmount = table.Column(type: "numeric", nullable: true), + ShippingData = table.Column(type: "text", nullable: true), + OrderNote = table.Column(type: "character varying(1000)", maxLength: 1000, nullable: true) }, constraints: table => { @@ -1915,12 +1939,12 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "WishList_WishList", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - UserId = table.Column(nullable: false), - SharingCode = table.Column(maxLength: 450, nullable: true), - CreatedOn = table.Column(nullable: false), - LatestUpdatedOn = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + UserId = table.Column(type: "bigint", nullable: false), + SharingCode = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedOn = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { @@ -1937,8 +1961,8 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "News_NewsItemCategory", columns: table => new { - CategoryId = table.Column(nullable: false), - NewsItemId = table.Column(nullable: false) + CategoryId = table.Column(type: "bigint", nullable: false), + NewsItemId = table.Column(type: "bigint", nullable: false) }, constraints: table => { @@ -1961,15 +1985,15 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Orders_OrderHistory", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - OrderId = table.Column(nullable: false), - OldStatus = table.Column(nullable: true), - NewStatus = table.Column(nullable: false), - OrderSnapshot = table.Column(nullable: true), - Note = table.Column(maxLength: 1000, nullable: true), - CreatedOn = table.Column(nullable: false), - CreatedById = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + OrderId = table.Column(type: "bigint", nullable: false), + OldStatus = table.Column(type: "integer", nullable: true), + NewStatus = table.Column(type: "integer", nullable: false), + OrderSnapshot = table.Column(type: "text", nullable: true), + Note = table.Column(type: "character varying(1000)", maxLength: 1000, nullable: true), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + CreatedById = table.Column(type: "bigint", nullable: false) }, constraints: table => { @@ -1992,17 +2016,17 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Payments_Payment", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - OrderId = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false), - LatestUpdatedOn = table.Column(nullable: false), - Amount = table.Column(nullable: false), - PaymentFee = table.Column(nullable: false), - PaymentMethod = table.Column(maxLength: 450, nullable: true), - GatewayTransactionId = table.Column(maxLength: 450, nullable: true), - Status = table.Column(nullable: false), - FailureMessage = table.Column(nullable: true) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + OrderId = table.Column(type: "bigint", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedOn = table.Column(type: "timestamp with time zone", nullable: false), + Amount = table.Column(type: "numeric", nullable: false), + PaymentFee = table.Column(type: "numeric", nullable: false), + PaymentMethod = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + GatewayTransactionId = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Status = table.Column(type: "integer", nullable: false), + FailureMessage = table.Column(type: "text", nullable: true) }, constraints: table => { @@ -2019,15 +2043,15 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "Shipments_Shipment", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - OrderId = table.Column(nullable: false), - TrackingNumber = table.Column(maxLength: 450, nullable: true), - WarehouseId = table.Column(nullable: false), - VendorId = table.Column(nullable: true), - CreatedById = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false), - LatestUpdatedOn = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + OrderId = table.Column(type: "bigint", nullable: false), + TrackingNumber = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + WarehouseId = table.Column(type: "bigint", nullable: false), + VendorId = table.Column(type: "bigint", nullable: true), + CreatedById = table.Column(type: "bigint", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false), + LatestUpdatedOn = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { @@ -2038,48 +2062,48 @@ protected override void Up(MigrationBuilder migrationBuilder) principalTable: "Core_User", principalColumn: "Id", onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_Shipments_Shipment_Orders_Order_OrderId", - column: x => x.OrderId, - principalTable: "Orders_Order", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_Shipments_Shipment_Inventory_Warehouse_WarehouseId", column: x => x.WarehouseId, principalTable: "Inventory_Warehouse", principalColumn: "Id", onDelete: ReferentialAction.Restrict); + table.ForeignKey( + name: "FK_Shipments_Shipment_Orders_Order_OrderId", + column: x => x.OrderId, + principalTable: "Orders_Order", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable( name: "Reviews_Reply", columns: table => new { - Id = table.Column(nullable: false) - .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), - ReviewId = table.Column(nullable: false), - UserId = table.Column(nullable: false), - Comment = table.Column(nullable: true), - ReplierName = table.Column(maxLength: 450, nullable: true), - Status = table.Column(nullable: false), - CreatedOn = table.Column(nullable: false) + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ReviewId = table.Column(type: "bigint", nullable: false), + UserId = table.Column(type: "bigint", nullable: false), + Comment = table.Column(type: "text", nullable: true), + ReplierName = table.Column(type: "character varying(450)", maxLength: 450, nullable: true), + Status = table.Column(type: "integer", nullable: false), + CreatedOn = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Reviews_Reply", x => x.Id); - table.ForeignKey( - name: "FK_Reviews_Reply_Reviews_Review_ReviewId", - column: x => x.ReviewId, - principalTable: "Reviews_Review", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_Reviews_Reply_Core_User_UserId", column: x => x.UserId, principalTable: "Core_User", principalColumn: "Id", onDelete: ReferentialAction.Restrict); + table.ForeignKey( + name: "FK_Reviews_Reply_Reviews_Review_ReviewId", + column: x => x.ReviewId, + principalTable: "Reviews_Review", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); }); migrationBuilder.InsertData( @@ -2110,18 +2134,24 @@ protected override void Up(MigrationBuilder migrationBuilder) columns: new[] { "Id", "IsVisibleInCommonSettingPage", "Module", "Value" }, values: new object[,] { - { "Theme", false, "Core", "Generic" }, { "Tax.DefaultTaxClassId", true, "Tax", "1" }, { "News.PageSize", true, "News", "10" }, + { "Localization.LocalizedConentEnable", true, "Localization", "true" }, { "SmtpPassword", false, "EmailSenderSmpt", "" }, { "SmtpUsername", false, "EmailSenderSmpt", "" }, { "SmtpPort", false, "EmailSenderSmpt", "587" }, { "SmtpServer", false, "EmailSenderSmpt", "smtp.gmail.com" }, - { "GoogleAppKey", false, "Contact", "" }, + { "Global.CurrencyDecimalPlace", true, "Core", "2" }, + { "Global.CurrencyCulture", true, "Core", "en-US" }, + { "Global.DefaultCultureUI", true, "Core", "en-US" }, + { "Theme", false, "Core", "Generic" }, + { "Global.AssetBundling", true, "Core", "false" }, { "Global.AssetVersion", true, "Core", "1.0" }, + { "GoogleAppKey", false, "Contact", "" }, { "Catalog.IsCommentsRequireApproval", true, "Catalog", "true" }, { "Catalog.IsProductPriceIncludeTax", true, "Catalog", "true" }, - { "Catalog.ProductPageSize", true, "Catalog", "10" } + { "Catalog.ProductPageSize", true, "Catalog", "10" }, + { "Global.DefaultCultureAdminUI", true, "Core", "en-US" } }); migrationBuilder.InsertData( @@ -2138,12 +2168,12 @@ protected override void Up(MigrationBuilder migrationBuilder) columns: new[] { "Id", "AreaName", "IsMenuable", "RoutingAction", "RoutingController" }, values: new object[,] { + { "NewsCategory", "News", true, "NewsCategoryDetail", "NewsCategory" }, { "NewsItem", "News", false, "NewsItemDetail", "NewsItem" }, { "Vendor", "Core", false, "VendorDetail", "Vendor" }, - { "NewsCategory", "News", true, "NewsCategoryDetail", "NewsCategory" }, { "Page", "Cms", true, "PageDetail", "Page" }, - { "Category", "Catalog", true, "CategoryDetail", "Category" }, { "Brand", "Catalog", true, "BrandDetail", "Brand" }, + { "Category", "Catalog", true, "CategoryDetail", "Category" }, { "Product", "Catalog", false, "ProductDetail", "Product" } }); @@ -2204,7 +2234,10 @@ protected override void Up(MigrationBuilder migrationBuilder) { "Braintree", "{\"PublicKey\": \"6j4d7qspt5n48kx4\", \"PrivateKey\" : \"bd1c26e53a6d811243fcc3eb268113e1\", \"MerchantId\" : \"ncsh7wwqvzs3cx9q\", \"IsProduction\" : \"false\"}", "payments-braintree-config", true, "BraintreeLanding", "Braintree" }, { "CoD", null, "payments-cod-config", true, "CoDLanding", "Cash On Delivery" }, { "PaypalExpress", "{ \"IsSandbox\":true, \"ClientId\":\"\", \"ClientSecret\":\"\" }", "payments-paypalExpress-config", true, "PaypalExpressLanding", "Paypal Express" }, - { "Stripe", "{\"PublicKey\": \"pk_test_6pRNASCoBOKtIshFeQd4XMUh\", \"PrivateKey\" : \"sk_test_BQokikJOvBiI2HlWgH4olfQ2\"}", "payments-stripe-config", true, "StripeLanding", "Stripe" } + { "Stripe", "{\"PublicKey\": \"pk_test_6pRNASCoBOKtIshFeQd4XMUh\", \"PrivateKey\" : \"sk_test_BQokikJOvBiI2HlWgH4olfQ2\"}", "payments-stripe-config", true, "StripeLanding", "Stripe" }, + { "MomoPayment", "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420180417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}", "payments-momo-config", true, "MomoLanding", "Momo Payment" }, + { "NganLuong", "{\"IsSandbox\":true, \"MerchantId\": 47249, \"MerchantPassword\": \"e530745693dbde678f9da98a7c821a07\", \"ReceiverEmail\": \"nlqthien@gmail.com\"}", "payments-nganluong-config", true, "NganLuongLanding", "Ngan Luong Payment" }, + { "Cashfree", "{ \"IsSandbox\":true, \"AppId\":\"358035b02486f36ca27904540853\", \"SecretKey\":\"26f48dcd6a27f89f59f28e65849e587916dd57b9\" }", "payments-cashfree-config", true, "CashfreeLanding", "Cashfree Payment Gateway" } }); migrationBuilder.InsertData( @@ -2224,17 +2257,16 @@ protected override void Up(MigrationBuilder migrationBuilder) migrationBuilder.InsertData( table: "Core_StateOrProvince", columns: new[] { "Id", "Code", "CountryId", "Name", "Type" }, - values: new object[] { 1L, null, "VN", "Hồ Chí Minh", "Thành Phố" }); - - migrationBuilder.InsertData( - table: "Core_StateOrProvince", - columns: new[] { "Id", "Code", "CountryId", "Name", "Type" }, - values: new object[] { 2L, "WA", "US", "Washington", null }); + values: new object[,] + { + { 1L, null, "VN", "Hồ Chí Minh", "Thành Phố" }, + { 2L, "WA", "US", "Washington", null } + }); migrationBuilder.InsertData( table: "Core_UserRole", - columns: new[] { "UserId", "RoleId" }, - values: new object[] { 10L, 1L }); + columns: new[] { "RoleId", "UserId" }, + values: new object[] { 1L, 10L }); migrationBuilder.InsertData( table: "Core_Address", @@ -2244,12 +2276,11 @@ protected override void Up(MigrationBuilder migrationBuilder) migrationBuilder.InsertData( table: "Core_District", columns: new[] { "Id", "Location", "Name", "StateOrProvinceId", "Type" }, - values: new object[] { 1L, null, "Quận 1", 1L, "Quận" }); - - migrationBuilder.InsertData( - table: "Core_District", - columns: new[] { "Id", "Location", "Name", "StateOrProvinceId", "Type" }, - values: new object[] { 2L, null, "Quận 2", 1L, "Quận" }); + values: new object[,] + { + { 1L, null, "Quận 1", 1L, "Quận" }, + { 2L, null, "Quận 2", 1L, "Quận" } + }); migrationBuilder.InsertData( table: "Inventory_Warehouse", @@ -2456,8 +2487,7 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "RoleNameIndex", table: "Core_Role", column: "NormalizedName", - unique: true, - filter: "[NormalizedName] IS NOT NULL"); + unique: true); migrationBuilder.CreateIndex( name: "IX_Core_RoleClaim_RoleId", @@ -2469,6 +2499,11 @@ protected override void Up(MigrationBuilder migrationBuilder) table: "Core_StateOrProvince", column: "CountryId"); + migrationBuilder.CreateIndex( + name: "EmailIndex", + table: "Core_User", + column: "NormalizedEmail"); + migrationBuilder.CreateIndex( name: "IX_Core_User_DefaultBillingAddressId", table: "Core_User", @@ -2480,21 +2515,15 @@ protected override void Up(MigrationBuilder migrationBuilder) column: "DefaultShippingAddressId"); migrationBuilder.CreateIndex( - name: "EmailIndex", + name: "IX_Core_User_VendorId", table: "Core_User", - column: "NormalizedEmail"); + column: "VendorId"); migrationBuilder.CreateIndex( name: "UserNameIndex", table: "Core_User", column: "NormalizedUserName", - unique: true, - filter: "[NormalizedUserName] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Core_User_VendorId", - table: "Core_User", - column: "VendorId"); + unique: true); migrationBuilder.CreateIndex( name: "IX_Core_UserAddress_AddressId", @@ -2566,6 +2595,11 @@ protected override void Up(MigrationBuilder migrationBuilder) table: "Inventory_Warehouse", column: "VendorId"); + migrationBuilder.CreateIndex( + name: "IX_Localization_LocalizedContentProperty_CultureId", + table: "Localization_LocalizedContentProperty", + column: "CultureId"); + migrationBuilder.CreateIndex( name: "IX_Localization_Resource_CultureId", table: "Localization_Resource", @@ -2972,6 +3006,9 @@ protected override void Down(MigrationBuilder migrationBuilder) migrationBuilder.DropTable( name: "Inventory_StockHistory"); + migrationBuilder.DropTable( + name: "Localization_LocalizedContentProperty"); + migrationBuilder.DropTable( name: "Localization_Resource"); @@ -3048,10 +3085,10 @@ protected override void Down(MigrationBuilder migrationBuilder) name: "Catalog_ProductTemplate"); migrationBuilder.DropTable( - name: "Core_Entity"); + name: "Cms_Menu"); migrationBuilder.DropTable( - name: "Cms_Menu"); + name: "Core_Entity"); migrationBuilder.DropTable( name: "Contacts_ContactArea"); @@ -3081,10 +3118,10 @@ protected override void Down(MigrationBuilder migrationBuilder) name: "Pricing_Coupon"); migrationBuilder.DropTable( - name: "Pricing_CatalogRule"); + name: "Core_CustomerGroup"); migrationBuilder.DropTable( - name: "Core_CustomerGroup"); + name: "Pricing_CatalogRule"); migrationBuilder.DropTable( name: "Reviews_Review"); @@ -3111,19 +3148,19 @@ protected override void Down(MigrationBuilder migrationBuilder) name: "Pricing_CartRule"); migrationBuilder.DropTable( - name: "Orders_Order"); + name: "Inventory_Warehouse"); migrationBuilder.DropTable( - name: "Inventory_Warehouse"); + name: "Orders_Order"); migrationBuilder.DropTable( name: "Catalog_Brand"); migrationBuilder.DropTable( - name: "Tax_TaxClass"); + name: "Core_Media"); migrationBuilder.DropTable( - name: "Core_Media"); + name: "Tax_TaxClass"); migrationBuilder.DropTable( name: "Orders_OrderAddress"); diff --git a/src/SimplCommerce.WebHost/Migrations/SimplDbContextModelSnapshot.cs b/src/SimplCommerce.WebHost/Migrations/SimplDbContextModelSnapshot.cs index 21da213780..83cadd2216 100644 --- a/src/SimplCommerce.WebHost/Migrations/SimplDbContextModelSnapshot.cs +++ b/src/SimplCommerce.WebHost/Migrations/SimplDbContextModelSnapshot.cs @@ -2,8 +2,8 @@ using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using SimplCommerce.Module.Core.Data; namespace SimplCommerce.WebHost.Migrations @@ -15,21 +15,25 @@ protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("ProductVersion", "2.2.6-servicing-10079") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .UseIdentityByDefaultColumns() + .HasAnnotation("Relational:MaxIdentifierLength", 63) + .HasAnnotation("ProductVersion", "5.0.0"); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("integer") + .UseIdentityByDefaultColumn(); - b.Property("ClaimType"); + b.Property("ClaimType") + .HasColumnType("text"); - b.Property("ClaimValue"); + b.Property("ClaimValue") + .HasColumnType("text"); - b.Property("RoleId"); + b.Property("RoleId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -42,13 +46,17 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("integer") + .UseIdentityByDefaultColumn(); - b.Property("ClaimType"); + b.Property("ClaimType") + .HasColumnType("text"); - b.Property("ClaimValue"); + b.Property("ClaimValue") + .HasColumnType("text"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -59,13 +67,17 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { - b.Property("LoginProvider"); + b.Property("LoginProvider") + .HasColumnType("text"); - b.Property("ProviderKey"); + b.Property("ProviderKey") + .HasColumnType("text"); - b.Property("ProviderDisplayName"); + b.Property("ProviderDisplayName") + .HasColumnType("text"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("LoginProvider", "ProviderKey"); @@ -76,13 +88,17 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); - b.Property("LoginProvider"); + b.Property("LoginProvider") + .HasColumnType("text"); - b.Property("Name"); + b.Property("Name") + .HasColumnType("text"); - b.Property("Value"); + b.Property("Value") + .HasColumnType("text"); b.HasKey("UserId", "LoginProvider", "Name"); @@ -92,11 +108,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Culture", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .HasColumnType("text"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -114,21 +131,27 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("CultureId") - .IsRequired(); + .IsRequired() + .HasColumnType("text"); - b.Property("EntityId"); + b.Property("EntityId") + .HasColumnType("bigint"); b.Property("EntityType") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("ProperyName") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("Value"); + b.Property("Value") + .HasColumnType("text"); b.HasKey("Id"); @@ -141,16 +164,20 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("CultureId") - .IsRequired(); + .IsRequired() + .HasColumnType("text"); b.Property("Key") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("Value"); + b.Property("Value") + .HasColumnType("text"); b.HasKey("Id"); @@ -163,19 +190,25 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("ActivityTypeId"); + b.Property("ActivityTypeId") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("EntityId"); + b.Property("EntityId") + .HasColumnType("bigint"); b.Property("EntityTypeId") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -188,11 +221,13 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -210,21 +245,27 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -235,37 +276,50 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("DisplayOrder"); + b.Property("DisplayOrder") + .HasColumnType("integer"); - b.Property("IncludeInMenu"); + b.Property("IncludeInMenu") + .HasColumnType("boolean"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); - b.Property("MetaDescription"); + b.Property("MetaDescription") + .HasColumnType("text"); b.Property("MetaKeywords") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("MetaTitle") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ParentId"); + b.Property("ParentId") + .HasColumnType("bigint"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ThumbnailImageId"); + b.Property("ThumbnailImageId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -280,91 +334,129 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("BrandId"); + b.Property("BrandId") + .HasColumnType("bigint"); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("DisplayOrder"); + b.Property("DisplayOrder") + .HasColumnType("integer"); b.Property("Gtin") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("HasOptions"); + b.Property("HasOptions") + .HasColumnType("boolean"); - b.Property("IsAllowToOrder"); + b.Property("IsAllowToOrder") + .HasColumnType("boolean"); - b.Property("IsCallForPricing"); + b.Property("IsCallForPricing") + .HasColumnType("boolean"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("IsFeatured"); + b.Property("IsFeatured") + .HasColumnType("boolean"); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); - b.Property("IsVisibleIndividually"); + b.Property("IsVisibleIndividually") + .HasColumnType("boolean"); - b.Property("LatestUpdatedById"); + b.Property("LatestUpdatedById") + .HasColumnType("bigint"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("MetaDescription"); + b.Property("MetaDescription") + .HasColumnType("text"); b.Property("MetaKeywords") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("MetaTitle") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("NormalizedName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("OldPrice"); + b.Property("OldPrice") + .HasColumnType("numeric"); - b.Property("Price"); + b.Property("Price") + .HasColumnType("numeric"); - b.Property("PublishedOn"); + b.Property("PublishedOn") + .HasColumnType("timestamp with time zone"); - b.Property("RatingAverage"); + b.Property("RatingAverage") + .HasColumnType("double precision"); - b.Property("ReviewsCount"); + b.Property("ReviewsCount") + .HasColumnType("integer"); b.Property("ShortDescription") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Sku") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("SpecialPrice"); + b.Property("SpecialPrice") + .HasColumnType("numeric"); - b.Property("SpecialPriceEnd"); + b.Property("SpecialPriceEnd") + .HasColumnType("timestamp with time zone"); - b.Property("SpecialPriceStart"); + b.Property("SpecialPriceStart") + .HasColumnType("timestamp with time zone"); - b.Property("Specification"); + b.Property("Specification") + .HasColumnType("text"); - b.Property("StockQuantity"); + b.Property("StockQuantity") + .HasColumnType("integer"); - b.Property("StockTrackingIsEnabled"); + b.Property("StockTrackingIsEnabled") + .HasColumnType("boolean"); - b.Property("TaxClassId"); + b.Property("TaxClassId") + .HasColumnType("bigint"); - b.Property("ThumbnailImageId"); + b.Property("ThumbnailImageId") + .HasColumnType("bigint"); - b.Property("VendorId"); + b.Property("VendorId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -385,13 +477,16 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("GroupId"); + b.Property("GroupId") + .HasColumnType("bigint"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -404,11 +499,13 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -419,13 +516,17 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("AttributeId"); + b.Property("AttributeId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("Value"); + b.Property("Value") + .HasColumnType("text"); b.HasKey("Id"); @@ -440,15 +541,20 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CategoryId"); + b.Property("CategoryId") + .HasColumnType("bigint"); - b.Property("DisplayOrder"); + b.Property("DisplayOrder") + .HasColumnType("integer"); - b.Property("IsFeaturedProduct"); + b.Property("IsFeaturedProduct") + .HasColumnType("boolean"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -463,13 +569,17 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("LinkType"); + b.Property("LinkType") + .HasColumnType("integer"); - b.Property("LinkedProductId"); + b.Property("LinkedProductId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -484,13 +594,17 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("DisplayOrder"); + b.Property("DisplayOrder") + .HasColumnType("integer"); - b.Property("MediaId"); + b.Property("MediaId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -505,11 +619,13 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -532,16 +648,21 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("OptionId"); + b.Property("OptionId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("SortIndex"); + b.Property("SortIndex") + .HasColumnType("integer"); b.Property("Value") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -556,19 +677,25 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("DisplayType") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("OptionId"); + b.Property("OptionId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("SortIndex"); + b.Property("SortIndex") + .HasColumnType("integer"); b.Property("Value") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -583,23 +710,32 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("OldPrice"); + b.Property("OldPrice") + .HasColumnType("numeric"); - b.Property("Price"); + b.Property("Price") + .HasColumnType("numeric"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("SpecialPrice"); + b.Property("SpecialPrice") + .HasColumnType("numeric"); - b.Property("SpecialPriceEnd"); + b.Property("SpecialPriceEnd") + .HasColumnType("timestamp with time zone"); - b.Property("SpecialPriceStart"); + b.Property("SpecialPriceStart") + .HasColumnType("timestamp with time zone"); b.HasKey("Id"); @@ -614,11 +750,13 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -627,9 +765,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => { - b.Property("ProductTemplateId"); + b.Property("ProductTemplateId") + .HasColumnType("bigint"); - b.Property("ProductAttributeId"); + b.Property("ProductAttributeId") + .HasColumnType("bigint"); b.HasKey("ProductTemplateId", "ProductAttributeId"); @@ -642,15 +782,19 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); - b.Property("IsSystem"); + b.Property("IsSystem") + .HasColumnType("boolean"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -677,21 +821,28 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("CustomLink") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("DisplayOrder"); + b.Property("DisplayOrder") + .HasColumnType("integer"); - b.Property("EntityId"); + b.Property("EntityId") + .HasColumnType("bigint"); - b.Property("MenuId"); + b.Property("MenuId") + .HasColumnType("bigint"); b.Property("Name") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ParentId"); + b.Property("ParentId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -708,39 +859,53 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Body"); + b.Property("Body") + .HasColumnType("text"); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); - b.Property("LatestUpdatedById"); + b.Property("LatestUpdatedById") + .HasColumnType("bigint"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("MetaDescription"); + b.Property("MetaDescription") + .HasColumnType("text"); b.Property("MetaKeywords") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("MetaTitle") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("PublishedOn"); + b.Property("PublishedOn") + .HasColumnType("timestamp with time zone"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -755,25 +920,34 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CommentText"); + b.Property("CommentText") + .HasColumnType("text"); b.Property("CommenterName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("EntityId"); + b.Property("EntityId") + .HasColumnType("bigint"); b.Property("EntityTypeId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ParentId"); + b.Property("ParentId") + .HasColumnType("bigint"); - b.Property("Status"); + b.Property("Status") + .HasColumnType("integer"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -788,27 +962,36 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Address") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ContactAreaId"); + b.Property("ContactAreaId") + .HasColumnType("bigint"); - b.Property("Content"); + b.Property("Content") + .HasColumnType("text"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); b.Property("EmailAddress") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("FullName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); b.Property("PhoneNumber") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -821,13 +1004,16 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -838,33 +1024,43 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("AddressLine1") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("AddressLine2") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("City") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("ContactName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("CountryId") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("DistrictId"); + b.Property("DistrictId") + .HasColumnType("bigint"); b.Property("Phone") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("StateOrProvinceId"); + b.Property("StateOrProvinceId") + .HasColumnType("bigint"); b.Property("ZipCode") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -890,15 +1086,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Core.Models.AppSetting", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .HasColumnType("text"); - b.Property("IsVisibleInCommonSettingPage"); + b.Property("IsVisibleInCommonSettingPage") + .HasColumnType("boolean"); b.Property("Module") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Value") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -962,6 +1161,13 @@ protected override void BuildModel(ModelBuilder modelBuilder) Value = "en-US" }, new + { + Id = "Global.DefaultCultureAdminUI", + IsVisibleInCommonSettingPage = true, + Module = "Core", + Value = "en-US" + }, + new { Id = "Global.CurrencyCulture", IsVisibleInCommonSettingPage = true, @@ -1029,24 +1235,31 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Core.Models.Country", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .HasColumnType("text"); b.Property("Code3") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("IsBillingEnabled"); + b.Property("IsBillingEnabled") + .HasColumnType("boolean"); - b.Property("IsCityEnabled"); + b.Property("IsCityEnabled") + .HasColumnType("boolean"); - b.Property("IsDistrictEnabled"); + b.Property("IsDistrictEnabled") + .HasColumnType("boolean"); - b.Property("IsShippingEnabled"); + b.Property("IsShippingEnabled") + .HasColumnType("boolean"); - b.Property("IsZipCodeEnabled"); + b.Property("IsZipCodeEnabled") + .HasColumnType("boolean"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1081,21 +1294,28 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("IsActive"); + b.Property("IsActive") + .HasColumnType("boolean"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1107,9 +1327,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => { - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); - b.Property("CustomerGroupId"); + b.Property("CustomerGroupId") + .HasColumnType("bigint"); b.HasKey("UserId", "CustomerGroupId"); @@ -1122,18 +1344,23 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Location"); + b.Property("Location") + .HasColumnType("text"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("StateOrProvinceId"); + b.Property("StateOrProvinceId") + .HasColumnType("bigint"); b.Property("Type") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1162,20 +1389,25 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("EntityId"); + b.Property("EntityId") + .HasColumnType("bigint"); b.Property("EntityTypeId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1187,18 +1419,22 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Core.Models.EntityType", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .HasColumnType("text"); b.Property("AreaName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("IsMenuable"); + b.Property("IsMenuable") + .HasColumnType("boolean"); b.Property("RoutingAction") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("RoutingController") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1267,17 +1503,22 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Caption") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("FileName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("FileSize"); + b.Property("FileSize") + .HasColumnType("integer"); - b.Property("MediaType"); + b.Property("MediaType") + .HasColumnType("integer"); b.HasKey("Id"); @@ -1288,23 +1529,26 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); + .IsConcurrencyToken() + .HasColumnType("text"); b.Property("Name") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("character varying(256)"); b.Property("NormalizedName") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("character varying(256)"); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() - .HasName("RoleNameIndex") - .HasFilter("[NormalizedName] IS NOT NULL"); + .HasDatabaseName("RoleNameIndex"); b.ToTable("Core_Role"); @@ -1343,20 +1587,25 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Code") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("CountryId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Type") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1385,66 +1634,92 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("AccessFailedCount"); + b.Property("AccessFailedCount") + .HasColumnType("integer"); b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); + .IsConcurrencyToken() + .HasColumnType("text"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); b.Property("Culture") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("DefaultBillingAddressId"); + b.Property("DefaultBillingAddressId") + .HasColumnType("bigint"); - b.Property("DefaultShippingAddressId"); + b.Property("DefaultShippingAddressId") + .HasColumnType("bigint"); b.Property("Email") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("character varying(256)"); - b.Property("EmailConfirmed"); + b.Property("EmailConfirmed") + .HasColumnType("boolean"); - b.Property("ExtensionData"); + b.Property("ExtensionData") + .HasColumnType("text"); b.Property("FullName") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("LockoutEnabled"); + b.Property("LockoutEnabled") + .HasColumnType("boolean"); - b.Property("LockoutEnd"); + b.Property("LockoutEnd") + .HasColumnType("timestamp with time zone"); b.Property("NormalizedEmail") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("character varying(256)"); b.Property("NormalizedUserName") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("character varying(256)"); - b.Property("PasswordHash"); + b.Property("PasswordHash") + .HasColumnType("text"); - b.Property("PhoneNumber"); + b.Property("PhoneNumber") + .HasColumnType("text"); - b.Property("PhoneNumberConfirmed"); + b.Property("PhoneNumberConfirmed") + .HasColumnType("boolean"); b.Property("RefreshTokenHash") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("SecurityStamp"); + b.Property("SecurityStamp") + .HasColumnType("text"); - b.Property("TwoFactorEnabled"); + b.Property("TwoFactorEnabled") + .HasColumnType("boolean"); - b.Property("UserGuid"); + b.Property("UserGuid") + .HasColumnType("uuid"); b.Property("UserName") - .HasMaxLength(256); + .HasMaxLength(256) + .HasColumnType("character varying(256)"); - b.Property("VendorId"); + b.Property("VendorId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -1453,12 +1728,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasIndex("DefaultShippingAddressId"); b.HasIndex("NormalizedEmail") - .HasName("EmailIndex"); + .HasDatabaseName("EmailIndex"); b.HasIndex("NormalizedUserName") .IsUnique() - .HasName("UserNameIndex") - .HasFilter("[NormalizedUserName] IS NOT NULL"); + .HasDatabaseName("UserNameIndex"); b.HasIndex("VendorId"); @@ -1513,15 +1787,20 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("AddressId"); + b.Property("AddressId") + .HasColumnType("bigint"); - b.Property("AddressType"); + b.Property("AddressType") + .HasColumnType("integer"); - b.Property("LastUsedOn"); + b.Property("LastUsedOn") + .HasColumnType("timestamp with time zone"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -1534,9 +1813,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => { - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); - b.Property("RoleId"); + b.Property("RoleId") + .HasColumnType("bigint"); b.HasKey("UserId", "RoleId"); @@ -1556,27 +1837,36 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("Email"); + b.Property("Email") + .HasColumnType("text"); - b.Property("IsActive"); + b.Property("IsActive") + .HasColumnType("boolean"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1586,24 +1876,30 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Core.Models.Widget", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .HasColumnType("text"); b.Property("CreateUrl") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); b.Property("EditUrl") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("ViewComponentName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1686,29 +1982,40 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("Data"); + b.Property("Data") + .HasColumnType("text"); - b.Property("DisplayOrder"); + b.Property("DisplayOrder") + .HasColumnType("integer"); - b.Property("HtmlData"); + b.Property("HtmlData") + .HasColumnType("text"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); b.Property("Name") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("PublishEnd"); + b.Property("PublishEnd") + .HasColumnType("timestamp with time zone"); - b.Property("PublishStart"); + b.Property("PublishStart") + .HasColumnType("timestamp with time zone"); b.Property("WidgetId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("WidgetZoneId"); + b.Property("WidgetZoneId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -1723,13 +2030,16 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1757,15 +2067,20 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("Quantity"); + b.Property("Quantity") + .HasColumnType("integer"); - b.Property("ReservedQuantity"); + b.Property("ReservedQuantity") + .HasColumnType("integer"); - b.Property("WarehouseId"); + b.Property("WarehouseId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -1780,20 +2095,27 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("AdjustedQuantity"); + b.Property("AdjustedQuantity") + .HasColumnType("bigint"); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); b.Property("Note") - .HasMaxLength(1000); + .HasMaxLength(1000) + .HasColumnType("character varying(1000)"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("WarehouseId"); + b.Property("WarehouseId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -1810,15 +2132,19 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("AddressId"); + b.Property("AddressId") + .HasColumnType("bigint"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("VendorId"); + b.Property("VendorId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -1841,31 +2167,41 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("DisplayOrder"); + b.Property("DisplayOrder") + .HasColumnType("integer"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); - b.Property("MetaDescription"); + b.Property("MetaDescription") + .HasColumnType("text"); b.Property("MetaKeywords") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("MetaTitle") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -1876,44 +2212,60 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("FullContent"); + b.Property("FullContent") + .HasColumnType("text"); - b.Property("IsDeleted"); + b.Property("IsDeleted") + .HasColumnType("boolean"); - b.Property("IsPublished"); + b.Property("IsPublished") + .HasColumnType("boolean"); - b.Property("LatestUpdatedById"); + b.Property("LatestUpdatedById") + .HasColumnType("bigint"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("MetaDescription"); + b.Property("MetaDescription") + .HasColumnType("text"); b.Property("MetaKeywords") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("MetaTitle") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("PublishedOn"); + b.Property("PublishedOn") + .HasColumnType("timestamp with time zone"); b.Property("ShortContent") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Slug") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ThumbnailImageId"); + b.Property("ThumbnailImageId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -1928,9 +2280,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => { - b.Property("CategoryId"); + b.Property("CategoryId") + .HasColumnType("bigint"); - b.Property("NewsItemId"); + b.Property("NewsItemId") + .HasColumnType("bigint"); b.HasKey("CategoryId", "NewsItemId"); @@ -1943,58 +2297,82 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("BillingAddressId"); + b.Property("BillingAddressId") + .HasColumnType("bigint"); b.Property("CouponCode") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("CouponRuleName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("CustomerId"); + b.Property("CustomerId") + .HasColumnType("bigint"); - b.Property("DiscountAmount"); + b.Property("DiscountAmount") + .HasColumnType("numeric"); - b.Property("IsMasterOrder"); + b.Property("IsMasterOrder") + .HasColumnType("boolean"); - b.Property("LatestUpdatedById"); + b.Property("LatestUpdatedById") + .HasColumnType("bigint"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); b.Property("OrderNote") - .HasMaxLength(1000); + .HasMaxLength(1000) + .HasColumnType("character varying(1000)"); - b.Property("OrderStatus"); + b.Property("OrderStatus") + .HasColumnType("integer"); - b.Property("OrderTotal"); + b.Property("OrderTotal") + .HasColumnType("numeric"); - b.Property("ParentId"); + b.Property("ParentId") + .HasColumnType("bigint"); - b.Property("PaymentFeeAmount"); + b.Property("PaymentFeeAmount") + .HasColumnType("numeric"); b.Property("PaymentMethod") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ShippingAddressId"); + b.Property("ShippingAddressId") + .HasColumnType("bigint"); - b.Property("ShippingFeeAmount"); + b.Property("ShippingFeeAmount") + .HasColumnType("numeric"); b.Property("ShippingMethod") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("SubTotal"); + b.Property("SubTotal") + .HasColumnType("numeric"); - b.Property("SubTotalWithDiscount"); + b.Property("SubTotalWithDiscount") + .HasColumnType("numeric"); - b.Property("TaxAmount"); + b.Property("TaxAmount") + .HasColumnType("numeric"); - b.Property("VendorId"); + b.Property("VendorId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2017,32 +2395,42 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("AddressLine1") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("AddressLine2") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("City") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("ContactName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("CountryId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("DistrictId"); + b.Property("DistrictId") + .HasColumnType("bigint"); b.Property("Phone") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("StateOrProvinceId"); + b.Property("StateOrProvinceId") + .HasColumnType("bigint"); b.Property("ZipCode") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -2059,22 +2447,30 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("NewStatus"); + b.Property("NewStatus") + .HasColumnType("integer"); b.Property("Note") - .HasMaxLength(1000); + .HasMaxLength(1000) + .HasColumnType("character varying(1000)"); - b.Property("OldStatus"); + b.Property("OldStatus") + .HasColumnType("integer"); - b.Property("OrderId"); + b.Property("OrderId") + .HasColumnType("bigint"); - b.Property("OrderSnapshot"); + b.Property("OrderSnapshot") + .HasColumnType("text"); b.HasKey("Id"); @@ -2089,21 +2485,29 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("DiscountAmount"); + b.Property("DiscountAmount") + .HasColumnType("numeric"); - b.Property("OrderId"); + b.Property("OrderId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("ProductPrice"); + b.Property("ProductPrice") + .HasColumnType("numeric"); - b.Property("Quantity"); + b.Property("Quantity") + .HasColumnType("integer"); - b.Property("TaxAmount"); + b.Property("TaxAmount") + .HasColumnType("numeric"); - b.Property("TaxPercent"); + b.Property("TaxPercent") + .HasColumnType("numeric"); b.HasKey("Id"); @@ -2118,27 +2522,37 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Amount"); + b.Property("Amount") + .HasColumnType("numeric"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("FailureMessage"); + b.Property("FailureMessage") + .HasColumnType("text"); b.Property("GatewayTransactionId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("OrderId"); + b.Property("OrderId") + .HasColumnType("bigint"); - b.Property("PaymentFee"); + b.Property("PaymentFee") + .HasColumnType("numeric"); b.Property("PaymentMethod") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("Status"); + b.Property("Status") + .HasColumnType("integer"); b.HasKey("Id"); @@ -2150,21 +2564,26 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Payments.Models.PaymentProvider", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .HasColumnType("text"); - b.Property("AdditionalSettings"); + b.Property("AdditionalSettings") + .HasColumnType("text"); b.Property("ConfigureUrl") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("IsEnabled"); + b.Property("IsEnabled") + .HasColumnType("boolean"); b.Property("LandingViewComponentName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -2239,34 +2658,47 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("DiscountAmount"); + b.Property("DiscountAmount") + .HasColumnType("numeric"); - b.Property("DiscountStep"); + b.Property("DiscountStep") + .HasColumnType("integer"); - b.Property("EndOn"); + b.Property("EndOn") + .HasColumnType("timestamp with time zone"); - b.Property("IsActive"); + b.Property("IsActive") + .HasColumnType("boolean"); - b.Property("IsCouponRequired"); + b.Property("IsCouponRequired") + .HasColumnType("boolean"); - b.Property("MaxDiscountAmount"); + b.Property("MaxDiscountAmount") + .HasColumnType("numeric"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("RuleToApply") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("StartOn"); + b.Property("StartOn") + .HasColumnType("timestamp with time zone"); - b.Property("UsageLimitPerCoupon"); + b.Property("UsageLimitPerCoupon") + .HasColumnType("integer"); - b.Property("UsageLimitPerCustomer"); + b.Property("UsageLimitPerCustomer") + .HasColumnType("integer"); b.HasKey("Id"); @@ -2275,9 +2707,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => { - b.Property("CartRuleId"); + b.Property("CartRuleId") + .HasColumnType("bigint"); - b.Property("CategoryId"); + b.Property("CategoryId") + .HasColumnType("bigint"); b.HasKey("CartRuleId", "CategoryId"); @@ -2288,9 +2722,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => { - b.Property("CartRuleId"); + b.Property("CartRuleId") + .HasColumnType("bigint"); - b.Property("CustomerGroupId"); + b.Property("CustomerGroupId") + .HasColumnType("bigint"); b.HasKey("CartRuleId", "CustomerGroupId"); @@ -2301,9 +2737,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => { - b.Property("CartRuleId"); + b.Property("CartRuleId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); b.HasKey("CartRuleId", "ProductId"); @@ -2316,17 +2754,23 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CartRuleId"); + b.Property("CartRuleId") + .HasColumnType("bigint"); - b.Property("CouponId"); + b.Property("CouponId") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("OrderId"); + b.Property("OrderId") + .HasColumnType("bigint"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2343,26 +2787,35 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("DiscountAmount"); + b.Property("DiscountAmount") + .HasColumnType("numeric"); - b.Property("EndOn"); + b.Property("EndOn") + .HasColumnType("timestamp with time zone"); - b.Property("IsActive"); + b.Property("IsActive") + .HasColumnType("boolean"); - b.Property("MaxDiscountAmount"); + b.Property("MaxDiscountAmount") + .HasColumnType("numeric"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("RuleToApply") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("StartOn"); + b.Property("StartOn") + .HasColumnType("timestamp with time zone"); b.HasKey("Id"); @@ -2371,9 +2824,11 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => { - b.Property("CatalogRuleId"); + b.Property("CatalogRuleId") + .HasColumnType("bigint"); - b.Property("CustomerGroupId"); + b.Property("CustomerGroupId") + .HasColumnType("bigint"); b.HasKey("CatalogRuleId", "CustomerGroupId"); @@ -2386,15 +2841,19 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CartRuleId"); + b.Property("CartRuleId") + .HasColumnType("bigint"); b.Property("Code") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); b.HasKey("Id"); @@ -2407,13 +2866,17 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2428,13 +2891,17 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("LatestViewedOn"); + b.Property("LatestViewedOn") + .HasColumnType("timestamp with time zone"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2445,20 +2912,27 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Comment"); + b.Property("Comment") + .HasColumnType("text"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); b.Property("ReplierName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ReviewId"); + b.Property("ReviewId") + .HasColumnType("bigint"); - b.Property("Status"); + b.Property("Status") + .HasColumnType("integer"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2473,28 +2947,38 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("Comment"); + b.Property("Comment") + .HasColumnType("text"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("EntityId"); + b.Property("EntityId") + .HasColumnType("bigint"); b.Property("EntityTypeId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("Rating"); + b.Property("Rating") + .HasColumnType("integer"); b.Property("ReviewerName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("Status"); + b.Property("Status") + .HasColumnType("integer"); b.Property("Title") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2507,15 +2991,19 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); b.Property("QueryText") .IsRequired() - .HasMaxLength(500); + .HasMaxLength(500) + .HasColumnType("character varying(500)"); - b.Property("ResultsCount"); + b.Property("ResultsCount") + .HasColumnType("integer"); b.HasKey("Id"); @@ -2526,22 +3014,30 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("OrderId"); + b.Property("OrderId") + .HasColumnType("bigint"); b.Property("TrackingNumber") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("VendorId"); + b.Property("VendorId") + .HasColumnType("bigint"); - b.Property("WarehouseId"); + b.Property("WarehouseId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2558,15 +3054,20 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("OrderItemId"); + b.Property("OrderItemId") + .HasColumnType("bigint"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("Quantity"); + b.Property("Quantity") + .HasColumnType("integer"); - b.Property("ShipmentId"); + b.Property("ShipmentId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2580,31 +3081,40 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("SimplCommerce.Module.Shipping.Models.ShippingProvider", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .HasColumnType("text"); - b.Property("AdditionalSettings"); + b.Property("AdditionalSettings") + .HasColumnType("text"); b.Property("ConfigureUrl") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("IsEnabled"); + b.Property("IsEnabled") + .HasColumnType("boolean"); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("OnlyCountryIdsString") - .HasMaxLength(1000); + .HasMaxLength(1000) + .HasColumnType("character varying(1000)"); b.Property("OnlyStateOrProvinceIdsString") - .HasMaxLength(1000); + .HasMaxLength(1000) + .HasColumnType("character varying(1000)"); b.Property("ShippingPriceServiceTypeName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("ToAllShippingEnabledCountries"); + b.Property("ToAllShippingEnabledCountries") + .HasColumnType("boolean"); - b.Property("ToAllShippingEnabledStatesOrProvinces"); + b.Property("ToAllShippingEnabledStatesOrProvinces") + .HasColumnType("boolean"); b.HasKey("Id"); @@ -2638,23 +3148,31 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("CountryId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("DistrictId"); + b.Property("DistrictId") + .HasColumnType("bigint"); - b.Property("MinOrderSubtotal"); + b.Property("MinOrderSubtotal") + .HasColumnType("numeric"); - b.Property("Note"); + b.Property("Note") + .HasColumnType("text"); - b.Property("ShippingPrice"); + b.Property("ShippingPrice") + .HasColumnType("numeric"); - b.Property("StateOrProvinceId"); + b.Property("StateOrProvinceId") + .HasColumnType("bigint"); b.Property("ZipCode") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -2671,39 +3189,54 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("CouponCode") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.Property("CouponRuleName") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("CreatedById"); + b.Property("CreatedById") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("CustomerId"); + b.Property("CustomerId") + .HasColumnType("bigint"); - b.Property("IsActive"); + b.Property("IsActive") + .HasColumnType("boolean"); - b.Property("IsProductPriceIncludeTax"); + b.Property("IsProductPriceIncludeTax") + .HasColumnType("boolean"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("LockedOnCheckout"); + b.Property("LockedOnCheckout") + .HasColumnType("boolean"); b.Property("OrderNote") - .HasMaxLength(1000); + .HasMaxLength(1000) + .HasColumnType("character varying(1000)"); - b.Property("ShippingAmount"); + b.Property("ShippingAmount") + .HasColumnType("numeric"); - b.Property("ShippingData"); + b.Property("ShippingData") + .HasColumnType("text"); b.Property("ShippingMethod") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("TaxAmount"); + b.Property("TaxAmount") + .HasColumnType("numeric"); b.HasKey("Id"); @@ -2718,15 +3251,20 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CartId"); + b.Property("CartId") + .HasColumnType("bigint"); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("Quantity"); + b.Property("Quantity") + .HasColumnType("integer"); b.HasKey("Id"); @@ -2741,11 +3279,13 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("Name") .IsRequired() - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -2763,19 +3303,25 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); b.Property("CountryId") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("Rate"); + b.Property("Rate") + .HasColumnType("numeric"); - b.Property("StateOrProvinceId"); + b.Property("StateOrProvinceId") + .HasColumnType("bigint"); - b.Property("TaxClassId"); + b.Property("TaxClassId") + .HasColumnType("bigint"); b.Property("ZipCode") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); b.HasKey("Id"); @@ -2792,16 +3338,21 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); b.Property("SharingCode") - .HasMaxLength(450); + .HasMaxLength(450) + .HasColumnType("character varying(450)"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2814,19 +3365,26 @@ protected override void BuildModel(ModelBuilder modelBuilder) { b.Property("Id") .ValueGeneratedOnAdd() - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint") + .UseIdentityByDefaultColumn(); - b.Property("CreatedOn"); + b.Property("CreatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("Description"); + b.Property("Description") + .HasColumnType("text"); - b.Property("LatestUpdatedOn"); + b.Property("LatestUpdatedOn") + .HasColumnType("timestamp with time zone"); - b.Property("ProductId"); + b.Property("ProductId") + .HasColumnType("bigint"); - b.Property("Quantity"); + b.Property("Quantity") + .HasColumnType("integer"); - b.Property("WishListId"); + b.Property("WishListId") + .HasColumnType("bigint"); b.HasKey("Id"); @@ -2839,34 +3397,38 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { - b.HasOne("SimplCommerce.Module.Core.Models.Role") + b.HasOne("SimplCommerce.Module.Core.Models.Role", null) .WithMany() .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { - b.HasOne("SimplCommerce.Module.Core.Models.User") + b.HasOne("SimplCommerce.Module.Core.Models.User", null) .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { - b.HasOne("SimplCommerce.Module.Core.Models.User") + b.HasOne("SimplCommerce.Module.Core.Models.User", null) .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { - b.HasOne("SimplCommerce.Module.Core.Models.User") + b.HasOne("SimplCommerce.Module.Core.Models.User", null) .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.LocalizedContentProperty", b => @@ -2874,7 +3436,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Infrastructure.Localization.Culture", "Culture") .WithMany() .HasForeignKey("CultureId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Culture"); }); modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Resource", b => @@ -2882,7 +3447,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Infrastructure.Localization.Culture", "Culture") .WithMany("Resources") .HasForeignKey("CultureId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Culture"); }); modelBuilder.Entity("SimplCommerce.Module.ActivityLog.Models.Activity", b => @@ -2890,7 +3458,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.ActivityLog.Models.ActivityType", "ActivityType") .WithMany() .HasForeignKey("ActivityTypeId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("ActivityType"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => @@ -2904,6 +3475,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) .WithMany() .HasForeignKey("ThumbnailImageId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("Parent"); + + b.Navigation("ThumbnailImage"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => @@ -2916,12 +3491,14 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") .WithMany() .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") .WithMany() @@ -2932,6 +3509,16 @@ protected override void BuildModel(ModelBuilder modelBuilder) .WithMany() .HasForeignKey("ThumbnailImageId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("Brand"); + + b.Navigation("CreatedBy"); + + b.Navigation("LatestUpdatedBy"); + + b.Navigation("TaxClass"); + + b.Navigation("ThumbnailImage"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => @@ -2939,7 +3526,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", "Group") .WithMany("Attributes") .HasForeignKey("GroupId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Group"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeValue", b => @@ -2947,12 +3537,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "Attribute") .WithMany() .HasForeignKey("AttributeId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany("AttributeValues") .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Attribute"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductCategory", b => @@ -2960,12 +3556,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") .WithMany() .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany("Categories") .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Category"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductLink", b => @@ -2973,12 +3575,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "LinkedProduct") .WithMany("LinkedProductLinks") .HasForeignKey("LinkedProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany("ProductLinks") .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("LinkedProduct"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductMedia", b => @@ -2986,12 +3594,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.Media", "Media") .WithMany() .HasForeignKey("MediaId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany("Medias") .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Media"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionCombination", b => @@ -2999,12 +3613,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") .WithMany() .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany("OptionCombinations") .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Option"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductOptionValue", b => @@ -3012,12 +3632,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.ProductOption", "Option") .WithMany() .HasForeignKey("OptionId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany("OptionValues") .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Option"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductPriceHistory", b => @@ -3025,12 +3651,17 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany("PriceHistories") .HasForeignKey("ProductId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("CreatedBy"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplateProductAttribute", b => @@ -3038,12 +3669,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.ProductAttribute", "ProductAttribute") .WithMany("ProductTemplates") .HasForeignKey("ProductAttributeId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.ProductTemplate", "ProductTemplate") .WithMany("ProductAttributes") .HasForeignKey("ProductTemplateId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("ProductAttribute"); + + b.Navigation("ProductTemplate"); }); modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => @@ -3056,12 +3693,19 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Cms.Models.Menu", "Menu") .WithMany("MenuItems") .HasForeignKey("MenuId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Cms.Models.MenuItem", "Parent") .WithMany("Children") .HasForeignKey("ParentId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("Entity"); + + b.Navigation("Menu"); + + b.Navigation("Parent"); }); modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Page", b => @@ -3069,12 +3713,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") .WithMany() .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CreatedBy"); + + b.Navigation("LatestUpdatedBy"); }); modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => @@ -3087,7 +3737,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Parent"); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Contacts.Models.Contact", b => @@ -3095,7 +3750,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Contacts.Models.ContactArea", "ContactArea") .WithMany() .HasForeignKey("ContactAreaId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("ContactArea"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => @@ -3103,7 +3761,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.Country", "Country") .WithMany() .HasForeignKey("CountryId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.District", "District") .WithMany() @@ -3113,7 +3772,14 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") .WithMany() .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Country"); + + b.Navigation("District"); + + b.Navigation("StateOrProvince"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroupUser", b => @@ -3121,12 +3787,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") .WithMany("Users") .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany("CustomerGroups") .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CustomerGroup"); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.District", b => @@ -3134,7 +3806,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") .WithMany() .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("StateOrProvince"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.Entity", b => @@ -3143,6 +3818,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) .WithMany() .HasForeignKey("EntityTypeId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("EntityType"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.StateOrProvince", b => @@ -3151,6 +3828,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) .WithMany("StatesOrProvinces") .HasForeignKey("CountryId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("Country"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => @@ -3165,10 +3844,14 @@ protected override void BuildModel(ModelBuilder modelBuilder) .HasForeignKey("DefaultShippingAddressId") .OnDelete(DeleteBehavior.Restrict); - b.HasOne("SimplCommerce.Module.Core.Models.Vendor") + b.HasOne("SimplCommerce.Module.Core.Models.Vendor", null) .WithMany("Users") .HasForeignKey("VendorId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("DefaultBillingAddress"); + + b.Navigation("DefaultShippingAddress"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserAddress", b => @@ -3176,12 +3859,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") .WithMany("UserAddresses") .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany("UserAddresses") .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Address"); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.UserRole", b => @@ -3189,12 +3878,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.Role", "Role") .WithMany("Users") .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany("Roles") .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Role"); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Core.Models.WidgetInstance", b => @@ -3207,7 +3902,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.WidgetZone", "WidgetZone") .WithMany() .HasForeignKey("WidgetZoneId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Widget"); + + b.Navigation("WidgetZone"); }); modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Stock", b => @@ -3215,12 +3915,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") .WithMany() .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Product"); + + b.Navigation("Warehouse"); }); modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.StockHistory", b => @@ -3228,17 +3934,26 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") .WithMany() .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CreatedBy"); + + b.Navigation("Product"); + + b.Navigation("Warehouse"); }); modelBuilder.Entity("SimplCommerce.Module.Inventory.Models.Warehouse", b => @@ -3246,12 +3961,17 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.Address", "Address") .WithMany() .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.Vendor", "Vendor") .WithMany() .HasForeignKey("VendorId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("Address"); + + b.Navigation("Vendor"); }); modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => @@ -3259,17 +3979,25 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") .WithMany() .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.Media", "ThumbnailImage") .WithMany() .HasForeignKey("ThumbnailImageId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("CreatedBy"); + + b.Navigation("LatestUpdatedBy"); + + b.Navigation("ThumbnailImage"); }); modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItemCategory", b => @@ -3277,12 +4005,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.News.Models.NewsCategory", "Category") .WithMany("NewsItems") .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); b.HasOne("SimplCommerce.Module.News.Models.NewsItem", "NewsItem") .WithMany("Categories") .HasForeignKey("NewsItemId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Category"); + + b.Navigation("NewsItem"); }); modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => @@ -3290,22 +4024,26 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "BillingAddress") .WithMany() .HasForeignKey("BillingAddressId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") .WithMany() .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "LatestUpdatedBy") .WithMany() .HasForeignKey("LatestUpdatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Parent") .WithMany("Children") @@ -3315,7 +4053,20 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Orders.Models.OrderAddress", "ShippingAddress") .WithMany() .HasForeignKey("ShippingAddressId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("BillingAddress"); + + b.Navigation("CreatedBy"); + + b.Navigation("Customer"); + + b.Navigation("LatestUpdatedBy"); + + b.Navigation("Parent"); + + b.Navigation("ShippingAddress"); }); modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderAddress", b => @@ -3333,7 +4084,14 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.StateOrProvince", "StateOrProvince") .WithMany() .HasForeignKey("StateOrProvinceId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Country"); + + b.Navigation("District"); + + b.Navigation("StateOrProvince"); }); modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderHistory", b => @@ -3341,12 +4099,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") .WithMany() .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CreatedBy"); + + b.Navigation("Order"); }); modelBuilder.Entity("SimplCommerce.Module.Orders.Models.OrderItem", b => @@ -3359,7 +4123,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Order"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Payments.Models.Payment", b => @@ -3367,7 +4136,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") .WithMany() .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Order"); }); modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCategory", b => @@ -3375,12 +4147,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") .WithMany("Categories") .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Category", "Category") .WithMany() .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CartRule"); + + b.Navigation("Category"); }); modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleCustomerGroup", b => @@ -3388,12 +4166,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") .WithMany("CustomerGroups") .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") .WithMany() .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CartRule"); + + b.Navigation("CustomerGroup"); }); modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleProduct", b => @@ -3401,12 +4185,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") .WithMany("Products") .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CartRule"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRuleUsage", b => @@ -3414,7 +4204,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") .WithMany() .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Pricing.Models.Coupon", "Coupon") .WithMany() @@ -3424,7 +4215,14 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CartRule"); + + b.Navigation("Coupon"); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRuleCustomerGroup", b => @@ -3432,12 +4230,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Pricing.Models.CatalogRule", "CatalogRule") .WithMany("CustomerGroups") .HasForeignKey("CatalogRuleId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.CustomerGroup", "CustomerGroup") .WithMany() .HasForeignKey("CustomerGroupId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CatalogRule"); + + b.Navigation("CustomerGroup"); }); modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.Coupon", b => @@ -3445,7 +4249,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Pricing.Models.CartRule", "CartRule") .WithMany("Coupons") .HasForeignKey("CartRuleId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CartRule"); }); modelBuilder.Entity("SimplCommerce.Module.ProductComparison.Models.ComparingProduct", b => @@ -3453,12 +4260,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Product"); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Reply", b => @@ -3466,12 +4279,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Reviews.Models.Review", "Review") .WithMany("Replies") .HasForeignKey("ReviewId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Review"); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => @@ -3479,7 +4298,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => @@ -3487,17 +4309,26 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Orders.Models.Order", "Order") .WithMany() .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Inventory.Models.Warehouse", "Warehouse") .WithMany() .HasForeignKey("WarehouseId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CreatedBy"); + + b.Navigation("Order"); + + b.Navigation("Warehouse"); }); modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.ShipmentItem", b => @@ -3505,12 +4336,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Shipments.Models.Shipment", "Shipment") .WithMany("Items") .HasForeignKey("ShipmentId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Product"); + + b.Navigation("Shipment"); }); modelBuilder.Entity("SimplCommerce.Module.ShippingTableRate.Models.PriceAndDestination", b => @@ -3529,6 +4366,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) .WithMany() .HasForeignKey("StateOrProvinceId") .OnDelete(DeleteBehavior.Restrict); + + b.Navigation("Country"); + + b.Navigation("District"); + + b.Navigation("StateOrProvince"); }); modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => @@ -3536,12 +4379,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Core.Models.User", "Customer") .WithMany() .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("CreatedBy"); + + b.Navigation("Customer"); }); modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.CartItem", b => @@ -3549,12 +4398,18 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.ShoppingCart.Models.Cart", "Cart") .WithMany("Items") .HasForeignKey("CartId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Cart"); + + b.Navigation("Product"); }); modelBuilder.Entity("SimplCommerce.Module.Tax.Models.TaxRate", b => @@ -3572,7 +4427,14 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Tax.Models.TaxClass", "TaxClass") .WithMany() .HasForeignKey("TaxClassId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Country"); + + b.Navigation("StateOrProvince"); + + b.Navigation("TaxClass"); }); modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => @@ -3580,7 +4442,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Core.Models.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("User"); }); modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishListItem", b => @@ -3588,12 +4453,164 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasOne("SimplCommerce.Module.Catalog.Models.Product", "Product") .WithMany() .HasForeignKey("ProductId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); b.HasOne("SimplCommerce.Module.WishList.Models.WishList", "WishList") .WithMany("Items") .HasForeignKey("WishListId") - .OnDelete(DeleteBehavior.Restrict); + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Product"); + + b.Navigation("WishList"); + }); + + modelBuilder.Entity("SimplCommerce.Infrastructure.Localization.Culture", b => + { + b.Navigation("Resources"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Category", b => + { + b.Navigation("Children"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.Product", b => + { + b.Navigation("AttributeValues"); + + b.Navigation("Categories"); + + b.Navigation("LinkedProductLinks"); + + b.Navigation("Medias"); + + b.Navigation("OptionCombinations"); + + b.Navigation("OptionValues"); + + b.Navigation("PriceHistories"); + + b.Navigation("ProductLinks"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttribute", b => + { + b.Navigation("ProductTemplates"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductAttributeGroup", b => + { + b.Navigation("Attributes"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Catalog.Models.ProductTemplate", b => + { + b.Navigation("ProductAttributes"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Cms.Models.Menu", b => + { + b.Navigation("MenuItems"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Cms.Models.MenuItem", b => + { + b.Navigation("Children"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Comments.Models.Comment", b => + { + b.Navigation("Replies"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Core.Models.Address", b => + { + b.Navigation("UserAddresses"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Core.Models.Country", b => + { + b.Navigation("StatesOrProvinces"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Core.Models.CustomerGroup", b => + { + b.Navigation("Users"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Core.Models.Role", b => + { + b.Navigation("Users"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Core.Models.User", b => + { + b.Navigation("CustomerGroups"); + + b.Navigation("Roles"); + + b.Navigation("UserAddresses"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Core.Models.Vendor", b => + { + b.Navigation("Users"); + }); + + modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsCategory", b => + { + b.Navigation("NewsItems"); + }); + + modelBuilder.Entity("SimplCommerce.Module.News.Models.NewsItem", b => + { + b.Navigation("Categories"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Orders.Models.Order", b => + { + b.Navigation("Children"); + + b.Navigation("OrderItems"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CartRule", b => + { + b.Navigation("Categories"); + + b.Navigation("Coupons"); + + b.Navigation("CustomerGroups"); + + b.Navigation("Products"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Pricing.Models.CatalogRule", b => + { + b.Navigation("CustomerGroups"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Reviews.Models.Review", b => + { + b.Navigation("Replies"); + }); + + modelBuilder.Entity("SimplCommerce.Module.Shipments.Models.Shipment", b => + { + b.Navigation("Items"); + }); + + modelBuilder.Entity("SimplCommerce.Module.ShoppingCart.Models.Cart", b => + { + b.Navigation("Items"); + }); + + modelBuilder.Entity("SimplCommerce.Module.WishList.Models.WishList", b => + { + b.Navigation("Items"); }); #pragma warning restore 612, 618 } diff --git a/src/SimplCommerce.WebHost/Program.cs b/src/SimplCommerce.WebHost/Program.cs index 0276796724..9a84f7065a 100644 --- a/src/SimplCommerce.WebHost/Program.cs +++ b/src/SimplCommerce.WebHost/Program.cs @@ -29,7 +29,7 @@ private static void SetupConfiguration(WebHostBuilderContext hostingContext, ICo var env = hostingContext.HostingEnvironment; var configuration = configBuilder.Build(); configBuilder.AddEntityFrameworkConfig(options => - options.UseSqlServer(configuration.GetConnectionString("DefaultConnection")) + options.UseNpgsql(configuration.GetConnectionString("DefaultConnection")) ); Log.Logger = new LoggerConfiguration() .ReadFrom.Configuration(configuration) diff --git a/src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj b/src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj index e9dda340c2..b3243b300a 100644 --- a/src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj +++ b/src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj @@ -1,4 +1,4 @@ - + net5.0 aspnet-Modular.WebHost-dca604fa-ee10-4a6c-8e7d-8cc79dca8c8f @@ -6,63 +6,59 @@ false InProcess - PreserveNewest - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + all runtime; build; native; contentfiles; analyzers @@ -71,11 +67,14 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - + + + + + + + + + - + \ No newline at end of file diff --git a/src/SimplCommerce.WebHost/appsettings.docker.json b/src/SimplCommerce.WebHost/appsettings.docker.json index 234a21940e..04b9592b9a 100644 --- a/src/SimplCommerce.WebHost/appsettings.docker.json +++ b/src/SimplCommerce.WebHost/appsettings.docker.json @@ -1,6 +1,6 @@ { "ConnectionStrings": { - "DefaultConnection": "User ID=postgres;Password=postgres;Host=simpldb;Port=5432;Database=simplcommerce;Pooling=true;" + "DefaultConnection": "User ID=postgres;Password=postgres;Server=simpldb;Port=5432;Database=simplcommerce;Pooling=true;" }, "Authentication": { "Facebook": { diff --git a/src/SimplCommerce.WebHost/appsettings.json b/src/SimplCommerce.WebHost/appsettings.json index 550ce2703d..6b8e9b0d3b 100644 --- a/src/SimplCommerce.WebHost/appsettings.json +++ b/src/SimplCommerce.WebHost/appsettings.json @@ -1,6 +1,7 @@ { "ConnectionStrings": { - "DefaultConnection": "Server=.;Database=SimplCommerce;Trusted_Connection=True;MultipleActiveResultSets=true" + "_DefaultConnection": "User ID=postgres;Password=postgres;Server=simpldb;Port=5432;Database=simplcommerce;Pooling=true;", + "DefaultConnection": "simplcommerce.db;" }, "Authentication" : { "Facebook" : { diff --git "a/src/SimplCommerce.WebHost/logs\\log-20201210.txt" "b/src/SimplCommerce.WebHost/logs\\log-20201210.txt" new file mode 100644 index 0000000000..84fcec5acb --- /dev/null +++ "b/src/SimplCommerce.WebHost/logs\\log-20201210.txt" @@ -0,0 +1 @@ +2020-12-10 15:44:14.838 +01:00 [Warning] [Microsoft.AspNetCore.Http.ResponseCookies] [{ Id: 1, Name: "SameSiteNotSecure" }] The cookie '"XSRF-TOKEN"' has set 'SameSite=None' and must also set 'Secure'. From bf8b96093151e9ede57f3ba846f33b9b61e30f90 Mon Sep 17 00:00:00 2001 From: Sergio Hinojosa Date: Fri, 11 Dec 2020 10:40:18 +0100 Subject: [PATCH 2/4] dotnet5 containers for sqllite and postgres, pgadmin over dockercompose --- .gitignore | 5 +- Dockerfile | 2 +- Dockerfile-sqlite | 2 +- docker-compose.yml | 54 ++++++ docker-entrypoint.sh | 2 +- ...ild-docker.md => howto-build-withdocker.md | 20 +- simpl-build-sqlite.sh | 25 +++ simpl-build.sh | 9 +- .../Data/CatalogCustomModelBuilder.cs | 6 +- .../Data/CmsCustomModelBuilder.cs | 6 +- .../Data/CoreSeedData.cs | 4 +- .../Data/PaymentMomoCustomModelBuilder.cs | 2 +- ...ProductRecentlyViewedCustomModelBuilder.cs | 2 +- .../Fashion/ResetToSampleData.sql | 172 +++++++++--------- .../Fashion/ResetToSampleData_MySql.sql | 172 +++++++++--------- .../Fashion/ResetToSampleData_Postgres.sql | 172 +++++++++--------- .../Fashion/ResetToSampleData_SQLite.sql | 2 +- .../Phones/ResetToSampleData.sql | 24 +-- ... 20201210190923_initialSchema.Designer.cs} | 26 +-- ...ema.cs => 20201210190923_initialSchema.cs} | 20 +- .../Migrations/SimplDbContextModelSnapshot.cs | 24 +-- .../SimplCommerce.WebHost.csproj | 4 +- src/SimplCommerce.WebHost/appsettings.json | 3 +- src/SimplCommerce.WebHost/appsettings.json-e | 36 ++++ .../logs\\log-20201210.txt" | 126 +++++++++++++ 25 files changed, 590 insertions(+), 330 deletions(-) create mode 100644 docker-compose.yml rename howto-build-docker.md => howto-build-withdocker.md (74%) create mode 100755 simpl-build-sqlite.sh rename src/SimplCommerce.WebHost/Migrations/{20201210143557_initialSchema.Designer.cs => 20201210190923_initialSchema.Designer.cs} (99%) rename src/SimplCommerce.WebHost/Migrations/{20201210143557_initialSchema.cs => 20201210190923_initialSchema.cs} (99%) create mode 100644 src/SimplCommerce.WebHost/appsettings.json-e diff --git a/.gitignore b/.gitignore index b052a6f208..2fe3172eec 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ *.sln.docstates # Build results - [Dd]ebug/ [Rr]elease/ x64/ @@ -18,6 +17,10 @@ node_modules/ bower_components/ .vs/ + +#Database files +*.db + # Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets !packages/*/build/ diff --git a/Dockerfile b/Dockerfile index 9b9fe5b975..4bb6c5b65d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env WORKDIR /app COPY . ./ -RUN sed -i 's###' src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj +RUN sed -i 's###' src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj RUN sed -i 's/UseSqlServer/UseNpgsql/' src/SimplCommerce.WebHost/Program.cs RUN sed -i 's/UseSqlServer/UseNpgsql/' src/SimplCommerce.WebHost/Extensions/ServiceCollectionExtensions.cs diff --git a/Dockerfile-sqlite b/Dockerfile-sqlite index 81825d66c0..3f253393f1 100644 --- a/Dockerfile-sqlite +++ b/Dockerfile-sqlite @@ -3,7 +3,7 @@ FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env WORKDIR /app COPY . ./ -RUN sed -i 's###' src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj +RUN sed -i 's###' src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj RUN sed -i 's/UseSqlServer/UseSqlite/' src/SimplCommerce.WebHost/Program.cs RUN sed -i 's/UseSqlServer/UseSqlite/' src/SimplCommerce.WebHost/Extensions/ServiceCollectionExtensions.cs RUN sed -i 's/UseNpgsql/UseSqlite/' src/SimplCommerce.WebHost/Program.cs diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000..f5ee1ea294 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,54 @@ +version: '3.5' + +services: + simpldb: + container_name: postgres_container + image: postgres + hostname: simpldb + environment: + POSTGRES_USER: ${POSTGRES_USER:-postgres} + POSTGRES_DB: ${POSTGRES_DB:-postgres} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres} + volumes: + - postgres:/var/lib/postgresql/data/ + ports: + - "5432:5432" + networks: + - gateway + restart: unless-stopped + + pgadmin: + container_name: pgadmin_container + image: dpage/pgadmin4 + hostname: pgadmin + environment: + PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org} + PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin} + volumes: + - pgadmin:/root/.pgadmin + ports: + - "${PGADMIN_PORT:-8080}:80" + networks: + - gateway + restart: unless-stopped + + simplcommerce: + container_name: simplcommerce_container + hostname: simplcommerce + image: shinojosa/simplcommerce + environment: + PGPASSWORD: ${POSTGRES_PASSWORD:-postgres} + depends_on: + - simpldb + ports: + - "80:80" + networks: + - gateway + restart: unless-stopped + +networks: + gateway: + +volumes: + postgres: + pgadmin: diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 4adf6bdb36..73ec19fc5c 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,7 +2,7 @@ set -e # Just for dev pourpouses. -export POSTGRES_PASSWORD=postgress +export POSTGRES_PASSWORD=postgres if psql -h simpldb --username postgres -lqt | cut -d \| -f 1 | grep -qw simplcommerce; then echo "simplcommerce database existed" diff --git a/howto-build-docker.md b/howto-build-withdocker.md similarity index 74% rename from howto-build-docker.md rename to howto-build-withdocker.md index 4f10fab93c..25beb30540 100644 --- a/howto-build-docker.md +++ b/howto-build-withdocker.md @@ -4,12 +4,15 @@ - Administration: http://demo.simplcommerce.com/admin Email: admin@simplcommerce.com Password: 1qazZAQ! - -## Docker -For testing purpose only `docker build --rm -t shinojosa/simplcommerce-sqlite:5 -f Dockerfile-sqlite . ` +## simplcommerce with sqlite +For testing purpose only `docker build --rm -t shinojosa/simplcommerce-sqlite -f Dockerfile-sqlite . ` Continuous deployment: https://ci.simplcommerce.com +## simplcommerce with postgres +For testing purpose only `docker build --rm -t shinojosa/simplcommerce -f Dockerfile . ` +docker build --rm -t shinojosa/simplcommerce-sqlite:5 -f Dockerfile-sqlite . + # PostgreSQL Database ## Postgre containers @@ -18,6 +21,12 @@ Continuous deployment: https://ci.simplcommerce.com `127.0.0.1 simpldb` > For Docker-compose (hostname in the same network ) +# build the app with clean DB +docker-compose up +# Gracefully shutdown +docker-compose down +# Destroy data (clean DB) +docker-compose down -v > For Kubernetes is just the name of the service exposing postgresql in the same ns @@ -25,6 +34,7 @@ Continuous deployment: https://ci.simplcommerce.com ### Run postgre container for dev pourpouses standard ports on localhost (mount a postrgres-data directory for the Database) `mkdir ${HOME}/postgres-data/` `docker run -d --name postgres -e POSTGRES_PASSWORD=postgres -v ${HOME}/postgres-data/:/var/lib/postgresql/data -p 5432:5432 postgres` +### ### Run PGAdming to access the UI and do dbadmin stuff `docker run -p 8080:80 -e 'PGADMIN_DEFAULT_EMAIL=user@domain.local' -e 'PGADMIN_DEFAULT_PASSWORD=SuperSecret' --name pgadmin -d dpage/pgadmin4` @@ -33,8 +43,8 @@ Without docker-compose or defining a network you need to type the internal IP of `docker inspect postgres -f "{{json .NetworkSettings.Networks }}"` ## For building with PostgreSQL -Npgsql.EntityFrameworkCore.PostgreSQL 3.1.0 +Npgsql.EntityFrameworkCore.PostgreSQL 5.1.0 ## For building with SQLLite -Microsoft.EntityFrameworkCore.Sqlite 3.1.0 +Microsoft.EntityFrameworkCore.Sqlite 5.1.0 diff --git a/simpl-build-sqlite.sh b/simpl-build-sqlite.sh new file mode 100755 index 0000000000..532c97b1ff --- /dev/null +++ b/simpl-build-sqlite.sh @@ -0,0 +1,25 @@ +#!/bin/bash +set -e + +sed -i'' -e 's|||' src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj +sed -i'' -e 's|||' src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj + +sed -i'' -e 's/UseSqlServer/UseSqlite/' src/SimplCommerce.WebHost/Program.cs +sed -i'' -e 's/UseSqlServer/UseSqlite/' src/SimplCommerce.WebHost/Extensions/ServiceCollectionExtensions.cs + +sed -i'' -e 's/UseNpgsql/UseSqlite/' src/SimplCommerce.WebHost/Program.cs +sed -i'' -e 's/UseNpgsql/UseSqlite/' src/SimplCommerce.WebHost/Extensions/ServiceCollectionExtensions.cs + +sed -i'' -e 's/"DefaultConnection": ".*"/"DefaultConnection": "Data Source=simplcommerce.db"/' src/SimplCommerce.WebHost/appsettings.json + +rm -rf src/SimplCommerce.WebHost/Migrations/* +rm -rf src/SimplCommerce.WebHost/simplcommerce.db + +dotnet restore && dotnet build + +cd src/SimplCommerce.WebHost \ + && dotnet ef migrations add initialSchema \ + && dotnet ef database update + +echo "The database schema has been created. Please execute the src/Database/StaticData_Postgres.sql to insert static data." +echo "Then type 'dotnet run' in src/SimplCommerce.WebHost to start the app." diff --git a/simpl-build.sh b/simpl-build.sh index 2dc500eba3..b3d6880853 100755 --- a/simpl-build.sh +++ b/simpl-build.sh @@ -1,10 +1,17 @@ #!/bin/bash set -e -sed -i'' -e 's|||' src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj +sed -i'' -e 's|||' src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj +sed -i'' -e 's|||' src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj sed -i'' -e 's/UseSqlServer/UseNpgsql/' src/SimplCommerce.WebHost/Program.cs sed -i'' -e 's/UseSqlServer/UseNpgsql/' src/SimplCommerce.WebHost/Extensions/ServiceCollectionExtensions.cs +sed -i'' -e 's/UseSqlite/UseNpgsql/' src/SimplCommerce.WebHost/Program.cs +sed -i'' -e 's/UseSqlite/UseNpgsql/' src/SimplCommerce.WebHost/Extensions/ServiceCollectionExtensions.cs + +# For this to work you need a connection to the database. Spin an postgresql in howto-build-docker.md +sed -i'' -e 's/"DefaultConnection": ".*"/"DefaultConnection": "User ID=postgres;Password=postgres;Server=simpldb;Port=5432;Database=simplcommerce;Pooling=true;"/' src/SimplCommerce.WebHost/appsettings.json + rm -rf src/SimplCommerce.WebHost/Migrations/* dotnet restore && dotnet build diff --git a/src/Modules/SimplCommerce.Module.Catalog/Data/CatalogCustomModelBuilder.cs b/src/Modules/SimplCommerce.Module.Catalog/Data/CatalogCustomModelBuilder.cs index f5920f6f15..29b282ae64 100644 --- a/src/Modules/SimplCommerce.Module.Catalog/Data/CatalogCustomModelBuilder.cs +++ b/src/Modules/SimplCommerce.Module.Catalog/Data/CatalogCustomModelBuilder.cs @@ -52,9 +52,9 @@ public void Build(ModelBuilder modelBuilder) ); modelBuilder.Entity().HasData( - new Widget("CategoryWidget") { Name = "Category Widget", ViewComponentName = "CategoryWidget", CreateUrl = "widget-category-create", EditUrl = "widget-category-edit", CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)) }, - new Widget("ProductWidget") { Name = "Product Widget", ViewComponentName = "ProductWidget", CreateUrl = "widget-product-create", EditUrl = "widget-product-edit", CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)) }, - new Widget("SimpleProductWidget") { Name = "Simple Product Widget", ViewComponentName = "SimpleProductWidget", CreateUrl = "widget-simple-product-create", EditUrl = "widget-simple-product-edit", CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)) } + new Widget("CategoryWidget") { Name = "Category Widget", ViewComponentName = "CategoryWidget", CreateUrl = "widget-category-create", EditUrl = "widget-category-edit", CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)) }, + new Widget("ProductWidget") { Name = "Product Widget", ViewComponentName = "ProductWidget", CreateUrl = "widget-product-create", EditUrl = "widget-product-edit", CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)) }, + new Widget("SimpleProductWidget") { Name = "Simple Product Widget", ViewComponentName = "SimpleProductWidget", CreateUrl = "widget-simple-product-create", EditUrl = "widget-simple-product-edit", CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)) } ); } } diff --git a/src/Modules/SimplCommerce.Module.Cms/Data/CmsCustomModelBuilder.cs b/src/Modules/SimplCommerce.Module.Cms/Data/CmsCustomModelBuilder.cs index e00e2fb402..d2a7b64964 100644 --- a/src/Modules/SimplCommerce.Module.Cms/Data/CmsCustomModelBuilder.cs +++ b/src/Modules/SimplCommerce.Module.Cms/Data/CmsCustomModelBuilder.cs @@ -20,9 +20,9 @@ public void Build(ModelBuilder modelBuilder) ); modelBuilder.Entity().HasData( - new Widget("HtmlWidget") { Name = "Html Widget", ViewComponentName = "HtmlWidget", CreateUrl = "widget-html-create", EditUrl = "widget-html-edit", CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)) }, - new Widget("CarouselWidget") { Name = "Carousel Widget", ViewComponentName = "CarouselWidget", CreateUrl = "widget-carousel-create", EditUrl = "widget-carousel-edit", CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)) }, - new Widget("SpaceBarWidget") { Name = "SpaceBar Widget", ViewComponentName = "SpaceBarWidget", CreateUrl = "widget-spacebar-create", EditUrl = "widget-spacebar-edit", CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)) } + new Widget("HtmlWidget") { Name = "Html Widget", ViewComponentName = "HtmlWidget", CreateUrl = "widget-html-create", EditUrl = "widget-html-edit", CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)) }, + new Widget("CarouselWidget") { Name = "Carousel Widget", ViewComponentName = "CarouselWidget", CreateUrl = "widget-carousel-create", EditUrl = "widget-carousel-edit", CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)) }, + new Widget("SpaceBarWidget") { Name = "SpaceBar Widget", ViewComponentName = "SpaceBarWidget", CreateUrl = "widget-spacebar-create", EditUrl = "widget-spacebar-edit", CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)) } ); } } diff --git a/src/Modules/SimplCommerce.Module.Core/Data/CoreSeedData.cs b/src/Modules/SimplCommerce.Module.Core/Data/CoreSeedData.cs index ad8caf5c15..c205a50f8b 100644 --- a/src/Modules/SimplCommerce.Module.Core/Data/CoreSeedData.cs +++ b/src/Modules/SimplCommerce.Module.Core/Data/CoreSeedData.cs @@ -30,8 +30,8 @@ public static void SeedData(ModelBuilder builder) ); builder.Entity().HasData( - new User { Id = 2L, AccessFailedCount = 0, ConcurrencyStamp = "101cd6ae-a8ef-4a37-97fd-04ac2dd630e4", CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), Email = "system@simplcommerce.com", EmailConfirmed = false, FullName = "System User", IsDeleted = true, LockoutEnabled = false, NormalizedEmail = "SYSTEM@SIMPLCOMMERCE.COM", NormalizedUserName = "SYSTEM@SIMPLCOMMERCE.COM", PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", PhoneNumberConfirmed = false, SecurityStamp = "a9565acb-cee6-425f-9833-419a793f5fba", TwoFactorEnabled = false, LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), UserGuid = new Guid("5f72f83b-7436-4221-869c-1b69b2e23aae"), UserName = "system@simplcommerce.com" }, - new User { Id = 10L, AccessFailedCount = 0, ConcurrencyStamp = "c83afcbc-312c-4589-bad7-8686bd4754c0", CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), Email = "admin@simplcommerce.com", EmailConfirmed = false, FullName = "Shop Admin", IsDeleted = false, LockoutEnabled = false, NormalizedEmail = "ADMIN@SIMPLCOMMERCE.COM", NormalizedUserName = "ADMIN@SIMPLCOMMERCE.COM", PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", PhoneNumberConfirmed = false, SecurityStamp = "d6847450-47f0-4c7a-9fed-0c66234bf61f", TwoFactorEnabled = false, LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), UserGuid = new Guid("ed8210c3-24b0-4823-a744-80078cf12eb4"), UserName = "admin@simplcommerce.com" } + new User { Id = 2L, AccessFailedCount = 0, ConcurrencyStamp = "101cd6ae-a8ef-4a37-97fd-04ac2dd630e4", CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), Email = "system@simplcommerce.com", EmailConfirmed = false, FullName = "System User", IsDeleted = true, LockoutEnabled = false, NormalizedEmail = "SYSTEM@SIMPLCOMMERCE.COM", NormalizedUserName = "SYSTEM@SIMPLCOMMERCE.COM", PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", PhoneNumberConfirmed = false, SecurityStamp = "a9565acb-cee6-425f-9833-419a793f5fba", TwoFactorEnabled = false, LatestUpdatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), UserGuid = new Guid("5f72f83b-7436-4221-869c-1b69b2e23aae"), UserName = "system@simplcommerce.com" }, + new User { Id = 10L, AccessFailedCount = 0, ConcurrencyStamp = "c83afcbc-312c-4589-bad7-8686bd4754c0", CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), Email = "admin@simplcommerce.com", EmailConfirmed = false, FullName = "Shop Admin", IsDeleted = false, LockoutEnabled = false, NormalizedEmail = "ADMIN@SIMPLCOMMERCE.COM", NormalizedUserName = "ADMIN@SIMPLCOMMERCE.COM", PasswordHash = "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", PhoneNumberConfirmed = false, SecurityStamp = "d6847450-47f0-4c7a-9fed-0c66234bf61f", TwoFactorEnabled = false, LatestUpdatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), UserGuid = new Guid("ed8210c3-24b0-4823-a744-80078cf12eb4"), UserName = "admin@simplcommerce.com" } ); builder.Entity().HasData( diff --git a/src/Modules/SimplCommerce.Module.PaymentMomo/Data/PaymentMomoCustomModelBuilder.cs b/src/Modules/SimplCommerce.Module.PaymentMomo/Data/PaymentMomoCustomModelBuilder.cs index 2ff37467de..7116f9f026 100644 --- a/src/Modules/SimplCommerce.Module.PaymentMomo/Data/PaymentMomoCustomModelBuilder.cs +++ b/src/Modules/SimplCommerce.Module.PaymentMomo/Data/PaymentMomoCustomModelBuilder.cs @@ -9,7 +9,7 @@ public class PaymentMomoCustomModelBuilder : ICustomModelBuilder public void Build(ModelBuilder modelBuilder) { modelBuilder.Entity().HasData( - new PaymentProvider("MomoPayment") { Name = "Momo Payment", LandingViewComponentName = "MomoLanding", ConfigureUrl = "payments-momo-config", IsEnabled = true, AdditionalSettings = "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420180417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}" } + new PaymentProvider("MomoPayment") { Name = "Momo Payment", LandingViewComponentName = "MomoLanding", ConfigureUrl = "payments-momo-config", IsEnabled = true, AdditionalSettings = "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420200417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}" } ); } } diff --git a/src/Modules/SimplCommerce.Module.ProductRecentlyViewed/Data/ProductRecentlyViewedCustomModelBuilder.cs b/src/Modules/SimplCommerce.Module.ProductRecentlyViewed/Data/ProductRecentlyViewedCustomModelBuilder.cs index de2085019d..db5c4cd827 100644 --- a/src/Modules/SimplCommerce.Module.ProductRecentlyViewed/Data/ProductRecentlyViewedCustomModelBuilder.cs +++ b/src/Modules/SimplCommerce.Module.ProductRecentlyViewed/Data/ProductRecentlyViewedCustomModelBuilder.cs @@ -16,7 +16,7 @@ public void Build(ModelBuilder modelBuilder) ViewComponentName = "RecentlyViewedWidget", CreateUrl = "widget-recently-viewed-create", EditUrl = "widget-recently-viewed-edit", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)) } ); diff --git a/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData.sql b/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData.sql index e144cea9c7..af4878b5c7 100644 --- a/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData.sql +++ b/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData.sql @@ -163,32 +163,32 @@ INSERT [dbo].[Catalog_Brand] ([Id], [Name], [Slug], [Description], [IsPublished] SET IDENTITY_INSERT [dbo].[Catalog_Brand] OFF GO SET IDENTITY_INSERT [dbo].[Catalog_Product] ON -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (1, 1, N'Lightweight Jacket', N'lightweight-jacket', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T15:02:17.0131910+07:00' AS DateTimeOffset), CAST(N'2018-08-11T15:02:17.0133446+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, 0, NULL, 1, 0, NULL, 2, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (2, 1, N'Lightweight Jacket M Black', N'lightweight-jacket-m-black', NULL, NULL, NULL, 1, CAST(N'2018-08-11T15:02:17.0496868+07:00' AS DateTimeOffset), 0, 10, CAST(N'2018-08-11T15:02:17.0490714+07:00' AS DateTimeOffset), CAST(N'2018-08-11T15:02:17.0490747+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'M-Black', 0, NULL, 1, 0, NULL, NULL, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (3, 1, N'Lightweight Jacket M Gray', N'lightweight-jacket-m-gray', NULL, NULL, NULL, 1, CAST(N'2018-08-11T15:02:17.0554427+07:00' AS DateTimeOffset), 0, 10, CAST(N'2018-08-11T15:02:17.0554403+07:00' AS DateTimeOffset), CAST(N'2018-08-11T15:02:17.0554418+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'M-Gray', 0, NULL, 1, 0, NULL, NULL, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (4, 1, N'Lightweight Jacket L Black', N'lightweight-jacket-l-black', NULL, NULL, NULL, 1, CAST(N'2018-08-11T15:02:17.0554601+07:00' AS DateTimeOffset), 0, 10, CAST(N'2018-08-11T15:02:17.0554598+07:00' AS DateTimeOffset), CAST(N'2018-08-11T15:02:17.0554598+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'L-Black', 0, NULL, 1, 0, NULL, NULL, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (5, 1, N'Lightweight Jacket L Gray', N'lightweight-jacket-l-gray', NULL, NULL, NULL, 1, CAST(N'2018-08-11T15:02:17.0554688+07:00' AS DateTimeOffset), 0, 10, CAST(N'2018-08-11T15:02:17.0554685+07:00' AS DateTimeOffset), CAST(N'2018-08-11T15:02:17.0554686+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'L-Gray', 0, NULL, 1, 0, NULL, NULL, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (6, 1, N'Lightweight Jacket S Black', N'lightweight-jacket-s-black', NULL, NULL, NULL, 1, CAST(N'2018-08-11T15:02:17.0554741+07:00' AS DateTimeOffset), 0, 10, CAST(N'2018-08-11T15:02:17.0554738+07:00' AS DateTimeOffset), CAST(N'2018-08-11T15:02:17.0554739+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'S-Black', 0, NULL, 1, 0, NULL, NULL, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (7, 1, N'Lightweight Jacket S Gray', N'lightweight-jacket-s-gray', NULL, NULL, NULL, 1, CAST(N'2018-08-11T15:02:17.0554798+07:00' AS DateTimeOffset), 0, 10, CAST(N'2018-08-11T15:02:17.0554795+07:00' AS DateTimeOffset), CAST(N'2018-08-11T15:02:17.0554796+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'S-Gray', 0, NULL, 1, 0, NULL, NULL, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (8, 1, N'Esprit Ruffle Shirt', N'esprit-ruffle-shirt', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T18:14:54.9500292+07:00' AS DateTimeOffset), CAST(N'2018-08-11T18:14:54.9500303+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(16.64 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 5, 0, NULL, 2, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (9, 1, N'Herschel supply', N'herschel-supply', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T18:16:28.3513281+07:00' AS DateTimeOffset), CAST(N'2018-08-11T18:16:28.3513289+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(35.31 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 7, 0, NULL, NULL, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (10, 1, N'Only Check Trouser', N'only-check-trouser', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T18:17:33.9968471+07:00' AS DateTimeOffset), CAST(N'2018-08-11T18:17:33.9968483+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(25.50 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 9, 0, NULL, 2, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (11, 1, N'Classic Trench Coat', N'classic-trench-coat', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T18:18:38.8006442+07:00' AS DateTimeOffset), CAST(N'2018-08-11T18:18:38.8006452+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 11, 0, NULL, 2, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (12, 1, N'Front Pocket Jumper', N'front-pocket-jumper', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T18:20:26.0181214+07:00' AS DateTimeOffset), CAST(N'2018-08-11T18:20:26.0181225+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(34.75 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 13, 0, NULL, 2, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (13, 1, N'Vintage Inspired Classic', N'vintage-inspired-classic', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T18:22:07.9910541+07:00' AS DateTimeOffset), CAST(N'2018-08-11T18:22:07.9910553+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(93.20 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 15, 0, NULL, 3, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (14, 1, N'Shirt in Stretch Cotton', N'shirt-in-stretch-cotton', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T18:23:06.0599222+07:00' AS DateTimeOffset), CAST(N'2018-08-11T18:23:06.0599232+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(52.66 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 17, 0, NULL, 2, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (15, 1, N'Pieces Metallic Printed', N'pieces-metallic-printed', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T18:24:48.0791813+07:00' AS DateTimeOffset), CAST(N'2018-08-11T18:24:48.0791822+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(18.96 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 19, 0, NULL, 2, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (16, 1, N'Converse All Star Hi Plimsolls', N'converse-all-star-hi-plimsolls', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T18:26:22.6986514+07:00' AS DateTimeOffset), CAST(N'2018-08-11T18:26:22.6986524+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 21, 0, NULL, 1, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (17, 1, N'Femme T-Shirt In Stripe', N'femme-t-shirt-in-stripe', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T18:27:33.7510433+07:00' AS DateTimeOffset), CAST(N'2018-08-11T18:27:33.7510446+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(25.85 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 23, 0, NULL, 2, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (18, 1, N'Herschel supply', N'herschel-supply-2', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T18:28:33.4852442+07:00' AS DateTimeOffset), CAST(N'2018-08-11T18:28:33.4852456+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(63.16 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 25, 0, NULL, 2, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (19, 1, N'Herschel supply', N'herschel-supply-2-3', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T18:29:44.3076497+07:00' AS DateTimeOffset), CAST(N'2018-08-11T18:29:44.3076505+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(63.15 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 27, 0, NULL, 2, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (20, 1, N'T-Shirt with Sleeve', N't-shirt-with-sleeve', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T18:30:56.2639586+07:00' AS DateTimeOffset), CAST(N'2018-08-11T18:30:56.2639602+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(18.49 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 29, 1, 5, 2, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (21, 1, N'Pretty Little Thing', N'pretty-little-thing', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T18:32:22.4371355+07:00' AS DateTimeOffset), CAST(N'2018-08-11T18:32:22.4371365+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(54.79 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 31, 0, NULL, 2, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (22, 1, N'Square Neck Back', N'square-neck-back', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T18:33:38.3028193+07:00' AS DateTimeOffset), CAST(N'2018-08-11T18:33:38.3028200+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 1, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 34, 1, 5, 2, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (23, 1, N'Square Neck Back Silver S', N'square-neck-back-silver-s', NULL, NULL, NULL, 1, CAST(N'2018-08-11T19:24:26.1186306+07:00' AS DateTimeOffset), 0, 10, CAST(N'2018-08-11T19:24:26.1186262+07:00' AS DateTimeOffset), CAST(N'2018-08-11T19:24:26.1186289+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'Silver-S', 0, NULL, 34, 0, NULL, NULL, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (24, 1, N'Square Neck Back Silver M', N'square-neck-back-silver-m', NULL, NULL, NULL, 1, CAST(N'2018-08-11T19:24:26.1245088+07:00' AS DateTimeOffset), 0, 10, CAST(N'2018-08-11T19:24:26.1245061+07:00' AS DateTimeOffset), CAST(N'2018-08-11T19:24:26.1245075+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'Silver-M', 0, NULL, 34, 0, NULL, NULL, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (25, 1, N'Square Neck Back Gray S', N'square-neck-back-gray-s', NULL, NULL, NULL, 1, CAST(N'2018-08-11T19:24:26.1245475+07:00' AS DateTimeOffset), 0, 10, CAST(N'2018-08-11T19:24:26.1245466+07:00' AS DateTimeOffset), CAST(N'2018-08-11T19:24:26.1245470+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'Gray-S', 0, NULL, 34, 0, NULL, NULL, 1) -INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (26, 1, N'Square Neck Back Gray M', N'square-neck-back-gray-m', NULL, NULL, NULL, 1, CAST(N'2018-08-11T19:24:26.1245624+07:00' AS DateTimeOffset), 0, 10, CAST(N'2018-08-11T19:24:26.1245617+07:00' AS DateTimeOffset), CAST(N'2018-08-11T19:24:26.1245620+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'Gray-M', 0, NULL, 34, 0, NULL, NULL, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (1, 1, N'Lightweight Jacket', N'lightweight-jacket', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T15:02:17.0131910+07:00' AS DateTimeOffset), CAST(N'2020-08-11T15:02:17.0133446+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, 0, NULL, 1, 0, NULL, 2, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (2, 1, N'Lightweight Jacket M Black', N'lightweight-jacket-m-black', NULL, NULL, NULL, 1, CAST(N'2020-08-11T15:02:17.0496868+07:00' AS DateTimeOffset), 0, 10, CAST(N'2020-08-11T15:02:17.0490714+07:00' AS DateTimeOffset), CAST(N'2020-08-11T15:02:17.0490747+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'M-Black', 0, NULL, 1, 0, NULL, NULL, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (3, 1, N'Lightweight Jacket M Gray', N'lightweight-jacket-m-gray', NULL, NULL, NULL, 1, CAST(N'2020-08-11T15:02:17.0554427+07:00' AS DateTimeOffset), 0, 10, CAST(N'2020-08-11T15:02:17.0554403+07:00' AS DateTimeOffset), CAST(N'2020-08-11T15:02:17.0554418+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'M-Gray', 0, NULL, 1, 0, NULL, NULL, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (4, 1, N'Lightweight Jacket L Black', N'lightweight-jacket-l-black', NULL, NULL, NULL, 1, CAST(N'2020-08-11T15:02:17.0554601+07:00' AS DateTimeOffset), 0, 10, CAST(N'2020-08-11T15:02:17.0554598+07:00' AS DateTimeOffset), CAST(N'2020-08-11T15:02:17.0554598+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'L-Black', 0, NULL, 1, 0, NULL, NULL, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (5, 1, N'Lightweight Jacket L Gray', N'lightweight-jacket-l-gray', NULL, NULL, NULL, 1, CAST(N'2020-08-11T15:02:17.0554688+07:00' AS DateTimeOffset), 0, 10, CAST(N'2020-08-11T15:02:17.0554685+07:00' AS DateTimeOffset), CAST(N'2020-08-11T15:02:17.0554686+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'L-Gray', 0, NULL, 1, 0, NULL, NULL, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (6, 1, N'Lightweight Jacket S Black', N'lightweight-jacket-s-black', NULL, NULL, NULL, 1, CAST(N'2020-08-11T15:02:17.0554741+07:00' AS DateTimeOffset), 0, 10, CAST(N'2020-08-11T15:02:17.0554738+07:00' AS DateTimeOffset), CAST(N'2020-08-11T15:02:17.0554739+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'S-Black', 0, NULL, 1, 0, NULL, NULL, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (7, 1, N'Lightweight Jacket S Gray', N'lightweight-jacket-s-gray', NULL, NULL, NULL, 1, CAST(N'2020-08-11T15:02:17.0554798+07:00' AS DateTimeOffset), 0, 10, CAST(N'2020-08-11T15:02:17.0554795+07:00' AS DateTimeOffset), CAST(N'2020-08-11T15:02:17.0554796+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'S-Gray', 0, NULL, 1, 0, NULL, NULL, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (8, 1, N'Esprit Ruffle Shirt', N'esprit-ruffle-shirt', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T18:14:54.9500292+07:00' AS DateTimeOffset), CAST(N'2020-08-11T18:14:54.9500303+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(16.64 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 5, 0, NULL, 2, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (9, 1, N'Herschel supply', N'herschel-supply', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T18:16:28.3513281+07:00' AS DateTimeOffset), CAST(N'2020-08-11T18:16:28.3513289+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(35.31 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 7, 0, NULL, NULL, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (10, 1, N'Only Check Trouser', N'only-check-trouser', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T18:17:33.9968471+07:00' AS DateTimeOffset), CAST(N'2020-08-11T18:17:33.9968483+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(25.50 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 9, 0, NULL, 2, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (11, 1, N'Classic Trench Coat', N'classic-trench-coat', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T18:18:38.8006442+07:00' AS DateTimeOffset), CAST(N'2020-08-11T18:18:38.8006452+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 11, 0, NULL, 2, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (12, 1, N'Front Pocket Jumper', N'front-pocket-jumper', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T18:20:26.0181214+07:00' AS DateTimeOffset), CAST(N'2020-08-11T18:20:26.0181225+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(34.75 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 13, 0, NULL, 2, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (13, 1, N'Vintage Inspired Classic', N'vintage-inspired-classic', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T18:22:07.9910541+07:00' AS DateTimeOffset), CAST(N'2020-08-11T18:22:07.9910553+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(93.20 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 15, 0, NULL, 3, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (14, 1, N'Shirt in Stretch Cotton', N'shirt-in-stretch-cotton', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T18:23:06.0599222+07:00' AS DateTimeOffset), CAST(N'2020-08-11T18:23:06.0599232+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(52.66 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 17, 0, NULL, 2, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (15, 1, N'Pieces Metallic Printed', N'pieces-metallic-printed', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T18:24:48.0791813+07:00' AS DateTimeOffset), CAST(N'2020-08-11T18:24:48.0791822+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(18.96 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 19, 0, NULL, 2, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (16, 1, N'Converse All Star Hi Plimsolls', N'converse-all-star-hi-plimsolls', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T18:26:22.6986514+07:00' AS DateTimeOffset), CAST(N'2020-08-11T18:26:22.6986524+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 21, 0, NULL, 1, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (17, 1, N'Femme T-Shirt In Stripe', N'femme-t-shirt-in-stripe', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T18:27:33.7510433+07:00' AS DateTimeOffset), CAST(N'2020-08-11T18:27:33.7510446+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(25.85 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 23, 0, NULL, 2, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (18, 1, N'Herschel supply', N'herschel-supply-2', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T18:28:33.4852442+07:00' AS DateTimeOffset), CAST(N'2020-08-11T18:28:33.4852456+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(63.16 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 25, 0, NULL, 2, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (19, 1, N'Herschel supply', N'herschel-supply-2-3', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T18:29:44.3076497+07:00' AS DateTimeOffset), CAST(N'2020-08-11T18:29:44.3076505+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(63.15 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 27, 0, NULL, 2, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (20, 1, N'T-Shirt with Sleeve', N't-shirt-with-sleeve', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T18:30:56.2639586+07:00' AS DateTimeOffset), CAST(N'2020-08-11T18:30:56.2639602+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(18.49 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 29, 1, 5, 2, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (21, 1, N'Pretty Little Thing', N'pretty-little-thing', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T18:32:22.4371355+07:00' AS DateTimeOffset), CAST(N'2020-08-11T18:32:22.4371365+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(54.79 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 31, 0, NULL, 2, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (22, 1, N'Square Neck Back', N'square-neck-back', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T18:33:38.3028193+07:00' AS DateTimeOffset), CAST(N'2020-08-11T18:33:38.3028200+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 1, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 34, 1, 5, 2, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (23, 1, N'Square Neck Back Silver S', N'square-neck-back-silver-s', NULL, NULL, NULL, 1, CAST(N'2020-08-11T19:24:26.1186306+07:00' AS DateTimeOffset), 0, 10, CAST(N'2020-08-11T19:24:26.1186262+07:00' AS DateTimeOffset), CAST(N'2020-08-11T19:24:26.1186289+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'Silver-S', 0, NULL, 34, 0, NULL, NULL, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (24, 1, N'Square Neck Back Silver M', N'square-neck-back-silver-m', NULL, NULL, NULL, 1, CAST(N'2020-08-11T19:24:26.1245088+07:00' AS DateTimeOffset), 0, 10, CAST(N'2020-08-11T19:24:26.1245061+07:00' AS DateTimeOffset), CAST(N'2020-08-11T19:24:26.1245075+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'Silver-M', 0, NULL, 34, 0, NULL, NULL, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (25, 1, N'Square Neck Back Gray S', N'square-neck-back-gray-s', NULL, NULL, NULL, 1, CAST(N'2020-08-11T19:24:26.1245475+07:00' AS DateTimeOffset), 0, 10, CAST(N'2020-08-11T19:24:26.1245466+07:00' AS DateTimeOffset), CAST(N'2020-08-11T19:24:26.1245470+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'Gray-S', 0, NULL, 34, 0, NULL, NULL, 1) +INSERT [dbo].[Catalog_Product] ([Id], [StockTrackingIsEnabled], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [ShortDescription], [Description], [Specification], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd], [HasOptions], [IsVisibleIndividually], [IsFeatured], [IsCallForPricing], [IsAllowToOrder], [StockQuantity], [Sku], [Gtin], [NormalizedName], [DisplayOrder], [VendorId], [ThumbnailImageId], [ReviewsCount], [RatingAverage], [BrandId], [TaxClassId]) VALUES (26, 1, N'Square Neck Back Gray M', N'square-neck-back-gray-m', NULL, NULL, NULL, 1, CAST(N'2020-08-11T19:24:26.1245624+07:00' AS DateTimeOffset), 0, 10, CAST(N'2020-08-11T19:24:26.1245617+07:00' AS DateTimeOffset), CAST(N'2020-08-11T19:24:26.1245620+07:00' AS DateTimeOffset), 10, N'

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', N'

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, N'Gray-M', 0, NULL, 34, 0, NULL, NULL, 1) SET IDENTITY_INSERT [dbo].[Catalog_Product] OFF GO SET IDENTITY_INSERT [dbo].[Catalog_ProductCategory] ON @@ -322,77 +322,77 @@ INSERT [dbo].[Inventory_Stock] ([Id], [ProductId], [WarehouseId], [Quantity], [R SET IDENTITY_INSERT [dbo].[Inventory_Stock] OFF GO SET IDENTITY_INSERT [dbo].[Catalog_ProductPriceHistory] ON -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (1, 1, 10, CAST(N'2018-08-11T15:02:17.0541076+07:00' AS DateTimeOffset), CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (2, 1, 10, CAST(N'2018-08-11T15:02:17.0554587+07:00' AS DateTimeOffset), CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (3, 1, 10, CAST(N'2018-08-11T15:02:17.0554679+07:00' AS DateTimeOffset), CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (4, 1, 10, CAST(N'2018-08-11T15:02:17.0554732+07:00' AS DateTimeOffset), CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (5, 1, 10, CAST(N'2018-08-11T15:02:17.0554783+07:00' AS DateTimeOffset), CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (6, 1, 10, CAST(N'2018-08-11T15:02:17.0554862+07:00' AS DateTimeOffset), CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (7, 1, 10, CAST(N'2018-08-11T15:02:17.0560706+07:00' AS DateTimeOffset), CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (8, 8, 10, CAST(N'2018-08-11T18:14:54.9581872+07:00' AS DateTimeOffset), CAST(16.64 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (9, 9, 10, CAST(N'2018-08-11T18:16:28.3595420+07:00' AS DateTimeOffset), CAST(35.31 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (10, 10, 10, CAST(N'2018-08-11T18:17:34.0032918+07:00' AS DateTimeOffset), CAST(25.50 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (11, 11, 10, CAST(N'2018-08-11T18:18:38.8056600+07:00' AS DateTimeOffset), CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (12, 12, 10, CAST(N'2018-08-11T18:20:26.0235652+07:00' AS DateTimeOffset), CAST(34.75 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (13, 13, 10, CAST(N'2018-08-11T18:22:07.9966185+07:00' AS DateTimeOffset), CAST(93.20 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (14, 14, 10, CAST(N'2018-08-11T18:23:06.0659327+07:00' AS DateTimeOffset), CAST(52.66 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (15, 15, 10, CAST(N'2018-08-11T18:24:48.0845771+07:00' AS DateTimeOffset), CAST(18.96 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (16, 16, 10, CAST(N'2018-08-11T18:26:22.7028175+07:00' AS DateTimeOffset), CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (17, 17, 10, CAST(N'2018-08-11T18:27:33.7559977+07:00' AS DateTimeOffset), CAST(25.85 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (18, 18, 10, CAST(N'2018-08-11T18:28:33.4902495+07:00' AS DateTimeOffset), CAST(63.16 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (19, 19, 10, CAST(N'2018-08-11T18:29:44.3117613+07:00' AS DateTimeOffset), CAST(63.15 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (20, 20, 10, CAST(N'2018-08-11T18:30:56.2754061+07:00' AS DateTimeOffset), CAST(18.49 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (21, 21, 10, CAST(N'2018-08-11T18:32:22.4407454+07:00' AS DateTimeOffset), CAST(54.79 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (22, 22, 10, CAST(N'2018-08-11T18:33:38.3028499+07:00' AS DateTimeOffset), CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (23, 24, 10, CAST(N'2018-08-11T19:24:26.1245415+07:00' AS DateTimeOffset), CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (24, 23, 10, CAST(N'2018-08-11T19:24:26.1242459+07:00' AS DateTimeOffset), CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (25, 25, 10, CAST(N'2018-08-11T19:24:26.1245570+07:00' AS DateTimeOffset), CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL) -INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (26, 26, 10, CAST(N'2018-08-11T19:24:26.1245732+07:00' AS DateTimeOffset), CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (1, 1, 10, CAST(N'2020-08-11T15:02:17.0541076+07:00' AS DateTimeOffset), CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (2, 1, 10, CAST(N'2020-08-11T15:02:17.0554587+07:00' AS DateTimeOffset), CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (3, 1, 10, CAST(N'2020-08-11T15:02:17.0554679+07:00' AS DateTimeOffset), CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (4, 1, 10, CAST(N'2020-08-11T15:02:17.0554732+07:00' AS DateTimeOffset), CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (5, 1, 10, CAST(N'2020-08-11T15:02:17.0554783+07:00' AS DateTimeOffset), CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (6, 1, 10, CAST(N'2020-08-11T15:02:17.0554862+07:00' AS DateTimeOffset), CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (7, 1, 10, CAST(N'2020-08-11T15:02:17.0560706+07:00' AS DateTimeOffset), CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (8, 8, 10, CAST(N'2020-08-11T18:14:54.9581872+07:00' AS DateTimeOffset), CAST(16.64 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (9, 9, 10, CAST(N'2020-08-11T18:16:28.3595420+07:00' AS DateTimeOffset), CAST(35.31 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (10, 10, 10, CAST(N'2020-08-11T18:17:34.0032918+07:00' AS DateTimeOffset), CAST(25.50 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (11, 11, 10, CAST(N'2020-08-11T18:18:38.8056600+07:00' AS DateTimeOffset), CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (12, 12, 10, CAST(N'2020-08-11T18:20:26.0235652+07:00' AS DateTimeOffset), CAST(34.75 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (13, 13, 10, CAST(N'2020-08-11T18:22:07.9966185+07:00' AS DateTimeOffset), CAST(93.20 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (14, 14, 10, CAST(N'2020-08-11T18:23:06.0659327+07:00' AS DateTimeOffset), CAST(52.66 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (15, 15, 10, CAST(N'2020-08-11T18:24:48.0845771+07:00' AS DateTimeOffset), CAST(18.96 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (16, 16, 10, CAST(N'2020-08-11T18:26:22.7028175+07:00' AS DateTimeOffset), CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (17, 17, 10, CAST(N'2020-08-11T18:27:33.7559977+07:00' AS DateTimeOffset), CAST(25.85 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (18, 18, 10, CAST(N'2020-08-11T18:28:33.4902495+07:00' AS DateTimeOffset), CAST(63.16 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (19, 19, 10, CAST(N'2020-08-11T18:29:44.3117613+07:00' AS DateTimeOffset), CAST(63.15 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (20, 20, 10, CAST(N'2020-08-11T18:30:56.2754061+07:00' AS DateTimeOffset), CAST(18.49 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (21, 21, 10, CAST(N'2020-08-11T18:32:22.4407454+07:00' AS DateTimeOffset), CAST(54.79 AS Decimal(18, 2)), NULL, NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (22, 22, 10, CAST(N'2020-08-11T18:33:38.3028499+07:00' AS DateTimeOffset), CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (23, 24, 10, CAST(N'2020-08-11T19:24:26.1245415+07:00' AS DateTimeOffset), CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (24, 23, 10, CAST(N'2020-08-11T19:24:26.1242459+07:00' AS DateTimeOffset), CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (25, 25, 10, CAST(N'2020-08-11T19:24:26.1245570+07:00' AS DateTimeOffset), CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL) +INSERT [dbo].[Catalog_ProductPriceHistory] ([Id], [ProductId], [CreatedById], [CreatedOn], [Price], [OldPrice], [SpecialPrice], [SpecialPriceStart], [SpecialPriceEnd]) VALUES (26, 26, 10, CAST(N'2020-08-11T19:24:26.1245732+07:00' AS DateTimeOffset), CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL) SET IDENTITY_INSERT [dbo].[Catalog_ProductPriceHistory] OFF GO SET IDENTITY_INSERT [dbo].[Cms_Page] ON -INSERT [dbo].[Cms_Page] ([Id], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [Body]) VALUES (1, N'Help center', N'help-center', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T20:47:14.1027299+07:00' AS DateTimeOffset), CAST(N'2018-08-11T20:47:14.1027316+07:00' AS DateTimeOffset), 10, N'

Help center

Your information. Use admin site to update

') -INSERT [dbo].[Cms_Page] ([Id], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [Body]) VALUES (2, N'About Us', N'about-us', NULL, NULL, N'', 1, NULL, 0, 10, CAST(N'2018-08-11T20:49:11.7082006+07:00' AS DateTimeOffset), CAST(N'2018-08-11T20:49:11.7082016+07:00' AS DateTimeOffset), 10, N'

About Us

Edit your information in the admin side

') -INSERT [dbo].[Cms_Page] ([Id], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [Body]) VALUES (3, N'Terms of Use', N'terms-of-use', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2018-08-11T20:50:11.5637211+07:00' AS DateTimeOffset), CAST(N'2018-08-11T20:50:11.5637220+07:00' AS DateTimeOffset), 10, N'

Term and Conditions

Your term and conditions. Use admin site to update.

') +INSERT [dbo].[Cms_Page] ([Id], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [Body]) VALUES (1, N'Help center', N'help-center', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T20:47:14.1027299+07:00' AS DateTimeOffset), CAST(N'2020-08-11T20:47:14.1027316+07:00' AS DateTimeOffset), 10, N'

Help center

Your information. Use admin site to update

') +INSERT [dbo].[Cms_Page] ([Id], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [Body]) VALUES (2, N'About Us', N'about-us', NULL, NULL, N'', 1, NULL, 0, 10, CAST(N'2020-08-11T20:49:11.7082006+07:00' AS DateTimeOffset), CAST(N'2020-08-11T20:49:11.7082016+07:00' AS DateTimeOffset), 10, N'

About Us

Edit your information in the admin side

') +INSERT [dbo].[Cms_Page] ([Id], [Name], [Slug], [MetaTitle], [MetaKeywords], [MetaDescription], [IsPublished], [PublishedOn], [IsDeleted], [CreatedById], [CreatedOn], [LatestUpdatedOn], [LatestUpdatedById], [Body]) VALUES (3, N'Terms of Use', N'terms-of-use', NULL, NULL, NULL, 1, NULL, 0, 10, CAST(N'2020-08-11T20:50:11.5637211+07:00' AS DateTimeOffset), CAST(N'2020-08-11T20:50:11.5637220+07:00' AS DateTimeOffset), 10, N'

Term and Conditions

Your term and conditions. Use admin site to update.

') SET IDENTITY_INSERT [dbo].[Cms_Page] OFF GO SET IDENTITY_INSERT [dbo].[Core_WidgetInstance] ON -INSERT [dbo].[Core_WidgetInstance] ([Id], [Name], [CreatedOn], [LatestUpdatedOn], [PublishStart], [PublishEnd], [WidgetId], [WidgetZoneId], [DisplayOrder], [Data], [HtmlData]) VALUES (1, N'Home Featured', CAST(N'2018-08-11T06:57:30.6053643+07:00' AS DateTimeOffset), CAST(N'2018-08-11T06:57:30.6054847+07:00' AS DateTimeOffset), CAST(N'2018-08-10T23:53:17.2780000+00:00' AS DateTimeOffset), NULL, N'CarouselWidget', 1, 0, N'[{{"Image":"88604574-f0a3-4982-9b0d-f8a7558dd3ba.jpg","ImageUrl":null,"Caption":"NEW SEASON","SubCaption":"Women Collection 2018","LinkText":"Shop Now","TargetUrl":"/woman"}},{{"Image":"a5904343-189d-469b-a93b-d553c109b781.jpg","ImageUrl":null,"Caption":"Jackets & Coats","SubCaption":"Men New-Season","LinkText":"Shop Now","TargetUrl":"/man"}},{{"Image":"83c21bb9-2f0d-446a-bb0c-3b19e6d922aa.jpg","ImageUrl":null,"Caption":"New arrivals","SubCaption":"Men Collection 2018","LinkText":"Shop Now","TargetUrl":"/man"}}]', NULL) -INSERT [dbo].[Core_WidgetInstance] ([Id], [Name], [CreatedOn], [LatestUpdatedOn], [PublishStart], [PublishEnd], [WidgetId], [WidgetZoneId], [DisplayOrder], [Data], [HtmlData]) VALUES (2, N'New products', CAST(N'2018-08-11T15:05:18.2330286+07:00' AS DateTimeOffset), CAST(N'2018-08-11T15:05:18.2331945+07:00' AS DateTimeOffset), CAST(N'2018-08-11T08:04:35.8680000+00:00' AS DateTimeOffset), NULL, N'ProductWidget', 2, 0, N'{{"NumberOfProducts":4,"CategoryId":null,"OrderBy":"Newest","FeaturedOnly":false}}', NULL) -INSERT [dbo].[Core_WidgetInstance] ([Id], [Name], [CreatedOn], [LatestUpdatedOn], [PublishStart], [PublishEnd], [WidgetId], [WidgetZoneId], [DisplayOrder], [Data], [HtmlData]) VALUES (6, N'Man collection', CAST(N'2018-09-06T07:50:22.6521628+07:00' AS DateTimeOffset), CAST(N'2018-09-06T07:50:22.6521650+07:00' AS DateTimeOffset), CAST(N'2018-09-06T00:50:11.8940000+00:00' AS DateTimeOffset), NULL, N'ProductWidget', 2, 0, N'{{"NumberOfProducts":4,"CategoryId":2,"OrderBy":"Newest","FeaturedOnly":false}}', NULL) -INSERT [dbo].[Core_WidgetInstance] ([Id], [Name], [CreatedOn], [LatestUpdatedOn], [PublishStart], [PublishEnd], [WidgetId], [WidgetZoneId], [DisplayOrder], [Data], [HtmlData]) VALUES (7, N'Woman collection', CAST(N'2018-09-06T07:50:37.6019466+07:00' AS DateTimeOffset), CAST(N'2018-09-06T07:50:37.6019479+07:00' AS DateTimeOffset), CAST(N'2018-09-06T00:50:26.2900000+00:00' AS DateTimeOffset), NULL, N'ProductWidget', 2, 0, N'{{"NumberOfProducts":4,"CategoryId":1,"OrderBy":"Newest","FeaturedOnly":false}}', NULL) +INSERT [dbo].[Core_WidgetInstance] ([Id], [Name], [CreatedOn], [LatestUpdatedOn], [PublishStart], [PublishEnd], [WidgetId], [WidgetZoneId], [DisplayOrder], [Data], [HtmlData]) VALUES (1, N'Home Featured', CAST(N'2020-08-11T06:57:30.6053643+07:00' AS DateTimeOffset), CAST(N'2020-08-11T06:57:30.6054847+07:00' AS DateTimeOffset), CAST(N'2020-08-10T23:53:17.2780000+00:00' AS DateTimeOffset), NULL, N'CarouselWidget', 1, 0, N'[{{"Image":"88604574-f0a3-4982-9b0d-f8a7558dd3ba.jpg","ImageUrl":null,"Caption":"NEW SEASON","SubCaption":"Women Collection 2020","LinkText":"Shop Now","TargetUrl":"/woman"}},{{"Image":"a5904343-189d-469b-a93b-d553c109b781.jpg","ImageUrl":null,"Caption":"Jackets & Coats","SubCaption":"Men New-Season","LinkText":"Shop Now","TargetUrl":"/man"}},{{"Image":"83c21bb9-2f0d-446a-bb0c-3b19e6d922aa.jpg","ImageUrl":null,"Caption":"New arrivals","SubCaption":"Men Collection 2020","LinkText":"Shop Now","TargetUrl":"/man"}}]', NULL) +INSERT [dbo].[Core_WidgetInstance] ([Id], [Name], [CreatedOn], [LatestUpdatedOn], [PublishStart], [PublishEnd], [WidgetId], [WidgetZoneId], [DisplayOrder], [Data], [HtmlData]) VALUES (2, N'New products', CAST(N'2020-08-11T15:05:18.2330286+07:00' AS DateTimeOffset), CAST(N'2020-08-11T15:05:18.2331945+07:00' AS DateTimeOffset), CAST(N'2020-08-11T08:04:35.8680000+00:00' AS DateTimeOffset), NULL, N'ProductWidget', 2, 0, N'{{"NumberOfProducts":4,"CategoryId":null,"OrderBy":"Newest","FeaturedOnly":false}}', NULL) +INSERT [dbo].[Core_WidgetInstance] ([Id], [Name], [CreatedOn], [LatestUpdatedOn], [PublishStart], [PublishEnd], [WidgetId], [WidgetZoneId], [DisplayOrder], [Data], [HtmlData]) VALUES (6, N'Man collection', CAST(N'2020-09-06T07:50:22.6521628+07:00' AS DateTimeOffset), CAST(N'2020-09-06T07:50:22.6521650+07:00' AS DateTimeOffset), CAST(N'2020-09-06T00:50:11.8940000+00:00' AS DateTimeOffset), NULL, N'ProductWidget', 2, 0, N'{{"NumberOfProducts":4,"CategoryId":2,"OrderBy":"Newest","FeaturedOnly":false}}', NULL) +INSERT [dbo].[Core_WidgetInstance] ([Id], [Name], [CreatedOn], [LatestUpdatedOn], [PublishStart], [PublishEnd], [WidgetId], [WidgetZoneId], [DisplayOrder], [Data], [HtmlData]) VALUES (7, N'Woman collection', CAST(N'2020-09-06T07:50:37.6019466+07:00' AS DateTimeOffset), CAST(N'2020-09-06T07:50:37.6019479+07:00' AS DateTimeOffset), CAST(N'2020-09-06T00:50:26.2900000+00:00' AS DateTimeOffset), NULL, N'ProductWidget', 2, 0, N'{{"NumberOfProducts":4,"CategoryId":1,"OrderBy":"Newest","FeaturedOnly":false}}', NULL) SET IDENTITY_INSERT [dbo].[Core_WidgetInstance] OFF GO SET IDENTITY_INSERT [dbo].[Inventory_StockHistory] ON -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (1, 7, 1, CAST(N'2018-08-11T15:03:25.9597942+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (2, 6, 1, CAST(N'2018-08-11T15:03:25.9866400+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (3, 5, 1, CAST(N'2018-08-11T15:03:25.9920796+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (4, 4, 1, CAST(N'2018-08-11T15:03:25.9973684+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (5, 3, 1, CAST(N'2018-08-11T15:03:26.0034946+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (6, 2, 1, CAST(N'2018-08-11T15:03:26.0091053+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (7, 26, 1, CAST(N'2018-08-11T21:20:52.1609725+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (8, 16, 1, CAST(N'2018-08-11T21:20:52.1902238+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (9, 9, 1, CAST(N'2018-08-11T21:20:52.1954335+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (10, 10, 1, CAST(N'2018-08-11T21:20:52.2005929+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (11, 11, 1, CAST(N'2018-08-11T21:20:52.2059812+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (12, 12, 1, CAST(N'2018-08-11T21:20:52.2111554+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (13, 13, 1, CAST(N'2018-08-11T21:20:52.2164212+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (14, 14, 1, CAST(N'2018-08-11T21:20:52.2219702+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (15, 15, 1, CAST(N'2018-08-11T21:20:52.2276720+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (16, 17, 1, CAST(N'2018-08-11T21:20:52.2340966+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (17, 25, 1, CAST(N'2018-08-11T21:20:52.2416871+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (18, 18, 1, CAST(N'2018-08-11T21:20:52.2503225+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (19, 19, 1, CAST(N'2018-08-11T21:20:52.2567163+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (20, 20, 1, CAST(N'2018-08-11T21:20:52.2655516+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (21, 21, 1, CAST(N'2018-08-11T21:20:52.2718544+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (22, 22, 1, CAST(N'2018-08-11T21:20:52.2782942+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (23, 23, 1, CAST(N'2018-08-11T21:20:52.2871106+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (24, 24, 1, CAST(N'2018-08-11T21:20:52.2956470+07:00' AS DateTimeOffset), 10, 100, NULL) -INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (25, 8, 1, CAST(N'2018-08-11T21:20:52.3045421+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (1, 7, 1, CAST(N'2020-08-11T15:03:25.9597942+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (2, 6, 1, CAST(N'2020-08-11T15:03:25.9866400+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (3, 5, 1, CAST(N'2020-08-11T15:03:25.9920796+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (4, 4, 1, CAST(N'2020-08-11T15:03:25.9973684+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (5, 3, 1, CAST(N'2020-08-11T15:03:26.0034946+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (6, 2, 1, CAST(N'2020-08-11T15:03:26.0091053+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (7, 26, 1, CAST(N'2020-08-11T21:20:52.1609725+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (8, 16, 1, CAST(N'2020-08-11T21:20:52.1902238+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (9, 9, 1, CAST(N'2020-08-11T21:20:52.1954335+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (10, 10, 1, CAST(N'2020-08-11T21:20:52.2005929+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (11, 11, 1, CAST(N'2020-08-11T21:20:52.2059812+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (12, 12, 1, CAST(N'2020-08-11T21:20:52.2111554+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (13, 13, 1, CAST(N'2020-08-11T21:20:52.2164212+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (14, 14, 1, CAST(N'2020-08-11T21:20:52.2219702+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (15, 15, 1, CAST(N'2020-08-11T21:20:52.2276720+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (16, 17, 1, CAST(N'2020-08-11T21:20:52.2340966+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (17, 25, 1, CAST(N'2020-08-11T21:20:52.2416871+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (18, 18, 1, CAST(N'2020-08-11T21:20:52.2503225+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (19, 19, 1, CAST(N'2020-08-11T21:20:52.2567163+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (20, 20, 1, CAST(N'2020-08-11T21:20:52.2655516+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (21, 21, 1, CAST(N'2020-08-11T21:20:52.2718544+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (22, 22, 1, CAST(N'2020-08-11T21:20:52.2782942+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (23, 23, 1, CAST(N'2020-08-11T21:20:52.2871106+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (24, 24, 1, CAST(N'2020-08-11T21:20:52.2956470+07:00' AS DateTimeOffset), 10, 100, NULL) +INSERT [dbo].[Inventory_StockHistory] ([Id], [ProductId], [WarehouseId], [CreatedOn], [CreatedById], [AdjustedQuantity], [Note]) VALUES (25, 8, 1, CAST(N'2020-08-11T21:20:52.3045421+07:00' AS DateTimeOffset), 10, 100, NULL) SET IDENTITY_INSERT [dbo].[Inventory_StockHistory] OFF GO SET IDENTITY_INSERT [dbo].[Reviews_Review] ON -INSERT [dbo].[Reviews_Review] ([Id], [UserId], [Title], [Comment], [Rating], [ReviewerName], [Status], [CreatedOn], [EntityTypeId], [EntityId]) VALUES (1, 10, N'Good', N'very good', 5, N'very good', 5, CAST(N'2018-08-11T19:20:55.4863839+07:00' AS DateTimeOffset), N'Product', 20) -INSERT [dbo].[Reviews_Review] ([Id], [UserId], [Title], [Comment], [Rating], [ReviewerName], [Status], [CreatedOn], [EntityTypeId], [EntityId]) VALUES (2, 10, N'excellent', N'very good', 5, N'Thien', 5, CAST(N'2018-08-11T20:43:11.1216762+07:00' AS DateTimeOffset), N'Product', 22) +INSERT [dbo].[Reviews_Review] ([Id], [UserId], [Title], [Comment], [Rating], [ReviewerName], [Status], [CreatedOn], [EntityTypeId], [EntityId]) VALUES (1, 10, N'Good', N'very good', 5, N'very good', 5, CAST(N'2020-08-11T19:20:55.4863839+07:00' AS DateTimeOffset), N'Product', 20) +INSERT [dbo].[Reviews_Review] ([Id], [UserId], [Title], [Comment], [Rating], [ReviewerName], [Status], [CreatedOn], [EntityTypeId], [EntityId]) VALUES (2, 10, N'excellent', N'very good', 5, N'Thien', 5, CAST(N'2020-08-11T20:43:11.1216762+07:00' AS DateTimeOffset), N'Product', 22) SET IDENTITY_INSERT [dbo].[Reviews_Review] OFF GO diff --git a/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData_MySql.sql b/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData_MySql.sql index a9eed7a0e1..e6216a73db 100644 --- a/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData_MySql.sql +++ b/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData_MySql.sql @@ -120,32 +120,32 @@ INSERT INTO Catalog_Brand (Id, Name, Slug, Description, IsPublished, IsDeleted) INSERT INTO Catalog_Brand (Id, Name, Slug, Description, IsPublished, IsDeleted) VALUES (2, 'Calvin Klein', 'calvin-klein', NULL, 1, 0); INSERT INTO Catalog_Brand (Id, Name, Slug, Description, IsPublished, IsDeleted) VALUES (3, 'Ogival', 'ogival', NULL, 1, 0); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (1, 1, 'Lightweight Jacket', 'lightweight-jacket', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, 0, NULL, 1, 0, NULL, 2, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (2, 1, 'Lightweight Jacket M Black', 'lightweight-jacket-m-black', NULL, NULL, NULL, 1, '2018-05-29 04:33:39.189000', 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'M-Black', 0, NULL, 1, 0, NULL, NULL, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (3, 1, 'Lightweight Jacket M Gray', 'lightweight-jacket-m-gray', NULL, NULL, NULL, 1, '2018-05-29 04:33:39.189000', 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'M-Gray', 0, NULL, 1, 0, NULL, NULL, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (4, 1, 'Lightweight Jacket L Black', 'lightweight-jacket-l-black', NULL, NULL, NULL, 1, '2018-05-29 04:33:39.189000', 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'L-Black', 0, NULL, 1, 0, NULL, NULL, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (5, 1, 'Lightweight Jacket L Gray', 'lightweight-jacket-l-gray', NULL, NULL, NULL, 1, '2018-05-29 04:33:39.189000', 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'L-Gray', 0, NULL, 1, 0, NULL, NULL, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (6, 1, 'Lightweight Jacket S Black', 'lightweight-jacket-s-black', NULL, NULL, NULL, 1, '2018-05-29 04:33:39.189000', 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'S-Black', 0, NULL, 1, 0, NULL, NULL, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (7, 1, 'Lightweight Jacket S Gray', 'lightweight-jacket-s-gray', NULL, NULL, NULL, 1, '2018-05-29 04:33:39.189000', 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'S-Gray', 0, NULL, 1, 0, NULL, NULL, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (8, 1, 'Esprit Ruffle Shirt', 'esprit-ruffle-shirt', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(16.64 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 5, 0, NULL, 2, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (9, 1, 'Herschel supply', 'herschel-supply', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(35.31 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 7, 0, NULL, NULL, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (10, 1, 'Only Check Trouser', 'only-check-trouser', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(25.50 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 9, 0, NULL, 2, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (11, 1, 'Classic Trench Coat', 'classic-trench-coat', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 11, 0, NULL, 2, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (12, 1, 'Front Pocket Jumper', 'front-pocket-jumper', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(34.75 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 13, 0, NULL, 2, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (13, 1, 'Vintage Inspired Classic', 'vintage-inspired-classic', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(93.20 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 15, 0, NULL, 3, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (14, 1, 'Shirt in Stretch Cotton', 'shirt-in-stretch-cotton', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(52.66 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 17, 0, NULL, 2, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (15, 1, 'Pieces Metallic Printed', 'pieces-metallic-printed', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(18.96 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 19, 0, NULL, 2, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (16, 1, 'Converse All Star Hi Plimsolls', 'converse-all-star-hi-plimsolls', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 21, 0, NULL, 1, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (17, 1, 'Femme T-Shirt In Stripe', 'femme-t-shirt-in-stripe', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(25.85 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 23, 0, NULL, 2, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (18, 1, 'Herschel supply', 'herschel-supply-2', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(63.16 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 25, 0, NULL, 2, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (19, 1, 'Herschel supply', 'herschel-supply-2-3', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(63.15 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 27, 0, NULL, 2, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (20, 1, 'T-Shirt with Sleeve', 't-shirt-with-sleeve', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(18.49 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 29, 1, 5, 2, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (21, 1, 'Pretty Little Thing', 'pretty-little-thing', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(54.79 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 31, 0, NULL, 2, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (22, 1, 'Square Neck Back', 'square-neck-back', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 1, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 34, 1, 5, 2, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (23, 1, 'Square Neck Back Silver S', 'square-neck-back-silver-s', NULL, NULL, NULL, 1, '2018-05-29 04:33:39.189000', 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'Silver-S', 0, NULL, 34, 0, NULL, NULL, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (24, 1, 'Square Neck Back Silver M', 'square-neck-back-silver-m', NULL, NULL, NULL, 1, '2018-05-29 04:33:39.189000', 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'Silver-M', 0, NULL, 34, 0, NULL, NULL, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (25, 1, 'Square Neck Back Gray S', 'square-neck-back-gray-s', NULL, NULL, NULL, 1, '2018-05-29 04:33:39.189000', 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'Gray-S', 0, NULL, 34, 0, NULL, NULL, 1); -INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (26, 1, 'Square Neck Back Gray M', 'square-neck-back-gray-m', NULL, NULL, NULL, 1, '2018-05-29 04:33:39.189000', 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'Gray-M', 0, NULL, 34, 0, NULL, NULL, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (1, 1, 'Lightweight Jacket', 'lightweight-jacket', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 1, 1, 0, 0, 1, 0, NULL, NULL, NULL, 0, NULL, 1, 0, NULL, 2, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (2, 1, 'Lightweight Jacket M Black', 'lightweight-jacket-m-black', NULL, NULL, NULL, 1, '2020-05-29 04:33:39.189000', 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'M-Black', 0, NULL, 1, 0, NULL, NULL, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (3, 1, 'Lightweight Jacket M Gray', 'lightweight-jacket-m-gray', NULL, NULL, NULL, 1, '2020-05-29 04:33:39.189000', 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'M-Gray', 0, NULL, 1, 0, NULL, NULL, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (4, 1, 'Lightweight Jacket L Black', 'lightweight-jacket-l-black', NULL, NULL, NULL, 1, '2020-05-29 04:33:39.189000', 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'L-Black', 0, NULL, 1, 0, NULL, NULL, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (5, 1, 'Lightweight Jacket L Gray', 'lightweight-jacket-l-gray', NULL, NULL, NULL, 1, '2020-05-29 04:33:39.189000', 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'L-Gray', 0, NULL, 1, 0, NULL, NULL, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (6, 1, 'Lightweight Jacket S Black', 'lightweight-jacket-s-black', NULL, NULL, NULL, 1, '2020-05-29 04:33:39.189000', 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'S-Black', 0, NULL, 1, 0, NULL, NULL, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (7, 1, 'Lightweight Jacket S Gray', 'lightweight-jacket-s-gray', NULL, NULL, NULL, 1, '2020-05-29 04:33:39.189000', 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'S-Gray', 0, NULL, 1, 0, NULL, NULL, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (8, 1, 'Esprit Ruffle Shirt', 'esprit-ruffle-shirt', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(16.64 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 5, 0, NULL, 2, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (9, 1, 'Herschel supply', 'herschel-supply', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(35.31 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 7, 0, NULL, NULL, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (10, 1, 'Only Check Trouser', 'only-check-trouser', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(25.50 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 9, 0, NULL, 2, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (11, 1, 'Classic Trench Coat', 'classic-trench-coat', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 11, 0, NULL, 2, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (12, 1, 'Front Pocket Jumper', 'front-pocket-jumper', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(34.75 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 13, 0, NULL, 2, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (13, 1, 'Vintage Inspired Classic', 'vintage-inspired-classic', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(93.20 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 15, 0, NULL, 3, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (14, 1, 'Shirt in Stretch Cotton', 'shirt-in-stretch-cotton', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(52.66 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 17, 0, NULL, 2, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (15, 1, 'Pieces Metallic Printed', 'pieces-metallic-printed', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(18.96 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 19, 0, NULL, 2, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (16, 1, 'Converse All Star Hi Plimsolls', 'converse-all-star-hi-plimsolls', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 21, 0, NULL, 1, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (17, 1, 'Femme T-Shirt In Stripe', 'femme-t-shirt-in-stripe', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(25.85 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 23, 0, NULL, 2, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (18, 1, 'Herschel supply', 'herschel-supply-2', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(63.16 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 25, 0, NULL, 2, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (19, 1, 'Herschel supply', 'herschel-supply-2-3', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(63.15 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 27, 0, NULL, 2, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (20, 1, 'T-Shirt with Sleeve', 't-shirt-with-sleeve', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(18.49 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 29, 1, 5, 2, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (21, 1, 'Pretty Little Thing', 'pretty-little-thing', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(54.79 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, 0, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 31, 0, NULL, 2, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (22, 1, 'Square Neck Back', 'square-neck-back', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 1, 1, 0, 0, 1, 100, NULL, NULL, NULL, 0, NULL, 34, 1, 5, 2, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (23, 1, 'Square Neck Back Silver S', 'square-neck-back-silver-s', NULL, NULL, NULL, 1, '2020-05-29 04:33:39.189000', 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'Silver-S', 0, NULL, 34, 0, NULL, NULL, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (24, 1, 'Square Neck Back Silver M', 'square-neck-back-silver-m', NULL, NULL, NULL, 1, '2020-05-29 04:33:39.189000', 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'Silver-M', 0, NULL, 34, 0, NULL, NULL, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (25, 1, 'Square Neck Back Gray S', 'square-neck-back-gray-s', NULL, NULL, NULL, 1, '2020-05-29 04:33:39.189000', 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'Gray-S', 0, NULL, 34, 0, NULL, NULL, 1); +INSERT INTO Catalog_Product (Id, StockTrackingIsEnabled, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, ShortDescription, Description, Specification, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd, HasOptions, IsVisibleIndividually, IsFeatured, IsCallForPricing, IsAllowToOrder, StockQuantity, Sku, Gtin, NormalizedName, DisplayOrder, VendorId, ThumbnailImageId, ReviewsCount, RatingAverage, BrandId, TaxClassId) VALUES (26, 1, 'Square Neck Back Gray M', 'square-neck-back-gray-m', NULL, NULL, NULL, 1, '2020-05-29 04:33:39.189000', 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, 0, 0, 0, 0, 1, 100, NULL, NULL, 'Gray-M', 0, NULL, 34, 0, NULL, NULL, 1); INSERT INTO Catalog_ProductCategory (Id, IsFeaturedProduct, DisplayOrder, CategoryId, ProductId) VALUES (1, 0, 0, 5, 1); INSERT INTO Catalog_ProductCategory (Id, IsFeaturedProduct, DisplayOrder, CategoryId, ProductId) VALUES (2, 0, 0, 2, 7); @@ -265,67 +265,67 @@ INSERT INTO Inventory_Stock (Id, ProductId, WarehouseId, Quantity, ReservedQuant INSERT INTO Inventory_Stock (Id, ProductId, WarehouseId, Quantity, ReservedQuantity) VALUES (24, 16, 1, 100, 0); INSERT INTO Inventory_Stock (Id, ProductId, WarehouseId, Quantity, ReservedQuantity) VALUES (25, 26, 1, 100, 0); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (1, 1, 10, '2018-05-29 04:33:39.189000', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (2, 1, 10, '2018-05-29 04:33:39.189000', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (3, 1, 10, '2018-05-29 04:33:39.189000', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (4, 1, 10, '2018-05-29 04:33:39.189000', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (5, 1, 10, '2018-05-29 04:33:39.189000', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (6, 1, 10, '2018-05-29 04:33:39.189000', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (7, 1, 10, '2018-05-29 04:33:39.189000', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (8, 8, 10, '2018-05-29 04:33:39.189000', CAST(16.64 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (9, 9, 10, '2018-05-29 04:33:39.189000', CAST(35.31 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (10, 10, 10, '2018-05-29 04:33:39.189000', CAST(25.50 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (11, 11, 10, '2018-05-29 04:33:39.189000', CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (12, 12, 10, '2018-05-29 04:33:39.189000', CAST(34.75 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (13, 13, 10, '2018-05-29 04:33:39.189000', CAST(93.20 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (14, 14, 10, '2018-05-29 04:33:39.189000', CAST(52.66 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (15, 15, 10, '2018-05-29 04:33:39.189000', CAST(18.96 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (16, 16, 10, '2018-05-29 04:33:39.189000', CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (17, 17, 10, '2018-05-29 04:33:39.189000', CAST(25.85 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (18, 18, 10, '2018-05-29 04:33:39.189000', CAST(63.16 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (19, 19, 10, '2018-05-29 04:33:39.189000', CAST(63.15 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (20, 20, 10, '2018-05-29 04:33:39.189000', CAST(18.49 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (21, 21, 10, '2018-05-29 04:33:39.189000', CAST(54.79 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (22, 22, 10, '2018-05-29 04:33:39.189000', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (23, 24, 10, '2018-05-29 04:33:39.189000', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (24, 23, 10, '2018-05-29 04:33:39.189000', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (25, 25, 10, '2018-05-29 04:33:39.189000', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (26, 26, 10, '2018-05-29 04:33:39.189000', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (1, 1, 10, '2020-05-29 04:33:39.189000', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (2, 1, 10, '2020-05-29 04:33:39.189000', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (3, 1, 10, '2020-05-29 04:33:39.189000', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (4, 1, 10, '2020-05-29 04:33:39.189000', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (5, 1, 10, '2020-05-29 04:33:39.189000', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (6, 1, 10, '2020-05-29 04:33:39.189000', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (7, 1, 10, '2020-05-29 04:33:39.189000', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (8, 8, 10, '2020-05-29 04:33:39.189000', CAST(16.64 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (9, 9, 10, '2020-05-29 04:33:39.189000', CAST(35.31 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (10, 10, 10, '2020-05-29 04:33:39.189000', CAST(25.50 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (11, 11, 10, '2020-05-29 04:33:39.189000', CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (12, 12, 10, '2020-05-29 04:33:39.189000', CAST(34.75 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (13, 13, 10, '2020-05-29 04:33:39.189000', CAST(93.20 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (14, 14, 10, '2020-05-29 04:33:39.189000', CAST(52.66 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (15, 15, 10, '2020-05-29 04:33:39.189000', CAST(18.96 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (16, 16, 10, '2020-05-29 04:33:39.189000', CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (17, 17, 10, '2020-05-29 04:33:39.189000', CAST(25.85 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (18, 18, 10, '2020-05-29 04:33:39.189000', CAST(63.16 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (19, 19, 10, '2020-05-29 04:33:39.189000', CAST(63.15 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (20, 20, 10, '2020-05-29 04:33:39.189000', CAST(18.49 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (21, 21, 10, '2020-05-29 04:33:39.189000', CAST(54.79 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (22, 22, 10, '2020-05-29 04:33:39.189000', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (23, 24, 10, '2020-05-29 04:33:39.189000', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (24, 23, 10, '2020-05-29 04:33:39.189000', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (25, 25, 10, '2020-05-29 04:33:39.189000', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO Catalog_ProductPriceHistory (Id, ProductId, CreatedById, CreatedOn, Price, OldPrice, SpecialPrice, SpecialPriceStart, SpecialPriceEnd) VALUES (26, 26, 10, '2020-05-29 04:33:39.189000', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO Cms_Page (Id, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, Body) VALUES (1, 'Help center', 'help-center', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Help center

Your information. Use admin site to update

'); -INSERT INTO Cms_Page (Id, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, Body) VALUES (2, 'About Us', 'about-us', NULL, NULL, '', 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

About Us

Edit your information in the admin side

'); -INSERT INTO Cms_Page (Id, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, Body) VALUES (3, 'Terms of Use', 'terms-of-use', NULL, NULL, NULL, 1, NULL, 0, 10, '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', 10, '

Term and Conditions

Your term and conditions. Use admin site to update.

'); +INSERT INTO Cms_Page (Id, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, Body) VALUES (1, 'Help center', 'help-center', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Help center

Your information. Use admin site to update

'); +INSERT INTO Cms_Page (Id, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, Body) VALUES (2, 'About Us', 'about-us', NULL, NULL, '', 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

About Us

Edit your information in the admin side

'); +INSERT INTO Cms_Page (Id, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, Body) VALUES (3, 'Terms of Use', 'terms-of-use', NULL, NULL, NULL, 1, NULL, 0, 10, '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', 10, '

Term and Conditions

Your term and conditions. Use admin site to update.

'); -INSERT INTO Core_WidgetInstance (Id, Name, CreatedOn, LatestUpdatedOn, PublishStart, PublishEnd, WidgetId, WidgetZoneId, DisplayOrder, Data, HtmlData) VALUES (1, 'Home Featured', '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', NULL, 'CarouselWidget', 1, 0, '[{{"Image":"88604574-f0a3-4982-9b0d-f8a7558dd3ba.jpg","ImageUrl":null,"Caption":"NEW SEASON","SubCaption":"Women Collection 2018","LinkText":"Shop Now","TargetUrl":"/woman"}},{{"Image":"a5904343-189d-469b-a93b-d553c109b781.jpg","ImageUrl":null,"Caption":"Jackets & Coats","SubCaption":"Men New-Season","LinkText":"Shop Now","TargetUrl":"/man"}},{{"Image":"83c21bb9-2f0d-446a-bb0c-3b19e6d922aa.jpg","ImageUrl":null,"Caption":"New arrivals","SubCaption":"Men Collection 2018","LinkText":"Shop Now","TargetUrl":"/man"}}]', NULL); -INSERT INTO Core_WidgetInstance (Id, Name, CreatedOn, LatestUpdatedOn, PublishStart, PublishEnd, WidgetId, WidgetZoneId, DisplayOrder, Data, HtmlData) VALUES (2, 'New products', '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', NULL, 'ProductWidget', 2, 0, '{{"NumberOfProducts":4,"CategoryId":null,"OrderBy":"Newest","FeaturedOnly":false}}', NULL); -INSERT INTO Core_WidgetInstance (Id, Name, CreatedOn, LatestUpdatedOn, PublishStart, PublishEnd, WidgetId, WidgetZoneId, DisplayOrder, Data, HtmlData) VALUES (3, 'Man collection', '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', NULL, 'ProductWidget', 2, 0, '{{"NumberOfProducts":4,"CategoryId":2,"OrderBy":"Newest","FeaturedOnly":false}}', NULL); -INSERT INTO Core_WidgetInstance (Id, Name, CreatedOn, LatestUpdatedOn, PublishStart, PublishEnd, WidgetId, WidgetZoneId, DisplayOrder, Data, HtmlData) VALUES (4, 'Woman collection', '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', '2018-05-29 04:33:39.189000', NULL, 'ProductWidget', 2, 0, '{{"NumberOfProducts":4,"CategoryId":1,"OrderBy":"Newest","FeaturedOnly":false}}', NULL); +INSERT INTO Core_WidgetInstance (Id, Name, CreatedOn, LatestUpdatedOn, PublishStart, PublishEnd, WidgetId, WidgetZoneId, DisplayOrder, Data, HtmlData) VALUES (1, 'Home Featured', '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', NULL, 'CarouselWidget', 1, 0, '[{{"Image":"88604574-f0a3-4982-9b0d-f8a7558dd3ba.jpg","ImageUrl":null,"Caption":"NEW SEASON","SubCaption":"Women Collection 2020","LinkText":"Shop Now","TargetUrl":"/woman"}},{{"Image":"a5904343-189d-469b-a93b-d553c109b781.jpg","ImageUrl":null,"Caption":"Jackets & Coats","SubCaption":"Men New-Season","LinkText":"Shop Now","TargetUrl":"/man"}},{{"Image":"83c21bb9-2f0d-446a-bb0c-3b19e6d922aa.jpg","ImageUrl":null,"Caption":"New arrivals","SubCaption":"Men Collection 2020","LinkText":"Shop Now","TargetUrl":"/man"}}]', NULL); +INSERT INTO Core_WidgetInstance (Id, Name, CreatedOn, LatestUpdatedOn, PublishStart, PublishEnd, WidgetId, WidgetZoneId, DisplayOrder, Data, HtmlData) VALUES (2, 'New products', '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', NULL, 'ProductWidget', 2, 0, '{{"NumberOfProducts":4,"CategoryId":null,"OrderBy":"Newest","FeaturedOnly":false}}', NULL); +INSERT INTO Core_WidgetInstance (Id, Name, CreatedOn, LatestUpdatedOn, PublishStart, PublishEnd, WidgetId, WidgetZoneId, DisplayOrder, Data, HtmlData) VALUES (3, 'Man collection', '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', NULL, 'ProductWidget', 2, 0, '{{"NumberOfProducts":4,"CategoryId":2,"OrderBy":"Newest","FeaturedOnly":false}}', NULL); +INSERT INTO Core_WidgetInstance (Id, Name, CreatedOn, LatestUpdatedOn, PublishStart, PublishEnd, WidgetId, WidgetZoneId, DisplayOrder, Data, HtmlData) VALUES (4, 'Woman collection', '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', '2020-05-29 04:33:39.189000', NULL, 'ProductWidget', 2, 0, '{{"NumberOfProducts":4,"CategoryId":1,"OrderBy":"Newest","FeaturedOnly":false}}', NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (1, 7, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (2, 6, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (3, 5, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (4, 4, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (5, 3, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (6, 2, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (7, 26, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (8, 16, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (9, 9, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (10, 10, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (11, 11, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (12, 12, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (13, 13, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (14, 14, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (15, 15, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (16, 17, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (17, 25, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (18, 18, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (19, 19, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (20, 20, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (21, 21, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (22, 22, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (23, 23, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (24, 24, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (25, 8, 1, '2018-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (1, 7, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (2, 6, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (3, 5, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (4, 4, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (5, 3, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (6, 2, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (7, 26, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (8, 16, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (9, 9, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (10, 10, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (11, 11, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (12, 12, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (13, 13, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (14, 14, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (15, 15, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (16, 17, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (17, 25, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (18, 18, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (19, 19, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (20, 20, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (21, 21, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (22, 22, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (23, 23, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (24, 24, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); +INSERT INTO Inventory_StockHistory (Id, ProductId, WarehouseId, CreatedOn, CreatedById, AdjustedQuantity, Note) VALUES (25, 8, 1, '2020-05-29 04:33:39.189000', 10, 100, NULL); -INSERT INTO Reviews_Review (Id, UserId, Title, Comment, Rating, ReviewerName, Status, CreatedOn, EntityTypeId, EntityId) VALUES (1, 10, 'Good', 'very good', 5, 'very good', 5, '2018-05-29 04:33:39.189000', 'Product', 20); -INSERT INTO Reviews_Review (Id, UserId, Title, Comment, Rating, ReviewerName, Status, CreatedOn, EntityTypeId, EntityId) VALUES (2, 10, 'excellent', 'very good', 5, 'Thien', 5, '2018-05-29 04:33:39.189000', 'Product', 22); +INSERT INTO Reviews_Review (Id, UserId, Title, Comment, Rating, ReviewerName, Status, CreatedOn, EntityTypeId, EntityId) VALUES (1, 10, 'Good', 'very good', 5, 'very good', 5, '2020-05-29 04:33:39.189000', 'Product', 20); +INSERT INTO Reviews_Review (Id, UserId, Title, Comment, Rating, ReviewerName, Status, CreatedOn, EntityTypeId, EntityId) VALUES (2, 10, 'excellent', 'very good', 5, 'Thien', 5, '2020-05-29 04:33:39.189000', 'Product', 22); diff --git a/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData_Postgres.sql b/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData_Postgres.sql index 7063d47daa..85f1c2c7b6 100644 --- a/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData_Postgres.sql +++ b/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData_Postgres.sql @@ -122,32 +122,32 @@ INSERT INTO "Catalog_Brand" ("Id", "Name", "Slug", "Description", "IsPublished", INSERT INTO "Catalog_Brand" ("Id", "Name", "Slug", "Description", "IsPublished", "IsDeleted") VALUES (3, 'Ogival', 'ogival', NULL, true, false); SELECT pg_catalog.setval('"Catalog_Brand_Id_seq"', 3, true); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (1, true, 'Lightweight Jacket', 'lightweight-jacket', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, true, true, false, false, true, 0, NULL, NULL, NULL, 0, NULL, 1, 0, NULL, 2, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (2, true, 'Lightweight Jacket M Black', 'lightweight-jacket-m-black', NULL, NULL, NULL, true, '2018-05-29 04:33:39.164+07:00', false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'M-Black', 0, NULL, 1, 0, NULL, NULL, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (3, true, 'Lightweight Jacket M Gray', 'lightweight-jacket-m-gray', NULL, NULL, NULL, true, '2018-05-29 04:33:39.164+07:00', false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'M-Gray', 0, NULL, 1, 0, NULL, NULL, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (4, true, 'Lightweight Jacket L Black', 'lightweight-jacket-l-black', NULL, NULL, NULL, true, '2018-05-29 04:33:39.164+07:00', false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'L-Black', 0, NULL, 1, 0, NULL, NULL, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (5, true, 'Lightweight Jacket L Gray', 'lightweight-jacket-l-gray', NULL, NULL, NULL, true, '2018-05-29 04:33:39.164+07:00', false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'L-Gray', 0, NULL, 1, 0, NULL, NULL, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (6, true, 'Lightweight Jacket S Black', 'lightweight-jacket-s-black', NULL, NULL, NULL, true, '2018-05-29 04:33:39.164+07:00', false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'S-Black', 0, NULL, 1, 0, NULL, NULL, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (7, true, 'Lightweight Jacket S Gray', 'lightweight-jacket-s-gray', NULL, NULL, NULL, true, '2018-05-29 04:33:39.164+07:00', false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'S-Gray', 0, NULL, 1, 0, NULL, NULL, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (8, true, 'Esprit Ruffle Shirt', 'esprit-ruffle-shirt', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(16.64 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 5, 0, NULL, 2, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (9, true, 'Herschel supply', 'herschel-supply', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(35.31 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 7, 0, NULL, NULL, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (10, true, 'Only Check Trouser', 'only-check-trouser', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(25.50 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 9, 0, NULL, 2, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (11, true, 'Classic Trench Coat', 'classic-trench-coat', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 11, 0, NULL, 2, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (12, true, 'Front Pocket Jumper', 'front-pocket-jumper', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(34.75 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 13, 0, NULL, 2, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (13, true, 'Vintage Inspired Classic', 'vintage-inspired-classic', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(93.20 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 15, 0, NULL, 3, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (14, true, 'Shirt in Stretch Cotton', 'shirt-in-stretch-cotton', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(52.66 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 17, 0, NULL, 2, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (15, true, 'Pieces Metallic Printed', 'pieces-metallic-printed', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(18.96 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 19, 0, NULL, 2, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (16, true, 'Converse All Star Hi Plimsolls', 'converse-all-star-hi-plimsolls', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 21, 0, NULL, 1, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (17, true, 'Femme T-Shirt In Stripe', 'femme-t-shirt-in-stripe', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(25.85 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 23, 0, NULL, 2, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (18, true, 'Herschel supply', 'herschel-supply-2', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(63.16 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 25, 0, NULL, 2, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (19, true, 'Herschel supply', 'herschel-supply-2-3', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(63.15 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 27, 0, NULL, 2, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (20, true, 'T-Shirt with Sleeve', 't-shirt-with-sleeve', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(18.49 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 29, 1, 5, 2, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (21, true, 'Pretty Little Thing', 'pretty-little-thing', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(54.79 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 31, 0, NULL, 2, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (22, true, 'Square Neck Back', 'square-neck-back', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 34, 1, 5, 2, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (23, true, 'Square Neck Back Silver S', 'square-neck-back-silver-s', NULL, NULL, NULL, true, '2018-05-29 04:33:39.164+07:00', false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'Silver-S', 0, NULL, 34, 0, NULL, NULL, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (24, true, 'Square Neck Back Silver M', 'square-neck-back-silver-m', NULL, NULL, NULL, true, '2018-05-29 04:33:39.164+07:00', false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'Silver-M', 0, NULL, 34, 0, NULL, NULL, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (25, true, 'Square Neck Back Gray S', 'square-neck-back-gray-s', NULL, NULL, NULL, true, '2018-05-29 04:33:39.164+07:00', false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'Gray-S', 0, NULL, 34, 0, NULL, NULL, 1); -INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (26, true, 'Square Neck Back Gray M', 'square-neck-back-gray-m', NULL, NULL, NULL, true, '2018-05-29 04:33:39.164+07:00', false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'Gray-M', 0, NULL, 34, 0, NULL, NULL, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (1, true, 'Lightweight Jacket', 'lightweight-jacket', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, true, true, false, false, true, 0, NULL, NULL, NULL, 0, NULL, 1, 0, NULL, 2, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (2, true, 'Lightweight Jacket M Black', 'lightweight-jacket-m-black', NULL, NULL, NULL, true, '2020-05-29 04:33:39.164+07:00', false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'M-Black', 0, NULL, 1, 0, NULL, NULL, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (3, true, 'Lightweight Jacket M Gray', 'lightweight-jacket-m-gray', NULL, NULL, NULL, true, '2020-05-29 04:33:39.164+07:00', false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'M-Gray', 0, NULL, 1, 0, NULL, NULL, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (4, true, 'Lightweight Jacket L Black', 'lightweight-jacket-l-black', NULL, NULL, NULL, true, '2020-05-29 04:33:39.164+07:00', false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'L-Black', 0, NULL, 1, 0, NULL, NULL, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (5, true, 'Lightweight Jacket L Gray', 'lightweight-jacket-l-gray', NULL, NULL, NULL, true, '2020-05-29 04:33:39.164+07:00', false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'L-Gray', 0, NULL, 1, 0, NULL, NULL, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (6, true, 'Lightweight Jacket S Black', 'lightweight-jacket-s-black', NULL, NULL, NULL, true, '2020-05-29 04:33:39.164+07:00', false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'S-Black', 0, NULL, 1, 0, NULL, NULL, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (7, true, 'Lightweight Jacket S Gray', 'lightweight-jacket-s-gray', NULL, NULL, NULL, true, '2020-05-29 04:33:39.164+07:00', false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'S-Gray', 0, NULL, 1, 0, NULL, NULL, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (8, true, 'Esprit Ruffle Shirt', 'esprit-ruffle-shirt', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(16.64 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 5, 0, NULL, 2, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (9, true, 'Herschel supply', 'herschel-supply', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(35.31 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 7, 0, NULL, NULL, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (10, true, 'Only Check Trouser', 'only-check-trouser', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(25.50 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 9, 0, NULL, 2, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (11, true, 'Classic Trench Coat', 'classic-trench-coat', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 11, 0, NULL, 2, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (12, true, 'Front Pocket Jumper', 'front-pocket-jumper', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(34.75 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 13, 0, NULL, 2, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (13, true, 'Vintage Inspired Classic', 'vintage-inspired-classic', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(93.20 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 15, 0, NULL, 3, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (14, true, 'Shirt in Stretch Cotton', 'shirt-in-stretch-cotton', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(52.66 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 17, 0, NULL, 2, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (15, true, 'Pieces Metallic Printed', 'pieces-metallic-printed', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(18.96 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 19, 0, NULL, 2, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (16, true, 'Converse All Star Hi Plimsolls', 'converse-all-star-hi-plimsolls', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 21, 0, NULL, 1, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (17, true, 'Femme T-Shirt In Stripe', 'femme-t-shirt-in-stripe', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(25.85 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 23, 0, NULL, 2, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (18, true, 'Herschel supply', 'herschel-supply-2', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(63.16 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 25, 0, NULL, 2, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (19, true, 'Herschel supply', 'herschel-supply-2-3', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(63.15 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 27, 0, NULL, 2, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (20, true, 'T-Shirt with Sleeve', 't-shirt-with-sleeve', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(18.49 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 29, 1, 5, 2, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (21, true, 'Pretty Little Thing', 'pretty-little-thing', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(54.79 AS Decimal(18, 2)), NULL, NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 31, 0, NULL, 2, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (22, true, 'Square Neck Back', 'square-neck-back', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, true, true, false, false, true, 100, NULL, NULL, NULL, 0, NULL, 34, 1, 5, 2, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (23, true, 'Square Neck Back Silver S', 'square-neck-back-silver-s', NULL, NULL, NULL, true, '2020-05-29 04:33:39.164+07:00', false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'Silver-S', 0, NULL, 34, 0, NULL, NULL, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (24, true, 'Square Neck Back Silver M', 'square-neck-back-silver-m', NULL, NULL, NULL, true, '2020-05-29 04:33:39.164+07:00', false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'Silver-M', 0, NULL, 34, 0, NULL, NULL, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (25, true, 'Square Neck Back Gray S', 'square-neck-back-gray-s', NULL, NULL, NULL, true, '2020-05-29 04:33:39.164+07:00', false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'Gray-S', 0, NULL, 34, 0, NULL, NULL, 1); +INSERT INTO "Catalog_Product" ("Id", "StockTrackingIsEnabled", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "ShortDescription", "Description", "Specification", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd", "HasOptions", "IsVisibleIndividually", "IsFeatured", "IsCallForPricing", "IsAllowToOrder", "StockQuantity", "Sku", "Gtin", "NormalizedName", "DisplayOrder", "VendorId", "ThumbnailImageId", "ReviewsCount", "RatingAverage", "BrandId", "TaxClassId") VALUES (26, true, 'Square Neck Back Gray M', 'square-neck-back-gray-m', NULL, NULL, NULL, true, '2020-05-29 04:33:39.164+07:00', false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.

', '

Aenean sit amet gravida nisi. Nam fermentum est felis, quis feugiat nunc fringilla sit amet. Ut in blandit ipsum. Quisque luctus dui at ante aliquet, in hendrerit lectus interdum. Morbi elementum sapien rhoncus pretium maximus. Nulla lectus enim, cursus et elementum sed, sodales vitae eros. Ut ex quam, porta consequat interdum in, faucibus eu velit. Quisque rhoncus ex ac libero varius molestie. Aenean tempor sit amet orci nec iaculis. Cras sit amet nulla libero. Curabitur dignissim, nunc nec laoreet consequat, purus nunc porta lacus, vel efficitur tellus augue in ipsum. Cras in arcu sed metus rutrum iaculis. Nulla non tempor erat. Duis in egestas nunc.

', NULL, CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL, false, false, false, false, true, 100, NULL, NULL, 'Gray-M', 0, NULL, 34, 0, NULL, NULL, 1); SELECT pg_catalog.setval('"Catalog_Product_Id_seq"', 26, true); INSERT INTO "Catalog_ProductCategory" ("Id", "IsFeaturedProduct", "DisplayOrder", "CategoryId", "ProductId") VALUES (1, false, 0, 5, 1); @@ -274,72 +274,72 @@ INSERT INTO "Inventory_Stock" ("Id", "ProductId", "WarehouseId", "Quantity", "Re INSERT INTO "Inventory_Stock" ("Id", "ProductId", "WarehouseId", "Quantity", "ReservedQuantity") VALUES (25, 26, 1, 100, 0); SELECT pg_catalog.setval('"Inventory_Stock_Id_seq"', 25, true); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (1, 1, 10, '2018-05-29 04:33:39.164+07:00', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (2, 1, 10, '2018-05-29 04:33:39.164+07:00', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (3, 1, 10, '2018-05-29 04:33:39.164+07:00', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (4, 1, 10, '2018-05-29 04:33:39.164+07:00', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (5, 1, 10, '2018-05-29 04:33:39.164+07:00', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (6, 1, 10, '2018-05-29 04:33:39.164+07:00', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (7, 1, 10, '2018-05-29 04:33:39.164+07:00', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (8, 8, 10, '2018-05-29 04:33:39.164+07:00', CAST(16.64 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (9, 9, 10, '2018-05-29 04:33:39.164+07:00', CAST(35.31 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (10, 10, 10, '2018-05-29 04:33:39.164+07:00', CAST(25.50 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (11, 11, 10, '2018-05-29 04:33:39.164+07:00', CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (12, 12, 10, '2018-05-29 04:33:39.164+07:00', CAST(34.75 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (13, 13, 10, '2018-05-29 04:33:39.164+07:00', CAST(93.20 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (14, 14, 10, '2018-05-29 04:33:39.164+07:00', CAST(52.66 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (15, 15, 10, '2018-05-29 04:33:39.164+07:00', CAST(18.96 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (16, 16, 10, '2018-05-29 04:33:39.164+07:00', CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (17, 17, 10, '2018-05-29 04:33:39.164+07:00', CAST(25.85 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (18, 18, 10, '2018-05-29 04:33:39.164+07:00', CAST(63.16 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (19, 19, 10, '2018-05-29 04:33:39.164+07:00', CAST(63.15 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (20, 20, 10, '2018-05-29 04:33:39.164+07:00', CAST(18.49 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (21, 21, 10, '2018-05-29 04:33:39.164+07:00', CAST(54.79 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (22, 22, 10, '2018-05-29 04:33:39.164+07:00', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (23, 24, 10, '2018-05-29 04:33:39.164+07:00', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (24, 23, 10, '2018-05-29 04:33:39.164+07:00', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (25, 25, 10, '2018-05-29 04:33:39.164+07:00', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); -INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (26, 26, 10, '2018-05-29 04:33:39.164+07:00', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (1, 1, 10, '2020-05-29 04:33:39.164+07:00', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (2, 1, 10, '2020-05-29 04:33:39.164+07:00', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (3, 1, 10, '2020-05-29 04:33:39.164+07:00', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (4, 1, 10, '2020-05-29 04:33:39.164+07:00', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (5, 1, 10, '2020-05-29 04:33:39.164+07:00', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (6, 1, 10, '2020-05-29 04:33:39.164+07:00', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (7, 1, 10, '2020-05-29 04:33:39.164+07:00', CAST(58.79 AS Decimal(18, 2)), CAST(69.00 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (8, 8, 10, '2020-05-29 04:33:39.164+07:00', CAST(16.64 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (9, 9, 10, '2020-05-29 04:33:39.164+07:00', CAST(35.31 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (10, 10, 10, '2020-05-29 04:33:39.164+07:00', CAST(25.50 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (11, 11, 10, '2020-05-29 04:33:39.164+07:00', CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (12, 12, 10, '2020-05-29 04:33:39.164+07:00', CAST(34.75 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (13, 13, 10, '2020-05-29 04:33:39.164+07:00', CAST(93.20 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (14, 14, 10, '2020-05-29 04:33:39.164+07:00', CAST(52.66 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (15, 15, 10, '2020-05-29 04:33:39.164+07:00', CAST(18.96 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (16, 16, 10, '2020-05-29 04:33:39.164+07:00', CAST(75.00 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (17, 17, 10, '2020-05-29 04:33:39.164+07:00', CAST(25.85 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (18, 18, 10, '2020-05-29 04:33:39.164+07:00', CAST(63.16 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (19, 19, 10, '2020-05-29 04:33:39.164+07:00', CAST(63.15 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (20, 20, 10, '2020-05-29 04:33:39.164+07:00', CAST(18.49 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (21, 21, 10, '2020-05-29 04:33:39.164+07:00', CAST(54.79 AS Decimal(18, 2)), NULL, NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (22, 22, 10, '2020-05-29 04:33:39.164+07:00', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (23, 24, 10, '2020-05-29 04:33:39.164+07:00', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (24, 23, 10, '2020-05-29 04:33:39.164+07:00', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (25, 25, 10, '2020-05-29 04:33:39.164+07:00', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); +INSERT INTO "Catalog_ProductPriceHistory" ("Id", "ProductId", "CreatedById", "CreatedOn", "Price", "OldPrice", "SpecialPrice", "SpecialPriceStart", "SpecialPriceEnd") VALUES (26, 26, 10, '2020-05-29 04:33:39.164+07:00', CAST(29.64 AS Decimal(18, 2)), CAST(39.64 AS Decimal(18, 2)), NULL, NULL, NULL); SELECT pg_catalog.setval('"Catalog_ProductPriceHistory_Id_seq"', 26, true); -INSERT INTO "Cms_Page" ("Id", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "Body") VALUES (1, 'Help center', 'help-center', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Help center

Your information. Use admin site to update

'); -INSERT INTO "Cms_Page" ("Id", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "Body") VALUES (2, 'About Us', 'about-us', NULL, NULL, '', true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

About Us

Edit your information in the admin side

'); -INSERT INTO "Cms_Page" ("Id", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "Body") VALUES (3, 'Terms of Use', 'terms-of-use', NULL, NULL, NULL, true, NULL, false, 10, '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', 10, '

Term and Conditions

Your term and conditions. Use admin site to update.

'); +INSERT INTO "Cms_Page" ("Id", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "Body") VALUES (1, 'Help center', 'help-center', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Help center

Your information. Use admin site to update

'); +INSERT INTO "Cms_Page" ("Id", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "Body") VALUES (2, 'About Us', 'about-us', NULL, NULL, '', true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

About Us

Edit your information in the admin side

'); +INSERT INTO "Cms_Page" ("Id", "Name", "Slug", "MetaTitle", "MetaKeywords", "MetaDescription", "IsPublished", "PublishedOn", "IsDeleted", "CreatedById", "CreatedOn", "LatestUpdatedOn", "LatestUpdatedById", "Body") VALUES (3, 'Terms of Use', 'terms-of-use', NULL, NULL, NULL, true, NULL, false, 10, '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', 10, '

Term and Conditions

Your term and conditions. Use admin site to update.

'); SELECT pg_catalog.setval('"Cms_Page_Id_seq"', 8, true); -INSERT INTO "Core_WidgetInstance" ("Id", "Name", "CreatedOn", "LatestUpdatedOn", "PublishStart", "PublishEnd", "WidgetId", "WidgetZoneId", "DisplayOrder", "Data", "HtmlData") VALUES (1, 'Home Featured', '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', NULL, 'CarouselWidget', 1, 0, '[{{"Image":"88604574-f0a3-4982-9b0d-f8a7558dd3ba.jpg","ImageUrl":null,"Caption":"NEW SEASON","SubCaption":"Women Collection 2018","LinkText":"Shop Now","TargetUrl":"/woman"}},{{"Image":"a5904343-189d-469b-a93b-d553c109b781.jpg","ImageUrl":null,"Caption":"Jackets & Coats","SubCaption":"Men New-Season","LinkText":"Shop Now","TargetUrl":"/man"}},{{"Image":"83c21bb9-2f0d-446a-bb0c-3b19e6d922aa.jpg","ImageUrl":null,"Caption":"New arrivals","SubCaption":"Men Collection 2018","LinkText":"Shop Now","TargetUrl":"/man"}}]', NULL); -INSERT INTO "Core_WidgetInstance" ("Id", "Name", "CreatedOn", "LatestUpdatedOn", "PublishStart", "PublishEnd", "WidgetId", "WidgetZoneId", "DisplayOrder", "Data", "HtmlData") VALUES (2, 'New products', '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', NULL, 'ProductWidget', 2, 0, '{{"NumberOfProducts":4,"CategoryId":null,"OrderBy":"Newest","FeaturedOnly":false}}', NULL); -INSERT INTO "Core_WidgetInstance" ("Id", "Name", "CreatedOn", "LatestUpdatedOn", "PublishStart", "PublishEnd", "WidgetId", "WidgetZoneId", "DisplayOrder", "Data", "HtmlData") VALUES (3, 'Man collection', '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', NULL, 'ProductWidget', 2, 0, '{{"NumberOfProducts":4,"CategoryId":2,"OrderBy":"Newest","FeaturedOnly":false}}', NULL); -INSERT INTO "Core_WidgetInstance" ("Id", "Name", "CreatedOn", "LatestUpdatedOn", "PublishStart", "PublishEnd", "WidgetId", "WidgetZoneId", "DisplayOrder", "Data", "HtmlData") VALUES (4, 'Woman collection', '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', '2018-05-29 04:33:39.164+07:00', NULL, 'ProductWidget', 2, 0, '{{"NumberOfProducts":4,"CategoryId":1,"OrderBy":"Newest","FeaturedOnly":false}}', NULL); +INSERT INTO "Core_WidgetInstance" ("Id", "Name", "CreatedOn", "LatestUpdatedOn", "PublishStart", "PublishEnd", "WidgetId", "WidgetZoneId", "DisplayOrder", "Data", "HtmlData") VALUES (1, 'Home Featured', '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', NULL, 'CarouselWidget', 1, 0, '[{{"Image":"88604574-f0a3-4982-9b0d-f8a7558dd3ba.jpg","ImageUrl":null,"Caption":"NEW SEASON","SubCaption":"Women Collection 2020","LinkText":"Shop Now","TargetUrl":"/woman"}},{{"Image":"a5904343-189d-469b-a93b-d553c109b781.jpg","ImageUrl":null,"Caption":"Jackets & Coats","SubCaption":"Men New-Season","LinkText":"Shop Now","TargetUrl":"/man"}},{{"Image":"83c21bb9-2f0d-446a-bb0c-3b19e6d922aa.jpg","ImageUrl":null,"Caption":"New arrivals","SubCaption":"Men Collection 2020","LinkText":"Shop Now","TargetUrl":"/man"}}]', NULL); +INSERT INTO "Core_WidgetInstance" ("Id", "Name", "CreatedOn", "LatestUpdatedOn", "PublishStart", "PublishEnd", "WidgetId", "WidgetZoneId", "DisplayOrder", "Data", "HtmlData") VALUES (2, 'New products', '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', NULL, 'ProductWidget', 2, 0, '{{"NumberOfProducts":4,"CategoryId":null,"OrderBy":"Newest","FeaturedOnly":false}}', NULL); +INSERT INTO "Core_WidgetInstance" ("Id", "Name", "CreatedOn", "LatestUpdatedOn", "PublishStart", "PublishEnd", "WidgetId", "WidgetZoneId", "DisplayOrder", "Data", "HtmlData") VALUES (3, 'Man collection', '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', NULL, 'ProductWidget', 2, 0, '{{"NumberOfProducts":4,"CategoryId":2,"OrderBy":"Newest","FeaturedOnly":false}}', NULL); +INSERT INTO "Core_WidgetInstance" ("Id", "Name", "CreatedOn", "LatestUpdatedOn", "PublishStart", "PublishEnd", "WidgetId", "WidgetZoneId", "DisplayOrder", "Data", "HtmlData") VALUES (4, 'Woman collection', '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', '2020-05-29 04:33:39.164+07:00', NULL, 'ProductWidget', 2, 0, '{{"NumberOfProducts":4,"CategoryId":1,"OrderBy":"Newest","FeaturedOnly":false}}', NULL); SELECT pg_catalog.setval('"Core_WidgetInstance_Id_seq"', 4, true); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (1, 7, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (2, 6, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (3, 5, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (4, 4, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (5, 3, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (6, 2, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (7, 26, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (8, 16, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (9, 9, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (10, 10, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (11, 11, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (12, 12, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (13, 13, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (14, 14, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (15, 15, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (16, 17, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (17, 25, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (18, 18, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (19, 19, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (20, 20, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (21, 21, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (22, 22, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (23, 23, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (24, 24, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); -INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (25, 8, 1, '2018-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (1, 7, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (2, 6, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (3, 5, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (4, 4, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (5, 3, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (6, 2, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (7, 26, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (8, 16, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (9, 9, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (10, 10, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (11, 11, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (12, 12, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (13, 13, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (14, 14, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (15, 15, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (16, 17, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (17, 25, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (18, 18, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (19, 19, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (20, 20, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (21, 21, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (22, 22, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (23, 23, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (24, 24, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); +INSERT INTO "Inventory_StockHistory" ("Id", "ProductId", "WarehouseId", "CreatedOn", "CreatedById", "AdjustedQuantity", "Note") VALUES (25, 8, 1, '2020-05-29 04:33:39.164+07:00', 10, 100, NULL); SELECT pg_catalog.setval('"Inventory_StockHistory_Id_seq"', 25, true); -INSERT INTO "Reviews_Review" ("Id", "UserId", "Title", "Comment", "Rating", "ReviewerName", "Status", "CreatedOn", "EntityTypeId", "EntityId") VALUES (1, 10, 'Good', 'very good', 5, 'very good', 5, '2018-05-29 04:33:39.164+07:00', 'Product', 20); -INSERT INTO "Reviews_Review" ("Id", "UserId", "Title", "Comment", "Rating", "ReviewerName", "Status", "CreatedOn", "EntityTypeId", "EntityId") VALUES (2, 10, 'excellent', 'very good', 5, 'Thien', 5, '2018-05-29 04:33:39.164+07:00', 'Product', 22); +INSERT INTO "Reviews_Review" ("Id", "UserId", "Title", "Comment", "Rating", "ReviewerName", "Status", "CreatedOn", "EntityTypeId", "EntityId") VALUES (1, 10, 'Good', 'very good', 5, 'very good', 5, '2020-05-29 04:33:39.164+07:00', 'Product', 20); +INSERT INTO "Reviews_Review" ("Id", "UserId", "Title", "Comment", "Rating", "ReviewerName", "Status", "CreatedOn", "EntityTypeId", "EntityId") VALUES (2, 10, 'excellent', 'very good', 5, 'Thien', 5, '2020-05-29 04:33:39.164+07:00', 'Product', 22); SELECT pg_catalog.setval('"Reviews_Review_Id_seq"', 2, true); \ No newline at end of file diff --git a/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData_SQLite.sql b/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData_SQLite.sql index 072621a707..089d2f9e60 100644 --- a/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData_SQLite.sql +++ b/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Fashion/ResetToSampleData_SQLite.sql @@ -294,7 +294,7 @@ INSERT INTO Cms_Page (Id, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, INSERT INTO Cms_Page (Id, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, Body) VALUES (2, 'About Us', 'about-us', NULL, NULL, '', 1, NULL, 0, 10, '1304750238764851200', '1304750238764851200', 10, '

About Us

Edit your information in the admin side

'); INSERT INTO Cms_Page (Id, Name, Slug, MetaTitle, MetaKeywords, MetaDescription, IsPublished, PublishedOn, IsDeleted, CreatedById, CreatedOn, LatestUpdatedOn, LatestUpdatedById, Body) VALUES (3, 'Terms of Use', 'terms-of-use', NULL, NULL, NULL, 1, NULL, 0, 10, '1304750238764851200', '1304750238764851200', 10, '

Term and Conditions

Your term and conditions. Use admin site to update.

'); -INSERT INTO Core_WidgetInstance (Id, Name, CreatedOn, LatestUpdatedOn, PublishStart, PublishEnd, WidgetId, WidgetZoneId, DisplayOrder, Data, HtmlData) VALUES (1, 'Home Featured', '1304750238764851200', '1304750238764851200', '1304750238764851200', NULL, 'CarouselWidget', 1, 0, '[{{"Image":"88604574-f0a3-4982-9b0d-f8a7558dd3ba.jpg","ImageUrl":null,"Caption":"NEW SEASON","SubCaption":"Women Collection 2018","LinkText":"Shop Now","TargetUrl":"/woman"}},{{"Image":"a5904343-189d-469b-a93b-d553c109b781.jpg","ImageUrl":null,"Caption":"Jackets & Coats","SubCaption":"Men New-Season","LinkText":"Shop Now","TargetUrl":"/man"}},{{"Image":"83c21bb9-2f0d-446a-bb0c-3b19e6d922aa.jpg","ImageUrl":null,"Caption":"New arrivals","SubCaption":"Men Collection 2018","LinkText":"Shop Now","TargetUrl":"/man"}}]', NULL); +INSERT INTO Core_WidgetInstance (Id, Name, CreatedOn, LatestUpdatedOn, PublishStart, PublishEnd, WidgetId, WidgetZoneId, DisplayOrder, Data, HtmlData) VALUES (1, 'Home Featured', '1304750238764851200', '1304750238764851200', '1304750238764851200', NULL, 'CarouselWidget', 1, 0, '[{{"Image":"88604574-f0a3-4982-9b0d-f8a7558dd3ba.jpg","ImageUrl":null,"Caption":"NEW SEASON","SubCaption":"Women Collection 2020","LinkText":"Shop Now","TargetUrl":"/woman"}},{{"Image":"a5904343-189d-469b-a93b-d553c109b781.jpg","ImageUrl":null,"Caption":"Jackets & Coats","SubCaption":"Men New-Season","LinkText":"Shop Now","TargetUrl":"/man"}},{{"Image":"83c21bb9-2f0d-446a-bb0c-3b19e6d922aa.jpg","ImageUrl":null,"Caption":"New arrivals","SubCaption":"Men Collection 2020","LinkText":"Shop Now","TargetUrl":"/man"}}]', NULL); INSERT INTO Core_WidgetInstance (Id, Name, CreatedOn, LatestUpdatedOn, PublishStart, PublishEnd, WidgetId, WidgetZoneId, DisplayOrder, Data, HtmlData) VALUES (2, 'New products', '1304750238764851200', '1304750238764851200', '1304750238764851200', NULL, 'ProductWidget', 2, 0, '{{"NumberOfProducts":4,"CategoryId":null,"OrderBy":"Newest","FeaturedOnly":false}}', NULL); INSERT INTO Core_WidgetInstance (Id, Name, CreatedOn, LatestUpdatedOn, PublishStart, PublishEnd, WidgetId, WidgetZoneId, DisplayOrder, Data, HtmlData) VALUES (3, 'Man collection', '1304750238764851200', '1304750238764851200', '1304750238764851200', NULL, 'ProductWidget', 2, 0, '{{"NumberOfProducts":4,"CategoryId":2,"OrderBy":"Newest","FeaturedOnly":false}}', NULL); INSERT INTO Core_WidgetInstance (Id, Name, CreatedOn, LatestUpdatedOn, PublishStart, PublishEnd, WidgetId, WidgetZoneId, DisplayOrder, Data, HtmlData) VALUES (4, 'Woman collection', '1304750238764851200', '1304750238764851200', '1304750238764851200', NULL, 'ProductWidget', 2, 0, '{{"NumberOfProducts":4,"CategoryId":1,"OrderBy":"Newest","FeaturedOnly":false}}', NULL); diff --git a/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Phones/ResetToSampleData.sql b/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Phones/ResetToSampleData.sql index 596ea22162..cb7209c60e 100644 --- a/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Phones/ResetToSampleData.sql +++ b/src/Modules/SimplCommerce.Module.SampleData/SampleContent/Phones/ResetToSampleData.sql @@ -400,17 +400,17 @@ SET IDENTITY_INSERT [dbo].[Inventory_Stock] OFF GO SET IDENTITY_INSERT [dbo].[Inventory_StockHistory] ON -INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (1, 10, 10, CAST(N'2018-01-23T09:49:39.4372243+07:00' AS DateTimeOffset), NULL, 14, 1) -INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (2, 10, 10, CAST(N'2018-01-23T09:49:39.6950025+07:00' AS DateTimeOffset), NULL, 13, 1) -INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (3, 10, 10, CAST(N'2018-01-23T09:49:39.7177315+07:00' AS DateTimeOffset), NULL, 12, 1) -INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (4, 10, 10, CAST(N'2018-01-23T09:49:39.7356927+07:00' AS DateTimeOffset), NULL, 11, 1) -INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (5, 10, 10, CAST(N'2018-01-23T09:49:39.7424939+07:00' AS DateTimeOffset), NULL, 10, 1) -INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (6, 10, 10, CAST(N'2018-01-23T09:49:39.7496600+07:00' AS DateTimeOffset), NULL, 8, 1) -INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (7, 10, 10, CAST(N'2018-01-23T09:49:39.7559222+07:00' AS DateTimeOffset), NULL, 7, 1) -INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (8, 10, 10, CAST(N'2018-01-23T09:49:39.7618612+07:00' AS DateTimeOffset), NULL, 6, 1) -INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (9, 10, 10, CAST(N'2018-01-23T09:49:39.7677309+07:00' AS DateTimeOffset), NULL, 4, 1) -INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (10, 10, 10, CAST(N'2018-01-23T09:49:39.7739607+07:00' AS DateTimeOffset), NULL, 3, 1) -INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (11, 10, 10, CAST(N'2018-01-23T09:49:39.7802334+07:00' AS DateTimeOffset), NULL, 2, 1) +INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (1, 10, 10, CAST(N'2020-01-23T09:49:39.4372243+07:00' AS DateTimeOffset), NULL, 14, 1) +INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (2, 10, 10, CAST(N'2020-01-23T09:49:39.6950025+07:00' AS DateTimeOffset), NULL, 13, 1) +INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (3, 10, 10, CAST(N'2020-01-23T09:49:39.7177315+07:00' AS DateTimeOffset), NULL, 12, 1) +INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (4, 10, 10, CAST(N'2020-01-23T09:49:39.7356927+07:00' AS DateTimeOffset), NULL, 11, 1) +INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (5, 10, 10, CAST(N'2020-01-23T09:49:39.7424939+07:00' AS DateTimeOffset), NULL, 10, 1) +INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (6, 10, 10, CAST(N'2020-01-23T09:49:39.7496600+07:00' AS DateTimeOffset), NULL, 8, 1) +INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (7, 10, 10, CAST(N'2020-01-23T09:49:39.7559222+07:00' AS DateTimeOffset), NULL, 7, 1) +INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (8, 10, 10, CAST(N'2020-01-23T09:49:39.7618612+07:00' AS DateTimeOffset), NULL, 6, 1) +INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (9, 10, 10, CAST(N'2020-01-23T09:49:39.7677309+07:00' AS DateTimeOffset), NULL, 4, 1) +INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (10, 10, 10, CAST(N'2020-01-23T09:49:39.7739607+07:00' AS DateTimeOffset), NULL, 3, 1) +INSERT [dbo].[Inventory_StockHistory] ([Id], [AdjustedQuantity], [CreatedById], [CreatedOn], [Note], [ProductId], [WarehouseId]) VALUES (11, 10, 10, CAST(N'2020-01-23T09:49:39.7802334+07:00' AS DateTimeOffset), NULL, 2, 1) SET IDENTITY_INSERT [dbo].[Inventory_StockHistory] OFF GO @@ -429,7 +429,7 @@ GO SET IDENTITY_INSERT [dbo].[Core_WidgetInstance] ON INSERT [dbo].[Core_WidgetInstance] ([Id], [CreatedOn], [Data], [DisplayOrder], [HtmlData], [Name], [PublishEnd], [PublishStart], [LatestUpdatedOn], [WidgetId], [WidgetZoneId]) VALUES (1, CAST(N'2016-07-11 05:29:31.1868415' AS DateTime2), N'[{{"Image":"7d868097-58a5-43f8-a882-6d7872345fe7.jpg","ImageUrl":null,"Caption":null,"TargetUrl":"#"}},{{"Image":"d539b558-15ea-4317-9a5b-62e4db9a45f5.jpg","ImageUrl":null,"Caption":null,"TargetUrl":"#"}},{{"Image":"e543ed8e-5feb-4a39-8860-51d94a00ee31.jpg","ImageUrl":null,"Caption":null,"TargetUrl":"#"}},{{"Image":"c015d99d-6c3b-4337-9ba7-26822d75a8e2.jpg","ImageUrl":null,"Caption":null,"TargetUrl":"#"}}]', 0, NULL, N'Home Carousel', NULL, CAST(N'2016-07-11 05:42:44.7523284' AS DateTime2), CAST(N'2016-07-11 05:29:31.1868415' AS DateTime2), N'CarouselWidget', 1) INSERT [dbo].[Core_WidgetInstance] ([Id], [CreatedOn], [Data], [DisplayOrder], [HtmlData], [Name], [PublishEnd], [PublishStart], [LatestUpdatedOn], [WidgetId], [WidgetZoneId]) VALUES (2, CAST(N'2016-07-11 05:30:49.3473494' AS DateTime2), N'{{"NumberOfProducts":4,"CategoryIds":null,"OrderBy":0,"FeaturedOnly":false}}', 0, NULL, N'Latest Products', NULL, CAST(N'2016-07-11 05:42:44.7523284' AS DateTime2), CAST(N'2016-07-11 05:30:49.3473494' AS DateTime2), N'ProductWidget', 2) -INSERT [dbo].[Core_WidgetInstance] ([Id], [CreatedOn], [Data], [DisplayOrder], [HtmlData], [Name], [PublishEnd], [PublishStart], [LatestUpdatedOn], [WidgetId], [WidgetZoneId]) VALUES (3, CAST(N'2018-01-03T15:20:53.1550824+07:00' AS DateTimeOffset), N'[{{"IconHtml":"fa fa-truck","Title":"Free Shipping","Description":"For orders over $99"}},{{"IconHtml":"fa fa-money","Title":"Money Return","Description":"30 days money return"}},{{"IconHtml":"fa fa-credit-card-alt","Title":"Safe Payment","Description":"Protected online payment"}}]', 0, NULL, N'Home Promote Content', NULL, CAST(N'2018-01-03T08:16:47.1160000+00:00' AS DateTimeOffset), CAST(N'2018-01-03T15:20:53.1552733+07:00' AS DateTimeOffset), N'SpaceBarWidget', 3) +INSERT [dbo].[Core_WidgetInstance] ([Id], [CreatedOn], [Data], [DisplayOrder], [HtmlData], [Name], [PublishEnd], [PublishStart], [LatestUpdatedOn], [WidgetId], [WidgetZoneId]) VALUES (3, CAST(N'2020-01-03T15:20:53.1550824+07:00' AS DateTimeOffset), N'[{{"IconHtml":"fa fa-truck","Title":"Free Shipping","Description":"For orders over $99"}},{{"IconHtml":"fa fa-money","Title":"Money Return","Description":"30 days money return"}},{{"IconHtml":"fa fa-credit-card-alt","Title":"Safe Payment","Description":"Protected online payment"}}]', 0, NULL, N'Home Promote Content', NULL, CAST(N'2020-01-03T08:16:47.1160000+00:00' AS DateTimeOffset), CAST(N'2020-01-03T15:20:53.1552733+07:00' AS DateTimeOffset), N'SpaceBarWidget', 3) INSERT [dbo].[Core_WidgetInstance] ([Id], [CreatedOn], [Data], [DisplayOrder], [HtmlData], [Name], [PublishEnd], [PublishStart], [LatestUpdatedOn], [WidgetId], [WidgetZoneId]) VALUES (4, CAST(N'2016-07-11 05:42:44.7523284' AS DateTime2), NULL, 0, N'
diff --git a/src/SimplCommerce.WebHost/Migrations/20201210143557_initialSchema.Designer.cs b/src/SimplCommerce.WebHost/Migrations/20201210190923_initialSchema.Designer.cs similarity index 99% rename from src/SimplCommerce.WebHost/Migrations/20201210143557_initialSchema.Designer.cs rename to src/SimplCommerce.WebHost/Migrations/20201210190923_initialSchema.Designer.cs index 865232581d..da99437997 100644 --- a/src/SimplCommerce.WebHost/Migrations/20201210143557_initialSchema.Designer.cs +++ b/src/SimplCommerce.WebHost/Migrations/20201210190923_initialSchema.Designer.cs @@ -10,7 +10,7 @@ namespace SimplCommerce.WebHost.Migrations { [DbContext(typeof(SimplDbContext))] - [Migration("20201210143557_initialSchema")] + [Migration("20201210190923_initialSchema")] partial class initialSchema { protected override void BuildTargetModel(ModelBuilder modelBuilder) @@ -1746,12 +1746,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) Id = 2L, AccessFailedCount = 0, ConcurrencyStamp = "101cd6ae-a8ef-4a37-97fd-04ac2dd630e4", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), Email = "system@simplcommerce.com", EmailConfirmed = false, FullName = "System User", IsDeleted = true, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + LatestUpdatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), LockoutEnabled = false, NormalizedEmail = "SYSTEM@SIMPLCOMMERCE.COM", NormalizedUserName = "SYSTEM@SIMPLCOMMERCE.COM", @@ -1767,12 +1767,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) Id = 10L, AccessFailedCount = 0, ConcurrencyStamp = "c83afcbc-312c-4589-bad7-8686bd4754c0", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), Email = "admin@simplcommerce.com", EmailConfirmed = false, FullName = "Shop Admin", IsDeleted = false, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + LatestUpdatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), LockoutEnabled = false, NormalizedEmail = "ADMIN@SIMPLCOMMERCE.COM", NormalizedUserName = "ADMIN@SIMPLCOMMERCE.COM", @@ -1912,7 +1912,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = "CategoryWidget", CreateUrl = "widget-category-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), EditUrl = "widget-category-edit", IsPublished = false, Name = "Category Widget", @@ -1922,7 +1922,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = "ProductWidget", CreateUrl = "widget-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), EditUrl = "widget-product-edit", IsPublished = false, Name = "Product Widget", @@ -1932,7 +1932,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = "SimpleProductWidget", CreateUrl = "widget-simple-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), EditUrl = "widget-simple-product-edit", IsPublished = false, Name = "Simple Product Widget", @@ -1942,7 +1942,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = "HtmlWidget", CreateUrl = "widget-html-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), EditUrl = "widget-html-edit", IsPublished = false, Name = "Html Widget", @@ -1952,7 +1952,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = "CarouselWidget", CreateUrl = "widget-carousel-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), EditUrl = "widget-carousel-edit", IsPublished = false, Name = "Carousel Widget", @@ -1962,7 +1962,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = "SpaceBarWidget", CreateUrl = "widget-spacebar-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), EditUrl = "widget-spacebar-edit", IsPublished = false, Name = "SpaceBar Widget", @@ -1972,7 +1972,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = "RecentlyViewedWidget", CreateUrl = "widget-recently-viewed-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), EditUrl = "widget-recently-viewed-edit", IsPublished = false, Name = "Recently Viewed Widget", @@ -2630,7 +2630,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) new { Id = "MomoPayment", - AdditionalSettings = "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420180417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}", + AdditionalSettings = "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420200417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}", ConfigureUrl = "payments-momo-config", IsEnabled = true, LandingViewComponentName = "MomoLanding", diff --git a/src/SimplCommerce.WebHost/Migrations/20201210143557_initialSchema.cs b/src/SimplCommerce.WebHost/Migrations/20201210190923_initialSchema.cs similarity index 99% rename from src/SimplCommerce.WebHost/Migrations/20201210143557_initialSchema.cs rename to src/SimplCommerce.WebHost/Migrations/20201210190923_initialSchema.cs index a13cc64340..5a0fb84e4c 100644 --- a/src/SimplCommerce.WebHost/Migrations/20201210143557_initialSchema.cs +++ b/src/SimplCommerce.WebHost/Migrations/20201210190923_initialSchema.cs @@ -2193,8 +2193,8 @@ protected override void Up(MigrationBuilder migrationBuilder) columns: new[] { "Id", "AccessFailedCount", "ConcurrencyStamp", "CreatedOn", "Culture", "DefaultBillingAddressId", "DefaultShippingAddressId", "Email", "EmailConfirmed", "ExtensionData", "FullName", "IsDeleted", "LatestUpdatedOn", "LockoutEnabled", "LockoutEnd", "NormalizedEmail", "NormalizedUserName", "PasswordHash", "PhoneNumber", "PhoneNumberConfirmed", "RefreshTokenHash", "SecurityStamp", "TwoFactorEnabled", "UserGuid", "UserName", "VendorId" }, values: new object[,] { - { 10L, 0, "c83afcbc-312c-4589-bad7-8686bd4754c0", new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), null, null, null, "admin@simplcommerce.com", false, null, "Shop Admin", false, new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), false, null, "ADMIN@SIMPLCOMMERCE.COM", "ADMIN@SIMPLCOMMERCE.COM", "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", null, false, null, "d6847450-47f0-4c7a-9fed-0c66234bf61f", false, new Guid("ed8210c3-24b0-4823-a744-80078cf12eb4"), "admin@simplcommerce.com", null }, - { 2L, 0, "101cd6ae-a8ef-4a37-97fd-04ac2dd630e4", new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), null, null, null, "system@simplcommerce.com", false, null, "System User", true, new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), false, null, "SYSTEM@SIMPLCOMMERCE.COM", "SYSTEM@SIMPLCOMMERCE.COM", "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", null, false, null, "a9565acb-cee6-425f-9833-419a793f5fba", false, new Guid("5f72f83b-7436-4221-869c-1b69b2e23aae"), "system@simplcommerce.com", null } + { 10L, 0, "c83afcbc-312c-4589-bad7-8686bd4754c0", new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), null, null, null, "admin@simplcommerce.com", false, null, "Shop Admin", false, new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), false, null, "ADMIN@SIMPLCOMMERCE.COM", "ADMIN@SIMPLCOMMERCE.COM", "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", null, false, null, "d6847450-47f0-4c7a-9fed-0c66234bf61f", false, new Guid("ed8210c3-24b0-4823-a744-80078cf12eb4"), "admin@simplcommerce.com", null }, + { 2L, 0, "101cd6ae-a8ef-4a37-97fd-04ac2dd630e4", new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), null, null, null, "system@simplcommerce.com", false, null, "System User", true, new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), false, null, "SYSTEM@SIMPLCOMMERCE.COM", "SYSTEM@SIMPLCOMMERCE.COM", "AQAAAAEAACcQAAAAEAEqSCV8Bpg69irmeg8N86U503jGEAYf75fBuzvL00/mr/FGEsiUqfR0rWBbBUwqtw==", null, false, null, "a9565acb-cee6-425f-9833-419a793f5fba", false, new Guid("5f72f83b-7436-4221-869c-1b69b2e23aae"), "system@simplcommerce.com", null } }); migrationBuilder.InsertData( @@ -2202,13 +2202,13 @@ protected override void Up(MigrationBuilder migrationBuilder) columns: new[] { "Id", "CreateUrl", "CreatedOn", "EditUrl", "IsPublished", "Name", "ViewComponentName" }, values: new object[,] { - { "RecentlyViewedWidget", "widget-recently-viewed-create", new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), "widget-recently-viewed-edit", false, "Recently Viewed Widget", "RecentlyViewedWidget" }, - { "CategoryWidget", "widget-category-create", new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), "widget-category-edit", false, "Category Widget", "CategoryWidget" }, - { "ProductWidget", "widget-product-create", new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), "widget-product-edit", false, "Product Widget", "ProductWidget" }, - { "SimpleProductWidget", "widget-simple-product-create", new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), "widget-simple-product-edit", false, "Simple Product Widget", "SimpleProductWidget" }, - { "HtmlWidget", "widget-html-create", new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), "widget-html-edit", false, "Html Widget", "HtmlWidget" }, - { "CarouselWidget", "widget-carousel-create", new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), "widget-carousel-edit", false, "Carousel Widget", "CarouselWidget" }, - { "SpaceBarWidget", "widget-spacebar-create", new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), "widget-spacebar-edit", false, "SpaceBar Widget", "SpaceBarWidget" } + { "RecentlyViewedWidget", "widget-recently-viewed-create", new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), "widget-recently-viewed-edit", false, "Recently Viewed Widget", "RecentlyViewedWidget" }, + { "CategoryWidget", "widget-category-create", new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), "widget-category-edit", false, "Category Widget", "CategoryWidget" }, + { "ProductWidget", "widget-product-create", new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), "widget-product-edit", false, "Product Widget", "ProductWidget" }, + { "SimpleProductWidget", "widget-simple-product-create", new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), "widget-simple-product-edit", false, "Simple Product Widget", "SimpleProductWidget" }, + { "HtmlWidget", "widget-html-create", new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), "widget-html-edit", false, "Html Widget", "HtmlWidget" }, + { "CarouselWidget", "widget-carousel-create", new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), "widget-carousel-edit", false, "Carousel Widget", "CarouselWidget" }, + { "SpaceBarWidget", "widget-spacebar-create", new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), "widget-spacebar-edit", false, "SpaceBar Widget", "SpaceBarWidget" } }); migrationBuilder.InsertData( @@ -2235,7 +2235,7 @@ protected override void Up(MigrationBuilder migrationBuilder) { "CoD", null, "payments-cod-config", true, "CoDLanding", "Cash On Delivery" }, { "PaypalExpress", "{ \"IsSandbox\":true, \"ClientId\":\"\", \"ClientSecret\":\"\" }", "payments-paypalExpress-config", true, "PaypalExpressLanding", "Paypal Express" }, { "Stripe", "{\"PublicKey\": \"pk_test_6pRNASCoBOKtIshFeQd4XMUh\", \"PrivateKey\" : \"sk_test_BQokikJOvBiI2HlWgH4olfQ2\"}", "payments-stripe-config", true, "StripeLanding", "Stripe" }, - { "MomoPayment", "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420180417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}", "payments-momo-config", true, "MomoLanding", "Momo Payment" }, + { "MomoPayment", "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420200417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}", "payments-momo-config", true, "MomoLanding", "Momo Payment" }, { "NganLuong", "{\"IsSandbox\":true, \"MerchantId\": 47249, \"MerchantPassword\": \"e530745693dbde678f9da98a7c821a07\", \"ReceiverEmail\": \"nlqthien@gmail.com\"}", "payments-nganluong-config", true, "NganLuongLanding", "Ngan Luong Payment" }, { "Cashfree", "{ \"IsSandbox\":true, \"AppId\":\"358035b02486f36ca27904540853\", \"SecretKey\":\"26f48dcd6a27f89f59f28e65849e587916dd57b9\" }", "payments-cashfree-config", true, "CashfreeLanding", "Cashfree Payment Gateway" } }); diff --git a/src/SimplCommerce.WebHost/Migrations/SimplDbContextModelSnapshot.cs b/src/SimplCommerce.WebHost/Migrations/SimplDbContextModelSnapshot.cs index 83cadd2216..8726af7d0d 100644 --- a/src/SimplCommerce.WebHost/Migrations/SimplDbContextModelSnapshot.cs +++ b/src/SimplCommerce.WebHost/Migrations/SimplDbContextModelSnapshot.cs @@ -1744,12 +1744,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) Id = 2L, AccessFailedCount = 0, ConcurrencyStamp = "101cd6ae-a8ef-4a37-97fd-04ac2dd630e4", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), Email = "system@simplcommerce.com", EmailConfirmed = false, FullName = "System User", IsDeleted = true, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + LatestUpdatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 189, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), LockoutEnabled = false, NormalizedEmail = "SYSTEM@SIMPLCOMMERCE.COM", NormalizedUserName = "SYSTEM@SIMPLCOMMERCE.COM", @@ -1765,12 +1765,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) Id = 10L, AccessFailedCount = 0, ConcurrencyStamp = "c83afcbc-312c-4589-bad7-8686bd4754c0", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), Email = "admin@simplcommerce.com", EmailConfirmed = false, FullName = "Shop Admin", IsDeleted = false, - LatestUpdatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + LatestUpdatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 190, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), LockoutEnabled = false, NormalizedEmail = "ADMIN@SIMPLCOMMERCE.COM", NormalizedUserName = "ADMIN@SIMPLCOMMERCE.COM", @@ -1910,7 +1910,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = "CategoryWidget", CreateUrl = "widget-category-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 160, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), EditUrl = "widget-category-edit", IsPublished = false, Name = "Category Widget", @@ -1920,7 +1920,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = "ProductWidget", CreateUrl = "widget-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), EditUrl = "widget-product-edit", IsPublished = false, Name = "Product Widget", @@ -1930,7 +1930,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = "SimpleProductWidget", CreateUrl = "widget-simple-product-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 163, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), EditUrl = "widget-simple-product-edit", IsPublished = false, Name = "Simple Product Widget", @@ -1940,7 +1940,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = "HtmlWidget", CreateUrl = "widget-html-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), EditUrl = "widget-html-edit", IsPublished = false, Name = "Html Widget", @@ -1950,7 +1950,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = "CarouselWidget", CreateUrl = "widget-carousel-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), EditUrl = "widget-carousel-edit", IsPublished = false, Name = "Carousel Widget", @@ -1960,7 +1960,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = "SpaceBarWidget", CreateUrl = "widget-spacebar-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), EditUrl = "widget-spacebar-edit", IsPublished = false, Name = "SpaceBar Widget", @@ -1970,7 +1970,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = "RecentlyViewedWidget", CreateUrl = "widget-recently-viewed-create", - CreatedOn = new DateTimeOffset(new DateTime(2018, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), + CreatedOn = new DateTimeOffset(new DateTime(2020, 5, 29, 4, 33, 39, 164, DateTimeKind.Unspecified), new TimeSpan(0, 7, 0, 0, 0)), EditUrl = "widget-recently-viewed-edit", IsPublished = false, Name = "Recently Viewed Widget", @@ -2628,7 +2628,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) new { Id = "MomoPayment", - AdditionalSettings = "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420180417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}", + AdditionalSettings = "{\"IsSandbox\":true,\"PartnerCode\":\"MOMOIQA420200417\",\"AccessKey\":\"SvDmj2cOTYZmQQ3H\",\"SecretKey\":\"PPuDXq1KowPT1ftR8DvlQTHhC03aul17\",\"PaymentFee\":0.0}", ConfigureUrl = "payments-momo-config", IsEnabled = true, LandingViewComponentName = "MomoLanding", diff --git a/src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj b/src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj index b3243b300a..9d397adfe6 100644 --- a/src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj +++ b/src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj @@ -72,9 +72,9 @@ - + - \ No newline at end of file + diff --git a/src/SimplCommerce.WebHost/appsettings.json b/src/SimplCommerce.WebHost/appsettings.json index 6b8e9b0d3b..d4bb746feb 100644 --- a/src/SimplCommerce.WebHost/appsettings.json +++ b/src/SimplCommerce.WebHost/appsettings.json @@ -1,7 +1,6 @@ { "ConnectionStrings": { - "_DefaultConnection": "User ID=postgres;Password=postgres;Server=simpldb;Port=5432;Database=simplcommerce;Pooling=true;", - "DefaultConnection": "simplcommerce.db;" + "DefaultConnection": "User ID=postgres;Password=postgres;Server=simpldb;Port=5432;Database=simplcommerce;Pooling=true;" }, "Authentication" : { "Facebook" : { diff --git a/src/SimplCommerce.WebHost/appsettings.json-e b/src/SimplCommerce.WebHost/appsettings.json-e new file mode 100644 index 0000000000..d4bb746feb --- /dev/null +++ b/src/SimplCommerce.WebHost/appsettings.json-e @@ -0,0 +1,36 @@ +{ + "ConnectionStrings": { + "DefaultConnection": "User ID=postgres;Password=postgres;Server=simpldb;Port=5432;Database=simplcommerce;Pooling=true;" + }, + "Authentication" : { + "Facebook" : { + "AppId" : "1716532045292977", + "AppSecret" : "dfece01ae919b7b8af23f962a1f87f95" + }, + "Google" : { + "ClientId" : "583825788849-8g42lum4trd5g3319go0iqt6pn30gqlq.apps.googleusercontent.com", + "ClientSecret" : "X8xIiuNEUjEYfiEfiNrWOfI4" + } + }, + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Warning" + } + }, + "Serilog": { + "MinimumLevel": { + "Default": "Warning" + }, + "WriteTo": [ + { + "Name": "RollingFile", + "Args": { + "pathFormat": "logs\\log-{Date}.txt", + "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] [{SourceContext}] [{EventId}] {Message}{NewLine}{Exception}" + } + } + ], + "Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ] + } +} diff --git "a/src/SimplCommerce.WebHost/logs\\log-20201210.txt" "b/src/SimplCommerce.WebHost/logs\\log-20201210.txt" index 84fcec5acb..a51314b558 100644 --- "a/src/SimplCommerce.WebHost/logs\\log-20201210.txt" +++ "b/src/SimplCommerce.WebHost/logs\\log-20201210.txt" @@ -1 +1,127 @@ 2020-12-10 15:44:14.838 +01:00 [Warning] [Microsoft.AspNetCore.Http.ResponseCookies] [{ Id: 1, Name: "SameSiteNotSecure" }] The cookie '"XSRF-TOKEN"' has set 'SameSite=None' and must also set 'Secure'. +2020-12-10 18:12:21.710 +01:00 [Warning] [Microsoft.AspNetCore.Http.ResponseCookies] [{ Id: 1, Name: "SameSiteNotSecure" }] The cookie '"XSRF-TOKEN"' has set 'SameSite=None' and must also set 'Secure'. +2020-12-10 18:12:50.937 +01:00 [Warning] [Microsoft.EntityFrameworkCore.Query] [{ Id: 20504, Name: "Microsoft.EntityFrameworkCore.Query.MultipleCollectionIncludeWarning" }] Compiling a query which loads related collections for more than one collection navigation either via 'Include' or through projection but no 'QuerySplittingBehavior' has been configured. By default Entity Framework will use 'QuerySplittingBehavior.SingleQuery' which can potentially result in slow query performance. See https://go.microsoft.com/fwlink/?linkid=2134277 for more information. To identify the query that's triggering this warning call 'ConfigureWarnings(w => w.Throw(RelationalEventId.MultipleCollectionIncludeWarning))' +2020-12-10 18:12:51.635 +01:00 [Error] [Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware] [{ Id: 1, Name: "UnhandledException" }] An unhandled exception has occurred while executing the request. +System.InvalidOperationException: Translating this query requires APPLY operation in SQL which is not supported on SQLite. + at Microsoft.EntityFrameworkCore.Sqlite.Query.Internal.SqliteQueryTranslationPostprocessor.ApplyValidatingVisitor.VisitExtension(Expression extensionExpression) + at Microsoft.EntityFrameworkCore.Sqlite.Query.Internal.SqliteQueryTranslationPostprocessor.ApplyValidatingVisitor.VisitExtension(Expression extensionExpression) + at Microsoft.EntityFrameworkCore.Sqlite.Query.Internal.SqliteQueryTranslationPostprocessor.Process(Expression query) + at Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutor[TResult](Expression query) + at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass12_0`1.b__0() + at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQuery[TResult](Object cacheKey, Func`1 compiler) + at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteAsync[TResult](Expression query, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.ExecuteAsync[TResult](Expression expression, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1.GetAsyncEnumerator(CancellationToken cancellationToken) + at System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.GetAsyncEnumerator() + at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken) + at SimplCommerce.Module.Comments.Areas.Comments.Controllers.CommentController.Get(Int64 entityId, String entityTypeId, String search, Int32 page) in /Users/sergio.hinojosa/repos/dotnet-simplcommmerce/src/Modules/SimplCommerce.Module.Comments/Areas/Comments/Controllers/CommentController.cs:line 48 + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() +--- End of stack trace from previous location --- + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync() +--- End of stack trace from previous location --- + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker) + at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) + at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context) + at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) + at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events) + at IdentityServer4.Hosting.MutualTlsTokenEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes) + at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) + at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context) + at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) + at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) + at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context) + at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.MigrationsEndPointMiddleware.Invoke(HttpContext context) + at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.Invoke(HttpContext httpContext) + at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.Invoke(HttpContext httpContext) + at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context) +2020-12-10 18:12:59.689 +01:00 [Warning] [Microsoft.EntityFrameworkCore.Query] [{ Id: 20504, Name: "Microsoft.EntityFrameworkCore.Query.MultipleCollectionIncludeWarning" }] Compiling a query which loads related collections for more than one collection navigation either via 'Include' or through projection but no 'QuerySplittingBehavior' has been configured. By default Entity Framework will use 'QuerySplittingBehavior.SingleQuery' which can potentially result in slow query performance. See https://go.microsoft.com/fwlink/?linkid=2134277 for more information. To identify the query that's triggering this warning call 'ConfigureWarnings(w => w.Throw(RelationalEventId.MultipleCollectionIncludeWarning))' +2020-12-10 18:12:59.941 +01:00 [Error] [Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware] [{ Id: 1, Name: "UnhandledException" }] An unhandled exception has occurred while executing the request. +System.InvalidOperationException: Translating this query requires APPLY operation in SQL which is not supported on SQLite. + at Microsoft.EntityFrameworkCore.Sqlite.Query.Internal.SqliteQueryTranslationPostprocessor.ApplyValidatingVisitor.VisitExtension(Expression extensionExpression) + at Microsoft.EntityFrameworkCore.Sqlite.Query.Internal.SqliteQueryTranslationPostprocessor.ApplyValidatingVisitor.VisitExtension(Expression extensionExpression) + at Microsoft.EntityFrameworkCore.Sqlite.Query.Internal.SqliteQueryTranslationPostprocessor.Process(Expression query) + at Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutor[TResult](Expression query) + at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass12_0`1.b__0() + at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQuery[TResult](Object cacheKey, Func`1 compiler) + at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteAsync[TResult](Expression query, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.ExecuteAsync[TResult](Expression expression, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1.GetAsyncEnumerator(CancellationToken cancellationToken) + at System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.GetAsyncEnumerator() + at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken) + at SimplCommerce.Module.Comments.Areas.Comments.Controllers.CommentController.Get(Int64 entityId, String entityTypeId, String search, Int32 page) in /Users/sergio.hinojosa/repos/dotnet-simplcommmerce/src/Modules/SimplCommerce.Module.Comments/Areas/Comments/Controllers/CommentController.cs:line 48 + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() +--- End of stack trace from previous location --- + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync() +--- End of stack trace from previous location --- + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker) + at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) + at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context) + at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) + at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events) + at IdentityServer4.Hosting.MutualTlsTokenEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes) + at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) + at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context) + at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) + at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) + at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context) + at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.MigrationsEndPointMiddleware.Invoke(HttpContext context) + at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.Invoke(HttpContext httpContext) + at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.Invoke(HttpContext httpContext) + at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context) +2020-12-10 18:13:08.048 +01:00 [Error] [Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware] [{ Id: 1, Name: "UnhandledException" }] An unhandled exception has occurred while executing the request. +System.InvalidOperationException: Translating this query requires APPLY operation in SQL which is not supported on SQLite. + at Microsoft.EntityFrameworkCore.Sqlite.Query.Internal.SqliteQueryTranslationPostprocessor.ApplyValidatingVisitor.VisitExtension(Expression extensionExpression) + at Microsoft.EntityFrameworkCore.Sqlite.Query.Internal.SqliteQueryTranslationPostprocessor.ApplyValidatingVisitor.VisitExtension(Expression extensionExpression) + at Microsoft.EntityFrameworkCore.Sqlite.Query.Internal.SqliteQueryTranslationPostprocessor.Process(Expression query) + at Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutor[TResult](Expression query) + at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass12_0`1.b__0() + at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQuery[TResult](Object cacheKey, Func`1 compiler) + at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteAsync[TResult](Expression query, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.ExecuteAsync[TResult](Expression expression, CancellationToken cancellationToken) + at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1.GetAsyncEnumerator(CancellationToken cancellationToken) + at System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.GetAsyncEnumerator() + at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken) + at SimplCommerce.Module.Comments.Areas.Comments.Controllers.CommentController.Get(Int64 entityId, String entityTypeId, String search, Int32 page) in /Users/sergio.hinojosa/repos/dotnet-simplcommmerce/src/Modules/SimplCommerce.Module.Comments/Areas/Comments/Controllers/CommentController.cs:line 48 + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() +--- End of stack trace from previous location --- + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync() +--- End of stack trace from previous location --- + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker) + at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) + at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context) + at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) + at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events) + at IdentityServer4.Hosting.MutualTlsTokenEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes) + at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) + at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context) + at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) + at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) + at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context) + at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.MigrationsEndPointMiddleware.Invoke(HttpContext context) + at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.Invoke(HttpContext httpContext) + at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.Invoke(HttpContext httpContext) + at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context) From e9a91a8b3a757e5ee3c9a9d75a5c9d3ab36bb378 Mon Sep 17 00:00:00 2001 From: Sergio Hinojosa Date: Fri, 11 Dec 2020 11:25:27 +0100 Subject: [PATCH 3/4] a bit of documentation --- docker-compose.yml | 6 ++-- howto-build-withdocker.md | 59 +++++++++++++++++++-------------------- simpl-build-sqlite.sh | 2 ++ simpl-build.sh | 5 ++++ 4 files changed, 40 insertions(+), 32 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f5ee1ea294..98227da6f2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,8 +11,10 @@ services: POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres} volumes: - postgres:/var/lib/postgresql/data/ - ports: - - "5432:5432" + # Uncomment this section if you want to expose the database on the host. + # Otherwise is only reachable for the commerce and pgadmin over simpldb host/service + #ports: + # - "5432:5432" networks: - gateway restart: unless-stopped diff --git a/howto-build-withdocker.md b/howto-build-withdocker.md index 25beb30540..c9d5c04503 100644 --- a/howto-build-withdocker.md +++ b/howto-build-withdocker.md @@ -1,34 +1,40 @@ +# simplcommerce with sqlite +You can make the build locally with `./simpl-build-sqlite.sh` +Then create the container: `docker build --rm -t simplcommerce-sqlite -f Dockerfile-sqlite . ` + +# simplcommerce with postgres +You can make the build locally with `./simpl-build.sh` +Before running the build make sure you have an instance of postgres up and running. Depending on your goal you can persist the data by mounting a volume or not. Here a sample way to achieve it +## Persisting Data +`mkdir ${HOME}/postgres-data/` +`docker run -d --name postgres -e POSTGRES_PASSWORD=postgres -v ${HOME}/postgres-data/:/var/lib/postgresql/data -p 5432:5432 postgres` +## Data inside container. Recreate it as you want. +`docker run -d --name postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 postgres` -## Online demo (Azure Website) -- Store front: http://demo.simplcommerce.com -- Administration: http://demo.simplcommerce.com/admin Email: admin@simplcommerce.com Password: 1qazZAQ! - - -## simplcommerce with sqlite -For testing purpose only `docker build --rm -t shinojosa/simplcommerce-sqlite -f Dockerfile-sqlite . ` -Continuous deployment: https://ci.simplcommerce.com - - -## simplcommerce with postgres -For testing purpose only `docker build --rm -t shinojosa/simplcommerce -f Dockerfile . ` -docker build --rm -t shinojosa/simplcommerce-sqlite:5 -f Dockerfile-sqlite . - -# PostgreSQL Database - -## Postgre containers ### Routing simpldb to localhost or wherever the DB is running +An easy hack for calling (finding) the dabase under the name `simpledb` we make a change in the hosts file of the OS. > For localhost we do a mapping in /etc/hosts `127.0.0.1 simpldb` +## Build the container +`docker build --rm -t simplcommerce -f Dockerfile . ` -> For Docker-compose (hostname in the same network ) -# build the app with clean DB -docker-compose up -# Gracefully shutdown +# Docker Compose with Simplecommerce, Postgres & PgAdmin +So you can test docker compose, the images are already created. You only need `docker` and `docker-compose`. + + +## Docker-compose commands +> build the app with clean DB +docker-compose up +> In detached mode +docker-compose up -d + +> Gracefully shutdown (persisting data) docker-compose down -# Destroy data (clean DB) + +> Destroy data (clean DB) docker-compose down -v -> For Kubernetes is just the name of the service exposing postgresql in the same ns +## For Kubernetes is just the name of the service exposing postgresql in the same namespace ### Run postgre container for dev pourpouses standard ports on localhost (mount a postrgres-data directory for the Database) @@ -41,10 +47,3 @@ docker-compose down -v Without docker-compose or defining a network you need to type the internal IP of the container so pgamin can connect it usually is something like 172.17.0.2 under IPAddress `docker inspect postgres -f "{{json .NetworkSettings.Networks }}"` - -## For building with PostgreSQL -Npgsql.EntityFrameworkCore.PostgreSQL 5.1.0 - -## For building with SQLLite -Microsoft.EntityFrameworkCore.Sqlite 5.1.0 - diff --git a/simpl-build-sqlite.sh b/simpl-build-sqlite.sh index 532c97b1ff..630e2c11f0 100755 --- a/simpl-build-sqlite.sh +++ b/simpl-build-sqlite.sh @@ -1,4 +1,6 @@ #!/bin/bash +## Shell script for compiling the app. This build does not depend on a database (sqlite), it will create a simplcommerce.db file. +## set -e sed -i'' -e 's|||' src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj diff --git a/simpl-build.sh b/simpl-build.sh index b3d6880853..f3564be336 100755 --- a/simpl-build.sh +++ b/simpl-build.sh @@ -1,4 +1,9 @@ #!/bin/bash +## Shell script for compiling the app. THe uilding depends on a postgresql connection. If you don'T have one running, +## you can easily expose one with Docker like this: +## docker run -d --name postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 postgres +## Also be sure to do the mapping to ETC Hosts or change the server to localhost. + set -e sed -i'' -e 's|||' src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj From d37b898c879a3a96b94986a5067a5e7a0c11e3c7 Mon Sep 17 00:00:00 2001 From: Sergio Hinojosa Date: Wed, 16 Dec 2020 15:52:08 +0100 Subject: [PATCH 4/4] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3756c76217..feac452e21 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -4,7 +4,7 @@ # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core trigger: -- master +- dotnet5/docker jobs: - job: Linux