API
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

20201110092829_URL added to location.Designer.cs 55KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Metadata;
  6. using Microsoft.EntityFrameworkCore.Migrations;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. using UnivateProperties_API.Context;
  9. namespace UnivateProperties_API.Migrations
  10. {
  11. [DbContext(typeof(DataContext))]
  12. [Migration("20201110092829_URL added to location")]
  13. partial class URLaddedtolocation
  14. {
  15. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder
  19. .HasAnnotation("ProductVersion", "2.2.0-rtm-35687")
  20. .HasAnnotation("Relational:MaxIdentifierLength", 128)
  21. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  22. modelBuilder.Entity("UnivateProperties_API.Model.Banks.Bank", b =>
  23. {
  24. b.Property<int>("Id")
  25. .ValueGeneratedOnAdd()
  26. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  27. b.Property<DateTime>("Created");
  28. b.Property<bool>("IsDeleted");
  29. b.Property<DateTime>("Modified");
  30. b.Property<string>("ModifiedBy");
  31. b.Property<string>("Name");
  32. b.Property<string>("UniversalBranchCode");
  33. b.HasKey("Id");
  34. b.ToTable("Banks");
  35. });
  36. modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
  37. {
  38. b.Property<int>("Id")
  39. .ValueGeneratedOnAdd()
  40. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  41. b.Property<string>("AccountHolder");
  42. b.Property<string>("AccountNumber");
  43. b.Property<int?>("BankId");
  44. b.Property<DateTime>("Created");
  45. b.Property<bool>("IsDeleted");
  46. b.Property<DateTime>("Modified");
  47. b.Property<string>("ModifiedBy");
  48. b.Property<int?>("OwnerId");
  49. b.HasKey("Id");
  50. b.HasIndex("BankId");
  51. b.HasIndex("OwnerId");
  52. b.ToTable("BankAccounts");
  53. });
  54. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.Campaign", b =>
  55. {
  56. b.Property<int>("Id")
  57. .ValueGeneratedOnAdd()
  58. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  59. b.Property<string>("Body");
  60. b.Property<DateTime>("Created");
  61. b.Property<DateTime>("EndDate");
  62. b.Property<bool>("IsDeleted");
  63. b.Property<string>("ItemBody");
  64. b.Property<int>("ItemsPerRow");
  65. b.Property<DateTime>("Modified");
  66. b.Property<string>("ModifiedBy");
  67. b.Property<string>("Name");
  68. b.Property<DateTime>("StartDate");
  69. b.Property<string>("Subject");
  70. b.HasKey("Id");
  71. b.ToTable("Campaigns");
  72. });
  73. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItem", b =>
  74. {
  75. b.Property<int>("Id")
  76. .ValueGeneratedOnAdd()
  77. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  78. b.Property<int>("CampaignId");
  79. b.Property<DateTime>("Created");
  80. b.Property<string>("Image");
  81. b.Property<bool>("IsDeleted");
  82. b.Property<DateTime>("Modified");
  83. b.Property<string>("ModifiedBy");
  84. b.Property<int>("WeekId");
  85. b.HasKey("Id");
  86. b.HasIndex("CampaignId");
  87. b.HasIndex("WeekId");
  88. b.ToTable("CampaignItems");
  89. });
  90. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItemPlaceHolder", b =>
  91. {
  92. b.Property<int>("Id")
  93. .ValueGeneratedOnAdd()
  94. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  95. b.Property<int>("CampaignItemId");
  96. b.Property<DateTime>("Created");
  97. b.Property<bool>("IsDeleted");
  98. b.Property<DateTime>("Modified");
  99. b.Property<string>("ModifiedBy");
  100. b.Property<string>("PlaceHolder");
  101. b.Property<string>("Value");
  102. b.HasKey("Id");
  103. b.HasIndex("CampaignItemId");
  104. b.ToTable("CampaignItemPlaceHolders");
  105. });
  106. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignPlaceHolder", b =>
  107. {
  108. b.Property<int>("Id")
  109. .ValueGeneratedOnAdd()
  110. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  111. b.Property<string>("BoundTo");
  112. b.Property<string>("BoundToClass");
  113. b.Property<string>("BoundToClassDisplay");
  114. b.Property<int>("CampaignId");
  115. b.Property<DateTime>("Created");
  116. b.Property<string>("Format");
  117. b.Property<bool>("IsDeleted");
  118. b.Property<DateTime>("Modified");
  119. b.Property<string>("ModifiedBy");
  120. b.Property<string>("Name");
  121. b.HasKey("Id");
  122. b.HasIndex("CampaignId");
  123. b.ToTable("CampaignPlaceHolders");
  124. });
  125. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  126. {
  127. b.Property<int>("Id")
  128. .ValueGeneratedOnAdd()
  129. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  130. b.Property<string>("BCC");
  131. b.Property<string>("Body");
  132. b.Property<string>("CC");
  133. b.Property<string>("Comment");
  134. b.Property<DateTime>("Created");
  135. b.Property<bool>("IsBodyHtml");
  136. b.Property<bool>("IsDeleted");
  137. b.Property<DateTime>("Modified");
  138. b.Property<string>("ModifiedBy");
  139. b.Property<int>("SenderId");
  140. b.Property<string>("Subject");
  141. b.Property<string>("To");
  142. b.Property<string>("ToDisplay");
  143. b.HasKey("Id");
  144. b.HasIndex("SenderId");
  145. b.ToTable("Emails");
  146. });
  147. modelBuilder.Entity("UnivateProperties_API.Model.Communication.MailRecipient", b =>
  148. {
  149. b.Property<int>("Id")
  150. .ValueGeneratedOnAdd()
  151. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  152. b.Property<DateTime>("Created");
  153. b.Property<bool>("IsDeleted");
  154. b.Property<DateTime>("Modified");
  155. b.Property<string>("ModifiedBy");
  156. b.Property<string>("RecipientMail");
  157. b.Property<string>("RecipientName");
  158. b.Property<string>("RecipientUsage");
  159. b.HasKey("Id");
  160. b.ToTable("MailRecipients");
  161. });
  162. modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b =>
  163. {
  164. b.Property<int>("Id")
  165. .ValueGeneratedOnAdd()
  166. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  167. b.Property<string>("BoundTo");
  168. b.Property<string>("BoundToClass");
  169. b.Property<string>("BoundToClassDisplay");
  170. b.Property<DateTime>("Created");
  171. b.Property<bool>("IsDeleted");
  172. b.Property<DateTime>("Modified");
  173. b.Property<string>("ModifiedBy");
  174. b.Property<string>("Name");
  175. b.Property<int>("TemplateId");
  176. b.HasKey("Id");
  177. b.HasIndex("TemplateId");
  178. b.ToTable("PlaceHolders");
  179. });
  180. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  181. {
  182. b.Property<int>("Id")
  183. .ValueGeneratedOnAdd()
  184. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  185. b.Property<string>("Address");
  186. b.Property<DateTime>("Created");
  187. b.Property<bool>("Default");
  188. b.Property<string>("DisplayName");
  189. b.Property<bool>("IsDeleted");
  190. b.Property<DateTime>("Modified");
  191. b.Property<string>("ModifiedBy");
  192. b.Property<int>("SMTPHostId");
  193. b.HasKey("Id");
  194. b.HasIndex("SMTPHostId");
  195. b.ToTable("Accounts");
  196. });
  197. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPHost", b =>
  198. {
  199. b.Property<int>("Id")
  200. .ValueGeneratedOnAdd()
  201. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  202. b.Property<DateTime>("Created");
  203. b.Property<string>("Host");
  204. b.Property<bool>("IsDeleted");
  205. b.Property<DateTime>("Modified");
  206. b.Property<string>("ModifiedBy");
  207. b.Property<bool>("NeedsAuthorize");
  208. b.Property<string>("Password");
  209. b.Property<bool>("UseSSL");
  210. b.Property<string>("User");
  211. b.HasKey("Id");
  212. b.ToTable("Hosts");
  213. });
  214. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b =>
  215. {
  216. b.Property<int>("Id")
  217. .ValueGeneratedOnAdd()
  218. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  219. b.Property<string>("Body");
  220. b.Property<DateTime>("Created");
  221. b.Property<bool>("IsDeleted");
  222. b.Property<DateTime>("Modified");
  223. b.Property<string>("ModifiedBy");
  224. b.Property<string>("Name");
  225. b.Property<int?>("SenderId");
  226. b.Property<string>("Subject");
  227. b.HasKey("Id");
  228. b.HasIndex("SenderId");
  229. b.ToTable("Templates");
  230. });
  231. modelBuilder.Entity("UnivateProperties_API.Model.Financial.ListingFee", b =>
  232. {
  233. b.Property<int>("Id")
  234. .ValueGeneratedOnAdd()
  235. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  236. b.Property<double>("Amount");
  237. b.Property<DateTime>("Created");
  238. b.Property<bool>("IsDeleted");
  239. b.Property<DateTime>("Modified");
  240. b.Property<string>("ModifiedBy");
  241. b.Property<string>("Name");
  242. b.HasKey("Id");
  243. b.ToTable("ListingFees");
  244. });
  245. modelBuilder.Entity("UnivateProperties_API.Model.Financial.Payment", b =>
  246. {
  247. b.Property<int>("Id")
  248. .ValueGeneratedOnAdd()
  249. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  250. b.Property<decimal>("Amount");
  251. b.Property<string>("Checksum");
  252. b.Property<DateTime>("Created");
  253. b.Property<int?>("CreatedById");
  254. b.Property<bool>("IsDeleted");
  255. b.Property<DateTime>("Modified");
  256. b.Property<string>("ModifiedBy");
  257. b.Property<string>("PayRequestId");
  258. b.Property<string>("PaymentStatus");
  259. b.Property<string>("PaymentToken");
  260. b.Property<int?>("PropertyId");
  261. b.Property<int?>("TimeshareWeekId");
  262. b.HasKey("Id");
  263. b.HasIndex("CreatedById");
  264. b.HasIndex("PropertyId");
  265. b.HasIndex("TimeshareWeekId");
  266. b.ToTable("Payments");
  267. });
  268. modelBuilder.Entity("UnivateProperties_API.Model.Logging.SearchLog", b =>
  269. {
  270. b.Property<int>("Id")
  271. .ValueGeneratedOnAdd()
  272. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  273. b.Property<DateTime>("Created");
  274. b.Property<bool>("IsDeleted");
  275. b.Property<DateTime>("Modified");
  276. b.Property<string>("ModifiedBy");
  277. b.Property<string>("Search");
  278. b.Property<string>("Type");
  279. b.HasKey("Id");
  280. b.ToTable("SearchLogs");
  281. });
  282. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  283. {
  284. b.Property<int>("Id")
  285. .ValueGeneratedOnAdd()
  286. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  287. b.Property<string>("City");
  288. b.Property<DateTime>("Created");
  289. b.Property<bool>("IsDeleted");
  290. b.Property<DateTime>("Modified");
  291. b.Property<string>("ModifiedBy");
  292. b.Property<int?>("OwnerId");
  293. b.Property<string>("PostalCode");
  294. b.Property<string>("Province");
  295. b.Property<string>("Street");
  296. b.Property<string>("StreetNumber");
  297. b.Property<string>("Suburb");
  298. b.HasKey("Id");
  299. b.HasIndex("OwnerId");
  300. b.ToTable("Addresses");
  301. });
  302. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Carousel", b =>
  303. {
  304. b.Property<int>("Id")
  305. .ValueGeneratedOnAdd()
  306. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  307. b.Property<DateTime>("Created");
  308. b.Property<string>("Header");
  309. b.Property<string>("Image");
  310. b.Property<bool>("IsDeleted");
  311. b.Property<DateTime>("Modified");
  312. b.Property<string>("ModifiedBy");
  313. b.Property<int>("PropertyId");
  314. b.Property<int>("TimeshareId");
  315. b.HasKey("Id");
  316. b.ToTable("Carousel");
  317. });
  318. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Default", b =>
  319. {
  320. b.Property<string>("Id")
  321. .ValueGeneratedOnAdd();
  322. b.Property<string>("Value");
  323. b.HasKey("Id");
  324. b.ToTable("Defaults");
  325. });
  326. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Location", b =>
  327. {
  328. b.Property<int>("Id")
  329. .ValueGeneratedOnAdd()
  330. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  331. b.Property<DateTime>("Created");
  332. b.Property<bool>("IsDeleted");
  333. b.Property<bool>("IsTesting");
  334. b.Property<DateTime>("Modified");
  335. b.Property<string>("ModifiedBy");
  336. b.Property<string>("PropertyImageLocation");
  337. b.Property<string>("SiteURL");
  338. b.HasKey("Id");
  339. b.ToTable("Location");
  340. });
  341. modelBuilder.Entity("UnivateProperties_API.Model.Misc.PlaceHolderFormat", b =>
  342. {
  343. b.Property<int>("Id")
  344. .ValueGeneratedOnAdd()
  345. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  346. b.Property<DateTime>("Created");
  347. b.Property<string>("DisplayName");
  348. b.Property<string>("Format");
  349. b.Property<bool>("IsDeleted");
  350. b.Property<DateTime>("Modified");
  351. b.Property<string>("ModifiedBy");
  352. b.HasKey("Id");
  353. b.ToTable("PlaceHolderFormats");
  354. });
  355. modelBuilder.Entity("UnivateProperties_API.Model.Misc.TC", b =>
  356. {
  357. b.Property<int>("Id")
  358. .ValueGeneratedOnAdd()
  359. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  360. b.Property<DateTime>("Created");
  361. b.Property<bool>("IsDeleted");
  362. b.Property<DateTime>("Modified");
  363. b.Property<string>("ModifiedBy");
  364. b.Property<string>("TermsConditions");
  365. b.Property<string>("Version");
  366. b.HasKey("Id");
  367. b.ToTable("TermsConditions");
  368. });
  369. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  370. {
  371. b.Property<int>("Id")
  372. .ValueGeneratedOnAdd()
  373. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  374. b.Property<double>("Amount");
  375. b.Property<int?>("BidMakerId");
  376. b.Property<string>("Comment");
  377. b.Property<DateTime>("Created");
  378. b.Property<string>("DeclinedReason");
  379. b.Property<bool>("IsDeleted");
  380. b.Property<DateTime>("Modified");
  381. b.Property<string>("ModifiedBy");
  382. b.Property<int?>("PropertyId");
  383. b.Property<int?>("StatusId");
  384. b.Property<int?>("TimeshareWeekId");
  385. b.HasKey("Id");
  386. b.HasIndex("BidMakerId");
  387. b.HasIndex("PropertyId");
  388. b.HasIndex("StatusId");
  389. b.HasIndex("TimeshareWeekId");
  390. b.ToTable("BidItems");
  391. });
  392. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  393. {
  394. b.Property<int>("Id")
  395. .ValueGeneratedOnAdd()
  396. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  397. b.Property<DateTime>("Created");
  398. b.Property<bool>("IsDeleted");
  399. b.Property<DateTime>("Modified");
  400. b.Property<string>("ModifiedBy");
  401. b.Property<int?>("PropertyID");
  402. b.Property<int>("StatusID");
  403. b.Property<int?>("TimeshareID");
  404. b.HasKey("Id");
  405. b.HasIndex("PropertyID");
  406. b.HasIndex("StatusID");
  407. b.HasIndex("TimeshareID");
  408. b.ToTable("ProcessFlows");
  409. });
  410. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  411. {
  412. b.Property<int>("Id")
  413. .ValueGeneratedOnAdd()
  414. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  415. b.Property<string>("AddressOther");
  416. b.Property<string>("AddressURL");
  417. b.Property<int?>("AgencyId");
  418. b.Property<int?>("AgentId");
  419. b.Property<string>("City");
  420. b.Property<string>("Country");
  421. b.Property<DateTime>("Created");
  422. b.Property<DateTime>("CutOffDisplayDate");
  423. b.Property<DateTime>("DateAvailable");
  424. b.Property<DateTime>("DatePublished");
  425. b.Property<string>("Description");
  426. b.Property<bool>("IsDeleted");
  427. b.Property<bool>("IsSale");
  428. b.Property<DateTime>("Modified");
  429. b.Property<string>("ModifiedBy");
  430. b.Property<decimal>("OperationalCosts");
  431. b.Property<int?>("OwnerId");
  432. b.Property<string>("PostalCode");
  433. b.Property<decimal>("Price");
  434. b.Property<string>("PricePer");
  435. b.Property<bool>("PriceRedused");
  436. b.Property<string>("PropertCoords");
  437. b.Property<string>("PropertyName");
  438. b.Property<string>("PropertyRef");
  439. b.Property<int>("PropertyTypeId");
  440. b.Property<string>("Province");
  441. b.Property<bool>("Published");
  442. b.Property<string>("ShortDescription");
  443. b.Property<bool>("ShowAddress");
  444. b.Property<DateTime>("StatusDate");
  445. b.Property<int?>("StatusId");
  446. b.Property<string>("StreetName");
  447. b.Property<string>("StreetNumber");
  448. b.Property<string>("Suburb");
  449. b.Property<string>("Unit");
  450. b.Property<string>("Video");
  451. b.Property<string>("VirtualTour");
  452. b.HasKey("Id");
  453. b.HasIndex("AgencyId");
  454. b.HasIndex("AgentId");
  455. b.HasIndex("OwnerId");
  456. b.HasIndex("PropertyTypeId");
  457. b.ToTable("Properties");
  458. });
  459. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  460. {
  461. b.Property<int>("Id")
  462. .ValueGeneratedOnAdd()
  463. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  464. b.Property<DateTime>("Created");
  465. b.Property<string>("Image");
  466. b.Property<bool>("IsDefault");
  467. b.Property<bool>("IsDeleted");
  468. b.Property<DateTime>("Modified");
  469. b.Property<string>("ModifiedBy");
  470. b.Property<int>("PropertyId");
  471. b.HasKey("Id");
  472. b.HasIndex("PropertyId");
  473. b.ToTable("PropertyImages");
  474. });
  475. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyType", b =>
  476. {
  477. b.Property<int>("Id")
  478. .ValueGeneratedOnAdd()
  479. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  480. b.Property<DateTime>("Created");
  481. b.Property<string>("Description");
  482. b.Property<bool>("IsDeleted");
  483. b.Property<DateTime>("Modified");
  484. b.Property<string>("ModifiedBy");
  485. b.Property<int>("UsageType");
  486. b.HasKey("Id");
  487. b.ToTable("PropertyTypes");
  488. });
  489. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  490. {
  491. b.Property<int>("Id")
  492. .ValueGeneratedOnAdd()
  493. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  494. b.Property<DateTime>("Created");
  495. b.Property<string>("Description");
  496. b.Property<bool>("IsDeleted");
  497. b.Property<DateTime>("Modified");
  498. b.Property<string>("ModifiedBy");
  499. b.Property<int>("PropertyId");
  500. b.Property<int>("UserDefinedFieldId");
  501. b.Property<string>("Value");
  502. b.HasKey("Id");
  503. b.HasIndex("PropertyId");
  504. b.HasIndex("UserDefinedFieldId");
  505. b.ToTable("PropertyUserFields");
  506. });
  507. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  508. {
  509. b.Property<int>("Id")
  510. .ValueGeneratedOnAdd()
  511. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  512. b.Property<DateTime>("Created");
  513. b.Property<string>("FieldName");
  514. b.Property<string>("FieldType");
  515. b.Property<int>("GroupId");
  516. b.Property<bool>("IsDeleted");
  517. b.Property<DateTime>("Modified");
  518. b.Property<string>("ModifiedBy");
  519. b.Property<int>("Rank");
  520. b.HasKey("Id");
  521. b.HasIndex("GroupId");
  522. b.ToTable("UserDefinedFields");
  523. });
  524. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedGroup", b =>
  525. {
  526. b.Property<int>("Id")
  527. .ValueGeneratedOnAdd()
  528. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  529. b.Property<DateTime>("Created");
  530. b.Property<string>("Description");
  531. b.Property<bool>("IsDeleted");
  532. b.Property<DateTime>("Modified");
  533. b.Property<string>("ModifiedBy");
  534. b.Property<int>("Rank");
  535. b.Property<int>("UsageType");
  536. b.HasKey("Id");
  537. b.ToTable("UserDefinedGroups");
  538. });
  539. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  540. {
  541. b.Property<int>("Id")
  542. .ValueGeneratedOnAdd()
  543. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  544. b.Property<string>("Code");
  545. b.Property<DateTime>("Created");
  546. b.Property<string>("Description");
  547. b.Property<bool>("IsDeleted");
  548. b.Property<DateTime>("Modified");
  549. b.Property<string>("ModifiedBy");
  550. b.Property<int>("ProvinceId");
  551. b.HasKey("Id");
  552. b.HasIndex("ProvinceId");
  553. b.ToTable("Cities");
  554. });
  555. modelBuilder.Entity("UnivateProperties_API.Model.Region.Province", b =>
  556. {
  557. b.Property<int>("Id")
  558. .ValueGeneratedOnAdd()
  559. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  560. b.Property<string>("Code");
  561. b.Property<DateTime>("Created");
  562. b.Property<string>("Description");
  563. b.Property<bool>("IsDeleted");
  564. b.Property<DateTime>("Modified");
  565. b.Property<string>("ModifiedBy");
  566. b.HasKey("Id");
  567. b.ToTable("Provinces");
  568. });
  569. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  570. {
  571. b.Property<int>("Id")
  572. .ValueGeneratedOnAdd()
  573. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  574. b.Property<int>("CityId");
  575. b.Property<DateTime>("Created");
  576. b.Property<string>("Description");
  577. b.Property<bool>("IsDeleted");
  578. b.Property<DateTime>("Modified");
  579. b.Property<string>("ModifiedBy");
  580. b.Property<string>("PostalCode");
  581. b.HasKey("Id");
  582. b.HasIndex("CityId");
  583. b.ToTable("Suburbs");
  584. });
  585. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Season", b =>
  586. {
  587. b.Property<int>("Id")
  588. .ValueGeneratedOnAdd()
  589. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  590. b.Property<DateTime>("Created");
  591. b.Property<bool>("IsDeleted");
  592. b.Property<DateTime>("Modified");
  593. b.Property<string>("ModifiedBy");
  594. b.Property<string>("Name");
  595. b.HasKey("Id");
  596. b.ToTable("Seasons");
  597. });
  598. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Status", b =>
  599. {
  600. b.Property<int>("Id")
  601. .ValueGeneratedOnAdd()
  602. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  603. b.Property<string>("Code");
  604. b.Property<DateTime>("Created");
  605. b.Property<string>("Description");
  606. b.Property<bool>("IsDeleted");
  607. b.Property<DateTime>("Modified");
  608. b.Property<string>("ModifiedBy");
  609. b.Property<int>("StatusType");
  610. b.HasKey("Id");
  611. b.ToTable("Status");
  612. });
  613. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  614. {
  615. b.Property<int>("Id")
  616. .ValueGeneratedOnAdd()
  617. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  618. b.Property<int?>("AgencyId");
  619. b.Property<bool>("AgentAsRep");
  620. b.Property<double>("AgentCommision");
  621. b.Property<int?>("AgentId");
  622. b.Property<DateTime>("ArrivalDate");
  623. b.Property<double>("AskingPrice");
  624. b.Property<string>("BankedWith");
  625. b.Property<int>("Bedrooms");
  626. b.Property<DateTime>("Created");
  627. b.Property<bool>("CurrentYearBanked");
  628. b.Property<DateTime>("DateMandated");
  629. b.Property<DateTime>("DepartureDate");
  630. b.Property<string>("DisplayOwner");
  631. b.Property<bool>("IsDeleted");
  632. b.Property<bool>("LeviesPaidInFull");
  633. b.Property<double>("LevyAmount");
  634. b.Property<bool>("Mandate");
  635. b.Property<int>("MaxSleep");
  636. b.Property<DateTime>("Modified");
  637. b.Property<string>("ModifiedBy");
  638. b.Property<string>("Module");
  639. b.Property<DateTime>("OriginalPurchaseDate");
  640. b.Property<double>("OriginalPurchasePrice");
  641. b.Property<bool>("OtherResort");
  642. b.Property<string>("OtherResortName");
  643. b.Property<int>("OwnerId");
  644. b.Property<bool>("Publish");
  645. b.Property<DateTime>("PulbishedDate");
  646. b.Property<bool>("ReferedByAgent");
  647. b.Property<int>("RegionId");
  648. b.Property<string>("ResortCode");
  649. b.Property<string>("ResortName");
  650. b.Property<string>("Season");
  651. b.Property<double>("SellPrice");
  652. b.Property<int>("StatusId");
  653. b.Property<string>("UnitNumber");
  654. b.Property<string>("WeekNumber");
  655. b.Property<bool>("WeekPlacedForRental");
  656. b.Property<string>("WeekStatus");
  657. b.Property<int>("WeekType");
  658. b.HasKey("Id");
  659. b.HasIndex("AgencyId");
  660. b.HasIndex("AgentId");
  661. b.HasIndex("OwnerId");
  662. b.HasIndex("RegionId");
  663. b.HasIndex("StatusId");
  664. b.ToTable("Weeks");
  665. });
  666. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfiguration", b =>
  667. {
  668. b.Property<int>("Id")
  669. .ValueGeneratedOnAdd()
  670. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  671. b.Property<int>("Adults");
  672. b.Property<int>("Bedrooms");
  673. b.Property<int>("Children");
  674. b.Property<string>("Code");
  675. b.Property<DateTime>("Created");
  676. b.Property<bool>("IsDeleted");
  677. b.Property<DateTime>("Modified");
  678. b.Property<string>("ModifiedBy");
  679. b.HasKey("Id");
  680. b.HasIndex("Code")
  681. .IsUnique()
  682. .HasFilter("[Code] IS NOT NULL");
  683. b.ToTable("UnitConfigurations");
  684. });
  685. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  686. {
  687. b.Property<int>("Id")
  688. .ValueGeneratedOnAdd()
  689. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  690. b.Property<DateTime>("Created");
  691. b.Property<string>("Description");
  692. b.Property<bool>("IsDeleted");
  693. b.Property<DateTime>("Modified");
  694. b.Property<string>("ModifiedBy");
  695. b.Property<int>("UnitConfigurationId");
  696. b.HasKey("Id");
  697. b.HasIndex("UnitConfigurationId");
  698. b.ToTable("UnitConfigurationTypes");
  699. });
  700. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agency", b =>
  701. {
  702. b.Property<int>("Id")
  703. .ValueGeneratedOnAdd()
  704. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  705. b.Property<string>("AgencyName");
  706. b.Property<string>("CompanyRegNumber");
  707. b.Property<DateTime>("Created");
  708. b.Property<string>("EAABEFFCNumber");
  709. b.Property<bool>("IsDeleted");
  710. b.Property<DateTime>("Modified");
  711. b.Property<string>("ModifiedBy");
  712. b.HasKey("Id");
  713. b.ToTable("Agencies");
  714. });
  715. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  716. {
  717. b.Property<int>("Id")
  718. .ValueGeneratedOnAdd()
  719. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  720. b.Property<int?>("AgencyId");
  721. b.Property<string>("CellNumber");
  722. b.Property<DateTime>("Created");
  723. b.Property<string>("Email");
  724. b.Property<bool>("IsDeleted");
  725. b.Property<DateTime>("Modified");
  726. b.Property<string>("ModifiedBy");
  727. b.Property<string>("Name");
  728. b.Property<string>("Surname");
  729. b.Property<string>("Telephone");
  730. b.Property<int?>("TemplateId");
  731. b.Property<int?>("UserId");
  732. b.HasKey("Id");
  733. b.HasIndex("AgencyId");
  734. b.HasIndex("TemplateId");
  735. b.HasIndex("UserId");
  736. b.ToTable("Agents");
  737. });
  738. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  739. {
  740. b.Property<int>("Id")
  741. .ValueGeneratedOnAdd()
  742. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  743. b.Property<int?>("AddressId");
  744. b.Property<int?>("BankAccountId");
  745. b.Property<string>("CellNumber");
  746. b.Property<string>("CompanyRegNumber");
  747. b.Property<DateTime>("Created");
  748. b.Property<string>("Email");
  749. b.Property<int>("HowMarried");
  750. b.Property<string>("IdNumber");
  751. b.Property<string>("IncomeTaxNumber");
  752. b.Property<bool>("IsDeleted");
  753. b.Property<DateTime>("Modified");
  754. b.Property<string>("ModifiedBy");
  755. b.Property<string>("Name");
  756. b.Property<string>("SpouseCellnumber");
  757. b.Property<string>("SpouseEmail");
  758. b.Property<string>("SpouseName");
  759. b.Property<string>("SpouseSurname");
  760. b.Property<string>("SpouseTelephone");
  761. b.Property<string>("Surname");
  762. b.Property<string>("Telephone");
  763. b.Property<int?>("TemplateId");
  764. b.Property<int?>("UserId");
  765. b.HasKey("Id");
  766. b.HasIndex("AddressId");
  767. b.HasIndex("BankAccountId");
  768. b.HasIndex("TemplateId");
  769. b.HasIndex("UserId");
  770. b.HasIndex("Telephone", "CellNumber", "Email")
  771. .IsUnique()
  772. .HasFilter("[Telephone] IS NOT NULL AND [CellNumber] IS NOT NULL AND [Email] IS NOT NULL");
  773. b.ToTable("Individuals");
  774. });
  775. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  776. {
  777. b.Property<int>("Id")
  778. .ValueGeneratedOnAdd()
  779. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  780. b.Property<string>("CellNumber");
  781. b.Property<DateTime>("Created");
  782. b.Property<string>("Email");
  783. b.Property<bool>("IsDeleted");
  784. b.Property<DateTime>("Modified");
  785. b.Property<string>("ModifiedBy");
  786. b.Property<string>("Name");
  787. b.Property<string>("Surname");
  788. b.Property<string>("Telephone");
  789. b.Property<int?>("UserId");
  790. b.HasKey("Id");
  791. b.HasIndex("UserId");
  792. b.ToTable("Person");
  793. });
  794. modelBuilder.Entity("UnivateProperties_API.Model.Users.User", b =>
  795. {
  796. b.Property<int>("Id")
  797. .ValueGeneratedOnAdd()
  798. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  799. b.Property<bool>("AcceptedTerms");
  800. b.Property<DateTime>("Created");
  801. b.Property<string>("FPToken");
  802. b.Property<bool>("IsDeleted");
  803. b.Property<bool>("LoginPasswordChange");
  804. b.Property<DateTime>("Modified");
  805. b.Property<string>("ModifiedBy");
  806. b.Property<byte[]>("PasswordHash");
  807. b.Property<byte[]>("PasswordSalt");
  808. b.Property<string>("Role");
  809. b.Property<string>("Token");
  810. b.Property<string>("Username");
  811. b.Property<bool>("Verified");
  812. b.HasKey("Id");
  813. b.HasIndex("Username")
  814. .IsUnique()
  815. .HasFilter("[Username] IS NOT NULL");
  816. b.ToTable("Users");
  817. });
  818. modelBuilder.Entity("UnivateProperties_API.Model.Users.UserRole", b =>
  819. {
  820. b.Property<int>("Id")
  821. .ValueGeneratedOnAdd()
  822. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  823. b.Property<DateTime>("Created");
  824. b.Property<bool>("IsDeleted");
  825. b.Property<DateTime>("Modified");
  826. b.Property<string>("ModifiedBy");
  827. b.Property<string>("RoleDescription");
  828. b.Property<string>("RoleName");
  829. b.HasKey("Id");
  830. b.ToTable("Roles");
  831. });
  832. modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
  833. {
  834. b.HasOne("UnivateProperties_API.Model.Banks.Bank", "Bank")
  835. .WithMany()
  836. .HasForeignKey("BankId");
  837. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  838. .WithMany()
  839. .HasForeignKey("OwnerId");
  840. });
  841. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItem", b =>
  842. {
  843. b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign")
  844. .WithMany("Items")
  845. .HasForeignKey("CampaignId")
  846. .OnDelete(DeleteBehavior.Cascade);
  847. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Week")
  848. .WithMany()
  849. .HasForeignKey("WeekId")
  850. .OnDelete(DeleteBehavior.Cascade);
  851. });
  852. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItemPlaceHolder", b =>
  853. {
  854. b.HasOne("UnivateProperties_API.Model.Campaigns.CampaignItem", "CampaignItem")
  855. .WithMany("CampaignItemPlaceHolder")
  856. .HasForeignKey("CampaignItemId")
  857. .OnDelete(DeleteBehavior.Cascade);
  858. });
  859. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignPlaceHolder", b =>
  860. {
  861. b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign")
  862. .WithMany("PlaceHolders")
  863. .HasForeignKey("CampaignId")
  864. .OnDelete(DeleteBehavior.Cascade);
  865. });
  866. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  867. {
  868. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  869. .WithMany("Emails")
  870. .HasForeignKey("SenderId")
  871. .OnDelete(DeleteBehavior.Cascade);
  872. });
  873. modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b =>
  874. {
  875. b.HasOne("UnivateProperties_API.Model.Communication.Template", "Template")
  876. .WithMany("PlaceHolders")
  877. .HasForeignKey("TemplateId")
  878. .OnDelete(DeleteBehavior.Cascade);
  879. });
  880. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  881. {
  882. b.HasOne("UnivateProperties_API.Model.Communication.SMTPHost", "SMTPHost")
  883. .WithMany("SMTPAccounts")
  884. .HasForeignKey("SMTPHostId")
  885. .OnDelete(DeleteBehavior.Cascade);
  886. });
  887. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b =>
  888. {
  889. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  890. .WithMany("Templates")
  891. .HasForeignKey("SenderId");
  892. });
  893. modelBuilder.Entity("UnivateProperties_API.Model.Financial.Payment", b =>
  894. {
  895. b.HasOne("UnivateProperties_API.Model.Users.User", "CreatedBy")
  896. .WithMany()
  897. .HasForeignKey("CreatedById");
  898. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  899. .WithMany()
  900. .HasForeignKey("PropertyId");
  901. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  902. .WithMany()
  903. .HasForeignKey("TimeshareWeekId");
  904. });
  905. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  906. {
  907. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  908. .WithMany()
  909. .HasForeignKey("OwnerId");
  910. });
  911. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  912. {
  913. b.HasOne("UnivateProperties_API.Model.Users.Individual", "BidMaker")
  914. .WithMany()
  915. .HasForeignKey("BidMakerId");
  916. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  917. .WithMany("BidItems")
  918. .HasForeignKey("PropertyId");
  919. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  920. .WithMany()
  921. .HasForeignKey("StatusId");
  922. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  923. .WithMany("BidItems")
  924. .HasForeignKey("TimeshareWeekId");
  925. });
  926. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  927. {
  928. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  929. .WithMany("ProcessFlows")
  930. .HasForeignKey("PropertyID");
  931. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  932. .WithMany()
  933. .HasForeignKey("StatusID")
  934. .OnDelete(DeleteBehavior.Cascade);
  935. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Timeshare")
  936. .WithMany("ProcessFlows")
  937. .HasForeignKey("TimeshareID");
  938. });
  939. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  940. {
  941. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  942. .WithMany("Properties")
  943. .HasForeignKey("AgencyId");
  944. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  945. .WithMany("Properties")
  946. .HasForeignKey("AgentId");
  947. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  948. .WithMany("Properties")
  949. .HasForeignKey("OwnerId");
  950. b.HasOne("UnivateProperties_API.Model.Properties.PropertyType", "PropertyType")
  951. .WithMany()
  952. .HasForeignKey("PropertyTypeId")
  953. .OnDelete(DeleteBehavior.Cascade);
  954. });
  955. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  956. {
  957. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  958. .WithMany("PropertyImages")
  959. .HasForeignKey("PropertyId")
  960. .OnDelete(DeleteBehavior.Cascade);
  961. });
  962. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  963. {
  964. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  965. .WithMany("PropertyUserFields")
  966. .HasForeignKey("PropertyId")
  967. .OnDelete(DeleteBehavior.Cascade);
  968. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedField", "UserDefinedField")
  969. .WithMany()
  970. .HasForeignKey("UserDefinedFieldId")
  971. .OnDelete(DeleteBehavior.Cascade);
  972. });
  973. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  974. {
  975. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedGroup", "Group")
  976. .WithMany("Fields")
  977. .HasForeignKey("GroupId")
  978. .OnDelete(DeleteBehavior.Cascade);
  979. });
  980. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  981. {
  982. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  983. .WithMany()
  984. .HasForeignKey("ProvinceId")
  985. .OnDelete(DeleteBehavior.Cascade);
  986. });
  987. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  988. {
  989. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  990. .WithMany()
  991. .HasForeignKey("CityId")
  992. .OnDelete(DeleteBehavior.Cascade);
  993. });
  994. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  995. {
  996. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  997. .WithMany()
  998. .HasForeignKey("AgencyId");
  999. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  1000. .WithMany()
  1001. .HasForeignKey("AgentId");
  1002. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  1003. .WithMany()
  1004. .HasForeignKey("OwnerId")
  1005. .OnDelete(DeleteBehavior.Cascade);
  1006. b.HasOne("UnivateProperties_API.Model.Region.Province", "Region")
  1007. .WithMany()
  1008. .HasForeignKey("RegionId")
  1009. .OnDelete(DeleteBehavior.Cascade);
  1010. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  1011. .WithMany()
  1012. .HasForeignKey("StatusId")
  1013. .OnDelete(DeleteBehavior.Cascade);
  1014. });
  1015. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  1016. {
  1017. b.HasOne("UnivateProperties_API.Model.Timeshare.UnitConfiguration", "UnitConfiguration")
  1018. .WithMany("Types")
  1019. .HasForeignKey("UnitConfigurationId")
  1020. .OnDelete(DeleteBehavior.Cascade);
  1021. });
  1022. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  1023. {
  1024. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  1025. .WithMany("Agents")
  1026. .HasForeignKey("AgencyId");
  1027. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  1028. .WithMany("AgentBCC")
  1029. .HasForeignKey("TemplateId");
  1030. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  1031. .WithMany()
  1032. .HasForeignKey("UserId");
  1033. });
  1034. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  1035. {
  1036. b.HasOne("UnivateProperties_API.Model.Misc.Address", "Address")
  1037. .WithMany()
  1038. .HasForeignKey("AddressId");
  1039. b.HasOne("UnivateProperties_API.Model.Banks.BankAccount", "BankAccount")
  1040. .WithMany()
  1041. .HasForeignKey("BankAccountId");
  1042. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  1043. .WithMany("IndividualBCC")
  1044. .HasForeignKey("TemplateId");
  1045. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  1046. .WithMany()
  1047. .HasForeignKey("UserId");
  1048. });
  1049. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  1050. {
  1051. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  1052. .WithMany()
  1053. .HasForeignKey("UserId");
  1054. });
  1055. #pragma warning restore 612, 618
  1056. }
  1057. }
  1058. }