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.

20200910135810_ListingFees1.Designer.cs 52KB

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