API
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

DataContextModelSnapshot.cs 53KB

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