1233 lines
43 KiB
C#
1233 lines
43 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("20221026132127_WalksAdded")]
|
|
partial class WalksAdded
|
|
{
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "6.0.9");
|
|
|
|
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");
|
|
|
|
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");
|
|
|
|
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");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB");
|
|
|
|
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");
|
|
|
|
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");
|
|
|
|
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");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("DogRaces");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Events.Walk", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("CancelledBy")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("CancelledReason")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("DeclinedReason")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
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<decimal>("Price")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PublicWalkRequestId")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("Start")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Walks");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Messages.Conversation", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("HasUnreadMessages")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("LastMessageId")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LastMessagePreview")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("ReceipientType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Recipient")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RecipientName")
|
|
.HasMaxLength(300)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RecipientPhoto")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RecipientShort")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Conversations");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Messages.Message", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Content")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ConversationId")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Direction")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Read")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ConversationId");
|
|
|
|
b.ToTable("Messages");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.News.NewsCategory", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
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");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("NewsCategories");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Users.AppUser", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long?>("BirthDate")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("FirstName")
|
|
.IsRequired()
|
|
.HasMaxLength(150)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LastName")
|
|
.IsRequired()
|
|
.HasMaxLength(150)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<double>("Lat")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<double>("Lng")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<bool>("Locked")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long?>("LockedUntil")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Photo")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Sex")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Title")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("UpdatedAt")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("AppUsers");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Users.DogWalkerProfile", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
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");
|
|
|
|
b.Property<bool>("DifficultAllowed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
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");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB");
|
|
|
|
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.Walks.PublicWalkRequest", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("Created")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.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<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");
|
|
|
|
b.Property<double>("Lng")
|
|
.HasColumnType("REAL");
|
|
|
|
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")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB");
|
|
|
|
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<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<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.ToView("vw_PublicWalkRequestWithNames");
|
|
});
|
|
|
|
modelBuilder.Entity("gehGassiApp.Domain.Walks.PublicWalkResponse", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
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");
|
|
|
|
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");
|
|
|
|
b.Property<byte[]>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("PublicWalkResponses");
|
|
});
|
|
|
|
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.Events.Walk", b =>
|
|
{
|
|
b.OwnsOne("gehGassiApp.Domain.Common.Address", "PickupAddress", b1 =>
|
|
{
|
|
b1.Property<string>("WalkId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("AddressLine1")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("AddressLine2")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("City")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("CountryCode")
|
|
.IsRequired()
|
|
.HasMaxLength(2)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("State")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Zip")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
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");
|
|
|
|
b1.Property<string>("AddressLine2")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("City")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("CountryCode")
|
|
.IsRequired()
|
|
.HasMaxLength(2)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("State")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Zip")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.HasKey("WalkId");
|
|
|
|
b1.ToTable("Walks");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("WalkId");
|
|
});
|
|
|
|
b.Navigation("PickupAddress");
|
|
|
|
b.Navigation("ReturnAddress");
|
|
});
|
|
|
|
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");
|
|
|
|
b1.Property<string>("Mobile")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Phone")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.HasKey("AppUserId");
|
|
|
|
b1.ToTable("AppUsers");
|
|
|
|
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.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");
|
|
|
|
b1.Property<string>("AddressLine2")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("City")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("CountryCode")
|
|
.IsRequired()
|
|
.HasMaxLength(2)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("State")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Zip")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.HasKey("AppUserId");
|
|
|
|
b1.ToTable("AppUsers");
|
|
|
|
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.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.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");
|
|
|
|
b1.Property<string>("AddressLine2")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("City")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("CountryCode")
|
|
.IsRequired()
|
|
.HasMaxLength(2)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("State")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Zip")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.HasKey("PublicWalkRequestId");
|
|
|
|
b1.ToTable("PublicWalkRequests");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PublicWalkRequestId");
|
|
});
|
|
|
|
b.Navigation("PickupAddress");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|