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.

20200122131033_DatePublishedToPorp.Designer.cs 41KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352
  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("20200122131033_DatePublishedToPorp")]
  13. partial class DatePublishedToPorp
  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<bool>("Default");
  97. b.Property<string>("DisplayName");
  98. b.Property<bool>("IsDeleted");
  99. b.Property<DateTime>("Modified");
  100. b.Property<string>("ModifiedBy");
  101. b.Property<int>("SMTPHostId");
  102. b.HasKey("Id");
  103. b.HasIndex("SMTPHostId");
  104. b.ToTable("Accounts");
  105. });
  106. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPHost", b =>
  107. {
  108. b.Property<int>("Id")
  109. .ValueGeneratedOnAdd();
  110. b.Property<DateTime>("Created");
  111. b.Property<string>("Host");
  112. b.Property<bool>("IsDeleted");
  113. b.Property<DateTime>("Modified");
  114. b.Property<string>("ModifiedBy");
  115. b.Property<bool>("NeedsAuthorize");
  116. b.Property<string>("Password");
  117. b.Property<bool>("UseSSL");
  118. b.Property<string>("User");
  119. b.HasKey("Id");
  120. b.ToTable("Hosts");
  121. });
  122. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b =>
  123. {
  124. b.Property<int>("Id")
  125. .ValueGeneratedOnAdd();
  126. b.Property<string>("Body");
  127. b.Property<DateTime>("Created");
  128. b.Property<bool>("IsDeleted");
  129. b.Property<DateTime>("Modified");
  130. b.Property<string>("ModifiedBy");
  131. b.Property<string>("Name");
  132. b.Property<int?>("SenderId");
  133. b.Property<string>("Subject");
  134. b.HasKey("Id");
  135. b.HasIndex("SenderId");
  136. b.ToTable("Templates");
  137. });
  138. modelBuilder.Entity("UnivateProperties_API.Model.Financial.Payment", b =>
  139. {
  140. b.Property<int>("Id")
  141. .ValueGeneratedOnAdd();
  142. b.Property<decimal>("Amount");
  143. b.Property<DateTime>("Created");
  144. b.Property<int>("CreatedById");
  145. b.Property<bool>("IsDeleted");
  146. b.Property<DateTime>("Modified");
  147. b.Property<string>("ModifiedBy");
  148. b.Property<string>("PaymentStatus");
  149. b.Property<string>("PaymentToken");
  150. b.Property<int?>("PropertyId");
  151. b.Property<int?>("TimeshareWeekId");
  152. b.HasKey("Id");
  153. b.HasIndex("CreatedById");
  154. b.HasIndex("PropertyId");
  155. b.HasIndex("TimeshareWeekId");
  156. b.ToTable("Payments");
  157. });
  158. modelBuilder.Entity("UnivateProperties_API.Model.Logging.SearchLog", b =>
  159. {
  160. b.Property<int>("Id")
  161. .ValueGeneratedOnAdd();
  162. b.Property<DateTime>("Created");
  163. b.Property<bool>("IsDeleted");
  164. b.Property<DateTime>("Modified");
  165. b.Property<string>("ModifiedBy");
  166. b.Property<string>("Search");
  167. b.Property<string>("Type");
  168. b.HasKey("Id");
  169. b.ToTable("SearchLogs");
  170. });
  171. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  172. {
  173. b.Property<int>("Id")
  174. .ValueGeneratedOnAdd();
  175. b.Property<string>("City");
  176. b.Property<DateTime>("Created");
  177. b.Property<bool>("IsDeleted");
  178. b.Property<DateTime>("Modified");
  179. b.Property<string>("ModifiedBy");
  180. b.Property<int?>("OwnerId");
  181. b.Property<string>("PostalCode");
  182. b.Property<string>("Province");
  183. b.Property<string>("Street");
  184. b.Property<string>("StreetNumber");
  185. b.Property<string>("Suburb");
  186. b.HasKey("Id");
  187. b.HasIndex("OwnerId");
  188. b.ToTable("Addresses");
  189. });
  190. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Carousel", b =>
  191. {
  192. b.Property<int>("Id")
  193. .ValueGeneratedOnAdd();
  194. b.Property<DateTime>("Created");
  195. b.Property<string>("Header");
  196. b.Property<string>("Image");
  197. b.Property<bool>("IsDeleted");
  198. b.Property<DateTime>("Modified");
  199. b.Property<string>("ModifiedBy");
  200. b.Property<int>("PropertyId");
  201. b.Property<int>("TimeshareId");
  202. b.HasKey("Id");
  203. b.ToTable("Carousel");
  204. });
  205. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Location", b =>
  206. {
  207. b.Property<int>("Id")
  208. .ValueGeneratedOnAdd();
  209. b.Property<DateTime>("Created");
  210. b.Property<bool>("IsDeleted");
  211. b.Property<bool>("IsTesting");
  212. b.Property<DateTime>("Modified");
  213. b.Property<string>("ModifiedBy");
  214. b.Property<string>("PropertyImageLocation");
  215. b.HasKey("Id");
  216. b.ToTable("Location");
  217. });
  218. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  219. {
  220. b.Property<int>("Id")
  221. .ValueGeneratedOnAdd();
  222. b.Property<double>("Amount");
  223. b.Property<int?>("BidMakerId");
  224. b.Property<string>("Comment");
  225. b.Property<DateTime>("Created");
  226. b.Property<string>("DeclinedReason");
  227. b.Property<bool>("IsDeleted");
  228. b.Property<DateTime>("Modified");
  229. b.Property<string>("ModifiedBy");
  230. b.Property<int?>("PropertyId");
  231. b.Property<int?>("StatusId");
  232. b.Property<int?>("TimeshareWeekId");
  233. b.HasKey("Id");
  234. b.HasIndex("BidMakerId");
  235. b.HasIndex("PropertyId");
  236. b.HasIndex("StatusId");
  237. b.HasIndex("TimeshareWeekId");
  238. b.ToTable("BidItems");
  239. });
  240. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  241. {
  242. b.Property<int>("Id")
  243. .ValueGeneratedOnAdd();
  244. b.Property<DateTime>("Created");
  245. b.Property<bool>("IsDeleted");
  246. b.Property<DateTime>("Modified");
  247. b.Property<string>("ModifiedBy");
  248. b.Property<int?>("PropertyID");
  249. b.Property<int>("StatusID");
  250. b.Property<int?>("TimeshareID");
  251. b.HasKey("Id");
  252. b.HasIndex("PropertyID");
  253. b.HasIndex("StatusID");
  254. b.HasIndex("TimeshareID");
  255. b.ToTable("ProcessFlows");
  256. });
  257. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  258. {
  259. b.Property<int>("Id")
  260. .ValueGeneratedOnAdd();
  261. b.Property<string>("AddressLine1");
  262. b.Property<string>("AddressLine2");
  263. b.Property<string>("AddressLine3");
  264. b.Property<int?>("AgencyId");
  265. b.Property<int?>("AgentId");
  266. b.Property<int>("CityId");
  267. b.Property<DateTime>("Created");
  268. b.Property<DateTime>("DateAvailable");
  269. b.Property<DateTime>("DatePublished");
  270. b.Property<string>("Description");
  271. b.Property<bool>("IsDeleted");
  272. b.Property<bool>("IsSale");
  273. b.Property<DateTime>("Modified");
  274. b.Property<string>("ModifiedBy");
  275. b.Property<decimal>("OperationalCosts");
  276. b.Property<int?>("OwnerId");
  277. b.Property<decimal>("Price");
  278. b.Property<string>("PricePer");
  279. b.Property<string>("PropertyName");
  280. b.Property<int>("PropertyTypeId");
  281. b.Property<int>("ProvinceId");
  282. b.Property<bool>("Published");
  283. b.Property<string>("ShortDescription");
  284. b.Property<int?>("StatusId");
  285. b.Property<int>("SuburbId");
  286. b.Property<string>("Unit");
  287. b.Property<string>("Video");
  288. b.Property<string>("VirtualTour");
  289. b.HasKey("Id");
  290. b.HasIndex("AgencyId");
  291. b.HasIndex("AgentId");
  292. b.HasIndex("CityId");
  293. b.HasIndex("OwnerId");
  294. b.HasIndex("PropertyTypeId");
  295. b.HasIndex("ProvinceId");
  296. b.HasIndex("StatusId");
  297. b.HasIndex("SuburbId");
  298. b.ToTable("Properties");
  299. });
  300. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  301. {
  302. b.Property<int>("Id")
  303. .ValueGeneratedOnAdd();
  304. b.Property<DateTime>("Created");
  305. b.Property<string>("Image");
  306. b.Property<bool>("IsDefault");
  307. b.Property<bool>("IsDeleted");
  308. b.Property<DateTime>("Modified");
  309. b.Property<string>("ModifiedBy");
  310. b.Property<int>("PropertyId");
  311. b.HasKey("Id");
  312. b.HasIndex("PropertyId");
  313. b.ToTable("PropertyImages");
  314. });
  315. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyType", b =>
  316. {
  317. b.Property<int>("Id")
  318. .ValueGeneratedOnAdd();
  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<int>("UsageType");
  325. b.HasKey("Id");
  326. b.ToTable("PropertyTypes");
  327. });
  328. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  329. {
  330. b.Property<int>("Id")
  331. .ValueGeneratedOnAdd();
  332. b.Property<DateTime>("Created");
  333. b.Property<string>("Description");
  334. b.Property<bool>("IsDeleted");
  335. b.Property<DateTime>("Modified");
  336. b.Property<string>("ModifiedBy");
  337. b.Property<int>("PropertyId");
  338. b.Property<int>("UserDefinedFieldId");
  339. b.Property<string>("Value");
  340. b.HasKey("Id");
  341. b.HasIndex("PropertyId");
  342. b.HasIndex("UserDefinedFieldId");
  343. b.ToTable("PropertyUserFields");
  344. });
  345. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  346. {
  347. b.Property<int>("Id")
  348. .ValueGeneratedOnAdd();
  349. b.Property<DateTime>("Created");
  350. b.Property<string>("FieldName");
  351. b.Property<string>("FieldType");
  352. b.Property<int>("GroupId");
  353. b.Property<bool>("IsDeleted");
  354. b.Property<DateTime>("Modified");
  355. b.Property<string>("ModifiedBy");
  356. b.Property<int>("Rank");
  357. b.HasKey("Id");
  358. b.HasIndex("GroupId");
  359. b.ToTable("UserDefinedFields");
  360. });
  361. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedGroup", b =>
  362. {
  363. b.Property<int>("Id")
  364. .ValueGeneratedOnAdd();
  365. b.Property<DateTime>("Created");
  366. b.Property<string>("Description");
  367. b.Property<bool>("IsDeleted");
  368. b.Property<DateTime>("Modified");
  369. b.Property<string>("ModifiedBy");
  370. b.Property<int>("Rank");
  371. b.Property<int>("UsageType");
  372. b.HasKey("Id");
  373. b.ToTable("UserDefinedGroups");
  374. });
  375. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  376. {
  377. b.Property<int>("Id")
  378. .ValueGeneratedOnAdd();
  379. b.Property<string>("Code");
  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<int>("ProvinceId");
  386. b.HasKey("Id");
  387. b.HasIndex("ProvinceId");
  388. b.ToTable("Cities");
  389. });
  390. modelBuilder.Entity("UnivateProperties_API.Model.Region.Province", b =>
  391. {
  392. b.Property<int>("Id")
  393. .ValueGeneratedOnAdd();
  394. b.Property<string>("Code");
  395. b.Property<DateTime>("Created");
  396. b.Property<string>("Description");
  397. b.Property<bool>("IsDeleted");
  398. b.Property<DateTime>("Modified");
  399. b.Property<string>("ModifiedBy");
  400. b.HasKey("Id");
  401. b.ToTable("Provinces");
  402. });
  403. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  404. {
  405. b.Property<int>("Id")
  406. .ValueGeneratedOnAdd();
  407. b.Property<int>("CityId");
  408. b.Property<DateTime>("Created");
  409. b.Property<string>("Description");
  410. b.Property<bool>("IsDeleted");
  411. b.Property<DateTime>("Modified");
  412. b.Property<string>("ModifiedBy");
  413. b.Property<string>("PostalCode");
  414. b.HasKey("Id");
  415. b.HasIndex("CityId");
  416. b.ToTable("Suburbs");
  417. });
  418. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Season", b =>
  419. {
  420. b.Property<int>("Id")
  421. .ValueGeneratedOnAdd();
  422. b.Property<DateTime>("Created");
  423. b.Property<bool>("IsDeleted");
  424. b.Property<DateTime>("Modified");
  425. b.Property<string>("ModifiedBy");
  426. b.Property<string>("Name");
  427. b.HasKey("Id");
  428. b.ToTable("Seasons");
  429. });
  430. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Status", b =>
  431. {
  432. b.Property<int>("Id")
  433. .ValueGeneratedOnAdd();
  434. b.Property<string>("Code");
  435. b.Property<DateTime>("Created");
  436. b.Property<string>("Description");
  437. b.Property<bool>("IsDeleted");
  438. b.Property<DateTime>("Modified");
  439. b.Property<string>("ModifiedBy");
  440. b.Property<int>("StatusType");
  441. b.HasKey("Id");
  442. b.ToTable("Status");
  443. });
  444. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  445. {
  446. b.Property<int>("Id")
  447. .ValueGeneratedOnAdd();
  448. b.Property<int?>("AgencyId");
  449. b.Property<bool>("AgentAsRep");
  450. b.Property<double>("AgentCommision");
  451. b.Property<int?>("AgentId");
  452. b.Property<DateTime>("ArrivalDate");
  453. b.Property<string>("BankedWith");
  454. b.Property<int>("Bedrooms");
  455. b.Property<DateTime>("Created");
  456. b.Property<bool>("CurrentYearBanked");
  457. b.Property<DateTime>("DepartureDate");
  458. b.Property<bool>("IsDeleted");
  459. b.Property<bool>("LeviesPaidInFull");
  460. b.Property<double>("LevyAmount");
  461. b.Property<string>("Mandate");
  462. b.Property<int>("MaxSleep");
  463. b.Property<DateTime>("Modified");
  464. b.Property<string>("ModifiedBy");
  465. b.Property<string>("Module");
  466. b.Property<DateTime>("OriginalPurchaseDate");
  467. b.Property<double>("OriginalPurchasePrice");
  468. b.Property<bool>("OtherResort");
  469. b.Property<string>("OtherResortName");
  470. b.Property<int>("OwnerId");
  471. b.Property<bool>("ReferedByAgent");
  472. b.Property<int>("RegionId");
  473. b.Property<string>("ResortCode");
  474. b.Property<string>("ResortName");
  475. b.Property<string>("Season");
  476. b.Property<double>("SellPrice");
  477. b.Property<int>("StatusId");
  478. b.Property<string>("UnitNumber");
  479. b.Property<string>("WeekNumber");
  480. b.Property<bool>("WeekPlacedForRental");
  481. b.HasKey("Id");
  482. b.HasIndex("AgencyId");
  483. b.HasIndex("AgentId");
  484. b.HasIndex("OwnerId");
  485. b.HasIndex("RegionId");
  486. b.HasIndex("StatusId");
  487. b.ToTable("Weeks");
  488. });
  489. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfiguration", b =>
  490. {
  491. b.Property<int>("Id")
  492. .ValueGeneratedOnAdd();
  493. b.Property<int>("Adults");
  494. b.Property<int>("Bedrooms");
  495. b.Property<int>("Children");
  496. b.Property<string>("Code");
  497. b.Property<DateTime>("Created");
  498. b.Property<bool>("IsDeleted");
  499. b.Property<DateTime>("Modified");
  500. b.Property<string>("ModifiedBy");
  501. b.HasKey("Id");
  502. b.HasIndex("Code")
  503. .IsUnique();
  504. b.ToTable("UnitConfigurations");
  505. });
  506. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  507. {
  508. b.Property<int>("Id")
  509. .ValueGeneratedOnAdd();
  510. b.Property<DateTime>("Created");
  511. b.Property<string>("Description");
  512. b.Property<bool>("IsDeleted");
  513. b.Property<DateTime>("Modified");
  514. b.Property<string>("ModifiedBy");
  515. b.Property<int>("UnitConfigurationId");
  516. b.HasKey("Id");
  517. b.HasIndex("UnitConfigurationId");
  518. b.ToTable("UnitConfigurationTypes");
  519. });
  520. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agency", b =>
  521. {
  522. b.Property<int>("Id")
  523. .ValueGeneratedOnAdd();
  524. b.Property<string>("AgencyName");
  525. b.Property<string>("CompanyRegNumber");
  526. b.Property<DateTime>("Created");
  527. b.Property<string>("EAABEFFCNumber");
  528. b.Property<bool>("IsDeleted");
  529. b.Property<DateTime>("Modified");
  530. b.Property<string>("ModifiedBy");
  531. b.HasKey("Id");
  532. b.ToTable("Agencies");
  533. });
  534. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  535. {
  536. b.Property<int>("Id")
  537. .ValueGeneratedOnAdd();
  538. b.Property<int?>("AgencyId");
  539. b.Property<string>("CellNumber");
  540. b.Property<DateTime>("Created");
  541. b.Property<string>("Email");
  542. b.Property<bool>("IsDeleted");
  543. b.Property<DateTime>("Modified");
  544. b.Property<string>("ModifiedBy");
  545. b.Property<string>("Name");
  546. b.Property<string>("Surname");
  547. b.Property<string>("Telephone");
  548. b.Property<int?>("TemplateId");
  549. b.Property<int?>("UserId");
  550. b.HasKey("Id");
  551. b.HasIndex("AgencyId");
  552. b.HasIndex("TemplateId");
  553. b.HasIndex("UserId");
  554. b.ToTable("Agents");
  555. });
  556. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  557. {
  558. b.Property<int>("Id")
  559. .ValueGeneratedOnAdd();
  560. b.Property<int?>("AddressId");
  561. b.Property<int?>("BankAccountId");
  562. b.Property<string>("CellNumber");
  563. b.Property<string>("CompanyRegNumber");
  564. b.Property<DateTime>("Created");
  565. b.Property<string>("Email");
  566. b.Property<string>("IdNumber");
  567. b.Property<string>("IncomeTaxNumber");
  568. b.Property<bool>("IsDeleted");
  569. b.Property<string>("MaritalStatus");
  570. b.Property<DateTime>("Modified");
  571. b.Property<string>("ModifiedBy");
  572. b.Property<string>("Name");
  573. b.Property<string>("Surname");
  574. b.Property<string>("Telephone");
  575. b.Property<int?>("TemplateId");
  576. b.Property<int?>("UserId");
  577. b.HasKey("Id");
  578. b.HasIndex("AddressId");
  579. b.HasIndex("BankAccountId");
  580. b.HasIndex("TemplateId");
  581. b.HasIndex("UserId");
  582. b.HasIndex("Telephone", "CellNumber", "Email")
  583. .IsUnique();
  584. b.ToTable("Individuals");
  585. });
  586. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  587. {
  588. b.Property<int>("Id")
  589. .ValueGeneratedOnAdd();
  590. b.Property<string>("CellNumber");
  591. b.Property<DateTime>("Created");
  592. b.Property<string>("Email");
  593. b.Property<bool>("IsDeleted");
  594. b.Property<DateTime>("Modified");
  595. b.Property<string>("ModifiedBy");
  596. b.Property<string>("Name");
  597. b.Property<string>("Surname");
  598. b.Property<string>("Telephone");
  599. b.Property<int?>("UserId");
  600. b.HasKey("Id");
  601. b.HasIndex("UserId");
  602. b.ToTable("Person");
  603. });
  604. modelBuilder.Entity("UnivateProperties_API.Model.Users.User", b =>
  605. {
  606. b.Property<int>("Id")
  607. .ValueGeneratedOnAdd();
  608. b.Property<DateTime>("Created");
  609. b.Property<bool>("IsDeleted");
  610. b.Property<DateTime>("Modified");
  611. b.Property<string>("ModifiedBy");
  612. b.Property<byte[]>("PasswordHash");
  613. b.Property<byte[]>("PasswordSalt");
  614. b.Property<string>("Role");
  615. b.Property<string>("Token");
  616. b.Property<string>("Username");
  617. b.Property<bool>("Verified");
  618. b.HasKey("Id");
  619. b.HasIndex("Username")
  620. .IsUnique();
  621. b.ToTable("Users");
  622. });
  623. modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
  624. {
  625. b.HasOne("UnivateProperties_API.Model.Banks.Bank", "Bank")
  626. .WithMany()
  627. .HasForeignKey("BankId");
  628. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  629. .WithMany()
  630. .HasForeignKey("OwnerId");
  631. });
  632. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  633. {
  634. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  635. .WithMany("Emails")
  636. .HasForeignKey("SenderId")
  637. .OnDelete(DeleteBehavior.Cascade);
  638. });
  639. modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b =>
  640. {
  641. b.HasOne("UnivateProperties_API.Model.Communication.Template", "Template")
  642. .WithMany("PlaceHolders")
  643. .HasForeignKey("TemplateId")
  644. .OnDelete(DeleteBehavior.Cascade);
  645. });
  646. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  647. {
  648. b.HasOne("UnivateProperties_API.Model.Communication.SMTPHost", "SMTPHost")
  649. .WithMany("SMTPAccounts")
  650. .HasForeignKey("SMTPHostId")
  651. .OnDelete(DeleteBehavior.Cascade);
  652. });
  653. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b =>
  654. {
  655. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  656. .WithMany("Templates")
  657. .HasForeignKey("SenderId");
  658. });
  659. modelBuilder.Entity("UnivateProperties_API.Model.Financial.Payment", b =>
  660. {
  661. b.HasOne("UnivateProperties_API.Model.Users.User", "CreatedBy")
  662. .WithMany()
  663. .HasForeignKey("CreatedById")
  664. .OnDelete(DeleteBehavior.Cascade);
  665. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  666. .WithMany()
  667. .HasForeignKey("PropertyId");
  668. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  669. .WithMany()
  670. .HasForeignKey("TimeshareWeekId");
  671. });
  672. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  673. {
  674. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  675. .WithMany()
  676. .HasForeignKey("OwnerId");
  677. });
  678. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  679. {
  680. b.HasOne("UnivateProperties_API.Model.Users.Individual", "BidMaker")
  681. .WithMany()
  682. .HasForeignKey("BidMakerId");
  683. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  684. .WithMany("BidItems")
  685. .HasForeignKey("PropertyId");
  686. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  687. .WithMany()
  688. .HasForeignKey("StatusId");
  689. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  690. .WithMany("BidItems")
  691. .HasForeignKey("TimeshareWeekId");
  692. });
  693. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  694. {
  695. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  696. .WithMany("ProcessFlows")
  697. .HasForeignKey("PropertyID");
  698. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  699. .WithMany()
  700. .HasForeignKey("StatusID")
  701. .OnDelete(DeleteBehavior.Cascade);
  702. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Timeshare")
  703. .WithMany("ProcessFlows")
  704. .HasForeignKey("TimeshareID");
  705. });
  706. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  707. {
  708. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  709. .WithMany("Properties")
  710. .HasForeignKey("AgencyId");
  711. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  712. .WithMany("Properties")
  713. .HasForeignKey("AgentId");
  714. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  715. .WithMany()
  716. .HasForeignKey("CityId")
  717. .OnDelete(DeleteBehavior.Cascade);
  718. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  719. .WithMany("Properties")
  720. .HasForeignKey("OwnerId");
  721. b.HasOne("UnivateProperties_API.Model.Properties.PropertyType", "PropertyType")
  722. .WithMany()
  723. .HasForeignKey("PropertyTypeId")
  724. .OnDelete(DeleteBehavior.Cascade);
  725. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  726. .WithMany()
  727. .HasForeignKey("ProvinceId")
  728. .OnDelete(DeleteBehavior.Cascade);
  729. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  730. .WithMany()
  731. .HasForeignKey("StatusId");
  732. b.HasOne("UnivateProperties_API.Model.Region.Suburb", "Suburb")
  733. .WithMany()
  734. .HasForeignKey("SuburbId")
  735. .OnDelete(DeleteBehavior.Cascade);
  736. });
  737. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  738. {
  739. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  740. .WithMany("PropertyImages")
  741. .HasForeignKey("PropertyId")
  742. .OnDelete(DeleteBehavior.Cascade);
  743. });
  744. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  745. {
  746. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  747. .WithMany("PropertyUserFields")
  748. .HasForeignKey("PropertyId")
  749. .OnDelete(DeleteBehavior.Cascade);
  750. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedField", "UserDefinedField")
  751. .WithMany()
  752. .HasForeignKey("UserDefinedFieldId")
  753. .OnDelete(DeleteBehavior.Cascade);
  754. });
  755. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  756. {
  757. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedGroup", "Group")
  758. .WithMany("Fields")
  759. .HasForeignKey("GroupId")
  760. .OnDelete(DeleteBehavior.Cascade);
  761. });
  762. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  763. {
  764. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  765. .WithMany()
  766. .HasForeignKey("ProvinceId")
  767. .OnDelete(DeleteBehavior.Cascade);
  768. });
  769. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  770. {
  771. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  772. .WithMany()
  773. .HasForeignKey("CityId")
  774. .OnDelete(DeleteBehavior.Cascade);
  775. });
  776. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  777. {
  778. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  779. .WithMany()
  780. .HasForeignKey("AgencyId");
  781. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  782. .WithMany()
  783. .HasForeignKey("AgentId");
  784. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  785. .WithMany()
  786. .HasForeignKey("OwnerId")
  787. .OnDelete(DeleteBehavior.Cascade);
  788. b.HasOne("UnivateProperties_API.Model.Region.Province", "Region")
  789. .WithMany()
  790. .HasForeignKey("RegionId")
  791. .OnDelete(DeleteBehavior.Cascade);
  792. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  793. .WithMany()
  794. .HasForeignKey("StatusId")
  795. .OnDelete(DeleteBehavior.Cascade);
  796. });
  797. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  798. {
  799. b.HasOne("UnivateProperties_API.Model.Timeshare.UnitConfiguration", "UnitConfiguration")
  800. .WithMany("Types")
  801. .HasForeignKey("UnitConfigurationId")
  802. .OnDelete(DeleteBehavior.Cascade);
  803. });
  804. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  805. {
  806. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  807. .WithMany("Agents")
  808. .HasForeignKey("AgencyId");
  809. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  810. .WithMany("AgentBCC")
  811. .HasForeignKey("TemplateId");
  812. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  813. .WithMany()
  814. .HasForeignKey("UserId");
  815. });
  816. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  817. {
  818. b.HasOne("UnivateProperties_API.Model.Misc.Address", "Address")
  819. .WithMany()
  820. .HasForeignKey("AddressId");
  821. b.HasOne("UnivateProperties_API.Model.Banks.BankAccount", "BankAccount")
  822. .WithMany()
  823. .HasForeignKey("BankAccountId");
  824. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  825. .WithMany("IndividualBCC")
  826. .HasForeignKey("TemplateId");
  827. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  828. .WithMany()
  829. .HasForeignKey("UserId");
  830. });
  831. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  832. {
  833. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  834. .WithMany()
  835. .HasForeignKey("UserId");
  836. });
  837. #pragma warning restore 612, 618
  838. }
  839. }
  840. }