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.

DataContextModelSnapshot.cs 60KB

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