API
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

DataContextModelSnapshot.cs 62KB

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