API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DataContextModelSnapshot.cs 51KB

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