API
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

20210413100140_uploadcampaign.Designer.cs 59KB

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