API
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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