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.

20220829091410_addConsentCommunicationAndWeeks.Designer.cs 62KB

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