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

DataContextModelSnapshot.cs 55KB

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