gehgassi_backend/gehGassi.Persistence/Migrations/20250209120257_tv_SubscriptionWithNamesAdded.Designer.cs

9373 lines
335 KiB
C#

// <auto-generated />
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("20250209120257_tv_SubscriptionWithNamesAdded")]
partial class tv_SubscriptionWithNamesAdded
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.10")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("ClaimType")
.HasColumnType("nvarchar(max)");
b.Property<string>("ClaimValue")
.HasColumnType("nvarchar(max)");
b.Property<string>("RoleId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("RoleId");
b.ToTable("AspNetRoleClaims", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("ClaimType")
.HasColumnType("nvarchar(max)");
b.Property<string>("ClaimValue")
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("AspNetUserClaims", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{
b.Property<string>("LoginProvider")
.HasColumnType("nvarchar(450)");
b.Property<string>("ProviderKey")
.HasColumnType("nvarchar(450)");
b.Property<string>("ProviderDisplayName")
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("LoginProvider", "ProviderKey");
b.HasIndex("UserId");
b.ToTable("AspNetUserLogins", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
{
b.Property<string>("UserId")
.HasColumnType("nvarchar(450)");
b.Property<string>("RoleId")
.HasColumnType("nvarchar(450)");
b.HasKey("UserId", "RoleId");
b.HasIndex("RoleId");
b.ToTable("AspNetUserRoles", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
b.Property<string>("UserId")
.HasColumnType("nvarchar(450)");
b.Property<string>("LoginProvider")
.HasColumnType("nvarchar(450)");
b.Property<string>("Name")
.HasColumnType("nvarchar(450)");
b.Property<string>("Value")
.HasColumnType("nvarchar(max)");
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AspNetUserTokens", (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.Advertisement", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("AdvertisementCategoryId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<long?>("CartId")
.HasColumnType("bigint");
b.Property<long?>("CartItemId")
.HasColumnType("bigint");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<long>("CustomerId")
.HasColumnType("bigint");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Discount")
.HasColumnType("decimal(18,2)");
b.Property<DateTimeOffset?>("EndDate")
.HasColumnType("datetimeoffset");
b.Property<int>("GeoMode")
.HasColumnType("int");
b.Property<string>("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("Image2")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("Image2LanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long?>("OrderId")
.HasColumnType("bigint");
b.Property<long?>("OrderItemId")
.HasColumnType("bigint");
b.Property<DateTimeOffset?>("PayedDate")
.HasColumnType("datetimeoffset");
b.Property<int>("PaymentStatus")
.HasColumnType("int");
b.Property<int>("PaymentType")
.HasColumnType("int");
b.Property<double>("Radius")
.HasColumnType("float");
b.Property<DateTimeOffset?>("StartDate")
.HasColumnType("datetimeoffset");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("Url")
.HasMaxLength(2083)
.HasColumnType("nvarchar(2083)");
b.Property<string>("UrlLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<byte[]>("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<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("OnlineStatus")
.HasColumnType("int");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("Index");
b.ToTable("AdvertisementCategories");
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.AdvertisementCategoryWithNames", b =>
{
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("OnlineStatus")
.HasColumnType("int");
b.Property<string>("Title")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.AdvertisementWithNames", b =>
{
b.Property<string>("Address_CountryCode")
.HasColumnType("nvarchar(max)");
b.Property<string>("Address_State")
.HasColumnType("nvarchar(max)");
b.Property<string>("AdvertisementCategoryId")
.HasColumnType("nvarchar(max)");
b.Property<string>("AdvertisementCategoryName")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<long>("CustomerId")
.HasColumnType("bigint");
b.Property<string>("CustomerName")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Discount")
.HasColumnType("decimal(18,2)");
b.Property<DateTimeOffset?>("EndDate")
.HasColumnType("datetimeoffset");
b.Property<int>("GeoMode")
.HasColumnType("int");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image2")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image2Language")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image2LanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("PayedDate")
.HasColumnType("datetimeoffset");
b.Property<int>("PaymentStatus")
.HasColumnType("int");
b.Property<int>("PaymentType")
.HasColumnType("int");
b.Property<double>("Radius")
.HasColumnType("float");
b.Property<DateTimeOffset?>("StartDate")
.HasColumnType("datetimeoffset");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("Url")
.HasColumnType("nvarchar(max)");
b.Property<string>("UrlLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("UrlLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.Banner", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("BannerLocation")
.HasColumnType("int");
b.Property<int>("BannerSize")
.HasColumnType("int");
b.Property<decimal>("Budget")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("BudgetUsed")
.HasColumnType("decimal(18,4)");
b.Property<long?>("CartId")
.HasColumnType("bigint");
b.Property<long?>("CartItemId")
.HasColumnType("bigint");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<int>("CurrentClicks")
.HasColumnType("int");
b.Property<int>("CurrentViews")
.HasColumnType("int");
b.Property<long>("CustomerId")
.HasColumnType("bigint");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("EndDate")
.HasColumnType("datetimeoffset");
b.Property<int>("GeoMode")
.HasColumnType("int");
b.Property<string>("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long?>("OrderId")
.HasColumnType("bigint");
b.Property<long?>("OrderItemId")
.HasColumnType("bigint");
b.Property<DateTimeOffset?>("PayedDate")
.HasColumnType("datetimeoffset");
b.Property<int>("PaymentStatus")
.HasColumnType("int");
b.Property<int>("PaymentType")
.HasColumnType("int");
b.Property<decimal>("PriceClick")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("PriceView")
.HasColumnType("decimal(18,4)");
b.Property<double>("Radius")
.HasColumnType("float");
b.Property<DateTimeOffset?>("StartDate")
.HasColumnType("datetimeoffset");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("Url")
.HasMaxLength(2083)
.HasColumnType("nvarchar(2083)");
b.Property<string>("UrlLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<byte[]>("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<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<int>("AppMode")
.HasColumnType("int");
b.Property<string>("BannerId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<int>("Day")
.HasColumnType("int");
b.Property<DateTimeOffset>("EventDate")
.HasColumnType("datetimeoffset");
b.Property<int>("Hour")
.HasColumnType("int");
b.Property<string>("Language")
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property<int>("Month")
.HasColumnType("int");
b.Property<string>("StateCode")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<int>("StatisticType")
.HasColumnType("int");
b.Property<int>("Value")
.HasColumnType("int");
b.Property<int>("Year")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("BannerId");
b.ToTable("BannerStatistics");
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.BannerWithNames", b =>
{
b.Property<string>("Address_CountryCode")
.HasColumnType("nvarchar(max)");
b.Property<string>("Address_State")
.HasColumnType("nvarchar(max)");
b.Property<int>("BannerLocation")
.HasColumnType("int");
b.Property<int>("BannerSize")
.HasColumnType("int");
b.Property<decimal>("Budget")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("BudgetUsed")
.HasColumnType("decimal(18,4)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<int>("CurrentClicks")
.HasColumnType("int");
b.Property<int>("CurrentViews")
.HasColumnType("int");
b.Property<long>("CustomerId")
.HasColumnType("bigint");
b.Property<string>("CustomerName")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("EndDate")
.HasColumnType("datetimeoffset");
b.Property<int>("GeoMode")
.HasColumnType("int");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("PayedDate")
.HasColumnType("datetimeoffset");
b.Property<int>("PaymentStatus")
.HasColumnType("int");
b.Property<int>("PaymentType")
.HasColumnType("int");
b.Property<decimal>("PriceClick")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("PriceView")
.HasColumnType("decimal(18,4)");
b.Property<double>("Radius")
.HasColumnType("float");
b.Property<DateTimeOffset?>("StartDate")
.HasColumnType("datetimeoffset");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("Url")
.HasColumnType("nvarchar(max)");
b.Property<string>("UrlLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("UrlLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.Branch", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<bool>("ListingAllowed")
.HasColumnType("bit");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("OnlineStatus")
.HasColumnType("int");
b.Property<int>("Order")
.HasColumnType("int");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.ToTable("Branches");
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.BranchWithNames", b =>
{
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<bool>("ListingAllowed")
.HasColumnType("bit");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("OnlineStatus")
.HasColumnType("int");
b.Property<int>("Order")
.HasColumnType("int");
b.Property<string>("Title")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.Listing", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("BranchId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<long?>("CartId")
.HasColumnType("bigint");
b.Property<long?>("CartItemId")
.HasColumnType("bigint");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<long>("CustomerId")
.HasColumnType("bigint");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("EndDate")
.HasColumnType("datetimeoffset");
b.Property<int>("GeoMode")
.HasColumnType("int");
b.Property<string>("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("Image2")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("Image2LanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<Point>("ListingLocation")
.HasColumnType("geography");
b.Property<int>("ListingType")
.HasColumnType("int");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long?>("OrderId")
.HasColumnType("bigint");
b.Property<long?>("OrderItemId")
.HasColumnType("bigint");
b.Property<DateTimeOffset?>("PayedDate")
.HasColumnType("datetimeoffset");
b.Property<int>("PaymentStatus")
.HasColumnType("int");
b.Property<int>("PaymentType")
.HasColumnType("int");
b.Property<double>("Radius")
.HasColumnType("float");
b.Property<DateTimeOffset?>("ReservedUntil")
.HasColumnType("datetimeoffset");
b.Property<DateTimeOffset?>("StartDate")
.HasColumnType("datetimeoffset");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("Url")
.HasMaxLength(2083)
.HasColumnType("nvarchar(2083)");
b.Property<string>("UrlLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<byte[]>("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<string>("Address_CountryCode")
.HasColumnType("nvarchar(max)");
b.Property<string>("Address_State")
.HasColumnType("nvarchar(max)");
b.Property<string>("BranchId")
.HasColumnType("nvarchar(max)");
b.Property<string>("BranchName")
.HasColumnType("nvarchar(max)");
b.Property<int>("BranchOnlineStatus")
.HasColumnType("int");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<long>("CustomerId")
.HasColumnType("bigint");
b.Property<string>("CustomerName")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("EndDate")
.HasColumnType("datetimeoffset");
b.Property<int>("GeoMode")
.HasColumnType("int");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image2")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image2Language")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image2LanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<string>("ListingAddress_AddressLine1")
.HasColumnType("nvarchar(max)");
b.Property<string>("ListingAddress_AddressLine2")
.HasColumnType("nvarchar(max)");
b.Property<string>("ListingAddress_City")
.HasColumnType("nvarchar(max)");
b.Property<string>("ListingAddress_CountryCode")
.HasColumnType("nvarchar(max)");
b.Property<string>("ListingAddress_State")
.HasColumnType("nvarchar(max)");
b.Property<string>("ListingAddress_Zip")
.HasColumnType("nvarchar(max)");
b.Property<Point>("ListingLocation")
.HasColumnType("geography");
b.Property<int>("ListingType")
.HasColumnType("int");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("PayedDate")
.HasColumnType("datetimeoffset");
b.Property<int>("PaymentStatus")
.HasColumnType("int");
b.Property<int>("PaymentType")
.HasColumnType("int");
b.Property<double>("Radius")
.HasColumnType("float");
b.Property<DateTimeOffset?>("ReservedUntil")
.HasColumnType("datetimeoffset");
b.Property<DateTimeOffset?>("StartDate")
.HasColumnType("datetimeoffset");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("Url")
.HasColumnType("nvarchar(max)");
b.Property<string>("UrlLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("UrlLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.Pin", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<long?>("CartId")
.HasColumnType("bigint");
b.Property<long?>("CartItemId")
.HasColumnType("bigint");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<long>("CustomerId")
.HasColumnType("bigint");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("EndDate")
.HasColumnType("datetimeoffset");
b.Property<string>("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("ListingId")
.HasColumnType("nvarchar(128)");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long?>("OrderId")
.HasColumnType("bigint");
b.Property<long?>("OrderItemId")
.HasColumnType("bigint");
b.Property<DateTimeOffset?>("PayedDate")
.HasColumnType("datetimeoffset");
b.Property<int>("PaymentStatus")
.HasColumnType("int");
b.Property<int>("PaymentType")
.HasColumnType("int");
b.Property<double>("Radius")
.HasColumnType("float");
b.Property<DateTimeOffset?>("StartDate")
.HasColumnType("datetimeoffset");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("Url")
.HasMaxLength(2083)
.HasColumnType("nvarchar(2083)");
b.Property<string>("UrlLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("CustomerId");
b.HasIndex("Index");
b.HasIndex("ListingId");
b.HasIndex("OrderId");
b.HasIndex("OrderItemId");
b.ToTable("Pins");
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.PinWithNames", b =>
{
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<long>("CustomerId")
.HasColumnType("bigint");
b.Property<string>("CustomerName")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("EndDate")
.HasColumnType("datetimeoffset");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<string>("ListingId")
.HasColumnType("nvarchar(max)");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("PayedDate")
.HasColumnType("datetimeoffset");
b.Property<int>("PaymentStatus")
.HasColumnType("int");
b.Property<int>("PaymentType")
.HasColumnType("int");
b.Property<double>("Radius")
.HasColumnType("float");
b.Property<DateTimeOffset?>("StartDate")
.HasColumnType("datetimeoffset");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("Url")
.HasColumnType("nvarchar(max)");
b.Property<string>("UrlLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("UrlLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Coins.CoinsAccount", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("AppUserId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("AppUserType")
.HasColumnType("int");
b.Property<decimal>("Balance")
.HasColumnType("decimal(18,2)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("AppUserId");
b.HasIndex("Index");
b.ToTable("CoinsAccounts");
});
modelBuilder.Entity("gehGassi.Domain.Coins.CoinsPerMonth", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("AppUserId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("AppUserType")
.HasColumnType("int");
b.Property<decimal>("Balance")
.HasColumnType("decimal(18,2)");
b.Property<DateTimeOffset>("LastUpdate")
.HasColumnType("datetimeoffset");
b.Property<int>("Month")
.HasColumnType("int");
b.Property<int>("Year")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("AppUserId");
b.ToTable("CoinsPerMonths");
});
modelBuilder.Entity("gehGassi.Domain.Coins.CoinsPerMonthWithNames", b =>
{
b.Property<string>("AppUserId")
.HasColumnType("nvarchar(max)");
b.Property<string>("AppUserName")
.HasColumnType("nvarchar(max)");
b.Property<string>("AppUserPhoto")
.HasColumnType("nvarchar(max)");
b.Property<int>("AppUserType")
.HasColumnType("int");
b.Property<decimal>("Balance")
.HasColumnType("decimal(18,2)");
b.Property<long>("Id")
.HasColumnType("bigint");
b.Property<DateTimeOffset>("LastUpdate")
.HasColumnType("datetimeoffset");
b.Property<int>("Month")
.HasColumnType("int");
b.Property<int>("Year")
.HasColumnType("int");
b.ToTable((string)null);
b.ToView("vw_CoinsPerMonthWithNames", (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Coins.CoinsPerYear", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("AppUserId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("AppUserType")
.HasColumnType("int");
b.Property<decimal>("Balance")
.HasColumnType("decimal(18,2)");
b.Property<DateTimeOffset>("LastUpdate")
.HasColumnType("datetimeoffset");
b.Property<int>("Year")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("AppUserId");
b.ToTable("CoinsPerYears");
});
modelBuilder.Entity("gehGassi.Domain.Coins.CoinsPerYearWithNames", b =>
{
b.Property<string>("AppUserId")
.HasColumnType("nvarchar(max)");
b.Property<string>("AppUserName")
.HasColumnType("nvarchar(max)");
b.Property<string>("AppUserPhoto")
.HasColumnType("nvarchar(max)");
b.Property<int>("AppUserType")
.HasColumnType("int");
b.Property<decimal>("Balance")
.HasColumnType("decimal(18,2)");
b.Property<long>("Id")
.HasColumnType("bigint");
b.Property<DateTimeOffset>("LastUpdate")
.HasColumnType("datetimeoffset");
b.Property<int>("Year")
.HasColumnType("int");
b.ToTable((string)null);
b.ToView("vw_CoinsPerYearWithNames", (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Coins.CoinsTransaction", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("AccountId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<decimal>("Ammount")
.HasColumnType("decimal(18,2)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<int>("TransactionType")
.HasColumnType("int");
b.Property<string>("WalkId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.HasKey("Id");
b.HasIndex("AccountId");
b.ToTable("CoinsTransactions");
});
modelBuilder.Entity("gehGassi.Domain.Common.Audit", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<int>("Action")
.HasColumnType("int");
b.Property<DateTimeOffset>("DateTime")
.HasColumnType("datetimeoffset");
b.Property<string>("Key")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("KeyValues")
.HasColumnType("nvarchar(max)");
b.Property<string>("NewValues")
.HasColumnType("nvarchar(max)");
b.Property<string>("OldValues")
.HasColumnType("nvarchar(max)");
b.Property<string>("Table")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("UserName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.HasKey("Id");
b.ToTable("Audits");
});
modelBuilder.Entity("gehGassi.Domain.Common.AuditWithNames", b =>
{
b.Property<int>("Action")
.HasColumnType("int");
b.Property<DateTimeOffset>("DateTime")
.HasColumnType("datetimeoffset");
b.Property<long>("Id")
.HasColumnType("bigint");
b.Property<string>("Key")
.HasColumnType("nvarchar(max)");
b.Property<string>("KeyValues")
.HasColumnType("nvarchar(max)");
b.Property<string>("NewValues")
.HasColumnType("nvarchar(max)");
b.Property<string>("OldValues")
.HasColumnType("nvarchar(max)");
b.Property<string>("Table")
.HasColumnType("nvarchar(max)");
b.Property<string>("UserFullName")
.HasColumnType("nvarchar(max)");
b.Property<string>("UserName")
.HasColumnType("nvarchar(max)");
b.Property<string>("UserPhoto")
.HasColumnType("nvarchar(max)");
b.ToTable((string)null);
b.ToView("vw_AuditsWithNames", (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Customers.Customer", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("BranchId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("BranchesJson")
.HasColumnType("nvarchar(max)");
b.Property<string>("Comment")
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("FirstName")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<bool>("IsCompany")
.HasColumnType("bit");
b.Property<string>("Languages")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("LastName")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("Logo")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("MangopayCompanyName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<DateTimeOffset?>("MangopayContactBirthdate")
.HasColumnType("datetimeoffset");
b.Property<string>("MangopayContactEmail")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<string>("MangopayContactFirstName")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("MangopayContactLastName")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("MangopayContactMainResidenceCode")
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<string>("MangopayContactNationality")
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<string>("MangopayEmail")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<bool>("MangopayIdCreated")
.HasColumnType("bit");
b.Property<string>("MangopayPaymentId")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<string>("MangopayRegistrationNumber")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<bool>("MangopayTermsAccepted")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("MangopayTermsAcceptedDate")
.HasColumnType("datetimeoffset");
b.Property<decimal>("MarkupAdvertisement")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("MarkupBanner")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("MarkupListing")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("MarkupPin")
.HasColumnType("decimal(18,2)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("Number")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<bool>("PaymentOnInvoice")
.HasColumnType("bit");
b.Property<string>("Title")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<long?>("TypeId")
.HasColumnType("bigint");
b.Property<Guid?>("UniqueId")
.HasColumnType("uniqueidentifier");
b.Property<string>("Vat")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.HasKey("Id");
b.HasIndex("BranchId");
b.HasIndex("TypeId");
b.ToTable("Customers");
});
modelBuilder.Entity("gehGassi.Domain.Customers.CustomerType", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<Guid?>("UniqueId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.ToTable("CustomerTypes");
});
modelBuilder.Entity("gehGassi.Domain.Customers.CustomerWithNames", b =>
{
b.Property<string>("BranchId")
.HasColumnType("nvarchar(max)");
b.Property<string>("BranchName")
.HasColumnType("nvarchar(max)");
b.Property<string>("BranchesJson")
.HasColumnType("nvarchar(max)");
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<string>("CountryCode")
.HasColumnType("nvarchar(max)")
.HasColumnName("Address_CountryCode");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("FirstName")
.HasColumnType("nvarchar(max)");
b.Property<long>("Id")
.HasColumnType("bigint");
b.Property<bool>("IsCompany")
.HasColumnType("bit");
b.Property<string>("Languages")
.HasColumnType("nvarchar(max)");
b.Property<string>("LastName")
.HasColumnType("nvarchar(max)");
b.Property<string>("Logo")
.HasColumnType("nvarchar(max)");
b.Property<bool>("MangopayIdCreated")
.HasColumnType("bit");
b.Property<string>("MangopayPaymentId")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("MarkupAdvertisement")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("MarkupBanner")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("MarkupListing")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("MarkupPin")
.HasColumnType("decimal(18,2)");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("Number")
.HasColumnType("nvarchar(max)");
b.Property<bool>("PaymentOnInvoice")
.HasColumnType("bit");
b.Property<string>("Title")
.HasColumnType("nvarchar(max)");
b.Property<long?>("TypeId")
.HasColumnType("bigint");
b.Property<string>("TypeName")
.HasColumnType("nvarchar(max)");
b.Property<Guid?>("UniqueId")
.HasColumnType("uniqueidentifier");
b.Property<string>("Vat")
.HasColumnType("nvarchar(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Devices.Device", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("AppUserId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Channel")
.IsRequired()
.HasMaxLength(512)
.HasColumnType("nvarchar(512)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("InstallationId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Language")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<DateTimeOffset>("LastUpdate")
.HasColumnType("datetimeoffset");
b.Property<int>("NotificationPlatform")
.HasColumnType("int");
b.Property<int>("Platform")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("AppUserId");
b.ToTable("Devices");
});
modelBuilder.Entity("gehGassi.Domain.Dogs.AppUser", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<bool>("Anonymized")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("AnonymizedDate")
.HasColumnType("datetimeoffset");
b.Property<bool>("AutoPayout")
.HasColumnType("bit");
b.Property<string>("BankId")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<DateTimeOffset?>("BirthDate")
.HasColumnType("datetimeoffset");
b.Property<string>("Comment")
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("FirstName")
.IsRequired()
.HasMaxLength(150)
.HasColumnType("nvarchar(150)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<bool>("KycPassed")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("KycPassedDate")
.HasColumnType("datetimeoffset");
b.Property<string>("LastName")
.IsRequired()
.HasMaxLength(150)
.HasColumnType("nvarchar(150)");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<bool>("Locked")
.HasColumnType("bit");
b.Property<int>("LockedCount")
.HasColumnType("int");
b.Property<string>("LockedReason")
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<DateTimeOffset?>("LockedUntil")
.HasColumnType("datetimeoffset");
b.Property<string>("MainResidenceCode")
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<string>("NationalityCode")
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<string>("Number")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("PaymentId")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<bool>("PaymentTermsAccepted")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("PaymentTermsAcceptedDate")
.HasColumnType("datetimeoffset");
b.Property<string>("Photo")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<bool>("PrivacyAccepted")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("PrivacyAcceptedDate")
.HasColumnType("datetimeoffset");
b.Property<int>("Sex")
.HasColumnType("int");
b.Property<bool>("TermsAccepted")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("TermsAcceptedDate")
.HasColumnType("datetimeoffset");
b.Property<string>("Title")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<bool>("Verified")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("VerifiedDate")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("Index");
b.ToTable("AppUsers");
});
modelBuilder.Entity("gehGassi.Domain.Dogs.AppUserBlock", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<long?>("AppUserReportId")
.HasColumnType("bigint");
b.Property<string>("BlockedAppUserId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset?>("BlockedUntil")
.HasColumnType("datetimeoffset");
b.Property<string>("BlockingAppUserId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("CreatedBy")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.HasKey("Id");
b.HasIndex("BlockedAppUserId");
b.HasIndex("BlockingAppUserId");
b.ToTable("AppUserBlocks");
});
modelBuilder.Entity("gehGassi.Domain.Dogs.AppUserBlockWithNames", b =>
{
b.Property<long?>("AppUserReportId")
.HasColumnType("bigint");
b.Property<string>("BlockedAppUserId")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("BlockedUntil")
.HasColumnType("datetimeoffset");
b.Property<string>("BlockingAppUserId")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("FirstName")
.HasColumnType("nvarchar(max)");
b.Property<long>("Id")
.HasColumnType("bigint");
b.Property<string>("LastName")
.HasColumnType("nvarchar(max)");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<string>("LocationHint")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Locked")
.HasColumnType("bit");
b.Property<string>("Photo")
.HasColumnType("nvarchar(max)");
b.Property<int>("Type")
.HasColumnType("int");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Dogs.AppUserRelation", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("LeftDeleted")
.HasColumnType("bit");
b.Property<string>("LeftId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<bool>("RightDeleted")
.HasColumnType("bit");
b.Property<string>("RightId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.HasKey("Id");
b.ToTable("EntityRelations");
});
modelBuilder.Entity("gehGassi.Domain.Dogs.AppUserSubscription", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("AppUserId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("CreatedBy")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<DateTimeOffset?>("ExpirationDate")
.HasColumnType("datetimeoffset");
b.Property<bool>("IsValid")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("LastRenewalDate")
.HasColumnType("datetimeoffset");
b.Property<DateTimeOffset?>("LastUpdate")
.HasColumnType("datetimeoffset");
b.Property<bool>("Manual")
.HasColumnType("bit");
b.Property<string>("SubscriptionId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.HasKey("Id");
b.HasIndex("AppUserId");
b.HasIndex("SubscriptionId");
b.ToTable("AppUserSubscriptions");
});
modelBuilder.Entity("gehGassi.Domain.Dogs.AppVersion", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int?>("Build")
.HasColumnType("int");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("IsCurrent")
.HasColumnType("bit");
b.Property<bool>("IsMandatory")
.HasColumnType("bit");
b.Property<DateTimeOffset>("LastUpdate")
.HasColumnType("datetimeoffset");
b.Property<int>("Major")
.HasColumnType("int");
b.Property<int>("Minor")
.HasColumnType("int");
b.Property<int>("Platform")
.HasColumnType("int");
b.Property<DateTimeOffset>("ReleaseDate")
.HasColumnType("datetimeoffset");
b.Property<string>("ReleaseNotesLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReleaseTitleLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int?>("Revision")
.HasColumnType("int");
b.Property<string>("Version")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.HasKey("Id");
b.ToTable("AppVersions");
});
modelBuilder.Entity("gehGassi.Domain.Dogs.AppVersionWithNames", b =>
{
b.Property<int?>("Build")
.HasColumnType("int");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<int>("Id")
.HasColumnType("int");
b.Property<bool>("IsCurrent")
.HasColumnType("bit");
b.Property<bool>("IsMandatory")
.HasColumnType("bit");
b.Property<DateTimeOffset>("LastUpdate")
.HasColumnType("datetimeoffset");
b.Property<int>("Major")
.HasColumnType("int");
b.Property<int>("Minor")
.HasColumnType("int");
b.Property<int>("Platform")
.HasColumnType("int");
b.Property<DateTimeOffset>("ReleaseDate")
.HasColumnType("datetimeoffset");
b.Property<string>("ReleaseNotes")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReleaseNotesLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReleaseTitle")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReleaseTitleLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int?>("Revision")
.HasColumnType("int");
b.Property<string>("Version")
.HasColumnType("nvarchar(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Dogs.Certificate", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("AppUserId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("FileName")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("InternalComment")
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("VerificationComment")
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<DateTimeOffset?>("VerificationDate")
.HasColumnType("datetimeoffset");
b.Property<string>("VerifiedBy")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.HasKey("Id");
b.HasIndex("AppUserId");
b.ToTable("Certificates");
});
modelBuilder.Entity("gehGassi.Domain.Dogs.Dog", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("AggressionLevel")
.HasColumnType("int");
b.Property<string>("AppUserId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<bool>("BasicCommands")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("BirthDate")
.HasColumnType("datetimeoffset");
b.Property<bool>("Chiped")
.HasColumnType("bit");
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Description")
.HasMaxLength(5000)
.HasColumnType("nvarchar(max)");
b.Property<string>("DogRaceId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<bool>("Eating")
.HasColumnType("bit");
b.Property<string>("FeedingIndividual")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<int>("FeedingTimes")
.HasColumnType("int");
b.Property<bool>("HouseTrained")
.HasColumnType("bit");
b.Property<bool>("Hunter")
.HasColumnType("bit");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("Intolerances")
.HasMaxLength(5000)
.HasColumnType("nvarchar(max)");
b.Property<bool>("IsAggressiv")
.HasColumnType("bit");
b.Property<bool>("IsCalm")
.HasColumnType("bit");
b.Property<bool>("IsGuard")
.HasColumnType("bit");
b.Property<bool>("IsLoneGunner")
.HasColumnType("bit");
b.Property<bool>("IsPeeing")
.HasColumnType("bit");
b.Property<bool>("IsShy")
.HasColumnType("bit");
b.Property<bool>("IsTrustful")
.HasColumnType("bit");
b.Property<bool>("Jumper")
.HasColumnType("bit");
b.Property<bool>("LikesAdults")
.HasColumnType("bit");
b.Property<bool>("LikesChildren")
.HasColumnType("bit");
b.Property<bool>("LikesConspecifics")
.HasColumnType("bit");
b.Property<string>("MedicalInfo")
.HasMaxLength(5000)
.HasColumnType("nvarchar(max)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("Number")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("Photo")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<bool>("PullsTheLeash")
.HasColumnType("bit");
b.Property<bool>("RushesOutside")
.HasColumnType("bit");
b.Property<int>("Sex")
.HasColumnType("int");
b.Property<int>("Size")
.HasColumnType("int");
b.Property<bool>("Sterilized")
.HasColumnType("bit");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.Property<bool>("WalksTheLeash")
.HasColumnType("bit");
b.HasKey("Id");
b.HasIndex("AppUserId");
b.HasIndex("DogRaceId");
b.HasIndex("Index");
b.ToTable("Dogs");
});
modelBuilder.Entity("gehGassi.Domain.Dogs.DogRace", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("AgeLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("CareLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("CoexistenceLocalized")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("DecisionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("PersonalityLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Photo")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("SizeAndWeightLocalized")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("Index");
b.ToTable("DogRaces");
});
modelBuilder.Entity("gehGassi.Domain.Dogs.DogRaceWithNames", b =>
{
b.Property<string>("Age")
.HasColumnType("nvarchar(max)");
b.Property<string>("AgeLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Care")
.HasColumnType("nvarchar(max)");
b.Property<string>("CareLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Coexistence")
.HasColumnType("nvarchar(max)");
b.Property<string>("CoexistenceLocalized")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("Decision")
.HasColumnType("nvarchar(max)");
b.Property<string>("DecisionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Personality")
.HasColumnType("nvarchar(max)");
b.Property<string>("PersonalityLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Photo")
.HasColumnType("nvarchar(max)");
b.Property<string>("SizeAndWeight")
.HasColumnType("nvarchar(max)");
b.Property<string>("SizeAndWeightLocalized")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Dogs.DogWalker", b =>
{
b.Property<string>("About")
.HasColumnType("nvarchar(max)");
b.Property<int>("AcceptedSize")
.HasColumnType("int");
b.Property<string>("Address_AddressLine1")
.HasColumnType("nvarchar(max)");
b.Property<string>("Address_AddressLine2")
.HasColumnType("nvarchar(max)");
b.Property<string>("Address_City")
.HasColumnType("nvarchar(max)");
b.Property<string>("Address_CountryCode")
.HasColumnType("nvarchar(max)");
b.Property<string>("Address_State")
.HasColumnType("nvarchar(max)");
b.Property<string>("Address_Zip")
.HasColumnType("nvarchar(max)");
b.Property<int>("AggressionLevel")
.HasColumnType("int");
b.Property<int>("AllowedRequests")
.HasColumnType("int");
b.Property<bool>("Anonymized")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("AnonymizedDate")
.HasColumnType("datetimeoffset");
b.Property<DateTimeOffset?>("BirthDate")
.HasColumnType("datetimeoffset");
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<string>("Contact_Email")
.HasColumnType("nvarchar(max)");
b.Property<string>("Contact_Mobile")
.HasColumnType("nvarchar(max)");
b.Property<string>("Contact_Phone")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<bool>("DifficultAllowed")
.HasColumnType("bit");
b.Property<string>("FirstName")
.HasColumnType("nvarchar(max)");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<bool>("KycPassed")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("KycPassedDate")
.HasColumnType("datetimeoffset");
b.Property<string>("LastName")
.HasColumnType("nvarchar(max)");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<bool>("Locked")
.HasColumnType("bit");
b.Property<int>("LockedCount")
.HasColumnType("int");
b.Property<string>("LockedReason")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("LockedUntil")
.HasColumnType("datetimeoffset");
b.Property<string>("MainResidenceCode")
.HasColumnType("nvarchar(max)");
b.Property<string>("NationalityCode")
.HasColumnType("nvarchar(max)");
b.Property<bool>("NotAvailable")
.HasColumnType("bit");
b.Property<string>("NotAvailableInfo")
.HasColumnType("nvarchar(max)");
b.Property<string>("Number")
.HasColumnType("nvarchar(max)");
b.Property<string>("PaymentId")
.HasColumnType("nvarchar(max)");
b.Property<bool>("PaymentTermsAccepted")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("PaymentTermsAcceptedDate")
.HasColumnType("datetimeoffset");
b.Property<string>("Photo")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("PriceDay")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("PriceSitting")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("PriceWalk")
.HasColumnType("decimal(18,2)");
b.Property<bool>("PrivacyAccepted")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("PrivacyAcceptedDate")
.HasColumnType("datetimeoffset");
b.Property<bool>("PuppyAllowed")
.HasColumnType("bit");
b.Property<double>("Radius")
.HasColumnType("float");
b.Property<decimal>("RatingStatisticsWalker_AverageRating")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("RatingStatisticsWalker_TotalPoints")
.HasColumnType("decimal(18,2)");
b.Property<int>("RatingStatisticsWalker_TotalRatings")
.HasColumnType("int");
b.Property<decimal>("RatingStatistics_AverageRating")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("RatingStatistics_TotalPoints")
.HasColumnType("decimal(18,2)");
b.Property<int>("RatingStatistics_TotalRatings")
.HasColumnType("int");
b.Property<int>("Sex")
.HasColumnType("int");
b.Property<bool>("TermsAccepted")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("TermsAcceptedDate")
.HasColumnType("datetimeoffset");
b.Property<string>("Title")
.HasColumnType("nvarchar(max)");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<bool>("Verified")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("VerifiedDate")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView("vw_DogWalkers", (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Dogs.DogWalkerProfile", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("About")
.HasMaxLength(300)
.HasColumnType("nvarchar(300)");
b.Property<int>("AcceptedSize")
.HasColumnType("int");
b.Property<int>("AggressionLevel")
.HasColumnType("int");
b.Property<int>("AllowedRequests")
.HasColumnType("int");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<bool>("DifficultAllowed")
.HasColumnType("bit");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<bool>("NotAvailable")
.HasColumnType("bit");
b.Property<string>("NotAvailableInfo")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<decimal>("PriceDay")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("PriceSitting")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("PriceWalk")
.HasColumnType("decimal(18,2)");
b.Property<bool>("PuppyAllowed")
.HasColumnType("bit");
b.Property<double>("Radius")
.HasColumnType("float");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("Index");
b.ToTable("DogWalkerProfiles");
});
modelBuilder.Entity("gehGassi.Domain.Dogs.DogWithNames", b =>
{
b.Property<int>("AggressionLevel")
.HasColumnType("int");
b.Property<string>("AppUserId")
.HasColumnType("nvarchar(max)");
b.Property<string>("AppUserName")
.HasColumnType("nvarchar(max)");
b.Property<bool>("BasicCommands")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("BirthDate")
.HasColumnType("datetimeoffset");
b.Property<bool>("Chiped")
.HasColumnType("bit");
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogRaceId")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogRaceName")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Eating")
.HasColumnType("bit");
b.Property<string>("FeedingIndividual")
.HasColumnType("nvarchar(max)");
b.Property<int>("FeedingTimes")
.HasColumnType("int");
b.Property<bool>("HouseTrained")
.HasColumnType("bit");
b.Property<bool>("Hunter")
.HasColumnType("bit");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<string>("Intolerances")
.HasColumnType("nvarchar(max)");
b.Property<bool>("IsAggressiv")
.HasColumnType("bit");
b.Property<bool>("IsCalm")
.HasColumnType("bit");
b.Property<bool>("IsGuard")
.HasColumnType("bit");
b.Property<bool>("IsLoneGunner")
.HasColumnType("bit");
b.Property<bool>("IsPeeing")
.HasColumnType("bit");
b.Property<bool>("IsShy")
.HasColumnType("bit");
b.Property<bool>("IsTrustful")
.HasColumnType("bit");
b.Property<bool>("Jumper")
.HasColumnType("bit");
b.Property<bool>("LikesAdults")
.HasColumnType("bit");
b.Property<bool>("LikesChildren")
.HasColumnType("bit");
b.Property<bool>("LikesConspecifics")
.HasColumnType("bit");
b.Property<string>("MedicalInfo")
.HasColumnType("nvarchar(max)");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("Number")
.HasColumnType("nvarchar(max)");
b.Property<string>("Photo")
.HasColumnType("nvarchar(max)");
b.Property<bool>("PullsTheLeash")
.HasColumnType("bit");
b.Property<decimal>("RatingStatistics_AverageRating")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("RatingStatistics_TotalPoints")
.HasColumnType("decimal(18,2)");
b.Property<int>("RatingStatistics_TotalRatings")
.HasColumnType("int");
b.Property<bool>("RushesOutside")
.HasColumnType("bit");
b.Property<int>("Sex")
.HasColumnType("int");
b.Property<int>("Size")
.HasColumnType("int");
b.Property<bool>("Sterilized")
.HasColumnType("bit");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.Property<bool>("WalksTheLeash")
.HasColumnType("bit");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Dogs.WalkingTime", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("Day")
.HasColumnType("int");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("DogWalkerId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<bool>("Enabled")
.HasColumnType("bit");
b.Property<TimeSpan>("End")
.HasColumnType("time");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<TimeSpan>("Start")
.HasColumnType("time");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.ToTable("WalkingTimes");
});
modelBuilder.Entity("gehGassi.Domain.Favourites.Favourite", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("AppUserId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("Key")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Table")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("Index");
b.ToTable("Favourites");
});
modelBuilder.Entity("gehGassi.Domain.Feedback.AppFeedback", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<int>("AppMode")
.HasColumnType("int");
b.Property<string>("AppUserId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("AppVersion")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("Country")
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("DeviceIdiom")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<bool>("DeviceInfoAllowed")
.HasColumnType("bit");
b.Property<string>("DeviceManufacturer")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("DeviceModel")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("DevicePlatform")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("DeviceType")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("DeviceVersion")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<int>("FeedbackType")
.HasColumnType("int");
b.Property<string>("Language")
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<string>("Message")
.IsRequired()
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<string>("Name")
.HasMaxLength(350)
.HasColumnType("nvarchar(350)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("UserName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.HasKey("Id");
b.ToTable("AppFeedbacks");
});
modelBuilder.Entity("gehGassi.Domain.Messages.Conversation", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<DateTimeOffset?>("LastMessage")
.HasColumnType("datetimeoffset");
b.Property<int>("MessageCount")
.HasColumnType("int");
b.Property<string>("ReceiverId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("SenderId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("Index");
b.ToTable("Conversations");
});
modelBuilder.Entity("gehGassi.Domain.Messages.ConversationWithNames", b =>
{
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<DateTimeOffset?>("LastMessage")
.HasColumnType("datetimeoffset");
b.Property<int>("MessageCount")
.HasColumnType("int");
b.Property<bool>("ReceiverBlocked")
.HasColumnType("bit");
b.Property<string>("ReceiverFirstName")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReceiverId")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReceiverLastName")
.HasColumnType("nvarchar(max)");
b.Property<bool>("ReceiverLocked")
.HasColumnType("bit");
b.Property<string>("ReceiverName")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReceiverPhoto")
.HasColumnType("nvarchar(max)");
b.Property<int>("ReceiverType")
.HasColumnType("int");
b.Property<bool>("SenderBlocked")
.HasColumnType("bit");
b.Property<string>("SenderFirstName")
.HasColumnType("nvarchar(max)");
b.Property<string>("SenderId")
.HasColumnType("nvarchar(max)");
b.Property<string>("SenderLastName")
.HasColumnType("nvarchar(max)");
b.Property<bool>("SenderLocked")
.HasColumnType("bit");
b.Property<string>("SenderName")
.HasColumnType("nvarchar(max)");
b.Property<string>("SenderPhoto")
.HasColumnType("nvarchar(max)");
b.Property<int>("SenderType")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView("vw_ConversationsWithNames", (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Messages.ConversationWithTarget", b =>
{
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<DateTimeOffset?>("LastMessage")
.HasColumnType("datetimeoffset");
b.Property<int>("MessageCount")
.HasColumnType("int");
b.Property<string>("ReceiverId")
.HasColumnType("nvarchar(max)");
b.Property<int>("ReceiverType")
.HasColumnType("int");
b.Property<string>("SenderId")
.HasColumnType("nvarchar(max)");
b.Property<int>("SenderType")
.HasColumnType("int");
b.Property<string>("TargetName")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Messages.Message", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Content")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("ConversationId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("ReceiverId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("SenderId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("ConversationId");
b.HasIndex("Index");
b.ToTable("Messages");
});
modelBuilder.Entity("gehGassi.Domain.Messages.MessageCopy", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Content")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("ConversationId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<bool>("Read")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("ReadDate")
.HasColumnType("datetimeoffset");
b.Property<string>("ReceiverId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("SenderId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("ConversationId");
b.HasIndex("Index");
b.ToTable("MessageCopies");
});
modelBuilder.Entity("gehGassi.Domain.Messages.SystemMessage", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("AppUserId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("AppUserType")
.HasColumnType("int");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("Expires")
.HasColumnType("datetimeoffset");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("Key")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Message")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<bool>("Read")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("ReadDate")
.HasColumnType("datetimeoffset");
b.Property<string>("Table")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("Index");
b.ToTable("SystemMessages");
});
modelBuilder.Entity("gehGassi.Domain.Messages.SystemMessageToSend", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<int>("AppUserCount")
.HasColumnType("int");
b.Property<int>("AppUserType")
.HasColumnType("int");
b.Property<string>("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("Country")
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("CreatedBy")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<bool>("HasBeenSent")
.HasColumnType("bit");
b.Property<string>("Message")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<bool>("SendPushNotification")
.HasColumnType("bit");
b.Property<string>("SentBy")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<int>("SentCount")
.HasColumnType("int");
b.Property<DateTimeOffset?>("SentDate")
.HasColumnType("datetimeoffset");
b.Property<int?>("Sex")
.HasColumnType("int");
b.Property<string>("State")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<DateTimeOffset?>("ToSendDate")
.HasColumnType("datetimeoffset");
b.Property<bool>("VerifiedOnly")
.HasColumnType("bit");
b.Property<string>("Zip")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.HasKey("Id");
b.ToTable("SystemMessagesToSend");
});
modelBuilder.Entity("gehGassi.Domain.News.News", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("CategoryId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Content")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("CountryCode")
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("Creator")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("End")
.HasColumnType("datetimeoffset");
b.Property<int>("GeoMode")
.HasColumnType("int");
b.Property<string>("Headline")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<bool>("IsExternal")
.HasColumnType("bit");
b.Property<string>("Language")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<double>("Radius")
.HasColumnType("float");
b.Property<string>("Source")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<DateTimeOffset>("Start")
.HasColumnType("datetimeoffset");
b.Property<string>("State")
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<int>("Visibility")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("CategoryId");
b.ToTable("News");
});
modelBuilder.Entity("gehGassi.Domain.News.NewsCategory", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("OnlineStatus")
.HasColumnType("int");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("Index");
b.ToTable("NewsCategories");
});
modelBuilder.Entity("gehGassi.Domain.News.NewsCategoryWithNames", b =>
{
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("OnlineStatus")
.HasColumnType("int");
b.Property<string>("Title")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.News.NewsWithNames", b =>
{
b.Property<string>("CategoryId")
.HasColumnType("nvarchar(max)");
b.Property<string>("CategoryName")
.HasColumnType("nvarchar(max)");
b.Property<string>("Content")
.HasColumnType("nvarchar(max)");
b.Property<string>("CountryCode")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("Creator")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("End")
.HasColumnType("datetimeoffset");
b.Property<int>("GeoMode")
.HasColumnType("int");
b.Property<string>("Headline")
.HasColumnType("nvarchar(max)");
b.Property<long>("Id")
.HasColumnType("bigint");
b.Property<string>("Image")
.HasColumnType("nvarchar(max)");
b.Property<bool>("IsExternal")
.HasColumnType("bit");
b.Property<string>("Language")
.HasColumnType("nvarchar(max)");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<double>("Radius")
.HasColumnType("float");
b.Property<string>("Source")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Start")
.HasColumnType("datetimeoffset");
b.Property<string>("State")
.HasColumnType("nvarchar(max)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<int>("Visibility")
.HasColumnType("int");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Pages.Faq", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("AnswerLocalized")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<int>("OnlineStatus")
.HasColumnType("int");
b.Property<int>("Order")
.HasColumnType("int");
b.Property<string>("QuestionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.ToTable("Faqs");
});
modelBuilder.Entity("gehGassi.Domain.Pages.FaqWithNames", b =>
{
b.Property<string>("Answer")
.HasColumnType("nvarchar(max)");
b.Property<string>("AnswerLocalized")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<int>("OnlineStatus")
.HasColumnType("int");
b.Property<int>("Order")
.HasColumnType("int");
b.Property<string>("Question")
.HasColumnType("nvarchar(max)");
b.Property<string>("QuestionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Title")
.HasColumnType("nvarchar(max)");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Pages.Page", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("Code")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.Property<string>("ContentLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.HasKey("Id");
b.ToTable("Pages");
});
modelBuilder.Entity("gehGassi.Domain.Pages.PageWithNames", b =>
{
b.Property<string>("Code")
.HasColumnType("nvarchar(max)");
b.Property<string>("Content")
.HasColumnType("nvarchar(max)");
b.Property<string>("ContentLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("Id")
.HasColumnType("int");
b.Property<string>("Title")
.HasColumnType("nvarchar(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Payment.Card", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<bool>("Active")
.HasColumnType("bit");
b.Property<string>("AppUserId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("CardNumber")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("CardProvider")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("Currency")
.IsRequired()
.HasMaxLength(3)
.HasColumnType("nvarchar(3)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<int>("ExpirationMonth")
.HasColumnType("int");
b.Property<int>("ExpirationYear")
.HasColumnType("int");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("MangoPayId")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<string>("MangoPayUserId")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<int>("Validity")
.HasColumnType("int");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("AppUserId");
b.HasIndex("Index");
b.ToTable("Cards");
});
modelBuilder.Entity("gehGassi.Domain.Payment.GehGassiFee", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<decimal>("Fixed")
.HasColumnType("decimal(18,2)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<decimal>("Percent")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("StartAmmount")
.HasColumnType("decimal(18,2)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.ToTable("GehGassiFees");
});
modelBuilder.Entity("gehGassi.Domain.Payment.IdentityDocument", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("AppUserId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("FlagsValue")
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("MangoPayId")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<string>("MangoPayUserId")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<int>("PageCount")
.HasColumnType("int");
b.Property<DateTimeOffset?>("Processed")
.HasColumnType("datetimeoffset");
b.Property<string>("RefusedReasonMessage")
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<string>("RefusedReasonType")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<int>("Source")
.HasColumnType("int");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("AppUserId");
b.HasIndex("Index");
b.ToTable("IdentityDocuments");
});
modelBuilder.Entity("gehGassi.Domain.Payment.PaymentTransaction", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<long>("Ammount")
.HasColumnType("bigint");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("Currency")
.IsRequired()
.HasMaxLength(3)
.HasColumnType("nvarchar(3)");
b.Property<string>("ErrorMessage")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("ErrorMessages")
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<string>("ErrorType")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<long>("FromCredit")
.HasColumnType("bigint");
b.Property<string>("SourceAppUserId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("SourceWalletId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("TargetAppUserId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("TargetWalletId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("TransactionId")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<string>("WalkId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.HasKey("Id");
b.ToTable("PaymentTransactions");
});
modelBuilder.Entity("gehGassi.Domain.Payment.Payout", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<long>("Ammount")
.HasColumnType("bigint");
b.Property<string>("AppUserId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Bic")
.HasMaxLength(4)
.HasColumnType("nvarchar(4)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("Currency")
.IsRequired()
.HasMaxLength(3)
.HasColumnType("nvarchar(3)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("ExecutionDate")
.HasColumnType("datetimeoffset");
b.Property<string>("Iban")
.IsRequired()
.HasMaxLength(4)
.HasColumnType("nvarchar(4)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("MangoPayBankId")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<string>("MangoPayId")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<string>("MangoPayUserId")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<string>("MangoPayWalletId")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<string>("RefundReasonMessage")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<string>("RefundReasonType")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<bool>("Refunded")
.HasColumnType("bit");
b.Property<string>("ResultCode")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<string>("ResultMessage")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.Property<string>("WalletId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.HasKey("Id");
b.HasIndex("AppUserId");
b.HasIndex("Index");
b.ToTable("Payouts");
});
modelBuilder.Entity("gehGassi.Domain.Payment.TransactionFee", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<decimal>("Fixed")
.HasColumnType("decimal(18,2)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<int>("PayInType")
.HasColumnType("int");
b.Property<decimal>("Percent")
.HasColumnType("decimal(18,2)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.ToTable("TransactionFees");
});
modelBuilder.Entity("gehGassi.Domain.Payment.Wallet", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("AppUserId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<long>("Balance")
.HasColumnType("bigint");
b.Property<string>("Currency")
.IsRequired()
.HasMaxLength(3)
.HasColumnType("nvarchar(3)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Description")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("OwnerId")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.Property<string>("WalletId")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.HasKey("Id");
b.ToTable("Wallets");
});
modelBuilder.Entity("gehGassi.Domain.Ratings.Rating", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("FromId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("FromType")
.HasColumnType("int");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("Info")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<decimal>("Points")
.HasColumnType("decimal(18,2)");
b.Property<string>("TargetId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("TargetType")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("Index");
b.ToTable("Ratings");
});
modelBuilder.Entity("gehGassi.Domain.Ratings.RatingWithNames", b =>
{
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("FromId")
.HasColumnType("nvarchar(max)");
b.Property<string>("FromName")
.HasColumnType("nvarchar(max)");
b.Property<string>("FromPhoto")
.HasColumnType("nvarchar(max)");
b.Property<int>("FromType")
.HasColumnType("int");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<string>("Info")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Points")
.HasColumnType("decimal(18,2)");
b.Property<string>("TargetId")
.HasColumnType("nvarchar(max)");
b.Property<string>("TargetName")
.HasColumnType("nvarchar(max)");
b.Property<string>("TargetPhoto")
.HasColumnType("nvarchar(max)");
b.Property<int>("TargetType")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView("vw_RatingsWithNames", (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Ratings.RatingWithNamesEx", b =>
{
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<bool>("FromBlocked")
.HasColumnType("bit");
b.Property<string>("FromId")
.HasColumnType("nvarchar(max)");
b.Property<bool>("FromLocked")
.HasColumnType("bit");
b.Property<string>("FromName")
.HasColumnType("nvarchar(max)");
b.Property<string>("FromPhoto")
.HasColumnType("nvarchar(max)");
b.Property<int>("FromType")
.HasColumnType("int");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<string>("Info")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Points")
.HasColumnType("decimal(18,2)");
b.Property<string>("TargetId")
.HasColumnType("nvarchar(max)");
b.Property<string>("TargetName")
.HasColumnType("nvarchar(max)");
b.Property<string>("TargetPhoto")
.HasColumnType("nvarchar(max)");
b.Property<int>("TargetType")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Reporting.AppUserReport", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<int>("BlockType")
.HasColumnType("int");
b.Property<string>("Comment")
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<bool>("ContactAllowed")
.HasColumnType("bit");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("CreatedBy")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("Email")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("InternalComment")
.HasColumnType("nvarchar(max)");
b.Property<string>("Message")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<bool>("ReportedAddress")
.HasColumnType("bit");
b.Property<string>("ReportedAppUserId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<bool>("ReportedImage")
.HasColumnType("bit");
b.Property<bool>("ReportedMessage")
.HasColumnType("bit");
b.Property<bool>("ReportedName")
.HasColumnType("bit");
b.Property<bool>("ReportedText")
.HasColumnType("bit");
b.Property<string>("ReportingAppUserId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("Section")
.HasColumnType("int");
b.Property<string>("SectionId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("SectionId2")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<DateTimeOffset?>("Updated")
.HasColumnType("datetimeoffset");
b.Property<string>("UpdatedBy")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.HasKey("Id");
b.ToTable("AppUserReports");
});
modelBuilder.Entity("gehGassi.Domain.Reporting.AppUserReportWithNames", b =>
{
b.Property<int>("BlockType")
.HasColumnType("int");
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<bool>("ContactAllowed")
.HasColumnType("bit");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("CreatedBy")
.HasColumnType("nvarchar(max)");
b.Property<string>("Email")
.HasColumnType("nvarchar(max)");
b.Property<long>("Id")
.HasColumnType("bigint");
b.Property<string>("InternalComment")
.HasColumnType("nvarchar(max)");
b.Property<string>("Message")
.HasColumnType("nvarchar(max)");
b.Property<bool>("ReportedAddress")
.HasColumnType("bit");
b.Property<string>("ReportedAppUserEmail")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReportedAppUserId")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReportedAppUserName")
.HasColumnType("nvarchar(max)");
b.Property<int>("ReportedAppUserType")
.HasColumnType("int");
b.Property<bool>("ReportedImage")
.HasColumnType("bit");
b.Property<bool>("ReportedMessage")
.HasColumnType("bit");
b.Property<bool>("ReportedName")
.HasColumnType("bit");
b.Property<bool>("ReportedText")
.HasColumnType("bit");
b.Property<string>("ReportingAppUserEmail")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReportingAppUserId")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReportingAppUserName")
.HasColumnType("nvarchar(max)");
b.Property<int>("ReportingAppUserType")
.HasColumnType("int");
b.Property<int>("Section")
.HasColumnType("int");
b.Property<string>("SectionId")
.HasColumnType("nvarchar(max)");
b.Property<string>("SectionId2")
.HasColumnType("nvarchar(max)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<DateTimeOffset?>("Updated")
.HasColumnType("datetimeoffset");
b.Property<string>("UpdatedBy")
.HasColumnType("nvarchar(max)");
b.ToTable((string)null);
b.ToView("vw_AppUserReportsWithNames", (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Roles.ApplicationRole", b =>
{
b.Property<string>("Id")
.HasColumnType("nvarchar(450)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("nvarchar(max)");
b.Property<string>("Name")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("NormalizedName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("Permissions")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.HasKey("Id");
b.HasIndex("NormalizedName")
.IsUnique()
.HasDatabaseName("RoleNameIndex")
.HasFilter("[NormalizedName] IS NOT NULL");
b.ToTable("AspNetRoles", (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Shop.Cart", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("AppUserId")
.HasColumnType("nvarchar(128)");
b.Property<string>("BillingCountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<long?>("CustomerId")
.HasColumnType("bigint");
b.Property<string>("DeliveryCountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<DateTimeOffset?>("LastUpdate")
.HasColumnType("datetimeoffset");
b.Property<int>("OrderSource")
.HasColumnType("int");
b.Property<decimal>("Shipment")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("ShipmentGross")
.HasColumnType("decimal(18,2)");
b.Property<string>("TaxRatesJson")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Total")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("TotalGross")
.HasColumnType("decimal(18,2)");
b.HasKey("Id");
b.HasIndex("AppUserId");
b.HasIndex("CustomerId");
b.ToTable("Carts");
});
modelBuilder.Entity("gehGassi.Domain.Shop.CartItem", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<long>("CartId")
.HasColumnType("bigint");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("ItemId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset?>("LastUpdate")
.HasColumnType("datetimeoffset");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("Price2")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("Price2Gross")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("PriceGross")
.HasColumnType("decimal(18,2)");
b.Property<int>("ProductId")
.HasColumnType("int");
b.Property<int>("ProductType")
.HasColumnType("int");
b.Property<int>("Quantity")
.HasColumnType("int");
b.Property<decimal>("TaxRate")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("TaxRateValue")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("Total")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("TotalGross")
.HasColumnType("decimal(18,2)");
b.HasKey("Id");
b.HasIndex("CartId");
b.HasIndex("ProductId");
b.ToTable("CartItems");
});
modelBuilder.Entity("gehGassi.Domain.Shop.CartItemWithNames", b =>
{
b.Property<long>("CartId")
.HasColumnType("bigint");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<long>("Id")
.HasColumnType("bigint");
b.Property<DateTimeOffset?>("LastUpdate")
.HasColumnType("datetimeoffset");
b.Property<int>("OrderMaximumQuantity")
.HasColumnType("int");
b.Property<int>("OrderMinimumQuantity")
.HasColumnType("int");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("Price2")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("Price2Gross")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("PriceGross")
.HasColumnType("decimal(18,2)");
b.Property<int>("ProductId")
.HasColumnType("int");
b.Property<string>("ProductImage")
.HasColumnType("nvarchar(max)");
b.Property<string>("ProductName")
.HasColumnType("nvarchar(max)");
b.Property<string>("ProductSku")
.HasColumnType("nvarchar(max)");
b.Property<int>("ProductType")
.HasColumnType("int");
b.Property<int>("Quantity")
.HasColumnType("int");
b.Property<decimal>("TaxRate")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("TaxRateValue")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("Total")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("TotalGross")
.HasColumnType("decimal(18,2)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Shop.CartWithNames", b =>
{
b.Property<string>("AppUserId")
.HasColumnType("nvarchar(max)");
b.Property<string>("AppUserName")
.HasColumnType("nvarchar(max)");
b.Property<string>("BillingCountryCode")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<long?>("CustomerId")
.HasColumnType("bigint");
b.Property<string>("CustomerName")
.HasColumnType("nvarchar(max)");
b.Property<string>("DeliveryCountryCode")
.HasColumnType("nvarchar(max)");
b.Property<long>("Id")
.HasColumnType("bigint");
b.Property<int>("ItemCount")
.HasColumnType("int");
b.Property<DateTimeOffset?>("LastUpdate")
.HasColumnType("datetimeoffset");
b.Property<int>("OrderSource")
.HasColumnType("int");
b.Property<decimal>("Shipment")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("ShipmentGross")
.HasColumnType("decimal(18,2)");
b.Property<string>("TaxRatesJson")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Total")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("TotalGross")
.HasColumnType("decimal(18,2)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Shop.CreditNote", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<long>("Counter")
.HasColumnType("bigint");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("InvoiceNumber")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("Number")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<long>("OrderId")
.HasColumnType("bigint");
b.Property<string>("Reason")
.HasColumnType("nvarchar(max)");
b.Property<Guid>("UniqueId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("OrderId");
b.ToTable("CreditNotes");
});
modelBuilder.Entity("gehGassi.Domain.Shop.DeliveryNote", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<long>("Counter")
.HasColumnType("bigint");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("InvoiceNumber")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("Number")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<long>("OrderId")
.HasColumnType("bigint");
b.Property<string>("Reason")
.HasColumnType("nvarchar(max)");
b.Property<Guid>("UniqueId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("OrderId");
b.ToTable("DeliveryNotes");
});
modelBuilder.Entity("gehGassi.Domain.Shop.Invoice", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTimeOffset?>("CancellationDate")
.HasColumnType("datetimeoffset");
b.Property<string>("CancellationReason")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Cancelled")
.HasColumnType("bit");
b.Property<long>("Counter")
.HasColumnType("bigint");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("CreditNoteCreated")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("CreditNoteDate")
.HasColumnType("datetimeoffset");
b.Property<string>("Number")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<long>("OrderId")
.HasColumnType("bigint");
b.Property<Guid>("UniqueId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("OrderId");
b.ToTable("Invoices");
});
modelBuilder.Entity("gehGassi.Domain.Shop.Order", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTimeOffset?>("AcceptGdprDate")
.HasColumnType("datetimeoffset");
b.Property<DateTimeOffset?>("AcceptTermsAndConditionsDate")
.HasColumnType("datetimeoffset");
b.Property<string>("AppUserCompany")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("AppUserId")
.HasColumnType("nvarchar(max)");
b.Property<string>("AppUserName")
.HasMaxLength(250)
.HasColumnType("nvarchar(250)");
b.Property<string>("Comment")
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<long>("Counter")
.HasColumnType("bigint");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<long?>("CustomerId")
.HasColumnType("bigint");
b.Property<string>("CustomerName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<bool>("DeliveryAddressIsBilling")
.HasColumnType("bit");
b.Property<string>("KlarnaOrderId")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<bool>("KlarnaShipmentError")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("KlarnaShipmentSentDate")
.HasColumnType("datetimeoffset");
b.Property<DateTimeOffset?>("LastUpdate")
.HasColumnType("datetimeoffset");
b.Property<string>("Number")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<int>("OrderSource")
.HasColumnType("int");
b.Property<int>("OrderStatus")
.HasColumnType("int");
b.Property<string>("PayPalOrderId")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<DateTimeOffset?>("PaymentDate")
.HasColumnType("datetimeoffset");
b.Property<string>("PaymentInfo")
.HasColumnType("nvarchar(max)");
b.Property<int>("PaymentStatus")
.HasColumnType("int");
b.Property<int>("PaymentType")
.HasColumnType("int");
b.Property<decimal>("Shipment")
.HasColumnType("decimal(18,2)");
b.Property<DateTimeOffset?>("ShipmentDate")
.HasColumnType("datetimeoffset");
b.Property<decimal>("ShipmentGross")
.HasColumnType("decimal(18,2)");
b.Property<int>("ShipmentStatus")
.HasColumnType("int");
b.Property<int>("ShipmentType")
.HasColumnType("int");
b.Property<decimal>("Subtotal")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("SubtotalGross")
.HasColumnType("decimal(18,2)");
b.Property<string>("TaxRatesJson")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Total")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("TotalGross")
.HasColumnType("decimal(18,2)");
b.Property<Guid>("UniqueId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.ToTable("Orders");
});
modelBuilder.Entity("gehGassi.Domain.Shop.OrderItem", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<decimal>("AdditionalShippingCharge")
.HasColumnType("decimal(18,2)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<decimal>("Height")
.HasColumnType("decimal(18,2)");
b.Property<bool>("IsFreeShipping")
.HasColumnType("bit");
b.Property<bool>("IsShipEnabled")
.HasColumnType("bit");
b.Property<bool>("IsTaxExempt")
.HasColumnType("bit");
b.Property<string>("ItemId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset?>("LastUpdate")
.HasColumnType("datetimeoffset");
b.Property<decimal>("Length")
.HasColumnType("decimal(18,2)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("NameDefault")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<long>("OrderId")
.HasColumnType("bigint");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("Price2")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("Price2Gross")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("PriceGross")
.HasColumnType("decimal(18,2)");
b.Property<int?>("ProductCategoryId")
.HasColumnType("int");
b.Property<int?>("ProductId")
.HasColumnType("int");
b.Property<int>("ProductType")
.HasColumnType("int");
b.Property<int>("Quantity")
.HasColumnType("int");
b.Property<string>("Sku")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<int>("TaxRateId")
.HasColumnType("int");
b.Property<decimal>("Total")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("TotalGross")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("Weight")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("Width")
.HasColumnType("decimal(18,2)");
b.HasKey("Id");
b.HasIndex("OrderId");
b.HasIndex("ProductCategoryId");
b.HasIndex("ProductId");
b.HasIndex("TaxRateId");
b.ToTable("OrderItems");
});
modelBuilder.Entity("gehGassi.Domain.Shop.OrderPhysical", b =>
{
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<long>("Id")
.HasColumnType("bigint");
b.Property<string>("KlarnaOrderId")
.HasColumnType("nvarchar(max)");
b.Property<bool>("KlarnaShipmentError")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("KlarnaShipmentSentDate")
.HasColumnType("datetimeoffset");
b.Property<int>("OrderStatus")
.HasColumnType("int");
b.Property<string>("PayPalOrderId")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("PaymentDate")
.HasColumnType("datetimeoffset");
b.Property<string>("PaymentInfo")
.HasColumnType("nvarchar(max)");
b.Property<int>("PaymentStatus")
.HasColumnType("int");
b.Property<int>("PaymentType")
.HasColumnType("int");
b.Property<int>("PhysicalCount")
.HasColumnType("int");
b.Property<DateTimeOffset?>("ShipmentDate")
.HasColumnType("datetimeoffset");
b.Property<int>("ShipmentStatus")
.HasColumnType("int");
b.Property<int>("ShipmentType")
.HasColumnType("int");
b.Property<Guid>("UniqueId")
.HasColumnType("uniqueidentifier");
b.ToTable((string)null);
b.ToView("vw_OrdersPhysical", (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Shop.Product", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<decimal>("AdditionalShippingCharge")
.HasColumnType("decimal(18,4)");
b.Property<string>("AdvertisementCategoryId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("BannerLocation")
.HasColumnType("int");
b.Property<int>("BannerSize")
.HasColumnType("int");
b.Property<string>("BranchId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("DisplayOrder")
.HasColumnType("int");
b.Property<bool>("DisplayStockAvailability")
.HasColumnType("bit");
b.Property<bool>("DisplayStockQuantity")
.HasColumnType("bit");
b.Property<int?>("DownloadId")
.HasColumnType("int");
b.Property<decimal>("Height")
.HasColumnType("decimal(18,2)");
b.Property<string>("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<bool>("IsFreeShipping")
.HasColumnType("bit");
b.Property<bool>("IsShipEnabled")
.HasColumnType("bit");
b.Property<bool>("IsTaxExempt")
.HasColumnType("bit");
b.Property<decimal>("Length")
.HasColumnType("decimal(18,2)");
b.Property<int>("ListingType")
.HasColumnType("int");
b.Property<string>("ManufacturerPartNumber")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("NotifyAdminForQuantityBelow")
.HasColumnType("int");
b.Property<decimal>("OldPrice")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("OldPrice2")
.HasColumnType("decimal(18,4)");
b.Property<int>("OrderMaximumQuantity")
.HasColumnType("int");
b.Property<int>("OrderMinimumQuantity")
.HasColumnType("int");
b.Property<decimal>("PinPercentPerKm")
.HasColumnType("decimal(18,2)");
b.Property<double>("PinRadius")
.HasColumnType("float");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("Price2")
.HasColumnType("decimal(18,4)");
b.Property<int>("PriceAliquotType")
.HasColumnType("int");
b.Property<int>("PriceType")
.HasColumnType("int");
b.Property<int?>("ProductCategoryId")
.HasColumnType("int");
b.Property<int>("ProductStartType")
.HasColumnType("int");
b.Property<int>("ProductType")
.HasColumnType("int");
b.Property<string>("ShortDescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Sku")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<int>("StockQuantity")
.HasColumnType("int");
b.Property<int>("TaxRateId")
.HasColumnType("int");
b.Property<int>("Visibility")
.HasColumnType("int");
b.Property<decimal>("Weight")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("Width")
.HasColumnType("decimal(18,2)");
b.HasKey("Id");
b.HasIndex("ProductCategoryId");
b.HasIndex("TaxRateId");
b.ToTable("Products");
});
modelBuilder.Entity("gehGassi.Domain.Shop.ProductCategory", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("DisplayOrder")
.HasColumnType("int");
b.Property<string>("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int?>("ParentId")
.HasColumnType("int");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<int>("Visibility")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("ProductCategories");
});
modelBuilder.Entity("gehGassi.Domain.Shop.ProductCategoryWithNames", b =>
{
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("DisplayOrder")
.HasColumnType("int");
b.Property<int>("Id")
.HasColumnType("int");
b.Property<string>("Image")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int?>("ParentId")
.HasColumnType("int");
b.Property<string>("Title")
.HasColumnType("nvarchar(max)");
b.Property<int>("Visibility")
.HasColumnType("int");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Shop.ProductCountry", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("CountryIso")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<bool>("NotAvailable")
.HasColumnType("bit");
b.Property<decimal>("OldPrice")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("OldPrice2")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("Price2")
.HasColumnType("decimal(18,4)");
b.Property<int>("ProductId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("ProductId");
b.ToTable("ProductCountries");
});
modelBuilder.Entity("gehGassi.Domain.Shop.ProductWithNames", b =>
{
b.Property<decimal>("AdditionalShippingCharge")
.HasColumnType("decimal(18,4)");
b.Property<string>("AdvertisementCategoryId")
.HasColumnType("nvarchar(max)");
b.Property<string>("AdvertisementCategoryName")
.HasColumnType("nvarchar(max)");
b.Property<int>("BannerLocation")
.HasColumnType("int");
b.Property<int>("BannerSize")
.HasColumnType("int");
b.Property<string>("BranchId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("BranchName")
.HasColumnType("nvarchar(max)");
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<int>("CountrySettingsCount")
.HasColumnType("int");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("DisplayOrder")
.HasColumnType("int");
b.Property<bool>("DisplayStockAvailability")
.HasColumnType("bit");
b.Property<bool>("DisplayStockQuantity")
.HasColumnType("bit");
b.Property<int?>("DownloadId")
.HasColumnType("int");
b.Property<decimal>("Height")
.HasColumnType("decimal(18,2)");
b.Property<int>("Id")
.HasColumnType("int");
b.Property<string>("Image")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<bool>("IsFreeShipping")
.HasColumnType("bit");
b.Property<bool>("IsShipEnabled")
.HasColumnType("bit");
b.Property<bool>("IsTaxExempt")
.HasColumnType("bit");
b.Property<decimal>("Length")
.HasColumnType("decimal(18,2)");
b.Property<int>("ListingType")
.HasColumnType("int");
b.Property<string>("ManufacturerPartNumber")
.HasColumnType("nvarchar(max)");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("NotifyAdminForQuantityBelow")
.HasColumnType("int");
b.Property<decimal>("OldPrice")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("OldPrice2")
.HasColumnType("decimal(18,4)");
b.Property<int>("OrderMaximumQuantity")
.HasColumnType("int");
b.Property<int>("OrderMinimumQuantity")
.HasColumnType("int");
b.Property<decimal>("PinPercentPerKm")
.HasColumnType("decimal(18,2)");
b.Property<double>("PinRadius")
.HasColumnType("float");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("Price2")
.HasColumnType("decimal(18,4)");
b.Property<int>("PriceAliquotType")
.HasColumnType("int");
b.Property<int>("PriceType")
.HasColumnType("int");
b.Property<int?>("ProductCategoryId")
.HasColumnType("int");
b.Property<string>("ProductCategoryName")
.HasColumnType("nvarchar(max)");
b.Property<int>("ProductStartType")
.HasColumnType("int");
b.Property<int>("ProductType")
.HasColumnType("int");
b.Property<string>("ShortDescription")
.HasColumnType("nvarchar(max)");
b.Property<string>("ShortDescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Sku")
.HasColumnType("nvarchar(max)");
b.Property<int>("StockQuantity")
.HasColumnType("int");
b.Property<int>("TaxRateId")
.HasColumnType("int");
b.Property<string>("TaxRateName")
.HasColumnType("nvarchar(max)");
b.Property<int>("Visibility")
.HasColumnType("int");
b.Property<decimal>("Weight")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("Width")
.HasColumnType("decimal(18,2)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Shop.ProductWithNamesCountry", b =>
{
b.Property<decimal>("AdditionalShippingCharge")
.HasColumnType("decimal(18,4)");
b.Property<string>("AdvertisementCategoryId")
.HasColumnType("nvarchar(max)");
b.Property<string>("AdvertisementCategoryName")
.HasColumnType("nvarchar(max)");
b.Property<int>("BannerLocation")
.HasColumnType("int");
b.Property<int>("BannerSize")
.HasColumnType("int");
b.Property<string>("BranchId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("BranchName")
.HasColumnType("nvarchar(max)");
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<string>("CountryIso")
.HasColumnType("nvarchar(max)");
b.Property<int>("CountrySettingsCount")
.HasColumnType("int");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("DisplayOrder")
.HasColumnType("int");
b.Property<bool>("DisplayStockAvailability")
.HasColumnType("bit");
b.Property<bool>("DisplayStockQuantity")
.HasColumnType("bit");
b.Property<int?>("DownloadId")
.HasColumnType("int");
b.Property<decimal>("Height")
.HasColumnType("decimal(18,2)");
b.Property<int>("Id")
.HasColumnType("int");
b.Property<string>("Image")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<bool>("IsFreeShipping")
.HasColumnType("bit");
b.Property<bool>("IsShipEnabled")
.HasColumnType("bit");
b.Property<bool>("IsTaxExempt")
.HasColumnType("bit");
b.Property<decimal>("Length")
.HasColumnType("decimal(18,2)");
b.Property<int>("ListingType")
.HasColumnType("int");
b.Property<string>("ManufacturerPartNumber")
.HasColumnType("nvarchar(max)");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<bool>("NotAvailable")
.HasColumnType("bit");
b.Property<int>("NotifyAdminForQuantityBelow")
.HasColumnType("int");
b.Property<decimal>("OldPrice")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("OldPrice2")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("OldPrice2Country")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("OldPriceCountry")
.HasColumnType("decimal(18,4)");
b.Property<int>("OrderMaximumQuantity")
.HasColumnType("int");
b.Property<int>("OrderMinimumQuantity")
.HasColumnType("int");
b.Property<decimal>("PinPercentPerKm")
.HasColumnType("decimal(18,2)");
b.Property<double>("PinRadius")
.HasColumnType("float");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("Price2")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("Price2Country")
.HasColumnType("decimal(18,4)");
b.Property<int>("PriceAliquotType")
.HasColumnType("int");
b.Property<decimal>("PriceCountry")
.HasColumnType("decimal(18,4)");
b.Property<int>("PriceType")
.HasColumnType("int");
b.Property<int?>("ProductCategoryId")
.HasColumnType("int");
b.Property<string>("ProductCategoryName")
.HasColumnType("nvarchar(max)");
b.Property<int>("ProductStartType")
.HasColumnType("int");
b.Property<int>("ProductType")
.HasColumnType("int");
b.Property<string>("ShortDescription")
.HasColumnType("nvarchar(max)");
b.Property<string>("ShortDescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Sku")
.HasColumnType("nvarchar(max)");
b.Property<int>("StockQuantity")
.HasColumnType("int");
b.Property<int>("TaxRateId")
.HasColumnType("int");
b.Property<string>("TaxRateName")
.HasColumnType("nvarchar(max)");
b.Property<int>("Visibility")
.HasColumnType("int");
b.Property<decimal>("Weight")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("Width")
.HasColumnType("decimal(18,2)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Shop.ShipmentCost", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<decimal>("FixedPrice")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("SubtotalFrom")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("SubtotalPercent")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("SubtotalTo")
.HasColumnType("decimal(18,2)");
b.Property<string>("TargetCountryIso")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<decimal>("WeightFrom")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("WeightTo")
.HasColumnType("decimal(18,2)");
b.HasKey("Id");
b.ToTable("ShipmentCosts");
});
modelBuilder.Entity("gehGassi.Domain.Shop.ShopSettings", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("KlarnaClientId")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<bool>("KlarnaEnabled")
.HasColumnType("bit");
b.Property<string>("KlarnaSecret")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("OrderEmail")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<string>("PayPalClientId")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<bool>("PayPalEnabled")
.HasColumnType("bit");
b.Property<string>("PayPalSecret")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<bool>("PaymentOnInvoice")
.HasColumnType("bit");
b.Property<int>("ShipmentCalculationType")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("ShopSettings");
});
modelBuilder.Entity("gehGassi.Domain.Shop.TaxRate", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<string>("CountryIso")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<bool>("UseForShipment")
.HasColumnType("bit");
b.Property<decimal>("Value")
.HasColumnType("decimal(18,2)");
b.HasKey("Id");
b.ToTable("TaxRates");
});
modelBuilder.Entity("gehGassi.Domain.Shop.TaxRateWithNames", b =>
{
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<string>("CountryIso")
.HasColumnType("nvarchar(max)");
b.Property<int>("Id")
.HasColumnType("int");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<string>("Title")
.HasColumnType("nvarchar(max)");
b.Property<bool>("UseForShipment")
.HasColumnType("bit");
b.Property<decimal>("Value")
.HasColumnType("decimal(18,2)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Subscriptions.Subscription", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("AppMode")
.HasColumnType("int");
b.Property<string>("Code")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Enabled")
.HasColumnType("bit");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<int>("Length")
.HasColumnType("int");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,4)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.ToTable("Subscriptions");
});
modelBuilder.Entity("gehGassi.Domain.Subscriptions.SubscriptionWithNames", b =>
{
b.Property<int>("AppMode")
.HasColumnType("int");
b.Property<string>("Code")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("DescriptionLocalized")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Enabled")
.HasColumnType("bit");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<int>("Length")
.HasColumnType("int");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,4)");
b.Property<int>("SubscriptionCountActive")
.HasColumnType("int");
b.Property<int>("SubscriptionCountInactive")
.HasColumnType("int");
b.Property<int>("SubscriptionCountTotal")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Users.ApplicationUser", b =>
{
b.Property<string>("Id")
.HasColumnType("nvarchar(450)");
b.Property<int>("AccessFailedCount")
.HasColumnType("int");
b.Property<string>("AppUserId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("nvarchar(max)");
b.Property<long?>("CustomerId")
.HasColumnType("bigint");
b.Property<string>("Email")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<bool>("EmailConfirmed")
.HasColumnType("bit");
b.Property<string>("FirstName")
.IsRequired()
.HasMaxLength(150)
.HasColumnType("nvarchar(150)");
b.Property<string>("FullName")
.IsRequired()
.HasMaxLength(320)
.HasColumnType("nvarchar(320)");
b.Property<DateTimeOffset?>("LastLoginDate")
.HasColumnType("datetimeoffset");
b.Property<string>("LastName")
.IsRequired()
.HasMaxLength(150)
.HasColumnType("nvarchar(150)");
b.Property<bool>("LockoutEnabled")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("LockoutEnd")
.HasColumnType("datetimeoffset");
b.Property<string>("NormalizedEmail")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("NormalizedUserName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("PasswordHash")
.HasColumnType("nvarchar(max)");
b.Property<string>("Permissions")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("PhoneNumber")
.HasColumnType("nvarchar(max)");
b.Property<bool>("PhoneNumberConfirmed")
.HasColumnType("bit");
b.Property<string>("Photo")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("PreferredLanguage")
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<DateTimeOffset?>("RegistrationDate")
.HasColumnType("datetimeoffset");
b.Property<string>("SecurityStamp")
.HasColumnType("nvarchar(max)");
b.Property<string>("SettingsJson")
.HasColumnType("nvarchar(max)");
b.Property<string>("TimeZoneId")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<bool>("TwoFactorEnabled")
.HasColumnType("bit");
b.Property<string>("UserName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.HasKey("Id");
b.HasIndex("AppUserId");
b.HasIndex("CustomerId");
b.HasIndex("NormalizedEmail")
.HasDatabaseName("EmailIndex");
b.HasIndex("NormalizedUserName")
.IsUnique()
.HasDatabaseName("UserNameIndex")
.HasFilter("[NormalizedUserName] IS NOT NULL");
b.ToTable("AspNetUsers", (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Users.ApplicationUserWithNames", b =>
{
b.Property<string>("AppUserId")
.HasColumnType("nvarchar(max)");
b.Property<string>("AppUserName")
.HasColumnType("nvarchar(max)");
b.Property<long?>("CustomerId")
.HasColumnType("bigint");
b.Property<string>("CustomerName")
.HasColumnType("nvarchar(max)");
b.Property<bool>("EmailConfirmed")
.HasColumnType("bit");
b.Property<string>("FirstName")
.IsRequired()
.HasMaxLength(150)
.HasColumnType("nvarchar(150)");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("LastLoginDate")
.HasColumnType("datetimeoffset");
b.Property<string>("LastName")
.IsRequired()
.HasMaxLength(150)
.HasColumnType("nvarchar(150)");
b.Property<string>("Permissions")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("Photo")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("PreferredLanguage")
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property<DateTimeOffset?>("RegistrationDate")
.HasColumnType("datetimeoffset");
b.Property<string>("TimeZoneId")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<bool>("TwoFactorEnabled")
.HasColumnType("bit");
b.Property<string>("UserName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.ToTable((string)null);
b.ToView("vw_ApplicationUsersWithNames", (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Users.FidoStoredCredential", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<Guid>("AaGuid")
.HasColumnType("uniqueidentifier");
b.Property<string>("CredType")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("CredentialType")
.HasColumnType("int");
b.Property<string>("DescriptorJson")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<byte[]>("PublicKey")
.IsRequired()
.HasColumnType("varbinary(max)");
b.Property<DateTimeOffset>("RegDate")
.HasColumnType("datetimeoffset");
b.Property<long>("SignatureCounter")
.HasColumnType("bigint");
b.Property<byte[]>("UserHandle")
.IsRequired()
.HasColumnType("varbinary(max)");
b.Property<byte[]>("UserId")
.IsRequired()
.HasColumnType("varbinary(max)");
b.Property<string>("Username")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.HasKey("Id");
b.ToTable("FidoStoredCredentials");
});
modelBuilder.Entity("gehGassi.Domain.Users.PersistedTicket", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTimeOffset?>("Expires")
.IsRequired()
.HasColumnType("datetimeoffset");
b.Property<string>("Key")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<byte[]>("Ticket")
.IsRequired()
.HasColumnType("varbinary(max)");
b.Property<string>("UserId")
.IsRequired()
.HasMaxLength(450)
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.ToTable("PersistedTickets");
});
modelBuilder.Entity("gehGassi.Domain.Users.RefreshToken", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTimeOffset>("Expires")
.HasColumnType("datetimeoffset");
b.Property<string>("Token")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("UserId")
.IsRequired()
.HasMaxLength(450)
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.ToTable("RefreshTokens");
});
modelBuilder.Entity("gehGassi.Domain.Vouchers.Voucher", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Code")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<bool>("IsValid")
.HasColumnType("bit");
b.Property<string>("QrCode")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<int>("UsedCount")
.HasColumnType("int");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.Property<decimal>("VoucherAmmount")
.HasColumnType("decimal(18,4)");
b.Property<string>("VoucherCampaignId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.HasKey("Id");
b.HasIndex("VoucherCampaignId");
b.ToTable("Vouchers");
});
modelBuilder.Entity("gehGassi.Domain.Vouchers.VoucherCampaign", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<decimal>("Budget")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("BudgetUsed")
.HasColumnType("decimal(18,4)");
b.Property<int>("CampaignType")
.HasColumnType("int");
b.Property<long?>("CartId")
.HasColumnType("bigint");
b.Property<long?>("CartItemId")
.HasColumnType("bigint");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<long>("CustomerId")
.HasColumnType("bigint");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("EndDate")
.HasColumnType("datetimeoffset");
b.Property<int>("GeoMode")
.HasColumnType("int");
b.Property<string>("Image")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<int>("MaxUsagePerUser")
.HasColumnType("int");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("NumberOfVouchers")
.HasColumnType("int");
b.Property<long?>("OrderId")
.HasColumnType("bigint");
b.Property<long?>("OrderItemId")
.HasColumnType("bigint");
b.Property<DateTimeOffset?>("PayedDate")
.HasColumnType("datetimeoffset");
b.Property<int>("PaymentStatus")
.HasColumnType("int");
b.Property<int>("PaymentType")
.HasColumnType("int");
b.Property<string>("Prefix")
.IsRequired()
.HasMaxLength(4)
.HasColumnType("nvarchar(4)");
b.Property<double>("Radius")
.HasColumnType("float");
b.Property<DateTimeOffset?>("StartDate")
.HasColumnType("datetimeoffset");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("Url")
.HasMaxLength(2083)
.HasColumnType("nvarchar(2083)");
b.Property<string>("UrlLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.Property<decimal>("VoucherAmmount")
.HasColumnType("decimal(18,4)");
b.Property<int>("VouchersUsed")
.HasColumnType("int");
b.Property<string>("WalletCreditId")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property<string>("WalletFeeId")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.HasKey("Id");
b.HasIndex("CustomerId");
b.ToTable("VoucherCampaigns");
});
modelBuilder.Entity("gehGassi.Domain.Vouchers.VoucherCampaignWithNames", b =>
{
b.Property<string>("Address_CountryCode")
.HasColumnType("nvarchar(max)");
b.Property<string>("Address_State")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Budget")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("BudgetUsed")
.HasColumnType("decimal(18,4)");
b.Property<int>("CampaignType")
.HasColumnType("int");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<long>("CustomerId")
.HasColumnType("bigint");
b.Property<string>("CustomerName")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("EndDate")
.HasColumnType("datetimeoffset");
b.Property<int>("GeoMode")
.HasColumnType("int");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<string>("Image")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("ImageLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<int>("MaxUsagePerUser")
.HasColumnType("int");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameLocalized")
.HasColumnType("nvarchar(max)");
b.Property<int>("NumberOfVouchers")
.HasColumnType("int");
b.Property<DateTimeOffset?>("PayedDate")
.HasColumnType("datetimeoffset");
b.Property<int>("PaymentStatus")
.HasColumnType("int");
b.Property<int>("PaymentType")
.HasColumnType("int");
b.Property<string>("Prefix")
.HasColumnType("nvarchar(max)");
b.Property<double>("Radius")
.HasColumnType("float");
b.Property<DateTimeOffset?>("StartDate")
.HasColumnType("datetimeoffset");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("Title")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("Url")
.HasColumnType("nvarchar(max)");
b.Property<string>("UrlLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("UrlLanguageLocalized")
.HasColumnType("nvarchar(max)");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.Property<decimal>("VoucherAmmount")
.HasColumnType("decimal(18,4)");
b.Property<int>("VouchersUsed")
.HasColumnType("int");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Vouchers.VoucherUsage", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<string>("AppUserId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<int>("UsageStatus")
.HasColumnType("int");
b.Property<decimal>("VoucherAmmount")
.HasColumnType("decimal(18,4)");
b.Property<decimal>("VoucherAmmountUsed")
.HasColumnType("decimal(18,4)");
b.Property<string>("VoucherId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("WalkId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.HasKey("Id");
b.HasIndex("AppUserId");
b.HasIndex("VoucherId");
b.HasIndex("WalkId");
b.ToTable("VoucherUsages");
});
modelBuilder.Entity("gehGassi.Domain.Walks.PublicWalkRequest", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<int>("DogCount")
.HasColumnType("int");
b.Property<string>("DogId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("DogOwnerId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("DogWalkerId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("DogsJson")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("EndDate")
.HasColumnType("datetimeoffset");
b.Property<bool>("Exclusive")
.HasColumnType("bit");
b.Property<DateTimeOffset>("ExpirationDate")
.HasColumnType("datetimeoffset");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("Info")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<DateTimeOffset?>("PlacedDate")
.HasColumnType("datetimeoffset");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
b.Property<string>("PublicWalkResponseId")
.HasColumnType("nvarchar(max)");
b.Property<int>("RequestType")
.HasColumnType("int");
b.Property<int>("ResponseCount")
.HasColumnType("int");
b.Property<DateTimeOffset>("StartDate")
.HasColumnType("datetimeoffset");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("Index");
b.ToTable("PublicWalkRequests");
});
modelBuilder.Entity("gehGassi.Domain.Walks.PublicWalkRequestNotification", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("DogOwnerId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<bool>("HasBeenSent")
.HasColumnType("bit");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<string>("PublicWalkRequestId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("SentCount")
.HasColumnType("int");
b.Property<DateTimeOffset?>("SentDate")
.HasColumnType("datetimeoffset");
b.HasKey("Id");
b.ToTable("PublicWalkRequestNotifications");
});
modelBuilder.Entity("gehGassi.Domain.Walks.PublicWalkRequestWithNames", b =>
{
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<int>("DogCount")
.HasColumnType("int");
b.Property<string>("DogId")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogName")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogOwnerId")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogOwnerName")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogOwnerPhoto")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogPhoto")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogWalkerId")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogWalkerName")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogWalkerPhoto")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogsJson")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("EndDate")
.HasColumnType("datetimeoffset");
b.Property<bool>("Exclusive")
.HasColumnType("bit");
b.Property<DateTimeOffset>("ExpirationDate")
.HasColumnType("datetimeoffset");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<string>("Info")
.HasColumnType("nvarchar(max)");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<string>("PickupAddress_AddressLine1")
.HasColumnType("nvarchar(max)");
b.Property<string>("PickupAddress_AddressLine2")
.HasColumnType("nvarchar(max)");
b.Property<string>("PickupAddress_City")
.HasColumnType("nvarchar(max)");
b.Property<string>("PickupAddress_CountryCode")
.HasColumnType("nvarchar(max)");
b.Property<string>("PickupAddress_State")
.HasColumnType("nvarchar(max)");
b.Property<string>("PickupAddress_Zip")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("PlacedDate")
.HasColumnType("datetimeoffset");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
b.Property<string>("PublicWalkResponseId")
.HasColumnType("nvarchar(max)");
b.Property<int>("RequestType")
.HasColumnType("int");
b.Property<int>("ResponseCount")
.HasColumnType("int");
b.Property<DateTimeOffset>("StartDate")
.HasColumnType("datetimeoffset");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Walks.PublicWalkRequestWithNamesAndResponseStatus", b =>
{
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<int>("DogCount")
.HasColumnType("int");
b.Property<string>("DogId")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogName")
.HasColumnType("nvarchar(max)");
b.Property<bool>("DogOwnerBlocked")
.HasColumnType("bit");
b.Property<string>("DogOwnerId")
.HasColumnType("nvarchar(max)");
b.Property<bool>("DogOwnerLocked")
.HasColumnType("bit");
b.Property<string>("DogOwnerName")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogOwnerPhoto")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogPhoto")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogWalkerId")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogWalkerName")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogWalkerPhoto")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogsJson")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("EndDate")
.HasColumnType("datetimeoffset");
b.Property<bool>("Exclusive")
.HasColumnType("bit");
b.Property<DateTimeOffset>("ExpirationDate")
.HasColumnType("datetimeoffset");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<string>("Info")
.HasColumnType("nvarchar(max)");
b.Property<Point>("Location")
.HasColumnType("geography");
b.Property<string>("PickupAddress_AddressLine1")
.HasColumnType("nvarchar(max)");
b.Property<string>("PickupAddress_AddressLine2")
.HasColumnType("nvarchar(max)");
b.Property<string>("PickupAddress_City")
.HasColumnType("nvarchar(max)");
b.Property<string>("PickupAddress_CountryCode")
.HasColumnType("nvarchar(max)");
b.Property<string>("PickupAddress_State")
.HasColumnType("nvarchar(max)");
b.Property<string>("PickupAddress_Zip")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("PlacedDate")
.HasColumnType("datetimeoffset");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
b.Property<string>("PublicWalkResponseId")
.HasColumnType("nvarchar(max)");
b.Property<int>("RequestType")
.HasColumnType("int");
b.Property<int>("ResponseCount")
.HasColumnType("int");
b.Property<int?>("ResponseStatus")
.HasColumnType("int");
b.Property<DateTimeOffset>("StartDate")
.HasColumnType("datetimeoffset");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Walks.PublicWalkResponse", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Answer")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("CancellationReason")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("DogWalkerId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("Info")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
b.Property<string>("PublicWalkRequestId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.HasKey("Id");
b.HasIndex("Index");
b.ToTable("PublicWalkResponses");
});
modelBuilder.Entity("gehGassi.Domain.Walks.PublicWalkResponseWithNames", b =>
{
b.Property<string>("Answer")
.HasColumnType("nvarchar(max)");
b.Property<string>("CancellationReason")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<bool>("DogWalkerBlocked")
.HasColumnType("bit");
b.Property<string>("DogWalkerId")
.HasColumnType("nvarchar(max)");
b.Property<bool>("DogWalkerLocked")
.HasColumnType("bit");
b.Property<string>("DogWalkerName")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogWalkerPhoto")
.HasColumnType("nvarchar(max)");
b.Property<bool>("DogWalkerVerified")
.HasColumnType("bit");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<string>("Info")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
b.Property<string>("PublicWalkRequestId")
.HasColumnType("nvarchar(max)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Walks.Walk", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<int>("CancelledBy")
.HasColumnType("int");
b.Property<string>("CancelledReason")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("ComplainReason")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<DateTimeOffset?>("Complained")
.HasColumnType("datetimeoffset");
b.Property<DateTimeOffset?>("Completed")
.HasColumnType("datetimeoffset");
b.Property<string>("CompletedInfo")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<DateTimeOffset?>("Confirmed")
.HasColumnType("datetimeoffset");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("DeclinedReason")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<bool>("Defactation")
.HasColumnType("bit");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<int>("DogCount")
.HasColumnType("int");
b.Property<string>("DogOwnerId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("DogWalkerId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("DogsJson")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("End")
.HasColumnType("datetimeoffset");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("Info")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<int>("PaymentStatus")
.HasColumnType("int");
b.Property<Point>("PickupLocation")
.HasColumnType("geography");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
b.Property<string>("PublicWalkRequestId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<Point>("ReturnLocation")
.HasColumnType("geography");
b.Property<int>("ServiceType")
.HasColumnType("int");
b.Property<DateTimeOffset>("Start")
.HasColumnType("datetimeoffset");
b.Property<DateTimeOffset?>("Started")
.HasColumnType("datetimeoffset");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.Property<decimal>("VoucherAmmount")
.HasColumnType("decimal(18,2)");
b.Property<string>("VoucherId")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.HasKey("Id");
b.HasIndex("Index");
b.ToTable("Walks");
});
modelBuilder.Entity("gehGassi.Domain.Walks.WalkComplaint", b =>
{
b.Property<string>("Id")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<string>("Comment")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<long>("Index")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"));
b.Property<string>("Message")
.IsRequired()
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<DateTimeOffset?>("Resolved")
.HasColumnType("datetimeoffset");
b.Property<int>("Source")
.HasColumnType("int");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("UserName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<byte[]>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("rowversion");
b.Property<string>("WalkId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.HasKey("Id");
b.HasIndex("Index");
b.HasIndex("WalkId");
b.ToTable("WalkComplaints");
});
modelBuilder.Entity("gehGassi.Domain.Walks.WalkComplaintWithNames", b =>
{
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<string>("DogOwnerName")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogOwnerPhoto")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogWalkerName")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogWalkerPhoto")
.HasColumnType("nvarchar(max)");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<string>("PickupAddress_CountryCode")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("Resolved")
.HasColumnType("datetimeoffset");
b.Property<int>("Source")
.HasColumnType("int");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<string>("UserName")
.HasColumnType("nvarchar(max)");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.Property<DateTimeOffset>("WalkEnd")
.HasColumnType("datetimeoffset");
b.Property<string>("WalkId")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("WalkPrice")
.HasColumnType("decimal(18,2)");
b.Property<int>("WalkServiceType")
.HasColumnType("int");
b.Property<DateTimeOffset>("WalkStart")
.HasColumnType("datetimeoffset");
b.Property<int>("WalkType")
.HasColumnType("int");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("gehGassi.Domain.Walks.WalkWithNames", b =>
{
b.Property<int>("CancelledBy")
.HasColumnType("int");
b.Property<string>("CancelledReason")
.HasColumnType("nvarchar(max)");
b.Property<string>("ComplainReason")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("Complained")
.HasColumnType("datetimeoffset");
b.Property<DateTimeOffset?>("Completed")
.HasColumnType("datetimeoffset");
b.Property<string>("CompletedInfo")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("Confirmed")
.HasColumnType("datetimeoffset");
b.Property<DateTimeOffset>("Created")
.HasColumnType("datetimeoffset");
b.Property<string>("DeclinedReason")
.HasColumnType("nvarchar(max)");
b.Property<bool>("Defactation")
.HasColumnType("bit");
b.Property<bool>("Deleted")
.HasColumnType("bit");
b.Property<int>("DogCount")
.HasColumnType("int");
b.Property<bool>("DogOwnerBlocked")
.HasColumnType("bit");
b.Property<string>("DogOwnerId")
.HasColumnType("nvarchar(max)");
b.Property<bool>("DogOwnerLocked")
.HasColumnType("bit");
b.Property<string>("DogOwnerName")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogOwnerPhoto")
.HasColumnType("nvarchar(max)");
b.Property<bool>("DogWalkerBlocked")
.HasColumnType("bit");
b.Property<string>("DogWalkerId")
.HasColumnType("nvarchar(max)");
b.Property<bool>("DogWalkerLocked")
.HasColumnType("bit");
b.Property<string>("DogWalkerName")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogWalkerPhoto")
.HasColumnType("nvarchar(max)");
b.Property<string>("DogsJson")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset>("End")
.HasColumnType("datetimeoffset");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
b.Property<long>("Index")
.HasColumnType("bigint");
b.Property<string>("Info")
.HasColumnType("nvarchar(max)");
b.Property<int>("PaymentStatus")
.HasColumnType("int");
b.Property<string>("PickupAddress_AddressLine1")
.HasColumnType("nvarchar(max)");
b.Property<string>("PickupAddress_AddressLine2")
.HasColumnType("nvarchar(max)");
b.Property<string>("PickupAddress_City")
.HasColumnType("nvarchar(max)");
b.Property<string>("PickupAddress_CountryCode")
.HasColumnType("nvarchar(max)");
b.Property<string>("PickupAddress_State")
.HasColumnType("nvarchar(max)");
b.Property<string>("PickupAddress_Zip")
.HasColumnType("nvarchar(max)");
b.Property<Point>("PickupLocation")
.HasColumnType("geography");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
b.Property<string>("PublicWalkRequestId")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReturnAddress_AddressLine1")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReturnAddress_AddressLine2")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReturnAddress_City")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReturnAddress_CountryCode")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReturnAddress_State")
.HasColumnType("nvarchar(max)");
b.Property<string>("ReturnAddress_Zip")
.HasColumnType("nvarchar(max)");
b.Property<Point>("ReturnLocation")
.HasColumnType("geography");
b.Property<int>("ServiceType")
.HasColumnType("int");
b.Property<DateTimeOffset>("Start")
.HasColumnType("datetimeoffset");
b.Property<DateTimeOffset?>("Started")
.HasColumnType("datetimeoffset");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<int>("Type")
.HasColumnType("int");
b.Property<DateTimeOffset>("UpdatedAt")
.HasColumnType("datetimeoffset");
b.Property<byte[]>("Version")
.HasColumnType("varbinary(max)");
b.Property<decimal>("VoucherAmmount")
.HasColumnType("decimal(18,2)");
b.Property<string>("VoucherId")
.HasColumnType("nvarchar(max)");
b.ToTable((string)null);
b.ToView(null, (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.HasOne("gehGassi.Domain.Roles.ApplicationRole", null)
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
{
b.HasOne("gehGassi.Domain.Users.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{
b.HasOne("gehGassi.Domain.Users.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
{
b.HasOne("gehGassi.Domain.Roles.ApplicationRole", null)
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("gehGassi.Domain.Users.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
b.HasOne("gehGassi.Domain.Users.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.Advertisement", b =>
{
b.HasOne("gehGassi.Domain.Advertisements.AdvertisementCategory", null)
.WithMany()
.HasForeignKey("AdvertisementCategoryId")
.IsRequired();
b.HasOne("gehGassi.Domain.Customers.Customer", null)
.WithMany()
.HasForeignKey("CustomerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("gehGassi.Domain.Shop.Order", null)
.WithMany()
.HasForeignKey("OrderId");
b.HasOne("gehGassi.Domain.Shop.OrderItem", null)
.WithMany()
.HasForeignKey("OrderItemId");
b.OwnsOne("gehGassi.Domain.Common.Address", "Address", b1 =>
{
b1.Property<string>("AdvertisementId")
.HasColumnType("nvarchar(128)");
b1.Property<string>("AddressLine1")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("AddressLine2")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b1.Property<string>("State")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Zip")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b1.HasKey("AdvertisementId");
b1.ToTable("Advertisements");
b1.WithOwner()
.HasForeignKey("AdvertisementId");
});
b.Navigation("Address");
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.Banner", b =>
{
b.HasOne("gehGassi.Domain.Customers.Customer", null)
.WithMany()
.HasForeignKey("CustomerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("gehGassi.Domain.Shop.Order", null)
.WithMany()
.HasForeignKey("OrderId");
b.HasOne("gehGassi.Domain.Shop.OrderItem", null)
.WithMany()
.HasForeignKey("OrderItemId");
b.OwnsOne("gehGassi.Domain.Common.Address", "Address", b1 =>
{
b1.Property<string>("BannerId")
.HasColumnType("nvarchar(128)");
b1.Property<string>("AddressLine1")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("AddressLine2")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b1.Property<string>("State")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Zip")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b1.HasKey("BannerId");
b1.ToTable("Banners");
b1.WithOwner()
.HasForeignKey("BannerId");
});
b.Navigation("Address");
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.BannerStatistic", b =>
{
b.HasOne("gehGassi.Domain.Advertisements.Banner", null)
.WithMany()
.HasForeignKey("BannerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.Listing", b =>
{
b.HasOne("gehGassi.Domain.Advertisements.Branch", null)
.WithMany()
.HasForeignKey("BranchId")
.IsRequired();
b.HasOne("gehGassi.Domain.Customers.Customer", null)
.WithMany()
.HasForeignKey("CustomerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("gehGassi.Domain.Shop.Order", null)
.WithMany()
.HasForeignKey("OrderId");
b.HasOne("gehGassi.Domain.Shop.OrderItem", null)
.WithMany()
.HasForeignKey("OrderItemId");
b.OwnsOne("gehGassi.Domain.Common.Address", "Address", b1 =>
{
b1.Property<string>("ListingId")
.HasColumnType("nvarchar(128)");
b1.Property<string>("AddressLine1")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("AddressLine2")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b1.Property<string>("State")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Zip")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b1.HasKey("ListingId");
b1.ToTable("Listings");
b1.WithOwner()
.HasForeignKey("ListingId");
});
b.OwnsOne("gehGassi.Domain.Common.Address", "ListingAddress", b1 =>
{
b1.Property<string>("ListingId")
.HasColumnType("nvarchar(128)");
b1.Property<string>("AddressLine1")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("AddressLine2")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b1.Property<string>("State")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Zip")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b1.HasKey("ListingId");
b1.ToTable("Listings");
b1.WithOwner()
.HasForeignKey("ListingId");
});
b.Navigation("Address");
b.Navigation("ListingAddress");
});
modelBuilder.Entity("gehGassi.Domain.Advertisements.Pin", b =>
{
b.HasOne("gehGassi.Domain.Customers.Customer", null)
.WithMany()
.HasForeignKey("CustomerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("gehGassi.Domain.Advertisements.Listing", null)
.WithMany()
.HasForeignKey("ListingId");
b.HasOne("gehGassi.Domain.Shop.Order", null)
.WithMany()
.HasForeignKey("OrderId");
b.HasOne("gehGassi.Domain.Shop.OrderItem", null)
.WithMany()
.HasForeignKey("OrderItemId");
});
modelBuilder.Entity("gehGassi.Domain.Coins.CoinsAccount", b =>
{
b.HasOne("gehGassi.Domain.Dogs.AppUser", null)
.WithMany()
.HasForeignKey("AppUserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Coins.CoinsPerMonth", b =>
{
b.HasOne("gehGassi.Domain.Dogs.AppUser", null)
.WithMany()
.HasForeignKey("AppUserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Coins.CoinsPerYear", b =>
{
b.HasOne("gehGassi.Domain.Dogs.AppUser", null)
.WithMany()
.HasForeignKey("AppUserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Coins.CoinsTransaction", b =>
{
b.HasOne("gehGassi.Domain.Coins.CoinsAccount", null)
.WithMany()
.HasForeignKey("AccountId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Customers.Customer", b =>
{
b.HasOne("gehGassi.Domain.Advertisements.Branch", null)
.WithMany()
.HasForeignKey("BranchId");
b.HasOne("gehGassi.Domain.Customers.CustomerType", null)
.WithMany()
.HasForeignKey("TypeId");
b.OwnsOne("gehGassi.Domain.Common.Contact", "Contact", b1 =>
{
b1.Property<long>("CustomerId")
.HasColumnType("bigint");
b1.Property<string>("Email")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b1.Property<string>("Fax")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Mobile")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Phone")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Web")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b1.HasKey("CustomerId");
b1.ToTable("Customers");
b1.WithOwner()
.HasForeignKey("CustomerId");
});
b.OwnsOne("gehGassi.Domain.Common.Address", "Address", b1 =>
{
b1.Property<long>("CustomerId")
.HasColumnType("bigint");
b1.Property<string>("AddressLine1")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("AddressLine2")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b1.Property<string>("State")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Zip")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b1.HasKey("CustomerId");
b1.ToTable("Customers");
b1.WithOwner()
.HasForeignKey("CustomerId");
});
b.OwnsOne("gehGassi.Domain.Common.Address", "MangopayAddress", b1 =>
{
b1.Property<long>("CustomerId")
.HasColumnType("bigint");
b1.Property<string>("AddressLine1")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("AddressLine2")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b1.Property<string>("State")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Zip")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b1.HasKey("CustomerId");
b1.ToTable("Customers");
b1.ToJson("MangopayAddress");
b1.WithOwner()
.HasForeignKey("CustomerId");
});
b.Navigation("Address");
b.Navigation("Contact");
b.Navigation("MangopayAddress");
});
modelBuilder.Entity("gehGassi.Domain.Devices.Device", b =>
{
b.HasOne("gehGassi.Domain.Dogs.AppUser", null)
.WithMany()
.HasForeignKey("AppUserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Dogs.AppUser", b =>
{
b.OwnsOne("gehGassi.Domain.Common.ContactMin", "Contact", b1 =>
{
b1.Property<string>("AppUserId")
.HasColumnType("nvarchar(128)");
b1.Property<string>("Email")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b1.Property<string>("Mobile")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Phone")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.HasKey("AppUserId");
b1.ToTable("AppUsers");
b1.WithOwner()
.HasForeignKey("AppUserId");
});
b.OwnsOne("gehGassi.Domain.Common.SocialMedia", "SocialMedia", b1 =>
{
b1.Property<string>("AppUserId")
.HasColumnType("nvarchar(128)");
b1.Property<string>("Blog")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b1.Property<string>("Facebook")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b1.Property<string>("Instagram")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b1.Property<string>("LinkedIn")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b1.Property<string>("Pinterest")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b1.Property<string>("Reddit")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b1.Property<bool>("Show")
.HasColumnType("bit");
b1.Property<string>("SnapChat")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b1.Property<string>("TikTok")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b1.Property<string>("Twitter")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b1.Property<string>("Vimeo")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b1.Property<string>("Xing")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b1.Property<string>("YouTube")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b1.HasKey("AppUserId");
b1.ToTable("AppUsers");
b1.WithOwner()
.HasForeignKey("AppUserId");
});
b.OwnsOne("gehGassi.Domain.Common.Address", "Address", b1 =>
{
b1.Property<string>("AppUserId")
.HasColumnType("nvarchar(128)");
b1.Property<string>("AddressLine1")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("AddressLine2")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b1.Property<string>("State")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Zip")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b1.HasKey("AppUserId");
b1.ToTable("AppUsers");
b1.WithOwner()
.HasForeignKey("AppUserId");
});
b.OwnsOne("gehGassi.Domain.Ratings.RatingStatistics", "RatingStatistics", b1 =>
{
b1.Property<string>("AppUserId")
.HasColumnType("nvarchar(128)");
b1.Property<decimal>("AverageRating")
.ValueGeneratedOnAdd()
.HasColumnType("decimal(18,2)")
.HasDefaultValue(0m);
b1.Property<decimal>("TotalPoints")
.ValueGeneratedOnAdd()
.HasColumnType("decimal(18,2)")
.HasDefaultValue(0m);
b1.Property<int>("TotalRatings")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasDefaultValue(0);
b1.HasKey("AppUserId");
b1.ToTable("AppUsers");
b1.WithOwner()
.HasForeignKey("AppUserId");
});
b.OwnsOne("gehGassi.Domain.Ratings.RatingStatistics", "RatingStatisticsWalker", b1 =>
{
b1.Property<string>("AppUserId")
.HasColumnType("nvarchar(128)");
b1.Property<decimal>("AverageRating")
.ValueGeneratedOnAdd()
.HasColumnType("decimal(18,2)")
.HasDefaultValue(0m);
b1.Property<decimal>("TotalPoints")
.ValueGeneratedOnAdd()
.HasColumnType("decimal(18,2)")
.HasDefaultValue(0m);
b1.Property<int>("TotalRatings")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasDefaultValue(0);
b1.HasKey("AppUserId");
b1.ToTable("AppUsers");
b1.WithOwner()
.HasForeignKey("AppUserId");
});
b.Navigation("Address");
b.Navigation("Contact");
b.Navigation("RatingStatistics");
b.Navigation("RatingStatisticsWalker");
b.Navigation("SocialMedia");
});
modelBuilder.Entity("gehGassi.Domain.Dogs.AppUserBlock", b =>
{
b.HasOne("gehGassi.Domain.Dogs.AppUser", null)
.WithMany()
.HasForeignKey("BlockedAppUserId");
b.HasOne("gehGassi.Domain.Dogs.AppUser", null)
.WithMany()
.HasForeignKey("BlockingAppUserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Dogs.AppUserSubscription", b =>
{
b.HasOne("gehGassi.Domain.Dogs.AppUser", null)
.WithMany()
.HasForeignKey("AppUserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("gehGassi.Domain.Subscriptions.Subscription", null)
.WithMany()
.HasForeignKey("SubscriptionId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Dogs.Certificate", b =>
{
b.HasOne("gehGassi.Domain.Dogs.AppUser", null)
.WithMany()
.HasForeignKey("AppUserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Dogs.Dog", b =>
{
b.HasOne("gehGassi.Domain.Dogs.AppUser", null)
.WithMany()
.HasForeignKey("AppUserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("gehGassi.Domain.Dogs.DogRace", null)
.WithMany()
.HasForeignKey("DogRaceId");
b.OwnsOne("gehGassi.Domain.Ratings.RatingStatistics", "RatingStatistics", b1 =>
{
b1.Property<string>("DogId")
.HasColumnType("nvarchar(128)");
b1.Property<decimal>("AverageRating")
.ValueGeneratedOnAdd()
.HasColumnType("decimal(18,2)")
.HasDefaultValue(0m);
b1.Property<decimal>("TotalPoints")
.ValueGeneratedOnAdd()
.HasColumnType("decimal(18,2)")
.HasDefaultValue(0m);
b1.Property<int>("TotalRatings")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasDefaultValue(0);
b1.HasKey("DogId");
b1.ToTable("Dogs");
b1.WithOwner()
.HasForeignKey("DogId");
});
b.Navigation("RatingStatistics");
});
modelBuilder.Entity("gehGassi.Domain.Messages.Message", b =>
{
b.HasOne("gehGassi.Domain.Messages.Conversation", null)
.WithMany()
.HasForeignKey("ConversationId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Messages.MessageCopy", b =>
{
b.HasOne("gehGassi.Domain.Messages.Conversation", null)
.WithMany()
.HasForeignKey("ConversationId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.News.News", b =>
{
b.HasOne("gehGassi.Domain.News.NewsCategory", null)
.WithMany()
.HasForeignKey("CategoryId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Payment.Card", b =>
{
b.HasOne("gehGassi.Domain.Dogs.AppUser", null)
.WithMany()
.HasForeignKey("AppUserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Payment.IdentityDocument", b =>
{
b.HasOne("gehGassi.Domain.Dogs.AppUser", null)
.WithMany()
.HasForeignKey("AppUserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Payment.Payout", b =>
{
b.HasOne("gehGassi.Domain.Dogs.AppUser", null)
.WithMany()
.HasForeignKey("AppUserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Shop.Cart", b =>
{
b.HasOne("gehGassi.Domain.Dogs.AppUser", null)
.WithMany()
.HasForeignKey("AppUserId")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("gehGassi.Domain.Customers.Customer", null)
.WithMany()
.HasForeignKey("CustomerId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("gehGassi.Domain.Shop.CartItem", b =>
{
b.HasOne("gehGassi.Domain.Shop.Cart", null)
.WithMany()
.HasForeignKey("CartId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("gehGassi.Domain.Shop.Product", null)
.WithMany()
.HasForeignKey("ProductId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Shop.CreditNote", b =>
{
b.HasOne("gehGassi.Domain.Shop.Order", null)
.WithMany()
.HasForeignKey("OrderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Shop.DeliveryNote", b =>
{
b.HasOne("gehGassi.Domain.Shop.Order", null)
.WithMany()
.HasForeignKey("OrderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Shop.Invoice", b =>
{
b.HasOne("gehGassi.Domain.Shop.Order", null)
.WithMany()
.HasForeignKey("OrderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Shop.Order", b =>
{
b.OwnsOne("gehGassi.Domain.Shop.OrderAddress", "BillingAddress", b1 =>
{
b1.Property<long>("OrderId")
.HasColumnType("bigint");
b1.Property<string>("AddressLine1")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("AddressLine2")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Company")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b1.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b1.Property<string>("FirstName")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("LastName")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("State")
.HasMaxLength(25)
.HasColumnType("nvarchar(25)");
b1.Property<string>("Title")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Vat")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b1.Property<string>("Zip")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b1.HasKey("OrderId");
b1.ToTable("Orders");
b1.WithOwner()
.HasForeignKey("OrderId");
});
b.OwnsOne("gehGassi.Domain.Shop.OrderAddress", "DeliveryAddress", b1 =>
{
b1.Property<long>("OrderId")
.HasColumnType("bigint");
b1.Property<string>("AddressLine1")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("AddressLine2")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Company")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b1.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b1.Property<string>("FirstName")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("LastName")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("State")
.HasMaxLength(25)
.HasColumnType("nvarchar(25)");
b1.Property<string>("Title")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Vat")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b1.Property<string>("Zip")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b1.HasKey("OrderId");
b1.ToTable("Orders");
b1.WithOwner()
.HasForeignKey("OrderId");
});
b.Navigation("BillingAddress");
b.Navigation("DeliveryAddress");
});
modelBuilder.Entity("gehGassi.Domain.Shop.OrderItem", b =>
{
b.HasOne("gehGassi.Domain.Shop.Order", null)
.WithMany()
.HasForeignKey("OrderId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("gehGassi.Domain.Shop.ProductCategory", null)
.WithMany()
.HasForeignKey("ProductCategoryId");
b.HasOne("gehGassi.Domain.Shop.Product", null)
.WithMany()
.HasForeignKey("ProductId");
b.HasOne("gehGassi.Domain.Shop.TaxRate", null)
.WithMany()
.HasForeignKey("TaxRateId")
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Shop.Product", b =>
{
b.HasOne("gehGassi.Domain.Shop.ProductCategory", null)
.WithMany()
.HasForeignKey("ProductCategoryId");
b.HasOne("gehGassi.Domain.Shop.TaxRate", null)
.WithMany()
.HasForeignKey("TaxRateId")
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Shop.ProductCountry", b =>
{
b.HasOne("gehGassi.Domain.Shop.Product", null)
.WithMany()
.HasForeignKey("ProductId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Users.ApplicationUser", b =>
{
b.HasOne("gehGassi.Domain.Dogs.AppUser", null)
.WithMany()
.HasForeignKey("AppUserId");
b.HasOne("gehGassi.Domain.Customers.Customer", null)
.WithMany()
.HasForeignKey("CustomerId");
});
modelBuilder.Entity("gehGassi.Domain.Vouchers.Voucher", b =>
{
b.HasOne("gehGassi.Domain.Vouchers.VoucherCampaign", null)
.WithMany()
.HasForeignKey("VoucherCampaignId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("gehGassi.Domain.Vouchers.VoucherCampaign", b =>
{
b.HasOne("gehGassi.Domain.Customers.Customer", null)
.WithMany()
.HasForeignKey("CustomerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.OwnsOne("gehGassi.Domain.Common.Address", "Address", b1 =>
{
b1.Property<string>("VoucherCampaignId")
.HasColumnType("nvarchar(128)");
b1.Property<string>("AddressLine1")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("AddressLine2")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b1.Property<string>("State")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Zip")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b1.HasKey("VoucherCampaignId");
b1.ToTable("VoucherCampaigns");
b1.WithOwner()
.HasForeignKey("VoucherCampaignId");
});
b.Navigation("Address");
});
modelBuilder.Entity("gehGassi.Domain.Vouchers.VoucherUsage", b =>
{
b.HasOne("gehGassi.Domain.Dogs.AppUser", null)
.WithMany()
.HasForeignKey("AppUserId")
.IsRequired();
b.HasOne("gehGassi.Domain.Vouchers.Voucher", null)
.WithMany()
.HasForeignKey("VoucherId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("gehGassi.Domain.Walks.Walk", null)
.WithMany()
.HasForeignKey("WalkId");
});
modelBuilder.Entity("gehGassi.Domain.Walks.PublicWalkRequest", b =>
{
b.OwnsOne("gehGassi.Domain.Common.Address", "PickupAddress", b1 =>
{
b1.Property<string>("PublicWalkRequestId")
.HasColumnType("nvarchar(128)");
b1.Property<string>("AddressLine1")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("AddressLine2")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b1.Property<string>("State")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Zip")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b1.HasKey("PublicWalkRequestId");
b1.ToTable("PublicWalkRequests");
b1.WithOwner()
.HasForeignKey("PublicWalkRequestId");
});
b.Navigation("PickupAddress");
});
modelBuilder.Entity("gehGassi.Domain.Walks.PublicWalkRequestNotification", b =>
{
b.OwnsOne("gehGassi.Domain.Common.Address", "PickupAddress", b1 =>
{
b1.Property<long>("PublicWalkRequestNotificationId")
.HasColumnType("bigint");
b1.Property<string>("AddressLine1")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("AddressLine2")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b1.Property<string>("State")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Zip")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b1.HasKey("PublicWalkRequestNotificationId");
b1.ToTable("PublicWalkRequestNotifications");
b1.WithOwner()
.HasForeignKey("PublicWalkRequestNotificationId");
});
b.Navigation("PickupAddress");
});
modelBuilder.Entity("gehGassi.Domain.Walks.Walk", b =>
{
b.OwnsOne("gehGassi.Domain.Common.Address", "PickupAddress", b1 =>
{
b1.Property<string>("WalkId")
.HasColumnType("nvarchar(128)");
b1.Property<string>("AddressLine1")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("AddressLine2")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b1.Property<string>("State")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Zip")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b1.HasKey("WalkId");
b1.ToTable("Walks");
b1.WithOwner()
.HasForeignKey("WalkId");
});
b.OwnsOne("gehGassi.Domain.Common.Address", "ReturnAddress", b1 =>
{
b1.Property<string>("WalkId")
.HasColumnType("nvarchar(128)");
b1.Property<string>("AddressLine1")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("AddressLine2")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("CountryCode")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b1.Property<string>("State")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b1.Property<string>("Zip")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b1.HasKey("WalkId");
b1.ToTable("Walks");
b1.WithOwner()
.HasForeignKey("WalkId");
});
b.Navigation("PickupAddress");
b.Navigation("ReturnAddress");
});
modelBuilder.Entity("gehGassi.Domain.Walks.WalkComplaint", b =>
{
b.HasOne("gehGassi.Domain.Walks.Walk", null)
.WithMany()
.HasForeignKey("WalkId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
#pragma warning restore 612, 618
}
}
}