API
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

20220830051240_BidItemAddConsent.Designer.cs 62KB

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