API
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

20200903075657_property show address.Designer.cs 51KB

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