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.

20200910140623_ListingFees3.Designer.cs 52KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598
  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("20200910140623_ListingFees3")]
  13. partial class ListingFees3
  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<DateTime>("Created");
  223. b.Property<bool>("IsDeleted");
  224. b.Property<DateTime>("Modified");
  225. b.Property<string>("ModifiedBy");
  226. b.Property<string>("Name");
  227. b.HasKey("Id");
  228. b.ToTable("ListingFees");
  229. });
  230. modelBuilder.Entity("UnivateProperties_API.Model.Financial.Payment", b =>
  231. {
  232. b.Property<int>("Id")
  233. .ValueGeneratedOnAdd()
  234. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  235. b.Property<decimal>("Amount");
  236. b.Property<DateTime>("Created");
  237. b.Property<int>("CreatedById");
  238. b.Property<bool>("IsDeleted");
  239. b.Property<DateTime>("Modified");
  240. b.Property<string>("ModifiedBy");
  241. b.Property<string>("PaymentStatus");
  242. b.Property<string>("PaymentToken");
  243. b.Property<int?>("PropertyId");
  244. b.Property<int?>("TimeshareWeekId");
  245. b.HasKey("Id");
  246. b.HasIndex("CreatedById");
  247. b.HasIndex("PropertyId");
  248. b.HasIndex("TimeshareWeekId");
  249. b.ToTable("Payments");
  250. });
  251. modelBuilder.Entity("UnivateProperties_API.Model.Logging.SearchLog", b =>
  252. {
  253. b.Property<int>("Id")
  254. .ValueGeneratedOnAdd()
  255. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  256. b.Property<DateTime>("Created");
  257. b.Property<bool>("IsDeleted");
  258. b.Property<DateTime>("Modified");
  259. b.Property<string>("ModifiedBy");
  260. b.Property<string>("Search");
  261. b.Property<string>("Type");
  262. b.HasKey("Id");
  263. b.ToTable("SearchLogs");
  264. });
  265. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  266. {
  267. b.Property<int>("Id")
  268. .ValueGeneratedOnAdd()
  269. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  270. b.Property<string>("City");
  271. b.Property<DateTime>("Created");
  272. b.Property<bool>("IsDeleted");
  273. b.Property<DateTime>("Modified");
  274. b.Property<string>("ModifiedBy");
  275. b.Property<int?>("OwnerId");
  276. b.Property<string>("PostalCode");
  277. b.Property<string>("Province");
  278. b.Property<string>("Street");
  279. b.Property<string>("StreetNumber");
  280. b.Property<string>("Suburb");
  281. b.HasKey("Id");
  282. b.HasIndex("OwnerId");
  283. b.ToTable("Addresses");
  284. });
  285. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Carousel", b =>
  286. {
  287. b.Property<int>("Id")
  288. .ValueGeneratedOnAdd()
  289. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  290. b.Property<DateTime>("Created");
  291. b.Property<string>("Header");
  292. b.Property<string>("Image");
  293. b.Property<bool>("IsDeleted");
  294. b.Property<DateTime>("Modified");
  295. b.Property<string>("ModifiedBy");
  296. b.Property<int>("PropertyId");
  297. b.Property<int>("TimeshareId");
  298. b.HasKey("Id");
  299. b.ToTable("Carousel");
  300. });
  301. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Default", b =>
  302. {
  303. b.Property<string>("Id")
  304. .ValueGeneratedOnAdd();
  305. b.Property<string>("Value");
  306. b.HasKey("Id");
  307. b.ToTable("Defaults");
  308. });
  309. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Location", b =>
  310. {
  311. b.Property<int>("Id")
  312. .ValueGeneratedOnAdd()
  313. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  314. b.Property<DateTime>("Created");
  315. b.Property<bool>("IsDeleted");
  316. b.Property<bool>("IsTesting");
  317. b.Property<DateTime>("Modified");
  318. b.Property<string>("ModifiedBy");
  319. b.Property<string>("PropertyImageLocation");
  320. b.HasKey("Id");
  321. b.ToTable("Location");
  322. });
  323. modelBuilder.Entity("UnivateProperties_API.Model.Misc.PlaceHolderFormat", b =>
  324. {
  325. b.Property<int>("Id")
  326. .ValueGeneratedOnAdd()
  327. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  328. b.Property<DateTime>("Created");
  329. b.Property<string>("DisplayName");
  330. b.Property<string>("Format");
  331. b.Property<bool>("IsDeleted");
  332. b.Property<DateTime>("Modified");
  333. b.Property<string>("ModifiedBy");
  334. b.HasKey("Id");
  335. b.ToTable("PlaceHolderFormats");
  336. });
  337. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  338. {
  339. b.Property<int>("Id")
  340. .ValueGeneratedOnAdd()
  341. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  342. b.Property<double>("Amount");
  343. b.Property<int?>("BidMakerId");
  344. b.Property<string>("Comment");
  345. b.Property<DateTime>("Created");
  346. b.Property<string>("DeclinedReason");
  347. b.Property<bool>("IsDeleted");
  348. b.Property<DateTime>("Modified");
  349. b.Property<string>("ModifiedBy");
  350. b.Property<int?>("PropertyId");
  351. b.Property<int?>("StatusId");
  352. b.Property<int?>("TimeshareWeekId");
  353. b.HasKey("Id");
  354. b.HasIndex("BidMakerId");
  355. b.HasIndex("PropertyId");
  356. b.HasIndex("StatusId");
  357. b.HasIndex("TimeshareWeekId");
  358. b.ToTable("BidItems");
  359. });
  360. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  361. {
  362. b.Property<int>("Id")
  363. .ValueGeneratedOnAdd()
  364. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  365. b.Property<DateTime>("Created");
  366. b.Property<bool>("IsDeleted");
  367. b.Property<DateTime>("Modified");
  368. b.Property<string>("ModifiedBy");
  369. b.Property<int?>("PropertyID");
  370. b.Property<int>("StatusID");
  371. b.Property<int?>("TimeshareID");
  372. b.HasKey("Id");
  373. b.HasIndex("PropertyID");
  374. b.HasIndex("StatusID");
  375. b.HasIndex("TimeshareID");
  376. b.ToTable("ProcessFlows");
  377. });
  378. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  379. {
  380. b.Property<int>("Id")
  381. .ValueGeneratedOnAdd()
  382. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  383. b.Property<string>("AddressOther");
  384. b.Property<string>("AddressURL");
  385. b.Property<int?>("AgencyId");
  386. b.Property<int?>("AgentId");
  387. b.Property<string>("City");
  388. b.Property<string>("Country");
  389. b.Property<DateTime>("Created");
  390. b.Property<DateTime>("DateAvailable");
  391. b.Property<DateTime>("DatePublished");
  392. b.Property<string>("Description");
  393. b.Property<bool>("IsDeleted");
  394. b.Property<bool>("IsSale");
  395. b.Property<DateTime>("Modified");
  396. b.Property<string>("ModifiedBy");
  397. b.Property<decimal>("OperationalCosts");
  398. b.Property<int?>("OwnerId");
  399. b.Property<string>("PostalCode");
  400. b.Property<decimal>("Price");
  401. b.Property<string>("PricePer");
  402. b.Property<string>("PropertCoords");
  403. b.Property<string>("PropertyName");
  404. b.Property<string>("PropertyRef");
  405. b.Property<int>("PropertyTypeId");
  406. b.Property<string>("Province");
  407. b.Property<bool>("Published");
  408. b.Property<string>("ShortDescription");
  409. b.Property<bool>("ShowAddress");
  410. b.Property<DateTime>("StatusDate");
  411. b.Property<int?>("StatusId");
  412. b.Property<string>("StreetName");
  413. b.Property<string>("StreetNumber");
  414. b.Property<string>("Suburb");
  415. b.Property<string>("Unit");
  416. b.Property<string>("Video");
  417. b.Property<string>("VirtualTour");
  418. b.HasKey("Id");
  419. b.HasIndex("AgencyId");
  420. b.HasIndex("AgentId");
  421. b.HasIndex("OwnerId");
  422. b.HasIndex("PropertyTypeId");
  423. b.ToTable("Properties");
  424. });
  425. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  426. {
  427. b.Property<int>("Id")
  428. .ValueGeneratedOnAdd()
  429. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  430. b.Property<DateTime>("Created");
  431. b.Property<string>("Image");
  432. b.Property<bool>("IsDefault");
  433. b.Property<bool>("IsDeleted");
  434. b.Property<DateTime>("Modified");
  435. b.Property<string>("ModifiedBy");
  436. b.Property<int>("PropertyId");
  437. b.HasKey("Id");
  438. b.HasIndex("PropertyId");
  439. b.ToTable("PropertyImages");
  440. });
  441. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyType", b =>
  442. {
  443. b.Property<int>("Id")
  444. .ValueGeneratedOnAdd()
  445. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  446. b.Property<DateTime>("Created");
  447. b.Property<string>("Description");
  448. b.Property<bool>("IsDeleted");
  449. b.Property<DateTime>("Modified");
  450. b.Property<string>("ModifiedBy");
  451. b.Property<int>("UsageType");
  452. b.HasKey("Id");
  453. b.ToTable("PropertyTypes");
  454. });
  455. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  456. {
  457. b.Property<int>("Id")
  458. .ValueGeneratedOnAdd()
  459. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  460. b.Property<DateTime>("Created");
  461. b.Property<string>("Description");
  462. b.Property<bool>("IsDeleted");
  463. b.Property<DateTime>("Modified");
  464. b.Property<string>("ModifiedBy");
  465. b.Property<int>("PropertyId");
  466. b.Property<int>("UserDefinedFieldId");
  467. b.Property<string>("Value");
  468. b.HasKey("Id");
  469. b.HasIndex("PropertyId");
  470. b.HasIndex("UserDefinedFieldId");
  471. b.ToTable("PropertyUserFields");
  472. });
  473. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  474. {
  475. b.Property<int>("Id")
  476. .ValueGeneratedOnAdd()
  477. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  478. b.Property<DateTime>("Created");
  479. b.Property<string>("FieldName");
  480. b.Property<string>("FieldType");
  481. b.Property<int>("GroupId");
  482. b.Property<bool>("IsDeleted");
  483. b.Property<DateTime>("Modified");
  484. b.Property<string>("ModifiedBy");
  485. b.Property<int>("Rank");
  486. b.HasKey("Id");
  487. b.HasIndex("GroupId");
  488. b.ToTable("UserDefinedFields");
  489. });
  490. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedGroup", b =>
  491. {
  492. b.Property<int>("Id")
  493. .ValueGeneratedOnAdd()
  494. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  495. b.Property<DateTime>("Created");
  496. b.Property<string>("Description");
  497. b.Property<bool>("IsDeleted");
  498. b.Property<DateTime>("Modified");
  499. b.Property<string>("ModifiedBy");
  500. b.Property<int>("Rank");
  501. b.Property<int>("UsageType");
  502. b.HasKey("Id");
  503. b.ToTable("UserDefinedGroups");
  504. });
  505. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  506. {
  507. b.Property<int>("Id")
  508. .ValueGeneratedOnAdd()
  509. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  510. b.Property<string>("Code");
  511. b.Property<DateTime>("Created");
  512. b.Property<string>("Description");
  513. b.Property<bool>("IsDeleted");
  514. b.Property<DateTime>("Modified");
  515. b.Property<string>("ModifiedBy");
  516. b.Property<int>("ProvinceId");
  517. b.HasKey("Id");
  518. b.HasIndex("ProvinceId");
  519. b.ToTable("Cities");
  520. });
  521. modelBuilder.Entity("UnivateProperties_API.Model.Region.Province", b =>
  522. {
  523. b.Property<int>("Id")
  524. .ValueGeneratedOnAdd()
  525. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  526. b.Property<string>("Code");
  527. b.Property<DateTime>("Created");
  528. b.Property<string>("Description");
  529. b.Property<bool>("IsDeleted");
  530. b.Property<DateTime>("Modified");
  531. b.Property<string>("ModifiedBy");
  532. b.HasKey("Id");
  533. b.ToTable("Provinces");
  534. });
  535. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  536. {
  537. b.Property<int>("Id")
  538. .ValueGeneratedOnAdd()
  539. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  540. b.Property<int>("CityId");
  541. b.Property<DateTime>("Created");
  542. b.Property<string>("Description");
  543. b.Property<bool>("IsDeleted");
  544. b.Property<DateTime>("Modified");
  545. b.Property<string>("ModifiedBy");
  546. b.Property<string>("PostalCode");
  547. b.HasKey("Id");
  548. b.HasIndex("CityId");
  549. b.ToTable("Suburbs");
  550. });
  551. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Season", b =>
  552. {
  553. b.Property<int>("Id")
  554. .ValueGeneratedOnAdd()
  555. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  556. b.Property<DateTime>("Created");
  557. b.Property<bool>("IsDeleted");
  558. b.Property<DateTime>("Modified");
  559. b.Property<string>("ModifiedBy");
  560. b.Property<string>("Name");
  561. b.HasKey("Id");
  562. b.ToTable("Seasons");
  563. });
  564. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Status", b =>
  565. {
  566. b.Property<int>("Id")
  567. .ValueGeneratedOnAdd()
  568. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  569. b.Property<string>("Code");
  570. b.Property<DateTime>("Created");
  571. b.Property<string>("Description");
  572. b.Property<bool>("IsDeleted");
  573. b.Property<DateTime>("Modified");
  574. b.Property<string>("ModifiedBy");
  575. b.Property<int>("StatusType");
  576. b.HasKey("Id");
  577. b.ToTable("Status");
  578. });
  579. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  580. {
  581. b.Property<int>("Id")
  582. .ValueGeneratedOnAdd()
  583. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  584. b.Property<int?>("AgencyId");
  585. b.Property<bool>("AgentAsRep");
  586. b.Property<double>("AgentCommision");
  587. b.Property<int?>("AgentId");
  588. b.Property<DateTime>("ArrivalDate");
  589. b.Property<string>("BankedWith");
  590. b.Property<int>("Bedrooms");
  591. b.Property<DateTime>("Created");
  592. b.Property<bool>("CurrentYearBanked");
  593. b.Property<DateTime>("DateMandated");
  594. b.Property<DateTime>("DepartureDate");
  595. b.Property<bool>("IsDeleted");
  596. b.Property<bool>("LeviesPaidInFull");
  597. b.Property<double>("LevyAmount");
  598. b.Property<bool>("Mandate");
  599. b.Property<int>("MaxSleep");
  600. b.Property<DateTime>("Modified");
  601. b.Property<string>("ModifiedBy");
  602. b.Property<string>("Module");
  603. b.Property<DateTime>("OriginalPurchaseDate");
  604. b.Property<double>("OriginalPurchasePrice");
  605. b.Property<bool>("OtherResort");
  606. b.Property<string>("OtherResortName");
  607. b.Property<int>("OwnerId");
  608. b.Property<bool>("ReferedByAgent");
  609. b.Property<int>("RegionId");
  610. b.Property<string>("ResortCode");
  611. b.Property<string>("ResortName");
  612. b.Property<string>("Season");
  613. b.Property<double>("SellPrice");
  614. b.Property<int>("StatusId");
  615. b.Property<string>("UnitNumber");
  616. b.Property<string>("WeekNumber");
  617. b.Property<bool>("WeekPlacedForRental");
  618. b.Property<int>("WeekType");
  619. b.HasKey("Id");
  620. b.HasIndex("AgencyId");
  621. b.HasIndex("AgentId");
  622. b.HasIndex("OwnerId");
  623. b.HasIndex("RegionId");
  624. b.HasIndex("StatusId");
  625. b.ToTable("Weeks");
  626. });
  627. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfiguration", b =>
  628. {
  629. b.Property<int>("Id")
  630. .ValueGeneratedOnAdd()
  631. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  632. b.Property<int>("Adults");
  633. b.Property<int>("Bedrooms");
  634. b.Property<int>("Children");
  635. b.Property<string>("Code");
  636. b.Property<DateTime>("Created");
  637. b.Property<bool>("IsDeleted");
  638. b.Property<DateTime>("Modified");
  639. b.Property<string>("ModifiedBy");
  640. b.HasKey("Id");
  641. b.HasIndex("Code")
  642. .IsUnique()
  643. .HasFilter("[Code] IS NOT NULL");
  644. b.ToTable("UnitConfigurations");
  645. });
  646. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  647. {
  648. b.Property<int>("Id")
  649. .ValueGeneratedOnAdd()
  650. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  651. b.Property<DateTime>("Created");
  652. b.Property<string>("Description");
  653. b.Property<bool>("IsDeleted");
  654. b.Property<DateTime>("Modified");
  655. b.Property<string>("ModifiedBy");
  656. b.Property<int>("UnitConfigurationId");
  657. b.HasKey("Id");
  658. b.HasIndex("UnitConfigurationId");
  659. b.ToTable("UnitConfigurationTypes");
  660. });
  661. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agency", b =>
  662. {
  663. b.Property<int>("Id")
  664. .ValueGeneratedOnAdd()
  665. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  666. b.Property<string>("AgencyName");
  667. b.Property<string>("CompanyRegNumber");
  668. b.Property<DateTime>("Created");
  669. b.Property<string>("EAABEFFCNumber");
  670. b.Property<bool>("IsDeleted");
  671. b.Property<DateTime>("Modified");
  672. b.Property<string>("ModifiedBy");
  673. b.HasKey("Id");
  674. b.ToTable("Agencies");
  675. });
  676. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  677. {
  678. b.Property<int>("Id")
  679. .ValueGeneratedOnAdd()
  680. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  681. b.Property<int?>("AgencyId");
  682. b.Property<string>("CellNumber");
  683. b.Property<DateTime>("Created");
  684. b.Property<string>("Email");
  685. b.Property<bool>("IsDeleted");
  686. b.Property<DateTime>("Modified");
  687. b.Property<string>("ModifiedBy");
  688. b.Property<string>("Name");
  689. b.Property<string>("Surname");
  690. b.Property<string>("Telephone");
  691. b.Property<int?>("TemplateId");
  692. b.Property<int?>("UserId");
  693. b.HasKey("Id");
  694. b.HasIndex("AgencyId");
  695. b.HasIndex("TemplateId");
  696. b.HasIndex("UserId");
  697. b.ToTable("Agents");
  698. });
  699. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  700. {
  701. b.Property<int>("Id")
  702. .ValueGeneratedOnAdd()
  703. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  704. b.Property<int?>("AddressId");
  705. b.Property<int?>("BankAccountId");
  706. b.Property<string>("CellNumber");
  707. b.Property<string>("CompanyRegNumber");
  708. b.Property<DateTime>("Created");
  709. b.Property<string>("Email");
  710. b.Property<int>("HowMarried");
  711. b.Property<string>("IdNumber");
  712. b.Property<string>("IncomeTaxNumber");
  713. b.Property<bool>("IsDeleted");
  714. b.Property<DateTime>("Modified");
  715. b.Property<string>("ModifiedBy");
  716. b.Property<string>("Name");
  717. b.Property<string>("SpouseCellnumber");
  718. b.Property<string>("SpouseEmail");
  719. b.Property<string>("SpouseName");
  720. b.Property<string>("SpouseSurname");
  721. b.Property<string>("SpouseTelephone");
  722. b.Property<string>("Surname");
  723. b.Property<string>("Telephone");
  724. b.Property<int?>("TemplateId");
  725. b.Property<int?>("UserId");
  726. b.HasKey("Id");
  727. b.HasIndex("AddressId");
  728. b.HasIndex("BankAccountId");
  729. b.HasIndex("TemplateId");
  730. b.HasIndex("UserId");
  731. b.HasIndex("Telephone", "CellNumber", "Email")
  732. .IsUnique()
  733. .HasFilter("[Telephone] IS NOT NULL AND [CellNumber] IS NOT NULL AND [Email] IS NOT NULL");
  734. b.ToTable("Individuals");
  735. });
  736. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  737. {
  738. b.Property<int>("Id")
  739. .ValueGeneratedOnAdd()
  740. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  741. b.Property<string>("CellNumber");
  742. b.Property<DateTime>("Created");
  743. b.Property<string>("Email");
  744. b.Property<bool>("IsDeleted");
  745. b.Property<DateTime>("Modified");
  746. b.Property<string>("ModifiedBy");
  747. b.Property<string>("Name");
  748. b.Property<string>("Surname");
  749. b.Property<string>("Telephone");
  750. b.Property<int?>("UserId");
  751. b.HasKey("Id");
  752. b.HasIndex("UserId");
  753. b.ToTable("Person");
  754. });
  755. modelBuilder.Entity("UnivateProperties_API.Model.Users.User", b =>
  756. {
  757. b.Property<int>("Id")
  758. .ValueGeneratedOnAdd()
  759. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  760. b.Property<DateTime>("Created");
  761. b.Property<bool>("IsDeleted");
  762. b.Property<DateTime>("Modified");
  763. b.Property<string>("ModifiedBy");
  764. b.Property<byte[]>("PasswordHash");
  765. b.Property<byte[]>("PasswordSalt");
  766. b.Property<string>("Role");
  767. b.Property<string>("Token");
  768. b.Property<string>("Username");
  769. b.Property<bool>("Verified");
  770. b.HasKey("Id");
  771. b.HasIndex("Username")
  772. .IsUnique()
  773. .HasFilter("[Username] IS NOT NULL");
  774. b.ToTable("Users");
  775. });
  776. modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
  777. {
  778. b.HasOne("UnivateProperties_API.Model.Banks.Bank", "Bank")
  779. .WithMany()
  780. .HasForeignKey("BankId");
  781. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  782. .WithMany()
  783. .HasForeignKey("OwnerId");
  784. });
  785. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItem", b =>
  786. {
  787. b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign")
  788. .WithMany("Items")
  789. .HasForeignKey("CampaignId")
  790. .OnDelete(DeleteBehavior.Cascade);
  791. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Week")
  792. .WithMany()
  793. .HasForeignKey("WeekId")
  794. .OnDelete(DeleteBehavior.Cascade);
  795. });
  796. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItemPlaceHolder", b =>
  797. {
  798. b.HasOne("UnivateProperties_API.Model.Campaigns.CampaignItem", "CampaignItem")
  799. .WithMany("CampaignItemPlaceHolder")
  800. .HasForeignKey("CampaignItemId")
  801. .OnDelete(DeleteBehavior.Cascade);
  802. });
  803. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignPlaceHolder", b =>
  804. {
  805. b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign")
  806. .WithMany("PlaceHolders")
  807. .HasForeignKey("CampaignId")
  808. .OnDelete(DeleteBehavior.Cascade);
  809. });
  810. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  811. {
  812. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  813. .WithMany("Emails")
  814. .HasForeignKey("SenderId")
  815. .OnDelete(DeleteBehavior.Cascade);
  816. });
  817. modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b =>
  818. {
  819. b.HasOne("UnivateProperties_API.Model.Communication.Template", "Template")
  820. .WithMany("PlaceHolders")
  821. .HasForeignKey("TemplateId")
  822. .OnDelete(DeleteBehavior.Cascade);
  823. });
  824. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  825. {
  826. b.HasOne("UnivateProperties_API.Model.Communication.SMTPHost", "SMTPHost")
  827. .WithMany("SMTPAccounts")
  828. .HasForeignKey("SMTPHostId")
  829. .OnDelete(DeleteBehavior.Cascade);
  830. });
  831. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b =>
  832. {
  833. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  834. .WithMany("Templates")
  835. .HasForeignKey("SenderId");
  836. });
  837. modelBuilder.Entity("UnivateProperties_API.Model.Financial.Payment", b =>
  838. {
  839. b.HasOne("UnivateProperties_API.Model.Users.User", "CreatedBy")
  840. .WithMany()
  841. .HasForeignKey("CreatedById")
  842. .OnDelete(DeleteBehavior.Cascade);
  843. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  844. .WithMany()
  845. .HasForeignKey("PropertyId");
  846. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  847. .WithMany()
  848. .HasForeignKey("TimeshareWeekId");
  849. });
  850. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  851. {
  852. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  853. .WithMany()
  854. .HasForeignKey("OwnerId");
  855. });
  856. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  857. {
  858. b.HasOne("UnivateProperties_API.Model.Users.Individual", "BidMaker")
  859. .WithMany()
  860. .HasForeignKey("BidMakerId");
  861. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  862. .WithMany("BidItems")
  863. .HasForeignKey("PropertyId");
  864. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  865. .WithMany()
  866. .HasForeignKey("StatusId");
  867. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  868. .WithMany("BidItems")
  869. .HasForeignKey("TimeshareWeekId");
  870. });
  871. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  872. {
  873. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  874. .WithMany("ProcessFlows")
  875. .HasForeignKey("PropertyID");
  876. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  877. .WithMany()
  878. .HasForeignKey("StatusID")
  879. .OnDelete(DeleteBehavior.Cascade);
  880. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Timeshare")
  881. .WithMany("ProcessFlows")
  882. .HasForeignKey("TimeshareID");
  883. });
  884. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  885. {
  886. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  887. .WithMany("Properties")
  888. .HasForeignKey("AgencyId");
  889. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  890. .WithMany("Properties")
  891. .HasForeignKey("AgentId");
  892. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  893. .WithMany("Properties")
  894. .HasForeignKey("OwnerId");
  895. b.HasOne("UnivateProperties_API.Model.Properties.PropertyType", "PropertyType")
  896. .WithMany()
  897. .HasForeignKey("PropertyTypeId")
  898. .OnDelete(DeleteBehavior.Cascade);
  899. });
  900. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  901. {
  902. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  903. .WithMany("PropertyImages")
  904. .HasForeignKey("PropertyId")
  905. .OnDelete(DeleteBehavior.Cascade);
  906. });
  907. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  908. {
  909. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  910. .WithMany("PropertyUserFields")
  911. .HasForeignKey("PropertyId")
  912. .OnDelete(DeleteBehavior.Cascade);
  913. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedField", "UserDefinedField")
  914. .WithMany()
  915. .HasForeignKey("UserDefinedFieldId")
  916. .OnDelete(DeleteBehavior.Cascade);
  917. });
  918. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  919. {
  920. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedGroup", "Group")
  921. .WithMany("Fields")
  922. .HasForeignKey("GroupId")
  923. .OnDelete(DeleteBehavior.Cascade);
  924. });
  925. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  926. {
  927. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  928. .WithMany()
  929. .HasForeignKey("ProvinceId")
  930. .OnDelete(DeleteBehavior.Cascade);
  931. });
  932. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  933. {
  934. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  935. .WithMany()
  936. .HasForeignKey("CityId")
  937. .OnDelete(DeleteBehavior.Cascade);
  938. });
  939. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  940. {
  941. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  942. .WithMany()
  943. .HasForeignKey("AgencyId");
  944. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  945. .WithMany()
  946. .HasForeignKey("AgentId");
  947. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  948. .WithMany()
  949. .HasForeignKey("OwnerId")
  950. .OnDelete(DeleteBehavior.Cascade);
  951. b.HasOne("UnivateProperties_API.Model.Region.Province", "Region")
  952. .WithMany()
  953. .HasForeignKey("RegionId")
  954. .OnDelete(DeleteBehavior.Cascade);
  955. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  956. .WithMany()
  957. .HasForeignKey("StatusId")
  958. .OnDelete(DeleteBehavior.Cascade);
  959. });
  960. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  961. {
  962. b.HasOne("UnivateProperties_API.Model.Timeshare.UnitConfiguration", "UnitConfiguration")
  963. .WithMany("Types")
  964. .HasForeignKey("UnitConfigurationId")
  965. .OnDelete(DeleteBehavior.Cascade);
  966. });
  967. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  968. {
  969. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  970. .WithMany("Agents")
  971. .HasForeignKey("AgencyId");
  972. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  973. .WithMany("AgentBCC")
  974. .HasForeignKey("TemplateId");
  975. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  976. .WithMany()
  977. .HasForeignKey("UserId");
  978. });
  979. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  980. {
  981. b.HasOne("UnivateProperties_API.Model.Misc.Address", "Address")
  982. .WithMany()
  983. .HasForeignKey("AddressId");
  984. b.HasOne("UnivateProperties_API.Model.Banks.BankAccount", "BankAccount")
  985. .WithMany()
  986. .HasForeignKey("BankAccountId");
  987. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  988. .WithMany("IndividualBCC")
  989. .HasForeignKey("TemplateId");
  990. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  991. .WithMany()
  992. .HasForeignKey("UserId");
  993. });
  994. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  995. {
  996. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  997. .WithMany()
  998. .HasForeignKey("UserId");
  999. });
  1000. #pragma warning restore 612, 618
  1001. }
  1002. }
  1003. }