// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using UnivateProperties_API.Context; namespace UnivateProperties_API.Migrations { [DbContext(typeof(DataContext))] [Migration("20210413105321_uploadcampaign1")] partial class uploadcampaign1 { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "2.2.0-rtm-35687") .HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("UnivateProperties_API.Model.Banks.Bank", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("Name"); b.Property("UniversalBranchCode"); b.HasKey("Id"); b.ToTable("Banks"); }); modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("AccountHolder"); b.Property("AccountNumber"); b.Property("BankId"); b.Property("Created"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("OwnerId"); b.HasKey("Id"); b.HasIndex("BankId"); b.HasIndex("OwnerId"); b.ToTable("BankAccounts"); }); modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.Campaign", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Body"); b.Property("Created"); b.Property("EndDate"); b.Property("IsDeleted"); b.Property("IsTimeshare"); b.Property("ItemBody"); b.Property("ItemsPerRow"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("Name"); b.Property("StartDate"); b.Property("Subject"); b.HasKey("Id"); b.ToTable("Campaigns"); }); modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItem", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("CampaignId"); b.Property("Created"); b.Property("Image"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("PropertyId"); b.Property("WeekId"); b.HasKey("Id"); b.HasIndex("CampaignId"); b.HasIndex("PropertyId"); b.HasIndex("WeekId"); b.ToTable("CampaignItems"); }); modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItemPlaceHolder", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("CampaignItemId"); b.Property("Created"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("PlaceHolder"); b.Property("PropertyCampaignItemId"); b.Property("Value"); b.HasKey("Id"); b.HasIndex("CampaignItemId"); b.HasIndex("PropertyCampaignItemId"); b.ToTable("CampaignItemPlaceHolders"); }); modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignPlaceHolder", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("BoundTo"); b.Property("BoundToClass"); b.Property("BoundToClassDisplay"); b.Property("CampaignId"); b.Property("Created"); b.Property("Format"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("Name"); b.HasKey("Id"); b.HasIndex("CampaignId"); b.ToTable("CampaignPlaceHolders"); }); modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.PropertyCampaignItem", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("CampaignId"); b.Property("Created"); b.Property("Image"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("PropertyId"); b.HasKey("Id"); b.HasIndex("CampaignId"); b.HasIndex("PropertyId"); b.ToTable("PropertyCampaignItem"); }); modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.UploadCampaign", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("FileLink"); b.Property("FileName"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.HasKey("Id"); b.ToTable("CampaignUploads"); }); modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("BCC"); b.Property("Body"); b.Property("CC"); b.Property("Comment"); b.Property("Created"); b.Property("IsBodyHtml"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("SenderId"); b.Property("Subject"); b.Property("To"); b.Property("ToDisplay"); b.HasKey("Id"); b.HasIndex("SenderId"); b.ToTable("Emails"); }); modelBuilder.Entity("UnivateProperties_API.Model.Communication.MailRecipient", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("RecipientMail"); b.Property("RecipientName"); b.Property("RecipientUsage"); b.HasKey("Id"); b.ToTable("MailRecipients"); }); modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("BoundTo"); b.Property("BoundToClass"); b.Property("BoundToClassDisplay"); b.Property("Created"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("Name"); b.Property("TemplateId"); b.HasKey("Id"); b.HasIndex("TemplateId"); b.ToTable("PlaceHolders"); }); modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Address"); b.Property("Created"); b.Property("Default"); b.Property("DisplayName"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("SMTPHostId"); b.HasKey("Id"); b.HasIndex("SMTPHostId"); b.ToTable("Accounts"); }); modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPHost", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("Host"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("NeedsAuthorize"); b.Property("Password"); b.Property("UseSSL"); b.Property("User"); b.HasKey("Id"); b.ToTable("Hosts"); }); modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Body"); b.Property("Created"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("Name"); b.Property("SenderId"); b.Property("Subject"); b.HasKey("Id"); b.HasIndex("SenderId"); b.ToTable("Templates"); }); modelBuilder.Entity("UnivateProperties_API.Model.Financial.ListingFee", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Amount"); b.Property("Created"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("Name"); b.HasKey("Id"); b.ToTable("ListingFees"); }); modelBuilder.Entity("UnivateProperties_API.Model.Financial.Payment", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Amount"); b.Property("Checksum"); b.Property("Created"); b.Property("CreatedById"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("PayRequestId"); b.Property("PaymentStatus"); b.Property("PaymentToken"); b.Property("PropertyId"); b.Property("TimeshareWeekId"); b.HasKey("Id"); b.HasIndex("CreatedById"); b.HasIndex("PropertyId"); b.HasIndex("TimeshareWeekId"); b.ToTable("Payments"); }); modelBuilder.Entity("UnivateProperties_API.Model.Logging.SearchLog", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("Search"); b.Property("Type"); b.HasKey("Id"); b.ToTable("SearchLogs"); }); modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("City"); b.Property("Created"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("OwnerId"); b.Property("PostalCode"); b.Property("Province"); b.Property("Street"); b.Property("StreetNumber"); b.Property("Suburb"); b.HasKey("Id"); b.HasIndex("OwnerId"); b.ToTable("Addresses"); }); modelBuilder.Entity("UnivateProperties_API.Model.Misc.Carousel", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("Header"); b.Property("Image"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("PropertyId"); b.Property("TimeshareId"); b.HasKey("Id"); b.ToTable("Carousel"); }); modelBuilder.Entity("UnivateProperties_API.Model.Misc.Default", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("Value"); b.HasKey("Id"); b.ToTable("Defaults"); }); modelBuilder.Entity("UnivateProperties_API.Model.Misc.Location", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("IsDeleted"); b.Property("IsTesting"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("PropertyImageLocation"); b.Property("SiteURL"); b.HasKey("Id"); b.ToTable("Location"); }); modelBuilder.Entity("UnivateProperties_API.Model.Misc.PlaceHolderFormat", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("DisplayName"); b.Property("Format"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.HasKey("Id"); b.ToTable("PlaceHolderFormats"); }); modelBuilder.Entity("UnivateProperties_API.Model.Misc.TC", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("TermsConditions"); b.Property("Version"); b.HasKey("Id"); b.ToTable("TermsConditions"); }); modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Amount"); b.Property("BidMakerId"); b.Property("Comment"); b.Property("Created"); b.Property("DeclinedReason"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("PropertyId"); b.Property("StatusId"); b.Property("TimeshareWeekId"); b.HasKey("Id"); b.HasIndex("BidMakerId"); b.HasIndex("PropertyId"); b.HasIndex("StatusId"); b.HasIndex("TimeshareWeekId"); b.ToTable("BidItems"); }); modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("PropertyID"); b.Property("StatusID"); b.Property("TimeshareID"); b.HasKey("Id"); b.HasIndex("PropertyID"); b.HasIndex("StatusID"); b.HasIndex("TimeshareID"); b.ToTable("ProcessFlows"); }); modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("AddressOther"); b.Property("AddressURL"); b.Property("AgencyId"); b.Property("AgentId"); b.Property("City"); b.Property("Country"); b.Property("Created"); b.Property("CutOffDisplayDate"); b.Property("DateAvailable"); b.Property("DatePublished"); b.Property("Description"); b.Property("IsDeleted"); b.Property("IsSale"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("OperationalCosts"); b.Property("OwnerId"); b.Property("PostalCode"); b.Property("Price"); b.Property("PricePer"); b.Property("PriceRedused"); b.Property("PropertCoords"); b.Property("PropertyName"); b.Property("PropertyRef"); b.Property("PropertyTypeId"); b.Property("Province"); b.Property("Published"); b.Property("ShortDescription"); b.Property("ShowAddress"); b.Property("StatusDate"); b.Property("StatusId"); b.Property("StreetName"); b.Property("StreetNumber"); b.Property("Suburb"); b.Property("Unit"); b.Property("Video"); b.Property("VirtualTour"); b.HasKey("Id"); b.HasIndex("AgencyId"); b.HasIndex("AgentId"); b.HasIndex("OwnerId"); b.HasIndex("PropertyTypeId"); b.ToTable("Properties"); }); modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("Image"); b.Property("IsDefault"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("PropertyId"); b.HasKey("Id"); b.HasIndex("PropertyId"); b.ToTable("PropertyImages"); }); modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyType", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("Description"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("UsageType"); b.HasKey("Id"); b.ToTable("PropertyTypes"); }); modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("Description"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("PropertyId"); b.Property("UserDefinedFieldId"); b.Property("Value"); b.HasKey("Id"); b.HasIndex("PropertyId"); b.HasIndex("UserDefinedFieldId"); b.ToTable("PropertyUserFields"); }); modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("FieldName"); b.Property("FieldType"); b.Property("GroupId"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("Rank"); b.HasKey("Id"); b.HasIndex("GroupId"); b.ToTable("UserDefinedFields"); }); modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedGroup", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("Description"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("Rank"); b.Property("UsageType"); b.HasKey("Id"); b.ToTable("UserDefinedGroups"); }); modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Code"); b.Property("Created"); b.Property("Description"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("ProvinceId"); b.HasKey("Id"); b.HasIndex("ProvinceId"); b.ToTable("Cities"); }); modelBuilder.Entity("UnivateProperties_API.Model.Region.Province", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Code"); b.Property("Created"); b.Property("Description"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.HasKey("Id"); b.ToTable("Provinces"); }); modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("CityId"); b.Property("Created"); b.Property("Description"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("PostalCode"); b.HasKey("Id"); b.HasIndex("CityId"); b.ToTable("Suburbs"); }); modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Season", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("Name"); b.HasKey("Id"); b.ToTable("Seasons"); }); modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Status", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Code"); b.Property("Created"); b.Property("Description"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("StatusType"); b.HasKey("Id"); b.ToTable("Status"); }); modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("AgencyId"); b.Property("AgentAsRep"); b.Property("AgentCommision"); b.Property("AgentId"); b.Property("ArrivalDate"); b.Property("AskingPrice"); b.Property("BankedWith"); b.Property("Bedrooms"); b.Property("Created"); b.Property("CurrentYearBanked"); b.Property("CustomOwner"); b.Property("DateMandated"); b.Property("DepartureDate"); b.Property("DisplayOwner"); b.Property("IsDeleted"); b.Property("LeviesPaidInFull"); b.Property("LevyAmount"); b.Property("Mandate"); b.Property("MaxSleep"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("Module"); b.Property("OriginalPurchaseDate"); b.Property("OriginalPurchasePrice"); b.Property("OtherResort"); b.Property("OtherResortName"); b.Property("OwnerId"); b.Property("Publish"); b.Property("PulbishedDate"); b.Property("ReferedByAgent"); b.Property("RegionId"); b.Property("ResortCode"); b.Property("ResortName"); b.Property("Season"); b.Property("SellPrice"); b.Property("StatusId"); b.Property("UnitNumber"); b.Property("WeekNumber"); b.Property("WeekPlacedForRental"); b.Property("WeekStatus"); b.Property("WeekType"); b.HasKey("Id"); b.HasIndex("AgencyId"); b.HasIndex("AgentId"); b.HasIndex("OwnerId"); b.HasIndex("RegionId"); b.HasIndex("StatusId"); b.ToTable("Weeks"); }); modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfiguration", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Adults"); b.Property("Bedrooms"); b.Property("Children"); b.Property("Code"); b.Property("Created"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.HasKey("Id"); b.HasIndex("Code") .IsUnique() .HasFilter("[Code] IS NOT NULL"); b.ToTable("UnitConfigurations"); }); modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("Description"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("UnitConfigurationId"); b.HasKey("Id"); b.HasIndex("UnitConfigurationId"); b.ToTable("UnitConfigurationTypes"); }); modelBuilder.Entity("UnivateProperties_API.Model.Users.Agency", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("AgencyName"); b.Property("CompanyRegNumber"); b.Property("Created"); b.Property("EAABEFFCNumber"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.HasKey("Id"); b.ToTable("Agencies"); }); modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("AgencyId"); b.Property("CellNumber"); b.Property("Created"); b.Property("Email"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("Name"); b.Property("Surname"); b.Property("Telephone"); b.Property("TemplateId"); b.Property("UserId"); b.HasKey("Id"); b.HasIndex("AgencyId"); b.HasIndex("TemplateId"); b.HasIndex("UserId"); b.ToTable("Agents"); }); modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("AddressId"); b.Property("BankAccountId"); b.Property("CellNumber"); b.Property("CompanyRegNumber"); b.Property("Created"); b.Property("Email"); b.Property("HowMarried"); b.Property("IdNumber"); b.Property("IncomeTaxNumber"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("Name"); b.Property("SpouseCellnumber"); b.Property("SpouseEmail"); b.Property("SpouseName"); b.Property("SpouseSurname"); b.Property("SpouseTelephone"); b.Property("Surname"); b.Property("Telephone"); b.Property("TemplateId"); b.Property("UserId"); b.HasKey("Id"); b.HasIndex("AddressId"); b.HasIndex("BankAccountId"); b.HasIndex("TemplateId"); b.HasIndex("UserId"); b.HasIndex("Telephone", "CellNumber", "Email") .IsUnique() .HasFilter("[Telephone] IS NOT NULL AND [CellNumber] IS NOT NULL AND [Email] IS NOT NULL"); b.ToTable("Individuals"); }); modelBuilder.Entity("UnivateProperties_API.Model.Users.NonRegIndividual", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("CellNumber"); b.Property("CompanyRegNumber"); b.Property("Created"); b.Property("EmailAddress"); b.Property("HowMarried"); b.Property("IDNumber"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("Name"); b.Property("SpouseCellnumber"); b.Property("SpouseEmail"); b.Property("SpouseName"); b.Property("SpouseSurname"); b.Property("SpouseTelephone"); b.Property("Surname"); b.Property("TelephoneNumber"); b.Property("WeekId"); b.HasKey("Id"); b.ToTable("NonRegIndividuals"); }); modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("CellNumber"); b.Property("Created"); b.Property("Email"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("Name"); b.Property("Surname"); b.Property("Telephone"); b.Property("UserId"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("Person"); }); modelBuilder.Entity("UnivateProperties_API.Model.Users.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("AcceptedTerms"); b.Property("Created"); b.Property("FPToken"); b.Property("IsDeleted"); b.Property("LoginPasswordChange"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("PasswordHash"); b.Property("PasswordSalt"); b.Property("Role"); b.Property("Token"); b.Property("Username"); b.Property("Verified"); b.HasKey("Id"); b.HasIndex("Username") .IsUnique() .HasFilter("[Username] IS NOT NULL"); b.ToTable("Users"); }); modelBuilder.Entity("UnivateProperties_API.Model.Users.UserRole", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Created"); b.Property("IsDeleted"); b.Property("Modified"); b.Property("ModifiedBy"); b.Property("RoleDescription"); b.Property("RoleName"); b.HasKey("Id"); b.ToTable("Roles"); }); modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b => { b.HasOne("UnivateProperties_API.Model.Banks.Bank", "Bank") .WithMany() .HasForeignKey("BankId"); b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner") .WithMany() .HasForeignKey("OwnerId"); }); modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItem", b => { b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign") .WithMany("Items") .HasForeignKey("CampaignId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property") .WithMany() .HasForeignKey("PropertyId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Week") .WithMany() .HasForeignKey("WeekId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItemPlaceHolder", b => { b.HasOne("UnivateProperties_API.Model.Campaigns.CampaignItem", "CampaignItem") .WithMany("CampaignItemPlaceHolder") .HasForeignKey("CampaignItemId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("UnivateProperties_API.Model.Campaigns.PropertyCampaignItem") .WithMany("CampaignItemPlaceHolder") .HasForeignKey("PropertyCampaignItemId"); }); modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignPlaceHolder", b => { b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign") .WithMany("PlaceHolders") .HasForeignKey("CampaignId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.PropertyCampaignItem", b => { b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign") .WithMany("PropertyItems") .HasForeignKey("CampaignId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property") .WithMany() .HasForeignKey("PropertyId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b => { b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender") .WithMany("Emails") .HasForeignKey("SenderId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b => { b.HasOne("UnivateProperties_API.Model.Communication.Template", "Template") .WithMany("PlaceHolders") .HasForeignKey("TemplateId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b => { b.HasOne("UnivateProperties_API.Model.Communication.SMTPHost", "SMTPHost") .WithMany("SMTPAccounts") .HasForeignKey("SMTPHostId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b => { b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender") .WithMany("Templates") .HasForeignKey("SenderId"); }); modelBuilder.Entity("UnivateProperties_API.Model.Financial.Payment", b => { b.HasOne("UnivateProperties_API.Model.Users.User", "CreatedBy") .WithMany() .HasForeignKey("CreatedById"); b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property") .WithMany() .HasForeignKey("PropertyId"); b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek") .WithMany() .HasForeignKey("TimeshareWeekId"); }); modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b => { b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner") .WithMany() .HasForeignKey("OwnerId"); }); modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b => { b.HasOne("UnivateProperties_API.Model.Users.Individual", "BidMaker") .WithMany() .HasForeignKey("BidMakerId"); b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property") .WithMany("BidItems") .HasForeignKey("PropertyId"); b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status") .WithMany() .HasForeignKey("StatusId"); b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek") .WithMany("BidItems") .HasForeignKey("TimeshareWeekId"); }); modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b => { b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property") .WithMany("ProcessFlows") .HasForeignKey("PropertyID"); b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status") .WithMany() .HasForeignKey("StatusID") .OnDelete(DeleteBehavior.Cascade); b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Timeshare") .WithMany("ProcessFlows") .HasForeignKey("TimeshareID"); }); modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b => { b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency") .WithMany("Properties") .HasForeignKey("AgencyId"); b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent") .WithMany("Properties") .HasForeignKey("AgentId"); b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner") .WithMany("Properties") .HasForeignKey("OwnerId"); b.HasOne("UnivateProperties_API.Model.Properties.PropertyType", "PropertyType") .WithMany() .HasForeignKey("PropertyTypeId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b => { b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property") .WithMany("PropertyImages") .HasForeignKey("PropertyId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b => { b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property") .WithMany("PropertyUserFields") .HasForeignKey("PropertyId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedField", "UserDefinedField") .WithMany() .HasForeignKey("UserDefinedFieldId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b => { b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedGroup", "Group") .WithMany("Fields") .HasForeignKey("GroupId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b => { b.HasOne("UnivateProperties_API.Model.Region.Province", "Province") .WithMany() .HasForeignKey("ProvinceId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b => { b.HasOne("UnivateProperties_API.Model.Region.City", "City") .WithMany() .HasForeignKey("CityId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b => { b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency") .WithMany() .HasForeignKey("AgencyId"); b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent") .WithMany() .HasForeignKey("AgentId"); b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner") .WithMany() .HasForeignKey("OwnerId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("UnivateProperties_API.Model.Region.Province", "Region") .WithMany() .HasForeignKey("RegionId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status") .WithMany() .HasForeignKey("StatusId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b => { b.HasOne("UnivateProperties_API.Model.Timeshare.UnitConfiguration", "UnitConfiguration") .WithMany("Types") .HasForeignKey("UnitConfigurationId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b => { b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency") .WithMany("Agents") .HasForeignKey("AgencyId"); b.HasOne("UnivateProperties_API.Model.Communication.Template") .WithMany("AgentBCC") .HasForeignKey("TemplateId"); b.HasOne("UnivateProperties_API.Model.Users.User", "User") .WithMany() .HasForeignKey("UserId"); }); modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b => { b.HasOne("UnivateProperties_API.Model.Misc.Address", "Address") .WithMany() .HasForeignKey("AddressId"); b.HasOne("UnivateProperties_API.Model.Banks.BankAccount", "BankAccount") .WithMany() .HasForeignKey("BankAccountId"); b.HasOne("UnivateProperties_API.Model.Communication.Template") .WithMany("IndividualBCC") .HasForeignKey("TemplateId"); b.HasOne("UnivateProperties_API.Model.Users.User", "User") .WithMany() .HasForeignKey("UserId"); }); modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b => { b.HasOne("UnivateProperties_API.Model.Users.User", "User") .WithMany() .HasForeignKey("UserId"); }); #pragma warning restore 612, 618 } } }