API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20220804103536_ContactUsMailSourceDescription.Designer.cs 62KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898
  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("20220804103536_ContactUsMailSourceDescription")]
  13. partial class ContactUsMailSourceDescription
  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<bool>("IsTimeshare");
  64. b.Property<string>("ItemBody");
  65. b.Property<int>("ItemsPerRow");
  66. b.Property<DateTime>("Modified");
  67. b.Property<string>("ModifiedBy");
  68. b.Property<string>("Name");
  69. b.Property<DateTime>("StartDate");
  70. b.Property<string>("Subject");
  71. b.HasKey("Id");
  72. b.ToTable("Campaigns");
  73. });
  74. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItem", b =>
  75. {
  76. b.Property<int>("Id")
  77. .ValueGeneratedOnAdd()
  78. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  79. b.Property<int>("CampaignId");
  80. b.Property<DateTime>("Created");
  81. b.Property<string>("Image");
  82. b.Property<bool>("IsDeleted");
  83. b.Property<DateTime>("Modified");
  84. b.Property<string>("ModifiedBy");
  85. b.Property<int>("PropertyId");
  86. b.Property<int>("WeekId");
  87. b.HasKey("Id");
  88. b.HasIndex("CampaignId");
  89. b.HasIndex("PropertyId");
  90. b.HasIndex("WeekId");
  91. b.ToTable("CampaignItems");
  92. });
  93. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItemPlaceHolder", b =>
  94. {
  95. b.Property<int>("Id")
  96. .ValueGeneratedOnAdd()
  97. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  98. b.Property<int>("CampaignItemId");
  99. b.Property<DateTime>("Created");
  100. b.Property<bool>("IsDeleted");
  101. b.Property<DateTime>("Modified");
  102. b.Property<string>("ModifiedBy");
  103. b.Property<string>("PlaceHolder");
  104. b.Property<int?>("PropertyCampaignItemId");
  105. b.Property<string>("Value");
  106. b.HasKey("Id");
  107. b.HasIndex("CampaignItemId");
  108. b.HasIndex("PropertyCampaignItemId");
  109. b.ToTable("CampaignItemPlaceHolders");
  110. });
  111. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignPlaceHolder", b =>
  112. {
  113. b.Property<int>("Id")
  114. .ValueGeneratedOnAdd()
  115. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  116. b.Property<string>("BoundTo");
  117. b.Property<string>("BoundToClass");
  118. b.Property<string>("BoundToClassDisplay");
  119. b.Property<int>("CampaignId");
  120. b.Property<DateTime>("Created");
  121. b.Property<string>("Format");
  122. b.Property<bool>("IsDeleted");
  123. b.Property<DateTime>("Modified");
  124. b.Property<string>("ModifiedBy");
  125. b.Property<string>("Name");
  126. b.HasKey("Id");
  127. b.HasIndex("CampaignId");
  128. b.ToTable("CampaignPlaceHolders");
  129. });
  130. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.PropertyCampaignItem", b =>
  131. {
  132. b.Property<int>("Id")
  133. .ValueGeneratedOnAdd()
  134. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  135. b.Property<int>("CampaignId");
  136. b.Property<DateTime>("Created");
  137. b.Property<string>("Image");
  138. b.Property<bool>("IsDeleted");
  139. b.Property<DateTime>("Modified");
  140. b.Property<string>("ModifiedBy");
  141. b.Property<int>("PropertyId");
  142. b.HasKey("Id");
  143. b.HasIndex("CampaignId");
  144. b.HasIndex("PropertyId");
  145. b.ToTable("PropertyCampaignItem");
  146. });
  147. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.UploadCampaign", b =>
  148. {
  149. b.Property<int>("Id")
  150. .ValueGeneratedOnAdd()
  151. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  152. b.Property<DateTime>("Created");
  153. b.Property<string>("FileLink");
  154. b.Property<string>("FileName");
  155. b.Property<bool>("IsDeleted");
  156. b.Property<DateTime>("Modified");
  157. b.Property<string>("ModifiedBy");
  158. b.HasKey("Id");
  159. b.ToTable("CampaignUploads");
  160. });
  161. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  162. {
  163. b.Property<int>("Id")
  164. .ValueGeneratedOnAdd()
  165. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  166. b.Property<string>("BCC");
  167. b.Property<string>("Body");
  168. b.Property<string>("CC");
  169. b.Property<string>("Comment");
  170. b.Property<DateTime>("Created");
  171. b.Property<bool>("IsBodyHtml");
  172. b.Property<bool>("IsDeleted");
  173. b.Property<DateTime>("Modified");
  174. b.Property<string>("ModifiedBy");
  175. b.Property<int>("SenderId");
  176. b.Property<string>("Subject");
  177. b.Property<string>("To");
  178. b.Property<string>("ToDisplay");
  179. b.HasKey("Id");
  180. b.HasIndex("SenderId");
  181. b.ToTable("Emails");
  182. });
  183. modelBuilder.Entity("UnivateProperties_API.Model.Communication.MailModel", b =>
  184. {
  185. b.Property<int>("Id")
  186. .ValueGeneratedOnAdd()
  187. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  188. b.Property<string>("ComType");
  189. b.Property<DateTime>("Created");
  190. b.Property<string>("Email");
  191. b.Property<string>("Error");
  192. b.Property<string>("FromAddress");
  193. b.Property<string>("HeardFrom");
  194. b.Property<bool>("IsDeleted");
  195. b.Property<int?>("MailSourceId");
  196. b.Property<string>("Message");
  197. b.Property<DateTime>("Modified");
  198. b.Property<string>("ModifiedBy");
  199. b.Property<string>("Name");
  200. b.Property<string>("Phone");
  201. b.Property<string>("Property");
  202. b.Property<string>("ToAddress");
  203. b.HasKey("Id");
  204. b.HasIndex("MailSourceId");
  205. b.ToTable("CommunicationLog");
  206. });
  207. modelBuilder.Entity("UnivateProperties_API.Model.Communication.MailRecipient", b =>
  208. {
  209. b.Property<int>("Id")
  210. .ValueGeneratedOnAdd()
  211. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  212. b.Property<DateTime>("Created");
  213. b.Property<bool>("IsDeleted");
  214. b.Property<DateTime>("Modified");
  215. b.Property<string>("ModifiedBy");
  216. b.Property<string>("RecipientMail");
  217. b.Property<string>("RecipientName");
  218. b.Property<string>("RecipientUsage");
  219. b.HasKey("Id");
  220. b.ToTable("MailRecipients");
  221. });
  222. modelBuilder.Entity("UnivateProperties_API.Model.Communication.MailSource", b =>
  223. {
  224. b.Property<int>("Id")
  225. .ValueGeneratedOnAdd()
  226. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  227. b.Property<DateTime>("Created");
  228. b.Property<string>("Description");
  229. b.Property<bool>("IsDeleted");
  230. b.Property<DateTime>("Modified");
  231. b.Property<string>("ModifiedBy");
  232. b.HasKey("Id");
  233. b.ToTable("MailSources");
  234. });
  235. modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b =>
  236. {
  237. b.Property<int>("Id")
  238. .ValueGeneratedOnAdd()
  239. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  240. b.Property<string>("BoundTo");
  241. b.Property<string>("BoundToClass");
  242. b.Property<string>("BoundToClassDisplay");
  243. b.Property<DateTime>("Created");
  244. b.Property<bool>("IsDeleted");
  245. b.Property<DateTime>("Modified");
  246. b.Property<string>("ModifiedBy");
  247. b.Property<string>("Name");
  248. b.Property<int>("TemplateId");
  249. b.HasKey("Id");
  250. b.HasIndex("TemplateId");
  251. b.ToTable("PlaceHolders");
  252. });
  253. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  254. {
  255. b.Property<int>("Id")
  256. .ValueGeneratedOnAdd()
  257. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  258. b.Property<string>("Address");
  259. b.Property<DateTime>("Created");
  260. b.Property<bool>("Default");
  261. b.Property<string>("DisplayName");
  262. b.Property<bool>("IsDeleted");
  263. b.Property<DateTime>("Modified");
  264. b.Property<string>("ModifiedBy");
  265. b.Property<int>("SMTPHostId");
  266. b.HasKey("Id");
  267. b.HasIndex("SMTPHostId");
  268. b.ToTable("Accounts");
  269. });
  270. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPHost", b =>
  271. {
  272. b.Property<int>("Id")
  273. .ValueGeneratedOnAdd()
  274. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  275. b.Property<DateTime>("Created");
  276. b.Property<string>("Host");
  277. b.Property<bool>("IsDeleted");
  278. b.Property<DateTime>("Modified");
  279. b.Property<string>("ModifiedBy");
  280. b.Property<bool>("NeedsAuthorize");
  281. b.Property<string>("Password");
  282. b.Property<bool>("UseSSL");
  283. b.Property<string>("User");
  284. b.HasKey("Id");
  285. b.ToTable("Hosts");
  286. });
  287. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b =>
  288. {
  289. b.Property<int>("Id")
  290. .ValueGeneratedOnAdd()
  291. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  292. b.Property<string>("Body");
  293. b.Property<DateTime>("Created");
  294. b.Property<bool>("IsDeleted");
  295. b.Property<DateTime>("Modified");
  296. b.Property<string>("ModifiedBy");
  297. b.Property<string>("Name");
  298. b.Property<int?>("SenderId");
  299. b.Property<string>("Subject");
  300. b.HasKey("Id");
  301. b.HasIndex("SenderId");
  302. b.ToTable("Templates");
  303. });
  304. modelBuilder.Entity("UnivateProperties_API.Model.Financial.ListingFee", b =>
  305. {
  306. b.Property<int>("Id")
  307. .ValueGeneratedOnAdd()
  308. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  309. b.Property<double>("Amount");
  310. b.Property<DateTime>("Created");
  311. b.Property<bool>("IsDeleted");
  312. b.Property<DateTime>("Modified");
  313. b.Property<string>("ModifiedBy");
  314. b.Property<string>("Name");
  315. b.HasKey("Id");
  316. b.ToTable("ListingFees");
  317. });
  318. modelBuilder.Entity("UnivateProperties_API.Model.Financial.Payment", b =>
  319. {
  320. b.Property<int>("Id")
  321. .ValueGeneratedOnAdd()
  322. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  323. b.Property<decimal>("Amount");
  324. b.Property<string>("Checksum");
  325. b.Property<DateTime>("Created");
  326. b.Property<int?>("CreatedById");
  327. b.Property<bool>("IsDeleted");
  328. b.Property<DateTime>("Modified");
  329. b.Property<string>("ModifiedBy");
  330. b.Property<string>("PayRequestId");
  331. b.Property<string>("PaymentStatus");
  332. b.Property<string>("PaymentToken");
  333. b.Property<int?>("PropertyId");
  334. b.Property<int?>("TimeshareWeekId");
  335. b.HasKey("Id");
  336. b.HasIndex("CreatedById");
  337. b.HasIndex("PropertyId");
  338. b.HasIndex("TimeshareWeekId");
  339. b.ToTable("Payments");
  340. });
  341. modelBuilder.Entity("UnivateProperties_API.Model.Logging.SearchLog", b =>
  342. {
  343. b.Property<int>("Id")
  344. .ValueGeneratedOnAdd()
  345. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  346. b.Property<DateTime>("Created");
  347. b.Property<bool>("IsDeleted");
  348. b.Property<DateTime>("Modified");
  349. b.Property<string>("ModifiedBy");
  350. b.Property<string>("Search");
  351. b.Property<string>("Type");
  352. b.HasKey("Id");
  353. b.ToTable("SearchLogs");
  354. });
  355. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  356. {
  357. b.Property<int>("Id")
  358. .ValueGeneratedOnAdd()
  359. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  360. b.Property<string>("City");
  361. b.Property<DateTime>("Created");
  362. b.Property<bool>("IsDeleted");
  363. b.Property<DateTime>("Modified");
  364. b.Property<string>("ModifiedBy");
  365. b.Property<int?>("OwnerId");
  366. b.Property<string>("PostalCode");
  367. b.Property<string>("Province");
  368. b.Property<string>("Street");
  369. b.Property<string>("StreetNumber");
  370. b.Property<string>("Suburb");
  371. b.HasKey("Id");
  372. b.HasIndex("OwnerId");
  373. b.ToTable("Addresses");
  374. });
  375. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Carousel", b =>
  376. {
  377. b.Property<int>("Id")
  378. .ValueGeneratedOnAdd()
  379. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  380. b.Property<DateTime>("Created");
  381. b.Property<string>("Header");
  382. b.Property<string>("Image");
  383. b.Property<bool>("IsDeleted");
  384. b.Property<DateTime>("Modified");
  385. b.Property<string>("ModifiedBy");
  386. b.Property<int>("PropertyId");
  387. b.Property<int>("TimeshareId");
  388. b.HasKey("Id");
  389. b.ToTable("Carousel");
  390. });
  391. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Default", b =>
  392. {
  393. b.Property<string>("Id")
  394. .ValueGeneratedOnAdd();
  395. b.Property<string>("Value");
  396. b.HasKey("Id");
  397. b.ToTable("Defaults");
  398. });
  399. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Location", b =>
  400. {
  401. b.Property<int>("Id")
  402. .ValueGeneratedOnAdd()
  403. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  404. b.Property<DateTime>("Created");
  405. b.Property<bool>("IsDeleted");
  406. b.Property<bool>("IsTesting");
  407. b.Property<DateTime>("Modified");
  408. b.Property<string>("ModifiedBy");
  409. b.Property<string>("PropertyImageLocation");
  410. b.Property<string>("SiteURL");
  411. b.HasKey("Id");
  412. b.ToTable("Location");
  413. });
  414. modelBuilder.Entity("UnivateProperties_API.Model.Misc.PlaceHolderFormat", b =>
  415. {
  416. b.Property<int>("Id")
  417. .ValueGeneratedOnAdd()
  418. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  419. b.Property<DateTime>("Created");
  420. b.Property<string>("DisplayName");
  421. b.Property<string>("Format");
  422. b.Property<bool>("IsDeleted");
  423. b.Property<DateTime>("Modified");
  424. b.Property<string>("ModifiedBy");
  425. b.HasKey("Id");
  426. b.ToTable("PlaceHolderFormats");
  427. });
  428. modelBuilder.Entity("UnivateProperties_API.Model.Misc.TC", b =>
  429. {
  430. b.Property<int>("Id")
  431. .ValueGeneratedOnAdd()
  432. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  433. b.Property<DateTime>("Created");
  434. b.Property<bool>("IsDeleted");
  435. b.Property<DateTime>("Modified");
  436. b.Property<string>("ModifiedBy");
  437. b.Property<string>("TermsConditions");
  438. b.Property<string>("Version");
  439. b.HasKey("Id");
  440. b.ToTable("TermsConditions");
  441. });
  442. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  443. {
  444. b.Property<int>("Id")
  445. .ValueGeneratedOnAdd()
  446. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  447. b.Property<double>("Amount");
  448. b.Property<int?>("BidMakerId");
  449. b.Property<string>("Comment");
  450. b.Property<DateTime>("Created");
  451. b.Property<string>("DeclinedReason");
  452. b.Property<bool>("IsDeleted");
  453. b.Property<DateTime>("Modified");
  454. b.Property<string>("ModifiedBy");
  455. b.Property<int?>("PropertyId");
  456. b.Property<int?>("StatusId");
  457. b.Property<int?>("TimeshareWeekId");
  458. b.HasKey("Id");
  459. b.HasIndex("BidMakerId");
  460. b.HasIndex("PropertyId");
  461. b.HasIndex("StatusId");
  462. b.HasIndex("TimeshareWeekId");
  463. b.ToTable("BidItems");
  464. });
  465. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  466. {
  467. b.Property<int>("Id")
  468. .ValueGeneratedOnAdd()
  469. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  470. b.Property<DateTime>("Created");
  471. b.Property<bool>("IsDeleted");
  472. b.Property<DateTime>("Modified");
  473. b.Property<string>("ModifiedBy");
  474. b.Property<int?>("PropertyID");
  475. b.Property<int>("StatusID");
  476. b.Property<int?>("TimeshareID");
  477. b.HasKey("Id");
  478. b.HasIndex("PropertyID");
  479. b.HasIndex("StatusID");
  480. b.HasIndex("TimeshareID");
  481. b.ToTable("ProcessFlows");
  482. });
  483. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  484. {
  485. b.Property<int>("Id")
  486. .ValueGeneratedOnAdd()
  487. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  488. b.Property<string>("AddressOther");
  489. b.Property<string>("AddressURL");
  490. b.Property<int?>("AgencyId");
  491. b.Property<int?>("AgentId");
  492. b.Property<string>("City");
  493. b.Property<string>("Country");
  494. b.Property<DateTime>("Created");
  495. b.Property<DateTime>("CutOffDisplayDate");
  496. b.Property<DateTime>("DateAvailable");
  497. b.Property<DateTime>("DatePublished");
  498. b.Property<string>("Description");
  499. b.Property<bool>("IsDeleted");
  500. b.Property<bool>("IsSale");
  501. b.Property<DateTime>("Modified");
  502. b.Property<string>("ModifiedBy");
  503. b.Property<decimal>("OperationalCosts");
  504. b.Property<int?>("OwnerId");
  505. b.Property<string>("PostalCode");
  506. b.Property<decimal>("Price");
  507. b.Property<string>("PricePer");
  508. b.Property<bool>("PriceRedused");
  509. b.Property<string>("PropertCoords");
  510. b.Property<string>("PropertyName");
  511. b.Property<string>("PropertyRef");
  512. b.Property<int>("PropertyTypeId");
  513. b.Property<string>("Province");
  514. b.Property<bool>("Published");
  515. b.Property<string>("ShortDescription");
  516. b.Property<bool>("ShowAddress");
  517. b.Property<DateTime>("StatusDate");
  518. b.Property<int?>("StatusId");
  519. b.Property<string>("StreetName");
  520. b.Property<string>("StreetNumber");
  521. b.Property<string>("Suburb");
  522. b.Property<string>("Unit");
  523. b.Property<string>("Video");
  524. b.Property<string>("VirtualTour");
  525. b.HasKey("Id");
  526. b.HasIndex("AgencyId");
  527. b.HasIndex("AgentId");
  528. b.HasIndex("OwnerId");
  529. b.HasIndex("PropertyTypeId");
  530. b.ToTable("Properties");
  531. });
  532. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  533. {
  534. b.Property<int>("Id")
  535. .ValueGeneratedOnAdd()
  536. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  537. b.Property<DateTime>("Created");
  538. b.Property<string>("Image");
  539. b.Property<bool>("IsDefault");
  540. b.Property<bool>("IsDeleted");
  541. b.Property<DateTime>("Modified");
  542. b.Property<string>("ModifiedBy");
  543. b.Property<int>("PropertyId");
  544. b.HasKey("Id");
  545. b.HasIndex("PropertyId");
  546. b.ToTable("PropertyImages");
  547. });
  548. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyType", b =>
  549. {
  550. b.Property<int>("Id")
  551. .ValueGeneratedOnAdd()
  552. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  553. b.Property<DateTime>("Created");
  554. b.Property<string>("Description");
  555. b.Property<bool>("IsDeleted");
  556. b.Property<DateTime>("Modified");
  557. b.Property<string>("ModifiedBy");
  558. b.Property<int>("UsageType");
  559. b.HasKey("Id");
  560. b.ToTable("PropertyTypes");
  561. });
  562. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  563. {
  564. b.Property<int>("Id")
  565. .ValueGeneratedOnAdd()
  566. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  567. b.Property<DateTime>("Created");
  568. b.Property<string>("Description");
  569. b.Property<bool>("IsDeleted");
  570. b.Property<DateTime>("Modified");
  571. b.Property<string>("ModifiedBy");
  572. b.Property<int>("PropertyId");
  573. b.Property<int>("UserDefinedFieldId");
  574. b.Property<string>("Value");
  575. b.HasKey("Id");
  576. b.HasIndex("PropertyId");
  577. b.HasIndex("UserDefinedFieldId");
  578. b.ToTable("PropertyUserFields");
  579. });
  580. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  581. {
  582. b.Property<int>("Id")
  583. .ValueGeneratedOnAdd()
  584. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  585. b.Property<DateTime>("Created");
  586. b.Property<string>("FieldName");
  587. b.Property<string>("FieldType");
  588. b.Property<int>("GroupId");
  589. b.Property<bool>("IsDeleted");
  590. b.Property<DateTime>("Modified");
  591. b.Property<string>("ModifiedBy");
  592. b.Property<int>("Rank");
  593. b.HasKey("Id");
  594. b.HasIndex("GroupId");
  595. b.ToTable("UserDefinedFields");
  596. });
  597. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedGroup", b =>
  598. {
  599. b.Property<int>("Id")
  600. .ValueGeneratedOnAdd()
  601. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  602. b.Property<DateTime>("Created");
  603. b.Property<string>("Description");
  604. b.Property<bool>("IsDeleted");
  605. b.Property<DateTime>("Modified");
  606. b.Property<string>("ModifiedBy");
  607. b.Property<int>("Rank");
  608. b.Property<int>("UsageType");
  609. b.HasKey("Id");
  610. b.ToTable("UserDefinedGroups");
  611. });
  612. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  613. {
  614. b.Property<int>("Id")
  615. .ValueGeneratedOnAdd()
  616. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  617. b.Property<string>("Code");
  618. b.Property<DateTime>("Created");
  619. b.Property<string>("Description");
  620. b.Property<bool>("IsDeleted");
  621. b.Property<DateTime>("Modified");
  622. b.Property<string>("ModifiedBy");
  623. b.Property<int>("ProvinceId");
  624. b.HasKey("Id");
  625. b.HasIndex("ProvinceId");
  626. b.ToTable("Cities");
  627. });
  628. modelBuilder.Entity("UnivateProperties_API.Model.Region.Province", b =>
  629. {
  630. b.Property<int>("Id")
  631. .ValueGeneratedOnAdd()
  632. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  633. b.Property<string>("Code");
  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.HasKey("Id");
  640. b.ToTable("Provinces");
  641. });
  642. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  643. {
  644. b.Property<int>("Id")
  645. .ValueGeneratedOnAdd()
  646. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  647. b.Property<int>("CityId");
  648. b.Property<DateTime>("Created");
  649. b.Property<string>("Description");
  650. b.Property<bool>("IsDeleted");
  651. b.Property<DateTime>("Modified");
  652. b.Property<string>("ModifiedBy");
  653. b.Property<string>("PostalCode");
  654. b.HasKey("Id");
  655. b.HasIndex("CityId");
  656. b.ToTable("Suburbs");
  657. });
  658. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Season", b =>
  659. {
  660. b.Property<int>("Id")
  661. .ValueGeneratedOnAdd()
  662. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  663. b.Property<DateTime>("Created");
  664. b.Property<bool>("IsDeleted");
  665. b.Property<DateTime>("Modified");
  666. b.Property<string>("ModifiedBy");
  667. b.Property<string>("Name");
  668. b.HasKey("Id");
  669. b.ToTable("Seasons");
  670. });
  671. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Status", b =>
  672. {
  673. b.Property<int>("Id")
  674. .ValueGeneratedOnAdd()
  675. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  676. b.Property<string>("Code");
  677. b.Property<DateTime>("Created");
  678. b.Property<string>("Description");
  679. b.Property<bool>("IsDeleted");
  680. b.Property<DateTime>("Modified");
  681. b.Property<string>("ModifiedBy");
  682. b.Property<int>("StatusType");
  683. b.HasKey("Id");
  684. b.ToTable("Status");
  685. });
  686. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  687. {
  688. b.Property<int>("Id")
  689. .ValueGeneratedOnAdd()
  690. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  691. b.Property<int?>("AgencyId");
  692. b.Property<bool>("AgentAsRep");
  693. b.Property<double>("AgentCommision");
  694. b.Property<int?>("AgentId");
  695. b.Property<DateTime>("ArrivalDate");
  696. b.Property<double>("AskingPrice");
  697. b.Property<string>("BankedWith");
  698. b.Property<string>("Bedrooms");
  699. b.Property<DateTime>("Created");
  700. b.Property<bool>("CurrentYearBanked");
  701. b.Property<bool>("CustomOwner");
  702. b.Property<DateTime>("DateMandated");
  703. b.Property<DateTime>("DepartureDate");
  704. b.Property<string>("DisplayOwner");
  705. b.Property<bool>("IsDeleted");
  706. b.Property<bool>("LeviesPaidInFull");
  707. b.Property<double>("LevyAmount");
  708. b.Property<bool>("Mandate");
  709. b.Property<int>("MaxSleep");
  710. b.Property<DateTime>("Modified");
  711. b.Property<string>("ModifiedBy");
  712. b.Property<string>("Module");
  713. b.Property<DateTime>("OriginalPurchaseDate");
  714. b.Property<double>("OriginalPurchasePrice");
  715. b.Property<bool>("OtherResort");
  716. b.Property<string>("OtherResortName");
  717. b.Property<int>("OwnerId");
  718. b.Property<bool>("Publish");
  719. b.Property<DateTime>("PulbishedDate");
  720. b.Property<bool>("ReferedByAgent");
  721. b.Property<int>("RegionId");
  722. b.Property<string>("ResortCode");
  723. b.Property<string>("ResortName");
  724. b.Property<string>("Season");
  725. b.Property<double>("SellPrice");
  726. b.Property<int>("StatusId");
  727. b.Property<string>("UnitNumber");
  728. b.Property<string>("WeekNumber");
  729. b.Property<bool>("WeekPlacedForRental");
  730. b.Property<string>("WeekStatus");
  731. b.Property<int>("WeekType");
  732. b.HasKey("Id");
  733. b.HasIndex("AgencyId");
  734. b.HasIndex("AgentId");
  735. b.HasIndex("OwnerId");
  736. b.HasIndex("RegionId");
  737. b.HasIndex("StatusId");
  738. b.ToTable("Weeks");
  739. });
  740. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfiguration", b =>
  741. {
  742. b.Property<int>("Id")
  743. .ValueGeneratedOnAdd()
  744. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  745. b.Property<int>("Adults");
  746. b.Property<int>("Bedrooms");
  747. b.Property<int>("Children");
  748. b.Property<string>("Code");
  749. b.Property<DateTime>("Created");
  750. b.Property<bool>("IsDeleted");
  751. b.Property<DateTime>("Modified");
  752. b.Property<string>("ModifiedBy");
  753. b.HasKey("Id");
  754. b.HasIndex("Code")
  755. .IsUnique()
  756. .HasFilter("[Code] IS NOT NULL");
  757. b.ToTable("UnitConfigurations");
  758. });
  759. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  760. {
  761. b.Property<int>("Id")
  762. .ValueGeneratedOnAdd()
  763. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  764. b.Property<DateTime>("Created");
  765. b.Property<string>("Description");
  766. b.Property<bool>("IsDeleted");
  767. b.Property<DateTime>("Modified");
  768. b.Property<string>("ModifiedBy");
  769. b.Property<int>("UnitConfigurationId");
  770. b.HasKey("Id");
  771. b.HasIndex("UnitConfigurationId");
  772. b.ToTable("UnitConfigurationTypes");
  773. });
  774. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agency", b =>
  775. {
  776. b.Property<int>("Id")
  777. .ValueGeneratedOnAdd()
  778. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  779. b.Property<string>("AgencyName");
  780. b.Property<string>("CompanyRegNumber");
  781. b.Property<DateTime>("Created");
  782. b.Property<string>("EAABEFFCNumber");
  783. b.Property<bool>("IsDeleted");
  784. b.Property<DateTime>("Modified");
  785. b.Property<string>("ModifiedBy");
  786. b.HasKey("Id");
  787. b.ToTable("Agencies");
  788. });
  789. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  790. {
  791. b.Property<int>("Id")
  792. .ValueGeneratedOnAdd()
  793. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  794. b.Property<int?>("AgencyId");
  795. b.Property<string>("CellNumber");
  796. b.Property<DateTime>("Created");
  797. b.Property<string>("Email");
  798. b.Property<bool>("IsDeleted");
  799. b.Property<DateTime>("Modified");
  800. b.Property<string>("ModifiedBy");
  801. b.Property<string>("Name");
  802. b.Property<string>("Surname");
  803. b.Property<string>("Telephone");
  804. b.Property<int?>("TemplateId");
  805. b.Property<int?>("UserId");
  806. b.HasKey("Id");
  807. b.HasIndex("AgencyId");
  808. b.HasIndex("TemplateId");
  809. b.HasIndex("UserId");
  810. b.ToTable("Agents");
  811. });
  812. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  813. {
  814. b.Property<int>("Id")
  815. .ValueGeneratedOnAdd()
  816. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  817. b.Property<int?>("AddressId");
  818. b.Property<int?>("BankAccountId");
  819. b.Property<string>("CellNumber");
  820. b.Property<string>("CompanyRegNumber");
  821. b.Property<DateTime>("Created");
  822. b.Property<string>("Email");
  823. b.Property<int>("HowMarried");
  824. b.Property<string>("IdNumber");
  825. b.Property<string>("IncomeTaxNumber");
  826. b.Property<bool>("IsDeleted");
  827. b.Property<DateTime>("Modified");
  828. b.Property<string>("ModifiedBy");
  829. b.Property<string>("Name");
  830. b.Property<string>("SpouseCellnumber");
  831. b.Property<string>("SpouseEmail");
  832. b.Property<string>("SpouseName");
  833. b.Property<string>("SpouseSurname");
  834. b.Property<string>("SpouseTelephone");
  835. b.Property<string>("Surname");
  836. b.Property<string>("Telephone");
  837. b.Property<int?>("TemplateId");
  838. b.Property<int?>("UserId");
  839. b.HasKey("Id");
  840. b.HasIndex("AddressId");
  841. b.HasIndex("BankAccountId");
  842. b.HasIndex("TemplateId");
  843. b.HasIndex("UserId");
  844. b.HasIndex("Telephone", "CellNumber", "Email")
  845. .IsUnique()
  846. .HasFilter("[Telephone] IS NOT NULL AND [CellNumber] IS NOT NULL AND [Email] IS NOT NULL");
  847. b.ToTable("Individuals");
  848. });
  849. modelBuilder.Entity("UnivateProperties_API.Model.Users.NonRegIndividual", b =>
  850. {
  851. b.Property<int>("Id")
  852. .ValueGeneratedOnAdd()
  853. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  854. b.Property<string>("CellNumber");
  855. b.Property<string>("CompanyRegNumber");
  856. b.Property<DateTime>("Created");
  857. b.Property<string>("EmailAddress");
  858. b.Property<int>("HowMarried");
  859. b.Property<string>("IDNumber");
  860. b.Property<bool>("IsDeleted");
  861. b.Property<DateTime>("Modified");
  862. b.Property<string>("ModifiedBy");
  863. b.Property<string>("Name");
  864. b.Property<string>("SpouseCellnumber");
  865. b.Property<string>("SpouseEmail");
  866. b.Property<string>("SpouseName");
  867. b.Property<string>("SpouseSurname");
  868. b.Property<string>("SpouseTelephone");
  869. b.Property<string>("Surname");
  870. b.Property<string>("TelephoneNumber");
  871. b.Property<int?>("WeekId");
  872. b.HasKey("Id");
  873. b.ToTable("NonRegIndividuals");
  874. });
  875. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  876. {
  877. b.Property<int>("Id")
  878. .ValueGeneratedOnAdd()
  879. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  880. b.Property<string>("CellNumber");
  881. b.Property<DateTime>("Created");
  882. b.Property<string>("Email");
  883. b.Property<bool>("IsDeleted");
  884. b.Property<DateTime>("Modified");
  885. b.Property<string>("ModifiedBy");
  886. b.Property<string>("Name");
  887. b.Property<string>("Surname");
  888. b.Property<string>("Telephone");
  889. b.Property<int?>("UserId");
  890. b.HasKey("Id");
  891. b.HasIndex("UserId");
  892. b.ToTable("Person");
  893. });
  894. modelBuilder.Entity("UnivateProperties_API.Model.Users.User", b =>
  895. {
  896. b.Property<int>("Id")
  897. .ValueGeneratedOnAdd()
  898. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  899. b.Property<bool>("AcceptedTerms");
  900. b.Property<DateTime>("Created");
  901. b.Property<string>("FPToken");
  902. b.Property<bool>("IsDeleted");
  903. b.Property<bool>("LoginPasswordChange");
  904. b.Property<DateTime>("Modified");
  905. b.Property<string>("ModifiedBy");
  906. b.Property<byte[]>("PasswordHash");
  907. b.Property<byte[]>("PasswordSalt");
  908. b.Property<string>("Role");
  909. b.Property<string>("Token");
  910. b.Property<string>("Username");
  911. b.Property<bool>("Verified");
  912. b.HasKey("Id");
  913. b.HasIndex("Username")
  914. .IsUnique()
  915. .HasFilter("[Username] IS NOT NULL");
  916. b.ToTable("Users");
  917. });
  918. modelBuilder.Entity("UnivateProperties_API.Model.Users.UserRole", b =>
  919. {
  920. b.Property<int>("Id")
  921. .ValueGeneratedOnAdd()
  922. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  923. b.Property<DateTime>("Created");
  924. b.Property<bool>("IsDeleted");
  925. b.Property<DateTime>("Modified");
  926. b.Property<string>("ModifiedBy");
  927. b.Property<string>("RoleDescription");
  928. b.Property<string>("RoleName");
  929. b.HasKey("Id");
  930. b.ToTable("Roles");
  931. });
  932. modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
  933. {
  934. b.HasOne("UnivateProperties_API.Model.Banks.Bank", "Bank")
  935. .WithMany()
  936. .HasForeignKey("BankId");
  937. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  938. .WithMany()
  939. .HasForeignKey("OwnerId");
  940. });
  941. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItem", b =>
  942. {
  943. b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign")
  944. .WithMany("Items")
  945. .HasForeignKey("CampaignId")
  946. .OnDelete(DeleteBehavior.Cascade);
  947. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  948. .WithMany()
  949. .HasForeignKey("PropertyId")
  950. .OnDelete(DeleteBehavior.Cascade);
  951. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Week")
  952. .WithMany()
  953. .HasForeignKey("WeekId")
  954. .OnDelete(DeleteBehavior.Cascade);
  955. });
  956. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItemPlaceHolder", b =>
  957. {
  958. b.HasOne("UnivateProperties_API.Model.Campaigns.CampaignItem", "CampaignItem")
  959. .WithMany("CampaignItemPlaceHolder")
  960. .HasForeignKey("CampaignItemId")
  961. .OnDelete(DeleteBehavior.Cascade);
  962. b.HasOne("UnivateProperties_API.Model.Campaigns.PropertyCampaignItem")
  963. .WithMany("CampaignItemPlaceHolder")
  964. .HasForeignKey("PropertyCampaignItemId");
  965. });
  966. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignPlaceHolder", b =>
  967. {
  968. b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign")
  969. .WithMany("PlaceHolders")
  970. .HasForeignKey("CampaignId")
  971. .OnDelete(DeleteBehavior.Cascade);
  972. });
  973. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.PropertyCampaignItem", b =>
  974. {
  975. b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign")
  976. .WithMany("PropertyItems")
  977. .HasForeignKey("CampaignId")
  978. .OnDelete(DeleteBehavior.Cascade);
  979. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  980. .WithMany()
  981. .HasForeignKey("PropertyId")
  982. .OnDelete(DeleteBehavior.Cascade);
  983. });
  984. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  985. {
  986. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  987. .WithMany("Emails")
  988. .HasForeignKey("SenderId")
  989. .OnDelete(DeleteBehavior.Cascade);
  990. });
  991. modelBuilder.Entity("UnivateProperties_API.Model.Communication.MailModel", b =>
  992. {
  993. b.HasOne("UnivateProperties_API.Model.Communication.MailSource", "MailSource")
  994. .WithMany()
  995. .HasForeignKey("MailSourceId");
  996. });
  997. modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b =>
  998. {
  999. b.HasOne("UnivateProperties_API.Model.Communication.Template", "Template")
  1000. .WithMany("PlaceHolders")
  1001. .HasForeignKey("TemplateId")
  1002. .OnDelete(DeleteBehavior.Cascade);
  1003. });
  1004. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  1005. {
  1006. b.HasOne("UnivateProperties_API.Model.Communication.SMTPHost", "SMTPHost")
  1007. .WithMany("SMTPAccounts")
  1008. .HasForeignKey("SMTPHostId")
  1009. .OnDelete(DeleteBehavior.Cascade);
  1010. });
  1011. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b =>
  1012. {
  1013. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  1014. .WithMany("Templates")
  1015. .HasForeignKey("SenderId");
  1016. });
  1017. modelBuilder.Entity("UnivateProperties_API.Model.Financial.Payment", b =>
  1018. {
  1019. b.HasOne("UnivateProperties_API.Model.Users.User", "CreatedBy")
  1020. .WithMany()
  1021. .HasForeignKey("CreatedById");
  1022. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  1023. .WithMany()
  1024. .HasForeignKey("PropertyId");
  1025. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  1026. .WithMany()
  1027. .HasForeignKey("TimeshareWeekId");
  1028. });
  1029. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  1030. {
  1031. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  1032. .WithMany()
  1033. .HasForeignKey("OwnerId");
  1034. });
  1035. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  1036. {
  1037. b.HasOne("UnivateProperties_API.Model.Users.Individual", "BidMaker")
  1038. .WithMany()
  1039. .HasForeignKey("BidMakerId");
  1040. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  1041. .WithMany("BidItems")
  1042. .HasForeignKey("PropertyId");
  1043. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  1044. .WithMany()
  1045. .HasForeignKey("StatusId");
  1046. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  1047. .WithMany("BidItems")
  1048. .HasForeignKey("TimeshareWeekId");
  1049. });
  1050. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  1051. {
  1052. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  1053. .WithMany("ProcessFlows")
  1054. .HasForeignKey("PropertyID");
  1055. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  1056. .WithMany()
  1057. .HasForeignKey("StatusID")
  1058. .OnDelete(DeleteBehavior.Cascade);
  1059. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Timeshare")
  1060. .WithMany("ProcessFlows")
  1061. .HasForeignKey("TimeshareID");
  1062. });
  1063. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  1064. {
  1065. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  1066. .WithMany("Properties")
  1067. .HasForeignKey("AgencyId");
  1068. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  1069. .WithMany("Properties")
  1070. .HasForeignKey("AgentId");
  1071. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  1072. .WithMany("Properties")
  1073. .HasForeignKey("OwnerId");
  1074. b.HasOne("UnivateProperties_API.Model.Properties.PropertyType", "PropertyType")
  1075. .WithMany()
  1076. .HasForeignKey("PropertyTypeId")
  1077. .OnDelete(DeleteBehavior.Cascade);
  1078. });
  1079. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  1080. {
  1081. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  1082. .WithMany("PropertyImages")
  1083. .HasForeignKey("PropertyId")
  1084. .OnDelete(DeleteBehavior.Cascade);
  1085. });
  1086. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  1087. {
  1088. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  1089. .WithMany("PropertyUserFields")
  1090. .HasForeignKey("PropertyId")
  1091. .OnDelete(DeleteBehavior.Cascade);
  1092. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedField", "UserDefinedField")
  1093. .WithMany()
  1094. .HasForeignKey("UserDefinedFieldId")
  1095. .OnDelete(DeleteBehavior.Cascade);
  1096. });
  1097. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  1098. {
  1099. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedGroup", "Group")
  1100. .WithMany("Fields")
  1101. .HasForeignKey("GroupId")
  1102. .OnDelete(DeleteBehavior.Cascade);
  1103. });
  1104. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  1105. {
  1106. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  1107. .WithMany()
  1108. .HasForeignKey("ProvinceId")
  1109. .OnDelete(DeleteBehavior.Cascade);
  1110. });
  1111. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  1112. {
  1113. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  1114. .WithMany()
  1115. .HasForeignKey("CityId")
  1116. .OnDelete(DeleteBehavior.Cascade);
  1117. });
  1118. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  1119. {
  1120. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  1121. .WithMany()
  1122. .HasForeignKey("AgencyId");
  1123. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  1124. .WithMany()
  1125. .HasForeignKey("AgentId");
  1126. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  1127. .WithMany()
  1128. .HasForeignKey("OwnerId")
  1129. .OnDelete(DeleteBehavior.Cascade);
  1130. b.HasOne("UnivateProperties_API.Model.Region.Province", "Region")
  1131. .WithMany()
  1132. .HasForeignKey("RegionId")
  1133. .OnDelete(DeleteBehavior.Cascade);
  1134. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  1135. .WithMany()
  1136. .HasForeignKey("StatusId")
  1137. .OnDelete(DeleteBehavior.Cascade);
  1138. });
  1139. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  1140. {
  1141. b.HasOne("UnivateProperties_API.Model.Timeshare.UnitConfiguration", "UnitConfiguration")
  1142. .WithMany("Types")
  1143. .HasForeignKey("UnitConfigurationId")
  1144. .OnDelete(DeleteBehavior.Cascade);
  1145. });
  1146. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  1147. {
  1148. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  1149. .WithMany("Agents")
  1150. .HasForeignKey("AgencyId");
  1151. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  1152. .WithMany("AgentBCC")
  1153. .HasForeignKey("TemplateId");
  1154. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  1155. .WithMany()
  1156. .HasForeignKey("UserId");
  1157. });
  1158. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  1159. {
  1160. b.HasOne("UnivateProperties_API.Model.Misc.Address", "Address")
  1161. .WithMany()
  1162. .HasForeignKey("AddressId");
  1163. b.HasOne("UnivateProperties_API.Model.Banks.BankAccount", "BankAccount")
  1164. .WithMany()
  1165. .HasForeignKey("BankAccountId");
  1166. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  1167. .WithMany("IndividualBCC")
  1168. .HasForeignKey("TemplateId");
  1169. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  1170. .WithMany()
  1171. .HasForeignKey("UserId");
  1172. });
  1173. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  1174. {
  1175. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  1176. .WithMany()
  1177. .HasForeignKey("UserId");
  1178. });
  1179. #pragma warning restore 612, 618
  1180. }
  1181. }
  1182. }