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.

20201117074922_nonRegIndiv.Designer.cs 56KB

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