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.

20191003082255_IsDeleted.Designer.cs 34KB

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