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.

20191031084836_Carousel Stuff.Designer.cs 38KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Migrations;
  6. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  7. using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
  8. using UnivateProperties_API.Context;
  9. namespace UnivateProperties_API.Migrations
  10. {
  11. [DbContext(typeof(DataContext))]
  12. [Migration("20191031084836_Carousel Stuff")]
  13. partial class CarouselStuff
  14. {
  15. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder
  19. .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn)
  20. .HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
  21. .HasAnnotation("Relational:MaxIdentifierLength", 63);
  22. modelBuilder.Entity("UnivateProperties_API.Model.Banks.Bank", b =>
  23. {
  24. b.Property<int>("Id")
  25. .ValueGeneratedOnAdd();
  26. b.Property<DateTime>("Created");
  27. b.Property<bool>("IsDeleted");
  28. b.Property<DateTime>("Modified");
  29. b.Property<string>("ModifiedBy");
  30. b.Property<string>("Name");
  31. b.Property<string>("UniversalBranchCode");
  32. b.HasKey("Id");
  33. b.ToTable("Banks");
  34. });
  35. modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
  36. {
  37. b.Property<int>("Id")
  38. .ValueGeneratedOnAdd();
  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.Communication.Email", b =>
  53. {
  54. b.Property<int>("Id")
  55. .ValueGeneratedOnAdd();
  56. b.Property<string>("BCC");
  57. b.Property<string>("Body");
  58. b.Property<string>("CC");
  59. b.Property<string>("Comment");
  60. b.Property<DateTime>("Created");
  61. b.Property<bool>("IsBodyHtml");
  62. b.Property<bool>("IsDeleted");
  63. b.Property<DateTime>("Modified");
  64. b.Property<string>("ModifiedBy");
  65. b.Property<int>("SenderId");
  66. b.Property<string>("Subject");
  67. b.Property<string>("To");
  68. b.Property<string>("ToDisplay");
  69. b.HasKey("Id");
  70. b.HasIndex("SenderId");
  71. b.ToTable("Emails");
  72. });
  73. modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b =>
  74. {
  75. b.Property<int>("Id")
  76. .ValueGeneratedOnAdd();
  77. b.Property<string>("BoundTo");
  78. b.Property<string>("BoundToClass");
  79. b.Property<string>("BoundToClassDisplay");
  80. b.Property<DateTime>("Created");
  81. b.Property<bool>("IsDeleted");
  82. b.Property<DateTime>("Modified");
  83. b.Property<string>("ModifiedBy");
  84. b.Property<string>("Name");
  85. b.Property<int>("TemplateId");
  86. b.HasKey("Id");
  87. b.HasIndex("TemplateId");
  88. b.ToTable("PlaceHolders");
  89. });
  90. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  91. {
  92. b.Property<int>("Id")
  93. .ValueGeneratedOnAdd();
  94. b.Property<string>("Address");
  95. b.Property<DateTime>("Created");
  96. b.Property<string>("DisplayName");
  97. b.Property<bool>("IsDeleted");
  98. b.Property<DateTime>("Modified");
  99. b.Property<string>("ModifiedBy");
  100. b.Property<int>("SMTPHostId");
  101. b.HasKey("Id");
  102. b.HasIndex("SMTPHostId");
  103. b.ToTable("Accounts");
  104. });
  105. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPHost", b =>
  106. {
  107. b.Property<int>("Id")
  108. .ValueGeneratedOnAdd();
  109. b.Property<DateTime>("Created");
  110. b.Property<string>("Host");
  111. b.Property<bool>("IsDeleted");
  112. b.Property<DateTime>("Modified");
  113. b.Property<string>("ModifiedBy");
  114. b.Property<bool>("NeedsAuthorize");
  115. b.Property<string>("Password");
  116. b.Property<bool>("UseSSL");
  117. b.Property<string>("User");
  118. b.HasKey("Id");
  119. b.ToTable("Hosts");
  120. });
  121. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b =>
  122. {
  123. b.Property<int>("Id")
  124. .ValueGeneratedOnAdd();
  125. b.Property<string>("Body");
  126. b.Property<DateTime>("Created");
  127. b.Property<bool>("IsDeleted");
  128. b.Property<DateTime>("Modified");
  129. b.Property<string>("ModifiedBy");
  130. b.Property<string>("Name");
  131. b.Property<string>("Subject");
  132. b.HasKey("Id");
  133. b.ToTable("Templates");
  134. });
  135. modelBuilder.Entity("UnivateProperties_API.Model.Logging.SearchLog", b =>
  136. {
  137. b.Property<int>("Id")
  138. .ValueGeneratedOnAdd();
  139. b.Property<DateTime>("Created");
  140. b.Property<bool>("IsDeleted");
  141. b.Property<DateTime>("Modified");
  142. b.Property<string>("ModifiedBy");
  143. b.Property<string>("Search");
  144. b.Property<string>("Type");
  145. b.HasKey("Id");
  146. b.ToTable("SearchLogs");
  147. });
  148. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  149. {
  150. b.Property<int>("Id")
  151. .ValueGeneratedOnAdd();
  152. b.Property<string>("City");
  153. b.Property<DateTime>("Created");
  154. b.Property<bool>("IsDeleted");
  155. b.Property<DateTime>("Modified");
  156. b.Property<string>("ModifiedBy");
  157. b.Property<string>("PostalCode");
  158. b.Property<string>("Street");
  159. b.Property<string>("StreetNumber");
  160. b.Property<string>("Suburb");
  161. b.HasKey("Id");
  162. b.ToTable("Addresses");
  163. });
  164. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Carousel", b =>
  165. {
  166. b.Property<int>("Id")
  167. .ValueGeneratedOnAdd();
  168. b.Property<DateTime>("Created");
  169. b.Property<string>("Header");
  170. b.Property<string>("Image");
  171. b.Property<bool>("IsDeleted");
  172. b.Property<DateTime>("Modified");
  173. b.Property<string>("ModifiedBy");
  174. b.Property<int>("PropertyId");
  175. b.Property<int>("TimeshareId");
  176. b.HasKey("Id");
  177. b.ToTable("Carousel");
  178. });
  179. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Location", b =>
  180. {
  181. b.Property<int>("Id")
  182. .ValueGeneratedOnAdd();
  183. b.Property<DateTime>("Created");
  184. b.Property<bool>("IsDeleted");
  185. b.Property<bool>("IsTesting");
  186. b.Property<DateTime>("Modified");
  187. b.Property<string>("ModifiedBy");
  188. b.Property<string>("PropertyImageLocation");
  189. b.HasKey("Id");
  190. b.ToTable("Location");
  191. });
  192. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  193. {
  194. b.Property<int>("Id")
  195. .ValueGeneratedOnAdd();
  196. b.Property<double>("Amount");
  197. b.Property<int?>("BidMakerId");
  198. b.Property<string>("Comment");
  199. b.Property<DateTime>("Created");
  200. b.Property<string>("DeclinedReason");
  201. b.Property<bool>("IsDeleted");
  202. b.Property<DateTime>("Modified");
  203. b.Property<string>("ModifiedBy");
  204. b.Property<int?>("PropertyId");
  205. b.Property<int?>("StatusId");
  206. b.Property<int?>("TimeshareWeekId");
  207. b.HasKey("Id");
  208. b.HasIndex("BidMakerId");
  209. b.HasIndex("PropertyId");
  210. b.HasIndex("StatusId");
  211. b.HasIndex("TimeshareWeekId");
  212. b.ToTable("BidItems");
  213. });
  214. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  215. {
  216. b.Property<int>("Id")
  217. .ValueGeneratedOnAdd();
  218. b.Property<DateTime>("Created");
  219. b.Property<bool>("IsDeleted");
  220. b.Property<DateTime>("Modified");
  221. b.Property<string>("ModifiedBy");
  222. b.Property<int?>("PropertyID");
  223. b.Property<int>("StatusID");
  224. b.Property<int?>("TimeshareID");
  225. b.HasKey("Id");
  226. b.HasIndex("PropertyID");
  227. b.HasIndex("StatusID");
  228. b.HasIndex("TimeshareID");
  229. b.ToTable("ProcessFlows");
  230. });
  231. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  232. {
  233. b.Property<int>("Id")
  234. .ValueGeneratedOnAdd();
  235. b.Property<string>("AddressLine1");
  236. b.Property<string>("AddressLine2");
  237. b.Property<string>("AddressLine3");
  238. b.Property<int?>("AgencyId");
  239. b.Property<int?>("AgentId");
  240. b.Property<int>("CityId");
  241. b.Property<DateTime>("Created");
  242. b.Property<string>("Description");
  243. b.Property<bool>("IsDeleted");
  244. b.Property<bool>("IsSale");
  245. b.Property<DateTime>("Modified");
  246. b.Property<string>("ModifiedBy");
  247. b.Property<decimal>("OperationalCosts");
  248. b.Property<int?>("OwnerId");
  249. b.Property<decimal>("Price");
  250. b.Property<string>("PricePer");
  251. b.Property<string>("PropertyName");
  252. b.Property<int>("PropertyTypeId");
  253. b.Property<int>("ProvinceId");
  254. b.Property<bool>("Published");
  255. b.Property<string>("ShortDescription");
  256. b.Property<int?>("StatusId");
  257. b.Property<int>("SuburbId");
  258. b.Property<string>("Unit");
  259. b.Property<string>("Video");
  260. b.Property<string>("VirtualTour");
  261. b.HasKey("Id");
  262. b.HasIndex("AgencyId");
  263. b.HasIndex("AgentId");
  264. b.HasIndex("CityId");
  265. b.HasIndex("OwnerId");
  266. b.HasIndex("PropertyTypeId");
  267. b.HasIndex("ProvinceId");
  268. b.HasIndex("StatusId");
  269. b.HasIndex("SuburbId");
  270. b.ToTable("Properties");
  271. });
  272. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  273. {
  274. b.Property<int>("Id")
  275. .ValueGeneratedOnAdd();
  276. b.Property<DateTime>("Created");
  277. b.Property<string>("Image");
  278. b.Property<bool>("IsDefault");
  279. b.Property<bool>("IsDeleted");
  280. b.Property<DateTime>("Modified");
  281. b.Property<string>("ModifiedBy");
  282. b.Property<int>("PropertyId");
  283. b.HasKey("Id");
  284. b.HasIndex("PropertyId");
  285. b.ToTable("PropertyImages");
  286. });
  287. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyType", b =>
  288. {
  289. b.Property<int>("Id")
  290. .ValueGeneratedOnAdd();
  291. b.Property<DateTime>("Created");
  292. b.Property<string>("Description");
  293. b.Property<bool>("IsDeleted");
  294. b.Property<DateTime>("Modified");
  295. b.Property<string>("ModifiedBy");
  296. b.Property<int>("UsageType");
  297. b.HasKey("Id");
  298. b.ToTable("PropertyTypes");
  299. });
  300. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  301. {
  302. b.Property<int>("Id")
  303. .ValueGeneratedOnAdd();
  304. b.Property<DateTime>("Created");
  305. b.Property<string>("Description");
  306. b.Property<bool>("IsDeleted");
  307. b.Property<DateTime>("Modified");
  308. b.Property<string>("ModifiedBy");
  309. b.Property<int>("PropertyId");
  310. b.Property<int>("UserDefinedFieldId");
  311. b.Property<string>("Value");
  312. b.HasKey("Id");
  313. b.HasIndex("PropertyId");
  314. b.HasIndex("UserDefinedFieldId");
  315. b.ToTable("PropertyUserFields");
  316. });
  317. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  318. {
  319. b.Property<int>("Id")
  320. .ValueGeneratedOnAdd();
  321. b.Property<DateTime>("Created");
  322. b.Property<string>("FieldName");
  323. b.Property<string>("FieldType");
  324. b.Property<int>("GroupId");
  325. b.Property<bool>("IsDeleted");
  326. b.Property<DateTime>("Modified");
  327. b.Property<string>("ModifiedBy");
  328. b.Property<int>("Rank");
  329. b.HasKey("Id");
  330. b.HasIndex("GroupId");
  331. b.ToTable("UserDefinedFields");
  332. });
  333. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedGroup", b =>
  334. {
  335. b.Property<int>("Id")
  336. .ValueGeneratedOnAdd();
  337. b.Property<DateTime>("Created");
  338. b.Property<string>("Description");
  339. b.Property<bool>("IsDeleted");
  340. b.Property<DateTime>("Modified");
  341. b.Property<string>("ModifiedBy");
  342. b.Property<int>("Rank");
  343. b.Property<int>("UsageType");
  344. b.HasKey("Id");
  345. b.ToTable("UserDefinedGroups");
  346. });
  347. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  348. {
  349. b.Property<int>("Id")
  350. .ValueGeneratedOnAdd();
  351. b.Property<string>("Code");
  352. b.Property<DateTime>("Created");
  353. b.Property<string>("Description");
  354. b.Property<bool>("IsDeleted");
  355. b.Property<DateTime>("Modified");
  356. b.Property<string>("ModifiedBy");
  357. b.Property<int>("ProvinceId");
  358. b.HasKey("Id");
  359. b.HasIndex("ProvinceId");
  360. b.ToTable("Cities");
  361. });
  362. modelBuilder.Entity("UnivateProperties_API.Model.Region.Province", b =>
  363. {
  364. b.Property<int>("Id")
  365. .ValueGeneratedOnAdd();
  366. b.Property<string>("Code");
  367. b.Property<DateTime>("Created");
  368. b.Property<string>("Description");
  369. b.Property<bool>("IsDeleted");
  370. b.Property<DateTime>("Modified");
  371. b.Property<string>("ModifiedBy");
  372. b.HasKey("Id");
  373. b.ToTable("Provinces");
  374. });
  375. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  376. {
  377. b.Property<int>("Id")
  378. .ValueGeneratedOnAdd();
  379. b.Property<int>("CityId");
  380. b.Property<DateTime>("Created");
  381. b.Property<string>("Description");
  382. b.Property<bool>("IsDeleted");
  383. b.Property<DateTime>("Modified");
  384. b.Property<string>("ModifiedBy");
  385. b.Property<string>("PostalCode");
  386. b.HasKey("Id");
  387. b.HasIndex("CityId");
  388. b.ToTable("Suburbs");
  389. });
  390. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Season", b =>
  391. {
  392. b.Property<int>("Id")
  393. .ValueGeneratedOnAdd();
  394. b.Property<DateTime>("Created");
  395. b.Property<bool>("IsDeleted");
  396. b.Property<DateTime>("Modified");
  397. b.Property<string>("ModifiedBy");
  398. b.Property<string>("Name");
  399. b.HasKey("Id");
  400. b.ToTable("Seasons");
  401. });
  402. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Status", b =>
  403. {
  404. b.Property<int>("Id")
  405. .ValueGeneratedOnAdd();
  406. b.Property<string>("Code");
  407. b.Property<DateTime>("Created");
  408. b.Property<string>("Description");
  409. b.Property<bool>("IsDeleted");
  410. b.Property<DateTime>("Modified");
  411. b.Property<string>("ModifiedBy");
  412. b.Property<int>("StatusType");
  413. b.HasKey("Id");
  414. b.ToTable("Status");
  415. });
  416. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  417. {
  418. b.Property<int>("Id")
  419. .ValueGeneratedOnAdd();
  420. b.Property<int?>("AgencyId");
  421. b.Property<bool>("AgentAsRep");
  422. b.Property<int?>("AgentId");
  423. b.Property<DateTime>("ArrivalDate");
  424. b.Property<string>("BankedWith");
  425. b.Property<int>("Bedrooms");
  426. b.Property<DateTime>("Created");
  427. b.Property<bool>("CurrentYearBanked");
  428. b.Property<DateTime>("DepartureDate");
  429. b.Property<bool>("IsDeleted");
  430. b.Property<bool>("LeviesPaidInFull");
  431. b.Property<double>("LevyAmount");
  432. b.Property<int>("MaxSleep");
  433. b.Property<DateTime>("Modified");
  434. b.Property<string>("ModifiedBy");
  435. b.Property<string>("Module");
  436. b.Property<DateTime>("OriginalPurchaseDate");
  437. b.Property<double>("OriginalPurchasePrice");
  438. b.Property<bool>("OtherResort");
  439. b.Property<int>("OwnerId");
  440. b.Property<bool>("ReferedByAgent");
  441. b.Property<int>("RegionId");
  442. b.Property<string>("ResortCode");
  443. b.Property<string>("ResortName");
  444. b.Property<string>("Season");
  445. b.Property<double>("SellPrice");
  446. b.Property<int>("StatusId");
  447. b.Property<string>("UnitNumber");
  448. b.Property<string>("WeekNumber");
  449. b.Property<bool>("WeekPlacedForRental");
  450. b.HasKey("Id");
  451. b.HasIndex("AgencyId");
  452. b.HasIndex("AgentId");
  453. b.HasIndex("OwnerId");
  454. b.HasIndex("RegionId");
  455. b.HasIndex("StatusId");
  456. b.ToTable("Weeks");
  457. });
  458. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfiguration", b =>
  459. {
  460. b.Property<int>("Id")
  461. .ValueGeneratedOnAdd();
  462. b.Property<int>("Adults");
  463. b.Property<int>("Bedrooms");
  464. b.Property<int>("Children");
  465. b.Property<string>("Code");
  466. b.Property<DateTime>("Created");
  467. b.Property<bool>("IsDeleted");
  468. b.Property<DateTime>("Modified");
  469. b.Property<string>("ModifiedBy");
  470. b.HasKey("Id");
  471. b.HasIndex("Code")
  472. .IsUnique();
  473. b.ToTable("UnitConfigurations");
  474. });
  475. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  476. {
  477. b.Property<int>("Id")
  478. .ValueGeneratedOnAdd();
  479. b.Property<DateTime>("Created");
  480. b.Property<string>("Description");
  481. b.Property<bool>("IsDeleted");
  482. b.Property<DateTime>("Modified");
  483. b.Property<string>("ModifiedBy");
  484. b.Property<int>("UnitConfigurationId");
  485. b.HasKey("Id");
  486. b.HasIndex("UnitConfigurationId");
  487. b.ToTable("UnitConfigurationTypes");
  488. });
  489. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agency", b =>
  490. {
  491. b.Property<int>("Id")
  492. .ValueGeneratedOnAdd();
  493. b.Property<string>("AgencyName");
  494. b.Property<string>("CompanyRegNumber");
  495. b.Property<DateTime>("Created");
  496. b.Property<string>("EAABEFFCNumber");
  497. b.Property<bool>("IsDeleted");
  498. b.Property<DateTime>("Modified");
  499. b.Property<string>("ModifiedBy");
  500. b.HasKey("Id");
  501. b.ToTable("Agencies");
  502. });
  503. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  504. {
  505. b.Property<int>("Id")
  506. .ValueGeneratedOnAdd();
  507. b.Property<int?>("AgencyId");
  508. b.Property<string>("CellNumber");
  509. b.Property<DateTime>("Created");
  510. b.Property<string>("Email");
  511. b.Property<bool>("IsDeleted");
  512. b.Property<DateTime>("Modified");
  513. b.Property<string>("ModifiedBy");
  514. b.Property<string>("Name");
  515. b.Property<string>("Surname");
  516. b.Property<string>("Telephone");
  517. b.Property<int?>("UserId");
  518. b.HasKey("Id");
  519. b.HasIndex("AgencyId");
  520. b.HasIndex("UserId");
  521. b.ToTable("Agents");
  522. });
  523. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  524. {
  525. b.Property<int>("Id")
  526. .ValueGeneratedOnAdd();
  527. b.Property<int?>("AddressId");
  528. b.Property<string>("CellNumber");
  529. b.Property<string>("CompanyRegNumber");
  530. b.Property<DateTime>("Created");
  531. b.Property<string>("Email");
  532. b.Property<string>("IdNumber");
  533. b.Property<string>("IncomeTaxNumber");
  534. b.Property<bool>("IsDeleted");
  535. b.Property<string>("MaritalStatus");
  536. b.Property<DateTime>("Modified");
  537. b.Property<string>("ModifiedBy");
  538. b.Property<string>("Name");
  539. b.Property<string>("Surname");
  540. b.Property<string>("Telephone");
  541. b.Property<int?>("UserId");
  542. b.HasKey("Id");
  543. b.HasIndex("AddressId");
  544. b.HasIndex("UserId");
  545. b.HasIndex("Telephone", "CellNumber", "Email")
  546. .IsUnique();
  547. b.ToTable("Individuals");
  548. });
  549. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  550. {
  551. b.Property<int>("Id")
  552. .ValueGeneratedOnAdd();
  553. b.Property<string>("CellNumber");
  554. b.Property<DateTime>("Created");
  555. b.Property<string>("Email");
  556. b.Property<bool>("IsDeleted");
  557. b.Property<DateTime>("Modified");
  558. b.Property<string>("ModifiedBy");
  559. b.Property<string>("Name");
  560. b.Property<string>("Surname");
  561. b.Property<string>("Telephone");
  562. b.Property<int?>("UserId");
  563. b.HasKey("Id");
  564. b.HasIndex("UserId");
  565. b.ToTable("Person");
  566. });
  567. modelBuilder.Entity("UnivateProperties_API.Model.Users.User", b =>
  568. {
  569. b.Property<int>("Id")
  570. .ValueGeneratedOnAdd();
  571. b.Property<DateTime>("Created");
  572. b.Property<bool>("IsDeleted");
  573. b.Property<DateTime>("Modified");
  574. b.Property<string>("ModifiedBy");
  575. b.Property<byte[]>("PasswordHash");
  576. b.Property<byte[]>("PasswordSalt");
  577. b.Property<string>("Role");
  578. b.Property<string>("Token");
  579. b.Property<string>("Username");
  580. b.Property<bool>("Verified");
  581. b.HasKey("Id");
  582. b.HasIndex("Username")
  583. .IsUnique();
  584. b.ToTable("Users");
  585. });
  586. modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
  587. {
  588. b.HasOne("UnivateProperties_API.Model.Banks.Bank", "Bank")
  589. .WithMany()
  590. .HasForeignKey("BankId")
  591. .OnDelete(DeleteBehavior.Cascade);
  592. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  593. .WithMany()
  594. .HasForeignKey("OwnerId");
  595. });
  596. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  597. {
  598. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  599. .WithMany("Emails")
  600. .HasForeignKey("SenderId")
  601. .OnDelete(DeleteBehavior.Cascade);
  602. });
  603. modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b =>
  604. {
  605. b.HasOne("UnivateProperties_API.Model.Communication.Template", "Template")
  606. .WithMany("PlaceHolders")
  607. .HasForeignKey("TemplateId")
  608. .OnDelete(DeleteBehavior.Cascade);
  609. });
  610. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  611. {
  612. b.HasOne("UnivateProperties_API.Model.Communication.SMTPHost", "SMTPHost")
  613. .WithMany("SMTPAccounts")
  614. .HasForeignKey("SMTPHostId")
  615. .OnDelete(DeleteBehavior.Cascade);
  616. });
  617. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  618. {
  619. b.HasOne("UnivateProperties_API.Model.Users.Individual", "BidMaker")
  620. .WithMany()
  621. .HasForeignKey("BidMakerId");
  622. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  623. .WithMany("BidItems")
  624. .HasForeignKey("PropertyId");
  625. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  626. .WithMany()
  627. .HasForeignKey("StatusId");
  628. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  629. .WithMany("BidItems")
  630. .HasForeignKey("TimeshareWeekId");
  631. });
  632. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  633. {
  634. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  635. .WithMany("ProcessFlows")
  636. .HasForeignKey("PropertyID");
  637. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  638. .WithMany()
  639. .HasForeignKey("StatusID")
  640. .OnDelete(DeleteBehavior.Cascade);
  641. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Timeshare")
  642. .WithMany("ProcessFlows")
  643. .HasForeignKey("TimeshareID");
  644. });
  645. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  646. {
  647. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  648. .WithMany("Properties")
  649. .HasForeignKey("AgencyId");
  650. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  651. .WithMany("Properties")
  652. .HasForeignKey("AgentId");
  653. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  654. .WithMany()
  655. .HasForeignKey("CityId")
  656. .OnDelete(DeleteBehavior.Cascade);
  657. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  658. .WithMany("Properties")
  659. .HasForeignKey("OwnerId");
  660. b.HasOne("UnivateProperties_API.Model.Properties.PropertyType", "PropertyType")
  661. .WithMany()
  662. .HasForeignKey("PropertyTypeId")
  663. .OnDelete(DeleteBehavior.Cascade);
  664. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  665. .WithMany()
  666. .HasForeignKey("ProvinceId")
  667. .OnDelete(DeleteBehavior.Cascade);
  668. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  669. .WithMany()
  670. .HasForeignKey("StatusId");
  671. b.HasOne("UnivateProperties_API.Model.Region.Suburb", "Suburb")
  672. .WithMany()
  673. .HasForeignKey("SuburbId")
  674. .OnDelete(DeleteBehavior.Cascade);
  675. });
  676. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  677. {
  678. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  679. .WithMany("PropertyImages")
  680. .HasForeignKey("PropertyId")
  681. .OnDelete(DeleteBehavior.Cascade);
  682. });
  683. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  684. {
  685. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  686. .WithMany("PropertyUserFields")
  687. .HasForeignKey("PropertyId")
  688. .OnDelete(DeleteBehavior.Cascade);
  689. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedField", "UserDefinedField")
  690. .WithMany()
  691. .HasForeignKey("UserDefinedFieldId")
  692. .OnDelete(DeleteBehavior.Cascade);
  693. });
  694. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  695. {
  696. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedGroup", "Group")
  697. .WithMany("Fields")
  698. .HasForeignKey("GroupId")
  699. .OnDelete(DeleteBehavior.Cascade);
  700. });
  701. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  702. {
  703. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  704. .WithMany()
  705. .HasForeignKey("ProvinceId")
  706. .OnDelete(DeleteBehavior.Cascade);
  707. });
  708. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  709. {
  710. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  711. .WithMany()
  712. .HasForeignKey("CityId")
  713. .OnDelete(DeleteBehavior.Cascade);
  714. });
  715. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  716. {
  717. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  718. .WithMany()
  719. .HasForeignKey("AgencyId");
  720. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  721. .WithMany()
  722. .HasForeignKey("AgentId");
  723. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  724. .WithMany()
  725. .HasForeignKey("OwnerId")
  726. .OnDelete(DeleteBehavior.Cascade);
  727. b.HasOne("UnivateProperties_API.Model.Region.Province", "Region")
  728. .WithMany()
  729. .HasForeignKey("RegionId")
  730. .OnDelete(DeleteBehavior.Cascade);
  731. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  732. .WithMany()
  733. .HasForeignKey("StatusId")
  734. .OnDelete(DeleteBehavior.Cascade);
  735. });
  736. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  737. {
  738. b.HasOne("UnivateProperties_API.Model.Timeshare.UnitConfiguration", "UnitConfiguration")
  739. .WithMany("Types")
  740. .HasForeignKey("UnitConfigurationId")
  741. .OnDelete(DeleteBehavior.Cascade);
  742. });
  743. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  744. {
  745. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  746. .WithMany("Agents")
  747. .HasForeignKey("AgencyId");
  748. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  749. .WithMany()
  750. .HasForeignKey("UserId");
  751. });
  752. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  753. {
  754. b.HasOne("UnivateProperties_API.Model.Misc.Address", "Address")
  755. .WithMany()
  756. .HasForeignKey("AddressId");
  757. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  758. .WithMany()
  759. .HasForeignKey("UserId");
  760. });
  761. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  762. {
  763. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  764. .WithMany()
  765. .HasForeignKey("UserId");
  766. });
  767. #pragma warning restore 612, 618
  768. }
  769. }
  770. }