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.

DataContextModelSnapshot.cs 55KB

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