1590 lines
60 KiB
C#
1590 lines
60 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using gehGassiApp.Data;
|
|
|
|
#nullable disable
|
|
|
|
namespace gehGassiApp.Data.Migrations
|
|
{
|
|
[DbContext(typeof(LocalDbContext))]
|
|
[Migration("20221125143103_SystemMessagesAdded")]
|
|
partial class SystemMessagesAdded
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "7.0.0");
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Common.Rating", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "deleted");
|
|
|
|
b.Property<string>("FromId")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("FromType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Info")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<decimal>("Points")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TargetId")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("TargetType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updatedAt");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Ratings");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Common.SyncInfoPull", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("LastUpdate")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Table")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("SyncInfosPull");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Common.SyncInfoPush", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("DateTime")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Key")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Operation")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Table")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Value")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("SyncInfosPush");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Dogs.Dog", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
|
|
|
b.Property<int>("AggressionLevel")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("AppUserId")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("BasicCommands")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long?>("BirthDate")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Chiped")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "deleted");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(5000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DogRaceId")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Eating")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("FeedingIndividual")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("FeedingTimes")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("HouseTrained")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Hunter")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Intolerances")
|
|
.HasMaxLength(5000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsAggressiv")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsCalm")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsGuard")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsLoneGunner")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsPeeing")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsShy")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsTrustful")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Jumper")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("LikesAdults")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("LikesChildren")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("LikesConspecifics")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("MedicalInfo")
|
|
.HasMaxLength(5000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Number")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Photo")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("PullsTheLeash")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("RushesOutside")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Sex")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Size")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Sterilized")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updatedAt");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.Property<bool>("WalksTheLeash")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DogRaceId");
|
|
|
|
b.ToTable("Dogs");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Dogs.DogRace", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
|
|
|
b.Property<string>("Age")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Care")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Coexistence")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Decision")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "deleted");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(5000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Personality")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Photo")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("SizeAndWeight")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updatedAt");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("DogRaces");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Favourites.Favourite", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
|
|
|
b.Property<string>("AppUserId")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "deleted");
|
|
|
|
b.Property<string>("Key")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Table")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updatedAt");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Favourites");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Messages.Conversation", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "created");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "deleted");
|
|
|
|
b.Property<bool>("HasUnreadMessages")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "hasUnreadMessages");
|
|
|
|
b.Property<string>("LastMessageId")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "lastMessageId");
|
|
|
|
b.Property<string>("LastMessagePreview")
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "lastMessagePreview");
|
|
|
|
b.Property<int>("ReceipientType")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "receipientType");
|
|
|
|
b.Property<string>("Recipient")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "recipient");
|
|
|
|
b.Property<string>("RecipientName")
|
|
.HasMaxLength(300)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "recipientName");
|
|
|
|
b.Property<string>("RecipientPhoto")
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "recipientPhoto");
|
|
|
|
b.Property<string>("RecipientShort")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "recipientShort");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updatedAt");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Conversations");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Messages.Message", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
|
|
|
b.Property<string>("Content")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ConversationId")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "deleted");
|
|
|
|
b.Property<int>("Direction")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Read")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updatedAt");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ConversationId");
|
|
|
|
b.ToTable("Messages");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Messages.SystemMessage", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
|
|
|
b.Property<string>("AppUserId")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "deleted");
|
|
|
|
b.Property<long?>("Expires")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Key")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Message")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Read")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long?>("ReadDate")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Table")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updatedAt");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("SystemMessages");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.News.NewsCategory", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "deleted");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Image")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ImageLanguage")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Language")
|
|
.IsRequired()
|
|
.HasMaxLength(2)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("OnlineStatus")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updatedAt");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("NewsCategories");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Users.AppUser", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
|
|
|
b.Property<long?>("BirthDate")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "birthDate");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "created");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "deleted");
|
|
|
|
b.Property<string>("FirstName")
|
|
.IsRequired()
|
|
.HasMaxLength(150)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "firstName");
|
|
|
|
b.Property<string>("LastName")
|
|
.IsRequired()
|
|
.HasMaxLength(150)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "lastName");
|
|
|
|
b.Property<double>("Lat")
|
|
.HasColumnType("REAL")
|
|
.HasAnnotation("Relational:JsonPropertyName", "lat");
|
|
|
|
b.Property<double>("Lng")
|
|
.HasColumnType("REAL")
|
|
.HasAnnotation("Relational:JsonPropertyName", "lng");
|
|
|
|
b.Property<bool>("Locked")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "locked");
|
|
|
|
b.Property<long?>("LockedUntil")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "lockedUntil");
|
|
|
|
b.Property<string>("Photo")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "photo");
|
|
|
|
b.Property<int>("Sex")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "sex");
|
|
|
|
b.Property<bool>("TermsAccepted")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "termsAccepted");
|
|
|
|
b.Property<long?>("TermsAcceptedDate")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "termsAcceptedDate");
|
|
|
|
b.Property<string>("Title")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "title");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "type");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updatedAt");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("AppUsers");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Users.DogWalkerProfile", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
|
|
|
b.Property<string>("About")
|
|
.HasMaxLength(300)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("AcceptedSize")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("AggressionLevel")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("AllowedRequests")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "deleted");
|
|
|
|
b.Property<bool>("DifficultAllowed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("NotAvailable")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("NotAvailableInfo")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<decimal>("PriceDay")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<decimal>("PriceSitting")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<decimal>("PriceWalk")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("PuppyAllowed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<double>("Radius")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updatedAt");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("DogWalkerProfiles");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Users.User", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("AccessTokenExpires")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("AppUserId")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("FirstName")
|
|
.IsRequired()
|
|
.HasMaxLength(150)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long?>("LastLoginDate")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("LastName")
|
|
.IsRequired()
|
|
.HasMaxLength(150)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Photo")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("RefreshTokenExpires")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long?>("RegistrationDate")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Roles")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UserName")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Users");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Walkers.WalkingTime", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
|
|
|
b.Property<int>("Day")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "deleted");
|
|
|
|
b.Property<string>("DogWalkerId")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("End")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("Start")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updatedAt");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("WalkingTimes");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Walks.PublicWalkRequest", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "deleted");
|
|
|
|
b.Property<int>("DogCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("DogId")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DogOwnerId")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DogWalkerId")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DogsJson")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("EndDate")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Exclusive")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("ExpirationDate")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Info")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<double>("Lat")
|
|
.HasColumnType("REAL")
|
|
.HasAnnotation("Relational:JsonPropertyName", "lat");
|
|
|
|
b.Property<double>("Lng")
|
|
.HasColumnType("REAL")
|
|
.HasAnnotation("Relational:JsonPropertyName", "lng");
|
|
|
|
b.Property<long?>("PlacedDate")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<decimal>("Price")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PublicWalkResponseId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("RequestType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("ResponseCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("StartDate")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updatedAt");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("PublicWalkRequests");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Walks.PublicWalkRequestWithNames", b =>
|
|
{
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("DogCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("DogId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DogName")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DogOwnerId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DogPhoto")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DogWalkerId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DogsJson")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("EndDate")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Exclusive")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("ExpirationDate")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Id")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Info")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<double>("Lat")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<double>("Lng")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<string>("PickupAddress_AddressLine1")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PickupAddress_AddressLine2")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PickupAddress_City")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PickupAddress_CountryCode")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PickupAddress_State")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PickupAddress_Zip")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long?>("PlacedDate")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<decimal>("Price")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PublicWalkResponseId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("RequestType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("ResponseCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("StartDate")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.HasColumnType("BLOB");
|
|
|
|
b.ToTable((string)null);
|
|
|
|
b.ToView("vw_PublicWalkRequestWithNames", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Walks.PublicWalkResponse", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
|
|
|
b.Property<string>("Answer")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CancellationReason")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "deleted");
|
|
|
|
b.Property<string>("DogWalkerId")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Info")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<decimal>("Price")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PublicWalkRequestId")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updatedAt");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("PublicWalkResponses");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Walks.Walk", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "id");
|
|
|
|
b.Property<int>("CancelledBy")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("CancelledReason")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long?>("Completed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("CompletedInfo")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("DeclinedReason")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Defactation")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "deleted");
|
|
|
|
b.Property<int>("DogCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("DogOwnerId")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DogWalkerId")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DogsJson")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("End")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Info")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("PaymentStatus")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<double>("PickupAddressLat")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<double>("PickupAddressLng")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<decimal>("Price")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PublicWalkRequestId")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<double>("ReturnAddressLat")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<double>("ReturnAddressLng")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<int>("ServiceType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("Start")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long?>("Started")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updatedAt");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Walks");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Dogs.Dog", b =>
|
|
{
|
|
b.HasOne("gehGassiApp.Domain.Dogs.DogRace", null)
|
|
.WithMany()
|
|
.HasForeignKey("DogRaceId");
|
|
|
|
b.OwnsOne("gehGassiApp.Domain.Common.RatingStatistics", "RatingStatistics", b1 =>
|
|
{
|
|
b1.Property<string>("DogId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<decimal>("AverageRating")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<decimal>("TotalPoints")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<int>("TotalRatings")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b1.HasKey("DogId");
|
|
|
|
b1.ToTable("Dogs");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("DogId");
|
|
});
|
|
|
|
b.Navigation("RatingStatistics");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Messages.Message", b =>
|
|
{
|
|
b.HasOne("gehGassiApp.Domain.Messages.Conversation", null)
|
|
.WithMany()
|
|
.HasForeignKey("ConversationId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Users.AppUser", b =>
|
|
{
|
|
b.OwnsOne("gehGassiApp.Domain.Common.ContactMin", "Contact", b1 =>
|
|
{
|
|
b1.Property<string>("AppUserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Email")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "email");
|
|
|
|
b1.Property<string>("Mobile")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "mobile");
|
|
|
|
b1.Property<string>("Phone")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "phone");
|
|
|
|
b1.HasKey("AppUserId");
|
|
|
|
b1.ToTable("AppUsers");
|
|
|
|
b1.HasAnnotation("Relational:JsonPropertyName", "contact");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("AppUserId");
|
|
});
|
|
|
|
b.OwnsOne("gehGassiApp.Domain.Common.SocialMedia", "SocialMedia", b1 =>
|
|
{
|
|
b1.Property<string>("AppUserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Blog")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Facebook")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Instagram")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("LinkedIn")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Pinterest")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Reddit")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<bool>("Show")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b1.Property<string>("SnapChat")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("TikTok")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Twitter")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Vimeo")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Xing")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("YouTube")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.HasKey("AppUserId");
|
|
|
|
b1.ToTable("AppUsers");
|
|
|
|
b1.HasAnnotation("Relational:JsonPropertyName", "socialMedia");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("AppUserId");
|
|
});
|
|
|
|
b.OwnsOne("gehGassiApp.Domain.Common.Address", "Address", b1 =>
|
|
{
|
|
b1.Property<string>("AppUserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("AddressLine1")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "addressLine1");
|
|
|
|
b1.Property<string>("AddressLine2")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "addressLine2");
|
|
|
|
b1.Property<string>("City")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "city");
|
|
|
|
b1.Property<string>("CountryCode")
|
|
.IsRequired()
|
|
.HasMaxLength(2)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "countryCode");
|
|
|
|
b1.Property<string>("State")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "state");
|
|
|
|
b1.Property<string>("Zip")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "zip");
|
|
|
|
b1.HasKey("AppUserId");
|
|
|
|
b1.ToTable("AppUsers");
|
|
|
|
b1.HasAnnotation("Relational:JsonPropertyName", "address");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("AppUserId");
|
|
});
|
|
|
|
b.OwnsOne("gehGassiApp.Domain.Common.RatingStatistics", "RatingStatistics", b1 =>
|
|
{
|
|
b1.Property<string>("AppUserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<decimal>("AverageRating")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<decimal>("TotalPoints")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<int>("TotalRatings")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b1.HasKey("AppUserId");
|
|
|
|
b1.ToTable("AppUsers");
|
|
|
|
b1.HasAnnotation("Relational:JsonPropertyName", "ratingStatistics");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("AppUserId");
|
|
});
|
|
|
|
b.OwnsOne("gehGassiApp.Domain.Common.RatingStatistics", "RatingStatisticsWalker", b1 =>
|
|
{
|
|
b1.Property<string>("AppUserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<decimal>("AverageRating")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<decimal>("TotalPoints")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<int>("TotalRatings")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b1.HasKey("AppUserId");
|
|
|
|
b1.ToTable("AppUsers");
|
|
|
|
b1.HasAnnotation("Relational:JsonPropertyName", "ratingStatisticsWalker");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("AppUserId");
|
|
});
|
|
|
|
b.Navigation("Address");
|
|
|
|
b.Navigation("Contact");
|
|
|
|
b.Navigation("RatingStatistics");
|
|
|
|
b.Navigation("RatingStatisticsWalker");
|
|
|
|
b.Navigation("SocialMedia");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Walks.PublicWalkRequest", b =>
|
|
{
|
|
b.OwnsOne("gehGassiApp.Domain.Common.Address", "PickupAddress", b1 =>
|
|
{
|
|
b1.Property<string>("PublicWalkRequestId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("AddressLine1")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "addressLine1");
|
|
|
|
b1.Property<string>("AddressLine2")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "addressLine2");
|
|
|
|
b1.Property<string>("City")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "city");
|
|
|
|
b1.Property<string>("CountryCode")
|
|
.IsRequired()
|
|
.HasMaxLength(2)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "countryCode");
|
|
|
|
b1.Property<string>("State")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "state");
|
|
|
|
b1.Property<string>("Zip")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "zip");
|
|
|
|
b1.HasKey("PublicWalkRequestId");
|
|
|
|
b1.ToTable("PublicWalkRequests");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PublicWalkRequestId");
|
|
});
|
|
|
|
b.Navigation("PickupAddress");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Walks.Walk", b =>
|
|
{
|
|
b.OwnsOne("gehGassiApp.Domain.Common.Address", "PickupAddress", b1 =>
|
|
{
|
|
b1.Property<string>("WalkId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("AddressLine1")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "addressLine1");
|
|
|
|
b1.Property<string>("AddressLine2")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "addressLine2");
|
|
|
|
b1.Property<string>("City")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "city");
|
|
|
|
b1.Property<string>("CountryCode")
|
|
.IsRequired()
|
|
.HasMaxLength(2)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "countryCode");
|
|
|
|
b1.Property<string>("State")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "state");
|
|
|
|
b1.Property<string>("Zip")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "zip");
|
|
|
|
b1.HasKey("WalkId");
|
|
|
|
b1.ToTable("Walks");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("WalkId");
|
|
});
|
|
|
|
b.OwnsOne("gehGassiApp.Domain.Common.Address", "ReturnAddress", b1 =>
|
|
{
|
|
b1.Property<string>("WalkId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("AddressLine1")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "addressLine1");
|
|
|
|
b1.Property<string>("AddressLine2")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "addressLine2");
|
|
|
|
b1.Property<string>("City")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "city");
|
|
|
|
b1.Property<string>("CountryCode")
|
|
.IsRequired()
|
|
.HasMaxLength(2)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "countryCode");
|
|
|
|
b1.Property<string>("State")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "state");
|
|
|
|
b1.Property<string>("Zip")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasAnnotation("Relational:JsonPropertyName", "zip");
|
|
|
|
b1.HasKey("WalkId");
|
|
|
|
b1.ToTable("Walks");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("WalkId");
|
|
});
|
|
|
|
b.Navigation("PickupAddress");
|
|
|
|
b.Navigation("ReturnAddress");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|