//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using NetTopologySuite.Geometries;
using gehGassi.Persistence;
#nullable disable
namespace gehGassi.Persistence.Migrations
{
[DbContext(typeof(SqlDbContext))]
[Migration("20240222083042_CustomerMangopayTermsAcceptedAdded")]
partial class CustomerMangopayTermsAcceptedAdded
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.2")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("ClaimType")
.HasColumnType("nvarchar(max)");
b.Property("ClaimValue")
.HasColumnType("nvarchar(max)");
b.Property("RoleId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("RoleId");
b.ToTable("AspNetRoleClaims", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("ClaimType")
.HasColumnType("nvarchar(max)");
b.Property("ClaimValue")
.HasColumnType("nvarchar(max)");
b.Property("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("AspNetUserClaims", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b =>
{
b.Property("LoginProvider")
.HasColumnType("nvarchar(450)");
b.Property("ProviderKey")
.HasColumnType("nvarchar(450)");
b.Property("ProviderDisplayName")
.HasColumnType("nvarchar(max)");
b.Property("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("LoginProvider", "ProviderKey");
b.HasIndex("UserId");
b.ToTable("AspNetUserLogins", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b =>
{
b.Property("UserId")
.HasColumnType("nvarchar(450)");
b.Property("RoleId")
.HasColumnType("nvarchar(450)");
b.HasKey("UserId", "RoleId");
b.HasIndex("RoleId");
b.ToTable("AspNetUserRoles", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b =>
{
b.Property("UserId")
.HasColumnType("nvarchar(450)");
b.Property("LoginProvider")
.HasColumnType("nvarchar(450)");
b.Property("Name")
.HasColumnType("nvarchar(450)");
b.Property("Value")
.HasColumnType("nvarchar(max)");
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AspNetUserTokens", (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.Advertisement", b =>
{
b.Property("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property("AdvertisementCategoryId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property("CartId")
.HasColumnType("bigint");
b.Property("CartItemId")
.HasColumnType("bigint");
b.Property("Created")
.HasColumnType("datetimeoffset");
b.Property("CustomerId")
.HasColumnType("bigint");
b.Property("Deleted")
.HasColumnType("bit");
b.Property("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Discount")
.HasColumnType("decimal(18,2)");
b.Property("EndDate")
.HasColumnType("datetimeoffset");
b.Property("GeoMode")
.HasColumnType("int");
b.Property("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("Image2")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("Image2LanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Index"));
b.Property("Location")
.HasColumnType("geography");
b.Property("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property("OrderId")
.HasColumnType("bigint");
b.Property("OrderItemId")
.HasColumnType("bigint");
b.Property("PayedDate")
.HasColumnType("datetimeoffset");
b.Property("PaymentStatus")
.HasColumnType("int");
b.Property("PaymentType")
.HasColumnType("int");
b.Property("Radius")
.HasColumnType("float");
b.Property("StartDate")
.HasColumnType("datetimeoffset");
b.Property("Status")
.HasColumnType("int");
b.Property("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property("Url")
.HasMaxLength(2083)
.HasColumnType("nvarchar(2083)");
b.Property("UrlLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("AdvertisementCategoryId");
b.HasIndex("CustomerId");
b.HasIndex("Index");
b.HasIndex("OrderId");
b.HasIndex("OrderItemId");
b.ToTable("Advertisements");
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.AdvertisementCategory", b =>
{
b.Property("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property("Comment")
.HasColumnType("nvarchar(max)");
b.Property("Created")
.HasColumnType("datetimeoffset");
b.Property("Deleted")
.HasColumnType("bit");
b.Property("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Index"));
b.Property("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property("OnlineStatus")
.HasColumnType("int");
b.Property("Title")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("Index");
b.ToTable("AdvertisementCategories");
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.AdvertisementCategoryWithNames", b =>
{
b.Property("Comment")
.HasColumnType("nvarchar(max)");
b.Property("Created")
.HasColumnType("datetimeoffset");
b.Property("Deleted")
.HasColumnType("bit");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Id")
.HasColumnType("nvarchar(max)");
b.Property("Image")
.HasColumnType("nvarchar(max)");
b.Property("ImageLanguage")
.HasColumnType("nvarchar(max)");
b.Property("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Index")
.HasColumnType("bigint");
b.Property("Name")
.HasColumnType("nvarchar(max)");
b.Property("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property("OnlineStatus")
.HasColumnType("int");
b.Property("Title")
.HasColumnType("nvarchar(max)");
b.Property("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.AdvertisementWithNames", b =>
{
b.Property("Address_CountryCode")
.HasColumnType("nvarchar(max)");
b.Property("Address_State")
.HasColumnType("nvarchar(max)");
b.Property("AdvertisementCategoryId")
.HasColumnType("nvarchar(max)");
b.Property("AdvertisementCategoryName")
.HasColumnType("nvarchar(max)");
b.Property("Created")
.HasColumnType("datetimeoffset");
b.Property("CustomerId")
.HasColumnType("bigint");
b.Property("CustomerName")
.HasColumnType("nvarchar(max)");
b.Property("Deleted")
.HasColumnType("bit");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Discount")
.HasColumnType("decimal(18,2)");
b.Property("EndDate")
.HasColumnType("datetimeoffset");
b.Property("GeoMode")
.HasColumnType("int");
b.Property("Id")
.HasColumnType("nvarchar(max)");
b.Property("Image")
.HasColumnType("nvarchar(max)");
b.Property("Image2")
.HasColumnType("nvarchar(max)");
b.Property("Image2Language")
.HasColumnType("nvarchar(max)");
b.Property("Image2LanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("ImageLanguage")
.HasColumnType("nvarchar(max)");
b.Property("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Index")
.HasColumnType("bigint");
b.Property("Location")
.HasColumnType("geography");
b.Property("Name")
.HasColumnType("nvarchar(max)");
b.Property("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property("PayedDate")
.HasColumnType("datetimeoffset");
b.Property("PaymentStatus")
.HasColumnType("int");
b.Property("PaymentType")
.HasColumnType("int");
b.Property("Radius")
.HasColumnType("float");
b.Property("StartDate")
.HasColumnType("datetimeoffset");
b.Property("Status")
.HasColumnType("int");
b.Property("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property("Url")
.HasColumnType("nvarchar(max)");
b.Property("UrlLanguage")
.HasColumnType("nvarchar(max)");
b.Property("UrlLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.Banner", b =>
{
b.Property("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property("BannerLocation")
.HasColumnType("int");
b.Property("BannerSize")
.HasColumnType("int");
b.Property("Budget")
.HasColumnType("decimal(18,4)");
b.Property("BudgetUsed")
.HasColumnType("decimal(18,4)");
b.Property("CartId")
.HasColumnType("bigint");
b.Property("CartItemId")
.HasColumnType("bigint");
b.Property("Created")
.HasColumnType("datetimeoffset");
b.Property("CurrentClicks")
.HasColumnType("int");
b.Property("CurrentViews")
.HasColumnType("int");
b.Property("CustomerId")
.HasColumnType("bigint");
b.Property("Deleted")
.HasColumnType("bit");
b.Property("EndDate")
.HasColumnType("datetimeoffset");
b.Property("GeoMode")
.HasColumnType("int");
b.Property("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Index"));
b.Property("Location")
.HasColumnType("geography");
b.Property("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property("OrderId")
.HasColumnType("bigint");
b.Property("OrderItemId")
.HasColumnType("bigint");
b.Property("PayedDate")
.HasColumnType("datetimeoffset");
b.Property("PaymentStatus")
.HasColumnType("int");
b.Property("PaymentType")
.HasColumnType("int");
b.Property("PriceClick")
.HasColumnType("decimal(18,4)");
b.Property("PriceView")
.HasColumnType("decimal(18,4)");
b.Property("Radius")
.HasColumnType("float");
b.Property("StartDate")
.HasColumnType("datetimeoffset");
b.Property("Status")
.HasColumnType("int");
b.Property("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property("Url")
.HasMaxLength(2083)
.HasColumnType("nvarchar(2083)");
b.Property("UrlLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("CustomerId");
b.HasIndex("Index");
b.HasIndex("OrderId");
b.HasIndex("OrderItemId");
b.ToTable("Banners");
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.BannerStatistic", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("AppMode")
.HasColumnType("int");
b.Property("BannerId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property("Day")
.HasColumnType("int");
b.Property("EventDate")
.HasColumnType("datetimeoffset");
b.Property("Hour")
.HasColumnType("int");
b.Property("Language")
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property("Month")
.HasColumnType("int");
b.Property("StateCode")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("StatisticType")
.HasColumnType("int");
b.Property("Value")
.HasColumnType("int");
b.Property("Year")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("BannerId");
b.ToTable("BannerStatistics");
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.BannerWithNames", b =>
{
b.Property("Address_CountryCode")
.HasColumnType("nvarchar(max)");
b.Property("Address_State")
.HasColumnType("nvarchar(max)");
b.Property("BannerLocation")
.HasColumnType("int");
b.Property("BannerSize")
.HasColumnType("int");
b.Property("Budget")
.HasColumnType("decimal(18,4)");
b.Property("BudgetUsed")
.HasColumnType("decimal(18,4)");
b.Property("Created")
.HasColumnType("datetimeoffset");
b.Property("CurrentClicks")
.HasColumnType("int");
b.Property("CurrentViews")
.HasColumnType("int");
b.Property("CustomerId")
.HasColumnType("bigint");
b.Property("CustomerName")
.HasColumnType("nvarchar(max)");
b.Property("Deleted")
.HasColumnType("bit");
b.Property("EndDate")
.HasColumnType("datetimeoffset");
b.Property("GeoMode")
.HasColumnType("int");
b.Property("Id")
.HasColumnType("nvarchar(max)");
b.Property("Image")
.HasColumnType("nvarchar(max)");
b.Property("ImageLanguage")
.HasColumnType("nvarchar(max)");
b.Property("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Index")
.HasColumnType("bigint");
b.Property("Location")
.HasColumnType("geography");
b.Property("Name")
.HasColumnType("nvarchar(max)");
b.Property("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property("PayedDate")
.HasColumnType("datetimeoffset");
b.Property("PaymentStatus")
.HasColumnType("int");
b.Property("PaymentType")
.HasColumnType("int");
b.Property("PriceClick")
.HasColumnType("decimal(18,4)");
b.Property("PriceView")
.HasColumnType("decimal(18,4)");
b.Property("Radius")
.HasColumnType("float");
b.Property("StartDate")
.HasColumnType("datetimeoffset");
b.Property("Status")
.HasColumnType("int");
b.Property("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property("Url")
.HasColumnType("nvarchar(max)");
b.Property("UrlLanguage")
.HasColumnType("nvarchar(max)");
b.Property("UrlLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.Branch", b =>
{
b.Property("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property("Comment")
.HasColumnType("nvarchar(max)");
b.Property("Created")
.HasColumnType("datetimeoffset");
b.Property("Deleted")
.HasColumnType("bit");
b.Property("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Index"));
b.Property("ListingAllowed")
.HasColumnType("bit");
b.Property("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property("OnlineStatus")
.HasColumnType("int");
b.Property("Order")
.HasColumnType("int");
b.Property("Title")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.ToTable("Branches");
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.BranchWithNames", b =>
{
b.Property("Comment")
.HasColumnType("nvarchar(max)");
b.Property("Created")
.HasColumnType("datetimeoffset");
b.Property("Deleted")
.HasColumnType("bit");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Id")
.HasColumnType("nvarchar(max)");
b.Property("Image")
.HasColumnType("nvarchar(max)");
b.Property("ImageLanguage")
.HasColumnType("nvarchar(max)");
b.Property("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Index")
.HasColumnType("bigint");
b.Property("ListingAllowed")
.HasColumnType("bit");
b.Property("Name")
.HasColumnType("nvarchar(max)");
b.Property("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property("OnlineStatus")
.HasColumnType("int");
b.Property("Order")
.HasColumnType("int");
b.Property("Title")
.HasColumnType("nvarchar(max)");
b.Property("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.Listing", b =>
{
b.Property("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property("BranchId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property("CartId")
.HasColumnType("bigint");
b.Property("CartItemId")
.HasColumnType("bigint");
b.Property("Created")
.HasColumnType("datetimeoffset");
b.Property("CustomerId")
.HasColumnType("bigint");
b.Property("Deleted")
.HasColumnType("bit");
b.Property("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property("EndDate")
.HasColumnType("datetimeoffset");
b.Property("GeoMode")
.HasColumnType("int");
b.Property("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("Image2")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("Image2LanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Index"));
b.Property