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.

20210420082156_CommunicationSystem.Designer.cs 61KB

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