API
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

20200903080450_PropertyRefUpdate.Designer.cs 51KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553
  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("20200903080450_PropertyRefUpdate")]
  13. partial class PropertyRefUpdate
  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>("AddressLine1");
  370. b.Property<string>("AddressLine2");
  371. b.Property<string>("AddressLine3");
  372. b.Property<int?>("AgencyId");
  373. b.Property<int?>("AgentId");
  374. b.Property<int>("CityId");
  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<decimal>("Price");
  386. b.Property<string>("PricePer");
  387. b.Property<string>("PropertCoords");
  388. b.Property<string>("PropertyName");
  389. b.Property<string>("PropertyRef");
  390. b.Property<int>("PropertyTypeId");
  391. b.Property<int>("ProvinceId");
  392. b.Property<bool>("Published");
  393. b.Property<string>("ShortDescription");
  394. b.Property<DateTime>("StatusDate");
  395. b.Property<int?>("StatusId");
  396. b.Property<int>("SuburbId");
  397. b.Property<string>("Unit");
  398. b.Property<string>("Video");
  399. b.Property<string>("VirtualTour");
  400. b.HasKey("Id");
  401. b.HasIndex("AgencyId");
  402. b.HasIndex("AgentId");
  403. b.HasIndex("OwnerId");
  404. b.HasIndex("PropertyTypeId");
  405. b.ToTable("Properties");
  406. });
  407. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  408. {
  409. b.Property<int>("Id")
  410. .ValueGeneratedOnAdd()
  411. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  412. b.Property<DateTime>("Created");
  413. b.Property<string>("Image");
  414. b.Property<bool>("IsDefault");
  415. b.Property<bool>("IsDeleted");
  416. b.Property<DateTime>("Modified");
  417. b.Property<string>("ModifiedBy");
  418. b.Property<int>("PropertyId");
  419. b.HasKey("Id");
  420. b.HasIndex("PropertyId");
  421. b.ToTable("PropertyImages");
  422. });
  423. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyType", b =>
  424. {
  425. b.Property<int>("Id")
  426. .ValueGeneratedOnAdd()
  427. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  428. b.Property<DateTime>("Created");
  429. b.Property<string>("Description");
  430. b.Property<bool>("IsDeleted");
  431. b.Property<DateTime>("Modified");
  432. b.Property<string>("ModifiedBy");
  433. b.Property<int>("UsageType");
  434. b.HasKey("Id");
  435. b.ToTable("PropertyTypes");
  436. });
  437. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  438. {
  439. b.Property<int>("Id")
  440. .ValueGeneratedOnAdd()
  441. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  442. b.Property<DateTime>("Created");
  443. b.Property<string>("Description");
  444. b.Property<bool>("IsDeleted");
  445. b.Property<DateTime>("Modified");
  446. b.Property<string>("ModifiedBy");
  447. b.Property<int>("PropertyId");
  448. b.Property<int>("UserDefinedFieldId");
  449. b.Property<string>("Value");
  450. b.HasKey("Id");
  451. b.HasIndex("PropertyId");
  452. b.HasIndex("UserDefinedFieldId");
  453. b.ToTable("PropertyUserFields");
  454. });
  455. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  456. {
  457. b.Property<int>("Id")
  458. .ValueGeneratedOnAdd()
  459. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  460. b.Property<DateTime>("Created");
  461. b.Property<string>("FieldName");
  462. b.Property<string>("FieldType");
  463. b.Property<int>("GroupId");
  464. b.Property<bool>("IsDeleted");
  465. b.Property<DateTime>("Modified");
  466. b.Property<string>("ModifiedBy");
  467. b.Property<int>("Rank");
  468. b.HasKey("Id");
  469. b.HasIndex("GroupId");
  470. b.ToTable("UserDefinedFields");
  471. });
  472. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedGroup", b =>
  473. {
  474. b.Property<int>("Id")
  475. .ValueGeneratedOnAdd()
  476. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  477. b.Property<DateTime>("Created");
  478. b.Property<string>("Description");
  479. b.Property<bool>("IsDeleted");
  480. b.Property<DateTime>("Modified");
  481. b.Property<string>("ModifiedBy");
  482. b.Property<int>("Rank");
  483. b.Property<int>("UsageType");
  484. b.HasKey("Id");
  485. b.ToTable("UserDefinedGroups");
  486. });
  487. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  488. {
  489. b.Property<int>("Id")
  490. .ValueGeneratedOnAdd()
  491. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  492. b.Property<string>("Code");
  493. b.Property<DateTime>("Created");
  494. b.Property<string>("Description");
  495. b.Property<bool>("IsDeleted");
  496. b.Property<DateTime>("Modified");
  497. b.Property<string>("ModifiedBy");
  498. b.Property<int>("ProvinceId");
  499. b.HasKey("Id");
  500. b.HasIndex("ProvinceId");
  501. b.ToTable("Cities");
  502. });
  503. modelBuilder.Entity("UnivateProperties_API.Model.Region.Province", b =>
  504. {
  505. b.Property<int>("Id")
  506. .ValueGeneratedOnAdd()
  507. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  508. b.Property<string>("Code");
  509. b.Property<DateTime>("Created");
  510. b.Property<string>("Description");
  511. b.Property<bool>("IsDeleted");
  512. b.Property<DateTime>("Modified");
  513. b.Property<string>("ModifiedBy");
  514. b.HasKey("Id");
  515. b.ToTable("Provinces");
  516. });
  517. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  518. {
  519. b.Property<int>("Id")
  520. .ValueGeneratedOnAdd()
  521. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  522. b.Property<int>("CityId");
  523. b.Property<DateTime>("Created");
  524. b.Property<string>("Description");
  525. b.Property<bool>("IsDeleted");
  526. b.Property<DateTime>("Modified");
  527. b.Property<string>("ModifiedBy");
  528. b.Property<string>("PostalCode");
  529. b.HasKey("Id");
  530. b.HasIndex("CityId");
  531. b.ToTable("Suburbs");
  532. });
  533. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Season", b =>
  534. {
  535. b.Property<int>("Id")
  536. .ValueGeneratedOnAdd()
  537. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  538. b.Property<DateTime>("Created");
  539. b.Property<bool>("IsDeleted");
  540. b.Property<DateTime>("Modified");
  541. b.Property<string>("ModifiedBy");
  542. b.Property<string>("Name");
  543. b.HasKey("Id");
  544. b.ToTable("Seasons");
  545. });
  546. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Status", b =>
  547. {
  548. b.Property<int>("Id")
  549. .ValueGeneratedOnAdd()
  550. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  551. b.Property<string>("Code");
  552. b.Property<DateTime>("Created");
  553. b.Property<string>("Description");
  554. b.Property<bool>("IsDeleted");
  555. b.Property<DateTime>("Modified");
  556. b.Property<string>("ModifiedBy");
  557. b.Property<int>("StatusType");
  558. b.HasKey("Id");
  559. b.ToTable("Status");
  560. });
  561. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  562. {
  563. b.Property<int>("Id")
  564. .ValueGeneratedOnAdd()
  565. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  566. b.Property<int?>("AgencyId");
  567. b.Property<bool>("AgentAsRep");
  568. b.Property<double>("AgentCommision");
  569. b.Property<int?>("AgentId");
  570. b.Property<DateTime>("ArrivalDate");
  571. b.Property<string>("BankedWith");
  572. b.Property<int>("Bedrooms");
  573. b.Property<DateTime>("Created");
  574. b.Property<bool>("CurrentYearBanked");
  575. b.Property<DateTime>("DepartureDate");
  576. b.Property<bool>("IsDeleted");
  577. b.Property<bool>("LeviesPaidInFull");
  578. b.Property<double>("LevyAmount");
  579. b.Property<string>("Mandate");
  580. b.Property<int>("MaxSleep");
  581. b.Property<DateTime>("Modified");
  582. b.Property<string>("ModifiedBy");
  583. b.Property<string>("Module");
  584. b.Property<DateTime>("OriginalPurchaseDate");
  585. b.Property<double>("OriginalPurchasePrice");
  586. b.Property<bool>("OtherResort");
  587. b.Property<string>("OtherResortName");
  588. b.Property<int>("OwnerId");
  589. b.Property<bool>("ReferedByAgent");
  590. b.Property<int>("RegionId");
  591. b.Property<string>("ResortCode");
  592. b.Property<string>("ResortName");
  593. b.Property<string>("Season");
  594. b.Property<double>("SellPrice");
  595. b.Property<int>("StatusId");
  596. b.Property<string>("UnitNumber");
  597. b.Property<string>("WeekNumber");
  598. b.Property<bool>("WeekPlacedForRental");
  599. b.HasKey("Id");
  600. b.HasIndex("AgencyId");
  601. b.HasIndex("AgentId");
  602. b.HasIndex("OwnerId");
  603. b.HasIndex("RegionId");
  604. b.HasIndex("StatusId");
  605. b.ToTable("Weeks");
  606. });
  607. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfiguration", b =>
  608. {
  609. b.Property<int>("Id")
  610. .ValueGeneratedOnAdd()
  611. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  612. b.Property<int>("Adults");
  613. b.Property<int>("Bedrooms");
  614. b.Property<int>("Children");
  615. b.Property<string>("Code");
  616. b.Property<DateTime>("Created");
  617. b.Property<bool>("IsDeleted");
  618. b.Property<DateTime>("Modified");
  619. b.Property<string>("ModifiedBy");
  620. b.HasKey("Id");
  621. b.HasIndex("Code")
  622. .IsUnique()
  623. .HasFilter("[Code] IS NOT NULL");
  624. b.ToTable("UnitConfigurations");
  625. });
  626. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  627. {
  628. b.Property<int>("Id")
  629. .ValueGeneratedOnAdd()
  630. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  631. b.Property<DateTime>("Created");
  632. b.Property<string>("Description");
  633. b.Property<bool>("IsDeleted");
  634. b.Property<DateTime>("Modified");
  635. b.Property<string>("ModifiedBy");
  636. b.Property<int>("UnitConfigurationId");
  637. b.HasKey("Id");
  638. b.HasIndex("UnitConfigurationId");
  639. b.ToTable("UnitConfigurationTypes");
  640. });
  641. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agency", b =>
  642. {
  643. b.Property<int>("Id")
  644. .ValueGeneratedOnAdd()
  645. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  646. b.Property<string>("AgencyName");
  647. b.Property<string>("CompanyRegNumber");
  648. b.Property<DateTime>("Created");
  649. b.Property<string>("EAABEFFCNumber");
  650. b.Property<bool>("IsDeleted");
  651. b.Property<DateTime>("Modified");
  652. b.Property<string>("ModifiedBy");
  653. b.HasKey("Id");
  654. b.ToTable("Agencies");
  655. });
  656. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  657. {
  658. b.Property<int>("Id")
  659. .ValueGeneratedOnAdd()
  660. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  661. b.Property<int?>("AgencyId");
  662. b.Property<string>("CellNumber");
  663. b.Property<DateTime>("Created");
  664. b.Property<string>("Email");
  665. b.Property<bool>("IsDeleted");
  666. b.Property<DateTime>("Modified");
  667. b.Property<string>("ModifiedBy");
  668. b.Property<string>("Name");
  669. b.Property<string>("Surname");
  670. b.Property<string>("Telephone");
  671. b.Property<int?>("TemplateId");
  672. b.Property<int?>("UserId");
  673. b.HasKey("Id");
  674. b.HasIndex("AgencyId");
  675. b.HasIndex("TemplateId");
  676. b.HasIndex("UserId");
  677. b.ToTable("Agents");
  678. });
  679. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  680. {
  681. b.Property<int>("Id")
  682. .ValueGeneratedOnAdd()
  683. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  684. b.Property<int?>("AddressId");
  685. b.Property<int?>("BankAccountId");
  686. b.Property<string>("CellNumber");
  687. b.Property<string>("CompanyRegNumber");
  688. b.Property<DateTime>("Created");
  689. b.Property<string>("Email");
  690. b.Property<string>("IdNumber");
  691. b.Property<string>("IncomeTaxNumber");
  692. b.Property<bool>("IsDeleted");
  693. b.Property<string>("MaritalStatus");
  694. b.Property<DateTime>("Modified");
  695. b.Property<string>("ModifiedBy");
  696. b.Property<string>("Name");
  697. b.Property<string>("Surname");
  698. b.Property<string>("Telephone");
  699. b.Property<int?>("TemplateId");
  700. b.Property<int?>("UserId");
  701. b.HasKey("Id");
  702. b.HasIndex("AddressId");
  703. b.HasIndex("BankAccountId");
  704. b.HasIndex("TemplateId");
  705. b.HasIndex("UserId");
  706. b.HasIndex("Telephone", "CellNumber", "Email")
  707. .IsUnique()
  708. .HasFilter("[Telephone] IS NOT NULL AND [CellNumber] IS NOT NULL AND [Email] IS NOT NULL");
  709. b.ToTable("Individuals");
  710. });
  711. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  712. {
  713. b.Property<int>("Id")
  714. .ValueGeneratedOnAdd()
  715. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  716. b.Property<string>("CellNumber");
  717. b.Property<DateTime>("Created");
  718. b.Property<string>("Email");
  719. b.Property<bool>("IsDeleted");
  720. b.Property<DateTime>("Modified");
  721. b.Property<string>("ModifiedBy");
  722. b.Property<string>("Name");
  723. b.Property<string>("Surname");
  724. b.Property<string>("Telephone");
  725. b.Property<int?>("UserId");
  726. b.HasKey("Id");
  727. b.HasIndex("UserId");
  728. b.ToTable("Person");
  729. });
  730. modelBuilder.Entity("UnivateProperties_API.Model.Users.User", b =>
  731. {
  732. b.Property<int>("Id")
  733. .ValueGeneratedOnAdd()
  734. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  735. b.Property<DateTime>("Created");
  736. b.Property<bool>("IsDeleted");
  737. b.Property<DateTime>("Modified");
  738. b.Property<string>("ModifiedBy");
  739. b.Property<byte[]>("PasswordHash");
  740. b.Property<byte[]>("PasswordSalt");
  741. b.Property<string>("Role");
  742. b.Property<string>("Token");
  743. b.Property<string>("Username");
  744. b.Property<bool>("Verified");
  745. b.HasKey("Id");
  746. b.HasIndex("Username")
  747. .IsUnique()
  748. .HasFilter("[Username] IS NOT NULL");
  749. b.ToTable("Users");
  750. });
  751. modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
  752. {
  753. b.HasOne("UnivateProperties_API.Model.Banks.Bank", "Bank")
  754. .WithMany()
  755. .HasForeignKey("BankId");
  756. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  757. .WithMany()
  758. .HasForeignKey("OwnerId");
  759. });
  760. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItem", b =>
  761. {
  762. b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign")
  763. .WithMany("Items")
  764. .HasForeignKey("CampaignId")
  765. .OnDelete(DeleteBehavior.Cascade);
  766. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Week")
  767. .WithMany()
  768. .HasForeignKey("WeekId")
  769. .OnDelete(DeleteBehavior.Cascade);
  770. });
  771. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItemPlaceHolder", b =>
  772. {
  773. b.HasOne("UnivateProperties_API.Model.Campaigns.CampaignItem", "CampaignItem")
  774. .WithMany("CampaignItemPlaceHolder")
  775. .HasForeignKey("CampaignItemId")
  776. .OnDelete(DeleteBehavior.Cascade);
  777. });
  778. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignPlaceHolder", b =>
  779. {
  780. b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign")
  781. .WithMany("PlaceHolders")
  782. .HasForeignKey("CampaignId")
  783. .OnDelete(DeleteBehavior.Cascade);
  784. });
  785. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  786. {
  787. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  788. .WithMany("Emails")
  789. .HasForeignKey("SenderId")
  790. .OnDelete(DeleteBehavior.Cascade);
  791. });
  792. modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b =>
  793. {
  794. b.HasOne("UnivateProperties_API.Model.Communication.Template", "Template")
  795. .WithMany("PlaceHolders")
  796. .HasForeignKey("TemplateId")
  797. .OnDelete(DeleteBehavior.Cascade);
  798. });
  799. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  800. {
  801. b.HasOne("UnivateProperties_API.Model.Communication.SMTPHost", "SMTPHost")
  802. .WithMany("SMTPAccounts")
  803. .HasForeignKey("SMTPHostId")
  804. .OnDelete(DeleteBehavior.Cascade);
  805. });
  806. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b =>
  807. {
  808. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  809. .WithMany("Templates")
  810. .HasForeignKey("SenderId");
  811. });
  812. modelBuilder.Entity("UnivateProperties_API.Model.Financial.Payment", b =>
  813. {
  814. b.HasOne("UnivateProperties_API.Model.Users.User", "CreatedBy")
  815. .WithMany()
  816. .HasForeignKey("CreatedById")
  817. .OnDelete(DeleteBehavior.Cascade);
  818. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  819. .WithMany()
  820. .HasForeignKey("PropertyId");
  821. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  822. .WithMany()
  823. .HasForeignKey("TimeshareWeekId");
  824. });
  825. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  826. {
  827. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  828. .WithMany()
  829. .HasForeignKey("OwnerId");
  830. });
  831. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  832. {
  833. b.HasOne("UnivateProperties_API.Model.Users.Individual", "BidMaker")
  834. .WithMany()
  835. .HasForeignKey("BidMakerId");
  836. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  837. .WithMany("BidItems")
  838. .HasForeignKey("PropertyId");
  839. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  840. .WithMany()
  841. .HasForeignKey("StatusId");
  842. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  843. .WithMany("BidItems")
  844. .HasForeignKey("TimeshareWeekId");
  845. });
  846. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  847. {
  848. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  849. .WithMany("ProcessFlows")
  850. .HasForeignKey("PropertyID");
  851. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  852. .WithMany()
  853. .HasForeignKey("StatusID")
  854. .OnDelete(DeleteBehavior.Cascade);
  855. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Timeshare")
  856. .WithMany("ProcessFlows")
  857. .HasForeignKey("TimeshareID");
  858. });
  859. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  860. {
  861. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  862. .WithMany("Properties")
  863. .HasForeignKey("AgencyId");
  864. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  865. .WithMany("Properties")
  866. .HasForeignKey("AgentId");
  867. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  868. .WithMany("Properties")
  869. .HasForeignKey("OwnerId");
  870. b.HasOne("UnivateProperties_API.Model.Properties.PropertyType", "PropertyType")
  871. .WithMany()
  872. .HasForeignKey("PropertyTypeId")
  873. .OnDelete(DeleteBehavior.Cascade);
  874. });
  875. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  876. {
  877. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  878. .WithMany("PropertyImages")
  879. .HasForeignKey("PropertyId")
  880. .OnDelete(DeleteBehavior.Cascade);
  881. });
  882. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  883. {
  884. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  885. .WithMany("PropertyUserFields")
  886. .HasForeignKey("PropertyId")
  887. .OnDelete(DeleteBehavior.Cascade);
  888. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedField", "UserDefinedField")
  889. .WithMany()
  890. .HasForeignKey("UserDefinedFieldId")
  891. .OnDelete(DeleteBehavior.Cascade);
  892. });
  893. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  894. {
  895. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedGroup", "Group")
  896. .WithMany("Fields")
  897. .HasForeignKey("GroupId")
  898. .OnDelete(DeleteBehavior.Cascade);
  899. });
  900. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  901. {
  902. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  903. .WithMany()
  904. .HasForeignKey("ProvinceId")
  905. .OnDelete(DeleteBehavior.Cascade);
  906. });
  907. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  908. {
  909. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  910. .WithMany()
  911. .HasForeignKey("CityId")
  912. .OnDelete(DeleteBehavior.Cascade);
  913. });
  914. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  915. {
  916. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  917. .WithMany()
  918. .HasForeignKey("AgencyId");
  919. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  920. .WithMany()
  921. .HasForeignKey("AgentId");
  922. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  923. .WithMany()
  924. .HasForeignKey("OwnerId")
  925. .OnDelete(DeleteBehavior.Cascade);
  926. b.HasOne("UnivateProperties_API.Model.Region.Province", "Region")
  927. .WithMany()
  928. .HasForeignKey("RegionId")
  929. .OnDelete(DeleteBehavior.Cascade);
  930. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  931. .WithMany()
  932. .HasForeignKey("StatusId")
  933. .OnDelete(DeleteBehavior.Cascade);
  934. });
  935. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  936. {
  937. b.HasOne("UnivateProperties_API.Model.Timeshare.UnitConfiguration", "UnitConfiguration")
  938. .WithMany("Types")
  939. .HasForeignKey("UnitConfigurationId")
  940. .OnDelete(DeleteBehavior.Cascade);
  941. });
  942. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  943. {
  944. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  945. .WithMany("Agents")
  946. .HasForeignKey("AgencyId");
  947. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  948. .WithMany("AgentBCC")
  949. .HasForeignKey("TemplateId");
  950. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  951. .WithMany()
  952. .HasForeignKey("UserId");
  953. });
  954. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  955. {
  956. b.HasOne("UnivateProperties_API.Model.Misc.Address", "Address")
  957. .WithMany()
  958. .HasForeignKey("AddressId");
  959. b.HasOne("UnivateProperties_API.Model.Banks.BankAccount", "BankAccount")
  960. .WithMany()
  961. .HasForeignKey("BankAccountId");
  962. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  963. .WithMany("IndividualBCC")
  964. .HasForeignKey("TemplateId");
  965. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  966. .WithMany()
  967. .HasForeignKey("UserId");
  968. });
  969. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  970. {
  971. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  972. .WithMany()
  973. .HasForeignKey("UserId");
  974. });
  975. #pragma warning restore 612, 618
  976. }
  977. }
  978. }