API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20200917125427_priceredused.Designer.cs 53KB

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