//
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("20220830072136_ListingWithNamesEx")]
partial class ListingWithNamesEx
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "6.0.8")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
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("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"), 1L, 1);
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"), 1L, 1);
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.ToView(null);
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.AdvertisementWithNames", b =>
{
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("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("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("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.ToView(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"), 1L, 1);
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.BannerWithNames", b =>
{
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("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("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.ToView(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"), 1L, 1);
b.Property("ListingAllowed")
.HasColumnType("bit");
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.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("Title")
.HasColumnType("nvarchar(max)");
b.Property("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property("Version")
.HasColumnType("varbinary(max)");
b.ToView(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("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Index"), 1L, 1);
b.Property("ListingType")
.HasColumnType("int");
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("ReservedUntil")
.HasColumnType("datetimeoffset");
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("BranchId");
b.HasIndex("CustomerId");
b.HasIndex("Index");
b.HasIndex("OrderId");
b.HasIndex("OrderItemId");
b.ToTable("Listings");
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.ListingWithNames", b =>
{
b.Property("BranchId")
.HasColumnType("nvarchar(max)");
b.Property("BranchName")
.HasColumnType("nvarchar(max)");
b.Property("CountryCode")
.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("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("ListingType")
.HasColumnType("int");
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("ReservedUntil")
.HasColumnType("datetimeoffset");
b.Property("StartDate")
.HasColumnType("datetimeoffset");
b.Property("State")
.HasColumnType("nvarchar(max)");
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.ToView(null);
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.Pin", b =>
{
b.Property("Id")
.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("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property