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.

20200902101725_Property-Addresses updated.Designer.cs 51KB

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