// 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("20230302165132_PayoutsAdded")] partial class PayoutsAdded { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "7.0.2"); modelBuilder.Entity("gehGassiApp.Domain.Common.Rating", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("Created") .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("FromId") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("FromType") .HasColumnType("INTEGER"); b.Property("Info") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("Points") .HasColumnType("TEXT"); b.Property("TargetId") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("TargetType") .HasColumnType("INTEGER"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("Version") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("BLOB") .HasAnnotation("Relational:JsonPropertyName", "version"); b.HasKey("Id"); b.ToTable("Ratings"); }); modelBuilder.Entity("gehGassiApp.Domain.Common.SyncInfoPull", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("LastUpdate") .HasColumnType("INTEGER"); b.Property("Table") .IsRequired() .HasMaxLength(100) .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("SyncInfosPull"); }); modelBuilder.Entity("gehGassiApp.Domain.Common.SyncInfoPush", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("DateTime") .HasColumnType("INTEGER"); b.Property("Key") .IsRequired() .HasMaxLength(100) .HasColumnType("TEXT"); b.Property("Operation") .HasColumnType("INTEGER"); b.Property("Table") .IsRequired() .HasMaxLength(100) .HasColumnType("TEXT"); b.Property("Value") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("SyncInfosPush"); }); modelBuilder.Entity("gehGassiApp.Domain.Dogs.Dog", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("AggressionLevel") .HasColumnType("INTEGER"); b.Property("AppUserId") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("BasicCommands") .HasColumnType("INTEGER"); b.Property("BirthDate") .HasColumnType("INTEGER"); b.Property("Chiped") .HasColumnType("INTEGER"); b.Property("Created") .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("Description") .HasMaxLength(5000) .HasColumnType("TEXT"); b.Property("DogRaceId") .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("Eating") .HasColumnType("INTEGER"); b.Property("FeedingIndividual") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("FeedingTimes") .HasColumnType("INTEGER"); b.Property("HouseTrained") .HasColumnType("INTEGER"); b.Property("Hunter") .HasColumnType("INTEGER"); b.Property("Intolerances") .HasMaxLength(5000) .HasColumnType("TEXT"); b.Property("IsAggressiv") .HasColumnType("INTEGER"); b.Property("IsCalm") .HasColumnType("INTEGER"); b.Property("IsGuard") .HasColumnType("INTEGER"); b.Property("IsLoneGunner") .HasColumnType("INTEGER"); b.Property("IsPeeing") .HasColumnType("INTEGER"); b.Property("IsShy") .HasColumnType("INTEGER"); b.Property("IsTrustful") .HasColumnType("INTEGER"); b.Property("Jumper") .HasColumnType("INTEGER"); b.Property("LikesAdults") .HasColumnType("INTEGER"); b.Property("LikesChildren") .HasColumnType("INTEGER"); b.Property("LikesConspecifics") .HasColumnType("INTEGER"); b.Property("MedicalInfo") .HasMaxLength(5000) .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("TEXT"); b.Property("Number") .IsRequired() .HasMaxLength(100) .HasColumnType("TEXT"); b.Property("Photo") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("PullsTheLeash") .HasColumnType("INTEGER"); b.Property("RushesOutside") .HasColumnType("INTEGER"); b.Property("Sex") .HasColumnType("INTEGER"); b.Property("Size") .HasColumnType("INTEGER"); b.Property("Sterilized") .HasColumnType("INTEGER"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("Version") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("BLOB") .HasAnnotation("Relational:JsonPropertyName", "version"); b.Property("WalksTheLeash") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("DogRaceId"); b.ToTable("Dogs"); }); modelBuilder.Entity("gehGassiApp.Domain.Dogs.DogRace", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("Age") .HasMaxLength(1000) .HasColumnType("TEXT"); b.Property("Care") .HasMaxLength(1000) .HasColumnType("TEXT"); b.Property("Coexistence") .HasMaxLength(1000) .HasColumnType("TEXT"); b.Property("Created") .HasColumnType("INTEGER"); b.Property("Decision") .HasMaxLength(2000) .HasColumnType("TEXT"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("Description") .HasMaxLength(5000) .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("TEXT"); b.Property("Personality") .HasMaxLength(2000) .HasColumnType("TEXT"); b.Property("Photo") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("SizeAndWeight") .HasMaxLength(1000) .HasColumnType("TEXT"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("Version") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("BLOB") .HasAnnotation("Relational:JsonPropertyName", "version"); b.HasKey("Id"); b.ToTable("DogRaces"); }); modelBuilder.Entity("gehGassiApp.Domain.Favourites.Favourite", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("AppUserId") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("Created") .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("Key") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("Table") .IsRequired() .HasMaxLength(100) .HasColumnType("TEXT"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("Version") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("BLOB") .HasAnnotation("Relational:JsonPropertyName", "version"); b.HasKey("Id"); b.ToTable("Favourites"); }); modelBuilder.Entity("gehGassiApp.Domain.Messages.Conversation", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("Created") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "created"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("HasUnreadMessages") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "hasUnreadMessages"); b.Property("LastMessageId") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "lastMessageId"); b.Property("LastMessagePreview") .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "lastMessagePreview"); b.Property("ReceipientType") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "receipientType"); b.Property("Recipient") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "recipient"); b.Property("RecipientName") .HasMaxLength(300) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "recipientName"); b.Property("RecipientPhoto") .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "recipientPhoto"); b.Property("RecipientShort") .HasMaxLength(2) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "recipientShort"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("Version") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("BLOB") .HasAnnotation("Relational:JsonPropertyName", "version"); b.HasKey("Id"); b.ToTable("Conversations"); }); modelBuilder.Entity("gehGassiApp.Domain.Messages.Message", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("Content") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("ConversationId") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("Direction") .HasColumnType("INTEGER"); b.Property("Read") .HasColumnType("INTEGER"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("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("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("AppUserId") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("AppUserType") .HasColumnType("INTEGER"); b.Property("Created") .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("Expires") .HasColumnType("INTEGER"); b.Property("Key") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("Message") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("Read") .HasColumnType("INTEGER"); b.Property("ReadDate") .HasColumnType("INTEGER"); b.Property("Table") .IsRequired() .HasMaxLength(100) .HasColumnType("TEXT"); b.Property("Type") .HasColumnType("INTEGER"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("Version") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("BLOB") .HasAnnotation("Relational:JsonPropertyName", "version"); b.HasKey("Id"); b.ToTable("SystemMessages"); }); modelBuilder.Entity("gehGassiApp.Domain.News.NewsCategory", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("Created") .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("Description") .HasColumnType("TEXT"); b.Property("Image") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("ImageLanguage") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("Language") .IsRequired() .HasMaxLength(2) .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("TEXT"); b.Property("OnlineStatus") .HasColumnType("INTEGER"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("Version") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("BLOB") .HasAnnotation("Relational:JsonPropertyName", "version"); b.HasKey("Id"); b.ToTable("NewsCategories"); }); modelBuilder.Entity("gehGassiApp.Domain.Payment.Payout", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("Ammount") .HasColumnType("INTEGER"); b.Property("AppUserId") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("Bic") .HasMaxLength(4) .HasColumnType("TEXT"); b.Property("Created") .HasColumnType("INTEGER"); b.Property("Currency") .IsRequired() .HasMaxLength(3) .HasColumnType("TEXT"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("ExecutionDate") .HasColumnType("INTEGER"); b.Property("Iban") .IsRequired() .HasMaxLength(4) .HasColumnType("TEXT"); b.Property("MangoPayBankId") .HasMaxLength(255) .HasColumnType("TEXT"); b.Property("MangoPayId") .HasMaxLength(255) .HasColumnType("TEXT"); b.Property("MangoPayUserId") .HasMaxLength(255) .HasColumnType("TEXT"); b.Property("MangoPayWalletId") .HasMaxLength(255) .HasColumnType("TEXT"); b.Property("ResultCode") .HasMaxLength(255) .HasColumnType("TEXT"); b.Property("ResultMessage") .HasMaxLength(255) .HasColumnType("TEXT"); b.Property("Status") .HasColumnType("INTEGER"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("Version") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("BLOB") .HasAnnotation("Relational:JsonPropertyName", "version"); b.Property("WalletId") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Payouts"); }); modelBuilder.Entity("gehGassiApp.Domain.Payment.TransactionFee", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("Fixed") .HasColumnType("TEXT"); b.Property("PayInType") .HasColumnType("INTEGER"); b.Property("Percent") .HasColumnType("TEXT"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("Version") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("BLOB") .HasAnnotation("Relational:JsonPropertyName", "version"); b.HasKey("Id"); b.ToTable("TransactionFees"); }); modelBuilder.Entity("gehGassiApp.Domain.Users.AppUser", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("BankId") .HasMaxLength(255) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "bankId"); b.Property("BirthDate") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "birthDate"); b.Property("Created") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "created"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("FirstName") .IsRequired() .HasMaxLength(150) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "firstName"); b.Property("KycPassed") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "kycPassed"); b.Property("KycPassedDate") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "kycPassedDate"); b.Property("LastName") .IsRequired() .HasMaxLength(150) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "lastName"); b.Property("Lat") .HasColumnType("REAL") .HasAnnotation("Relational:JsonPropertyName", "lat"); b.Property("Lng") .HasColumnType("REAL") .HasAnnotation("Relational:JsonPropertyName", "lng"); b.Property("Locked") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "locked"); b.Property("LockedUntil") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "lockedUntil"); b.Property("MainResidenceCode") .HasMaxLength(2) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "mainResidenceCode"); b.Property("NationalityCode") .HasMaxLength(2) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "nationalityCode"); b.Property("PaymentId") .HasMaxLength(255) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "paymentId"); b.Property("PaymentTermsAccepted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "paymentTermsAccepted"); b.Property("PaymentTermsAcceptedDate") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "paymentTermsAcceptedDate"); b.Property("Photo") .HasMaxLength(500) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "photo"); b.Property("PrivacyAccepted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "privacyAccepted"); b.Property("PrivacyAcceptedDate") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "privacyAcceptedDate"); b.Property("Sex") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "sex"); b.Property("TermsAccepted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "termsAccepted"); b.Property("TermsAcceptedDate") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "termsAcceptedDate"); b.Property("Title") .HasMaxLength(50) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "title"); b.Property("Type") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "type"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("Verified") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "verified"); b.Property("VerifiedDate") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "verifiedDate"); b.Property("Version") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("BLOB") .HasAnnotation("Relational:JsonPropertyName", "version"); b.HasKey("Id"); b.ToTable("AppUsers"); }); modelBuilder.Entity("gehGassiApp.Domain.Users.DogWalkerProfile", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("About") .HasMaxLength(300) .HasColumnType("TEXT"); b.Property("AcceptedSize") .HasColumnType("INTEGER"); b.Property("AggressionLevel") .HasColumnType("INTEGER"); b.Property("AllowedRequests") .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("DifficultAllowed") .HasColumnType("INTEGER"); b.Property("NotAvailable") .HasColumnType("INTEGER"); b.Property("NotAvailableInfo") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("PriceDay") .HasColumnType("TEXT"); b.Property("PriceSitting") .HasColumnType("TEXT"); b.Property("PriceWalk") .HasColumnType("TEXT"); b.Property("PuppyAllowed") .HasColumnType("INTEGER"); b.Property("Radius") .HasColumnType("REAL"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("Version") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("BLOB") .HasAnnotation("Relational:JsonPropertyName", "version"); b.HasKey("Id"); b.ToTable("DogWalkerProfiles"); }); modelBuilder.Entity("gehGassiApp.Domain.Users.User", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("AccessTokenExpires") .HasColumnType("INTEGER"); b.Property("AppUserId") .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("FirstName") .IsRequired() .HasMaxLength(150) .HasColumnType("TEXT"); b.Property("LastLoginDate") .HasColumnType("INTEGER"); b.Property("LastName") .IsRequired() .HasMaxLength(150) .HasColumnType("TEXT"); b.Property("Photo") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("RefreshTokenExpires") .HasColumnType("INTEGER"); b.Property("RegistrationDate") .HasColumnType("INTEGER"); b.Property("Roles") .HasMaxLength(255) .HasColumnType("TEXT"); b.Property("UserName") .IsRequired() .HasMaxLength(256) .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Users"); }); modelBuilder.Entity("gehGassiApp.Domain.Walkers.WalkingTime", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("Day") .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("DogWalkerId") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("Enabled") .HasColumnType("INTEGER"); b.Property("End") .HasColumnType("INTEGER"); b.Property("Start") .HasColumnType("INTEGER"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("Version") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("BLOB") .HasAnnotation("Relational:JsonPropertyName", "version"); b.HasKey("Id"); b.ToTable("WalkingTimes"); }); modelBuilder.Entity("gehGassiApp.Domain.Walks.PublicWalkRequest", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("Created") .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("DogCount") .HasColumnType("INTEGER"); b.Property("DogId") .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("DogOwnerId") .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("DogWalkerId") .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("DogsJson") .HasColumnType("TEXT"); b.Property("EndDate") .HasColumnType("INTEGER"); b.Property("Exclusive") .HasColumnType("INTEGER"); b.Property("ExpirationDate") .HasColumnType("INTEGER"); b.Property("Info") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("Lat") .HasColumnType("REAL") .HasAnnotation("Relational:JsonPropertyName", "lat"); b.Property("Lng") .HasColumnType("REAL") .HasAnnotation("Relational:JsonPropertyName", "lng"); b.Property("PlacedDate") .HasColumnType("INTEGER"); b.Property("Price") .HasColumnType("TEXT"); b.Property("PublicWalkResponseId") .HasColumnType("TEXT"); b.Property("RequestType") .HasColumnType("INTEGER"); b.Property("ResponseCount") .HasColumnType("INTEGER"); b.Property("StartDate") .HasColumnType("INTEGER"); b.Property("Status") .HasColumnType("INTEGER"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("Version") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("BLOB") .HasAnnotation("Relational:JsonPropertyName", "version"); b.HasKey("Id"); b.ToTable("PublicWalkRequests"); }); modelBuilder.Entity("gehGassiApp.Domain.Walks.PublicWalkRequestWithNames", b => { b.Property("Created") .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("DogCount") .HasColumnType("INTEGER"); b.Property("DogId") .HasColumnType("TEXT"); b.Property("DogName") .HasColumnType("TEXT"); b.Property("DogOwnerId") .HasColumnType("TEXT"); b.Property("DogPhoto") .HasColumnType("TEXT"); b.Property("DogWalkerId") .HasColumnType("TEXT"); b.Property("DogsJson") .HasColumnType("TEXT"); b.Property("EndDate") .HasColumnType("INTEGER"); b.Property("Exclusive") .HasColumnType("INTEGER"); b.Property("ExpirationDate") .HasColumnType("INTEGER"); b.Property("Id") .HasColumnType("TEXT"); b.Property("Info") .HasColumnType("TEXT"); b.Property("Lat") .HasColumnType("REAL"); b.Property("Lng") .HasColumnType("REAL"); b.Property("PickupAddress_AddressLine1") .HasColumnType("TEXT"); b.Property("PickupAddress_AddressLine2") .HasColumnType("TEXT"); b.Property("PickupAddress_City") .HasColumnType("TEXT"); b.Property("PickupAddress_CountryCode") .HasColumnType("TEXT"); b.Property("PickupAddress_State") .HasColumnType("TEXT"); b.Property("PickupAddress_Zip") .HasColumnType("TEXT"); b.Property("PlacedDate") .HasColumnType("INTEGER"); b.Property("Price") .HasColumnType("TEXT"); b.Property("PublicWalkResponseId") .HasColumnType("TEXT"); b.Property("RequestType") .HasColumnType("INTEGER"); b.Property("ResponseCount") .HasColumnType("INTEGER"); b.Property("StartDate") .HasColumnType("INTEGER"); b.Property("Status") .HasColumnType("INTEGER"); b.Property("UpdatedAt") .HasColumnType("INTEGER"); b.Property("Version") .HasColumnType("BLOB"); b.ToTable((string)null); b.ToView("vw_PublicWalkRequestWithNames", (string)null); }); modelBuilder.Entity("gehGassiApp.Domain.Walks.PublicWalkResponse", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("Answer") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("CancellationReason") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("Created") .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("DogWalkerId") .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("Info") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("Price") .HasColumnType("TEXT"); b.Property("PublicWalkRequestId") .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("Status") .HasColumnType("INTEGER"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("Version") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("BLOB") .HasAnnotation("Relational:JsonPropertyName", "version"); b.HasKey("Id"); b.ToTable("PublicWalkResponses"); }); modelBuilder.Entity("gehGassiApp.Domain.Walks.Walk", b => { b.Property("Id") .HasMaxLength(128) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("CancelledBy") .HasColumnType("INTEGER"); b.Property("CancelledReason") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("ComplainReason") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("Complained") .HasColumnType("INTEGER"); b.Property("Completed") .HasColumnType("INTEGER"); b.Property("CompletedInfo") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("Confirmed") .HasColumnType("INTEGER"); b.Property("Created") .HasColumnType("INTEGER"); b.Property("DeclinedReason") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("Defactation") .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "deleted"); b.Property("DogCount") .HasColumnType("INTEGER"); b.Property("DogOwnerId") .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("DogWalkerId") .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("DogsJson") .HasColumnType("TEXT"); b.Property("End") .HasColumnType("INTEGER"); b.Property("Info") .HasMaxLength(500) .HasColumnType("TEXT"); b.Property("PaymentStatus") .HasColumnType("INTEGER"); b.Property("PickupAddressLat") .HasColumnType("REAL"); b.Property("PickupAddressLng") .HasColumnType("REAL"); b.Property("Price") .HasColumnType("TEXT"); b.Property("PublicWalkRequestId") .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("ReturnAddressLat") .HasColumnType("REAL"); b.Property("ReturnAddressLng") .HasColumnType("REAL"); b.Property("ServiceType") .HasColumnType("INTEGER"); b.Property("Start") .HasColumnType("INTEGER"); b.Property("Started") .HasColumnType("INTEGER"); b.Property("Status") .HasColumnType("INTEGER"); b.Property("Type") .HasColumnType("INTEGER"); b.Property("UpdatedAt") .HasColumnType("INTEGER") .HasAnnotation("Relational:JsonPropertyName", "updatedAt"); b.Property("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("DogId") .HasColumnType("TEXT"); b1.Property("AverageRating") .HasColumnType("TEXT"); b1.Property("TotalPoints") .HasColumnType("TEXT"); b1.Property("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("AppUserId") .HasColumnType("TEXT"); b1.Property("Email") .IsRequired() .HasMaxLength(255) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "email"); b1.Property("Mobile") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "mobile"); b1.Property("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("AppUserId") .HasColumnType("TEXT"); b1.Property("Blog") .HasMaxLength(255) .HasColumnType("TEXT"); b1.Property("Facebook") .HasMaxLength(255) .HasColumnType("TEXT"); b1.Property("Instagram") .HasMaxLength(255) .HasColumnType("TEXT"); b1.Property("LinkedIn") .HasMaxLength(255) .HasColumnType("TEXT"); b1.Property("Pinterest") .HasMaxLength(255) .HasColumnType("TEXT"); b1.Property("Reddit") .HasMaxLength(255) .HasColumnType("TEXT"); b1.Property("Show") .HasColumnType("INTEGER"); b1.Property("SnapChat") .HasMaxLength(255) .HasColumnType("TEXT"); b1.Property("TikTok") .HasMaxLength(255) .HasColumnType("TEXT"); b1.Property("Twitter") .HasMaxLength(255) .HasColumnType("TEXT"); b1.Property("Vimeo") .HasMaxLength(255) .HasColumnType("TEXT"); b1.Property("Xing") .HasMaxLength(255) .HasColumnType("TEXT"); b1.Property("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("AppUserId") .HasColumnType("TEXT"); b1.Property("AddressLine1") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "addressLine1"); b1.Property("AddressLine2") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "addressLine2"); b1.Property("City") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "city"); b1.Property("CountryCode") .IsRequired() .HasMaxLength(2) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "countryCode"); b1.Property("State") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "state"); b1.Property("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("AppUserId") .HasColumnType("TEXT"); b1.Property("AverageRating") .HasColumnType("TEXT"); b1.Property("TotalPoints") .HasColumnType("TEXT"); b1.Property("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("AppUserId") .HasColumnType("TEXT"); b1.Property("AverageRating") .HasColumnType("TEXT"); b1.Property("TotalPoints") .HasColumnType("TEXT"); b1.Property("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("PublicWalkRequestId") .HasColumnType("TEXT"); b1.Property("AddressLine1") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "addressLine1"); b1.Property("AddressLine2") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "addressLine2"); b1.Property("City") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "city"); b1.Property("CountryCode") .IsRequired() .HasMaxLength(2) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "countryCode"); b1.Property("State") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "state"); b1.Property("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("WalkId") .HasColumnType("TEXT"); b1.Property("AddressLine1") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "addressLine1"); b1.Property("AddressLine2") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "addressLine2"); b1.Property("City") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "city"); b1.Property("CountryCode") .IsRequired() .HasMaxLength(2) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "countryCode"); b1.Property("State") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "state"); b1.Property("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("WalkId") .HasColumnType("TEXT"); b1.Property("AddressLine1") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "addressLine1"); b1.Property("AddressLine2") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "addressLine2"); b1.Property("City") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "city"); b1.Property("CountryCode") .IsRequired() .HasMaxLength(2) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "countryCode"); b1.Property("State") .HasMaxLength(100) .HasColumnType("TEXT") .HasAnnotation("Relational:JsonPropertyName", "state"); b1.Property("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 } } }