5331 lines
191 KiB
C#
5331 lines
191 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("20220921100739_BannerStatisticsAdded")]
|
|
partial class BannerStatisticsAdded
|
|
{
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "6.0.9")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
|
|
|
|
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<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"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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.ToView(null);
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassi.Domain.Advertisements.AdvertisementWithNames", b =>
|
|
{
|
|
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<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<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<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.ToView(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"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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.ToView(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"), 1L, 1);
|
|
|
|
b.Property<bool>("ListingAllowed")
|
|
.HasColumnType("bit");
|
|
|
|
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.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<string>("Title")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTimeOffset>("UpdatedAt")
|
|
.HasColumnType("datetimeoffset");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.HasColumnType("varbinary(max)");
|
|
|
|
b.ToView(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>("ImageLanguageLocalized")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("Index")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Index"), 1L, 1);
|
|
|
|
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<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>("ImageLanguage")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ImageLanguageLocalized")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("Index")
|
|
.HasColumnType("bigint");
|
|
|
|
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.ToView(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"), 1L, 1);
|
|
|
|
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.ToView(null);
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassi.Domain.Common.Audit", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
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.ToView("vw_AuditsWithNames");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassi.Domain.Customers.Customer", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
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<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"), 1L, 1);
|
|
|
|
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<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.ToView(null);
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassi.Domain.Dogs.AppUser", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
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"), 1L, 1);
|
|
|
|
b.Property<string>("LastName")
|
|
.IsRequired()
|
|
.HasMaxLength(150)
|
|
.HasColumnType("nvarchar(150)");
|
|
|
|
b.Property<Point>("Location")
|
|
.HasColumnType("geography");
|
|
|
|
b.Property<bool>("Locked")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("LockedReason")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<DateTimeOffset?>("LockedUntil")
|
|
.HasColumnType("datetimeoffset");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("Photo")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<int>("Sex")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Title")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
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("AppUsers");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassi.Domain.Dogs.AppUserRelation", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
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.Certificate", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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.ToView(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<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<string>("LastName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Point>("Location")
|
|
.HasColumnType("geography");
|
|
|
|
b.Property<bool>("Locked")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("LockedReason")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTimeOffset?>("LockedUntil")
|
|
.HasColumnType("datetimeoffset");
|
|
|
|
b.Property<string>("Number")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
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>("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<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.ToView("vw_DogWalkers");
|
|
});
|
|
|
|
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"), 1L, 1);
|
|
|
|
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<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.ToView(null);
|
|
});
|
|
|
|
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"), 1L, 1);
|
|
|
|
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.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.ToView(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"), 1L, 1);
|
|
|
|
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.News.News", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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.ToView(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.ToView(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"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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.ToView(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.ToView(null);
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassi.Domain.Shop.CreditNote", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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.ToView("vw_OrdersPhysical");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassi.Domain.Shop.Product", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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.ToView(null);
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassi.Domain.Shop.ProductCountry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
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.ToView(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.ToView(null);
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassi.Domain.Shop.ShipmentCost", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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.ToView(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.ToView("vw_ApplicationUsersWithNames");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassi.Domain.Users.FidoStoredCredential", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
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"), 1L, 1);
|
|
|
|
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.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.Navigation("Address");
|
|
});
|
|
|
|
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.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.Navigation("Address");
|
|
|
|
b.Navigation("Contact");
|
|
});
|
|
|
|
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.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.News.News", b =>
|
|
{
|
|
b.HasOne("gehGassi.Domain.News.NewsCategory", null)
|
|
.WithMany()
|
|
.HasForeignKey("CategoryId")
|
|
.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("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();
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|