API
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

20200918092143_Added Cutoff show date.Designer.cs 53KB

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