API
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

DataContextModelSnapshot.cs 43KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327
  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.6-servicing-10079")
  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.Communication.Email", b =>
  53. {
  54. b.Property<int>("Id")
  55. .ValueGeneratedOnAdd()
  56. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  57. b.Property<string>("BCC");
  58. b.Property<string>("Body");
  59. b.Property<string>("CC");
  60. b.Property<string>("Comment");
  61. b.Property<DateTime>("Created");
  62. b.Property<bool>("IsBodyHtml");
  63. b.Property<bool>("IsDeleted");
  64. b.Property<DateTime>("Modified");
  65. b.Property<string>("ModifiedBy");
  66. b.Property<int>("SenderId");
  67. b.Property<string>("Subject");
  68. b.Property<string>("To");
  69. b.Property<string>("ToDisplay");
  70. b.HasKey("Id");
  71. b.HasIndex("SenderId");
  72. b.ToTable("Emails");
  73. });
  74. modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b =>
  75. {
  76. b.Property<int>("Id")
  77. .ValueGeneratedOnAdd()
  78. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  79. b.Property<string>("BoundTo");
  80. b.Property<string>("BoundToClass");
  81. b.Property<string>("BoundToClassDisplay");
  82. b.Property<DateTime>("Created");
  83. b.Property<bool>("IsDeleted");
  84. b.Property<DateTime>("Modified");
  85. b.Property<string>("ModifiedBy");
  86. b.Property<string>("Name");
  87. b.Property<int>("TemplateId");
  88. b.HasKey("Id");
  89. b.HasIndex("TemplateId");
  90. b.ToTable("PlaceHolders");
  91. });
  92. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  93. {
  94. b.Property<int>("Id")
  95. .ValueGeneratedOnAdd()
  96. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  97. b.Property<string>("Address");
  98. b.Property<DateTime>("Created");
  99. b.Property<bool>("Default");
  100. b.Property<string>("DisplayName");
  101. b.Property<bool>("IsDeleted");
  102. b.Property<DateTime>("Modified");
  103. b.Property<string>("ModifiedBy");
  104. b.Property<int>("SMTPHostId");
  105. b.HasKey("Id");
  106. b.HasIndex("SMTPHostId");
  107. b.ToTable("Accounts");
  108. });
  109. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPHost", b =>
  110. {
  111. b.Property<int>("Id")
  112. .ValueGeneratedOnAdd()
  113. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  114. b.Property<DateTime>("Created");
  115. b.Property<string>("Host");
  116. b.Property<bool>("IsDeleted");
  117. b.Property<DateTime>("Modified");
  118. b.Property<string>("ModifiedBy");
  119. b.Property<bool>("NeedsAuthorize");
  120. b.Property<string>("Password");
  121. b.Property<bool>("UseSSL");
  122. b.Property<string>("User");
  123. b.HasKey("Id");
  124. b.ToTable("Hosts");
  125. });
  126. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b =>
  127. {
  128. b.Property<int>("Id")
  129. .ValueGeneratedOnAdd()
  130. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  131. b.Property<string>("Body");
  132. b.Property<DateTime>("Created");
  133. b.Property<bool>("IsDeleted");
  134. b.Property<DateTime>("Modified");
  135. b.Property<string>("ModifiedBy");
  136. b.Property<string>("Name");
  137. b.Property<int?>("SenderId");
  138. b.Property<string>("Subject");
  139. b.HasKey("Id");
  140. b.HasIndex("SenderId");
  141. b.ToTable("Templates");
  142. });
  143. modelBuilder.Entity("UnivateProperties_API.Model.Logging.SearchLog", b =>
  144. {
  145. b.Property<int>("Id")
  146. .ValueGeneratedOnAdd()
  147. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  148. b.Property<DateTime>("Created");
  149. b.Property<bool>("IsDeleted");
  150. b.Property<DateTime>("Modified");
  151. b.Property<string>("ModifiedBy");
  152. b.Property<string>("Search");
  153. b.Property<string>("Type");
  154. b.HasKey("Id");
  155. b.ToTable("SearchLogs");
  156. });
  157. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  158. {
  159. b.Property<int>("Id")
  160. .ValueGeneratedOnAdd()
  161. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  162. b.Property<string>("City");
  163. b.Property<DateTime>("Created");
  164. b.Property<bool>("IsDeleted");
  165. b.Property<DateTime>("Modified");
  166. b.Property<string>("ModifiedBy");
  167. b.Property<int?>("OwnerId");
  168. b.Property<string>("PostalCode");
  169. b.Property<string>("Street");
  170. b.Property<string>("StreetNumber");
  171. b.Property<string>("Suburb");
  172. b.HasKey("Id");
  173. b.HasIndex("OwnerId");
  174. b.ToTable("Addresses");
  175. });
  176. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Carousel", b =>
  177. {
  178. b.Property<int>("Id")
  179. .ValueGeneratedOnAdd()
  180. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  181. b.Property<DateTime>("Created");
  182. b.Property<string>("Header");
  183. b.Property<string>("Image");
  184. b.Property<bool>("IsDeleted");
  185. b.Property<DateTime>("Modified");
  186. b.Property<string>("ModifiedBy");
  187. b.Property<int>("PropertyId");
  188. b.Property<int>("TimeshareId");
  189. b.HasKey("Id");
  190. b.ToTable("Carousel");
  191. });
  192. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Location", b =>
  193. {
  194. b.Property<int>("Id")
  195. .ValueGeneratedOnAdd()
  196. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  197. b.Property<DateTime>("Created");
  198. b.Property<bool>("IsDeleted");
  199. b.Property<bool>("IsTesting");
  200. b.Property<DateTime>("Modified");
  201. b.Property<string>("ModifiedBy");
  202. b.Property<string>("PropertyImageLocation");
  203. b.HasKey("Id");
  204. b.ToTable("Location");
  205. });
  206. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  207. {
  208. b.Property<int>("Id")
  209. .ValueGeneratedOnAdd()
  210. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  211. b.Property<double>("Amount");
  212. b.Property<int?>("BidMakerId");
  213. b.Property<string>("Comment");
  214. b.Property<DateTime>("Created");
  215. b.Property<string>("DeclinedReason");
  216. b.Property<bool>("IsDeleted");
  217. b.Property<DateTime>("Modified");
  218. b.Property<string>("ModifiedBy");
  219. b.Property<int?>("PropertyId");
  220. b.Property<int?>("StatusId");
  221. b.Property<int?>("TimeshareWeekId");
  222. b.HasKey("Id");
  223. b.HasIndex("BidMakerId");
  224. b.HasIndex("PropertyId");
  225. b.HasIndex("StatusId");
  226. b.HasIndex("TimeshareWeekId");
  227. b.ToTable("BidItems");
  228. });
  229. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  230. {
  231. b.Property<int>("Id")
  232. .ValueGeneratedOnAdd()
  233. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  234. b.Property<DateTime>("Created");
  235. b.Property<bool>("IsDeleted");
  236. b.Property<DateTime>("Modified");
  237. b.Property<string>("ModifiedBy");
  238. b.Property<int?>("PropertyID");
  239. b.Property<int>("StatusID");
  240. b.Property<int?>("TimeshareID");
  241. b.HasKey("Id");
  242. b.HasIndex("PropertyID");
  243. b.HasIndex("StatusID");
  244. b.HasIndex("TimeshareID");
  245. b.ToTable("ProcessFlows");
  246. });
  247. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  248. {
  249. b.Property<int>("Id")
  250. .ValueGeneratedOnAdd()
  251. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  252. b.Property<string>("AddressLine1");
  253. b.Property<string>("AddressLine2");
  254. b.Property<string>("AddressLine3");
  255. b.Property<int?>("AgencyId");
  256. b.Property<int?>("AgentId");
  257. b.Property<int>("CityId");
  258. b.Property<DateTime>("Created");
  259. b.Property<string>("Description");
  260. b.Property<bool>("IsDeleted");
  261. b.Property<bool>("IsSale");
  262. b.Property<DateTime>("Modified");
  263. b.Property<string>("ModifiedBy");
  264. b.Property<decimal>("OperationalCosts");
  265. b.Property<int?>("OwnerId");
  266. b.Property<decimal>("Price");
  267. b.Property<string>("PricePer");
  268. b.Property<string>("PropertyName");
  269. b.Property<int>("PropertyTypeId");
  270. b.Property<int>("ProvinceId");
  271. b.Property<bool>("Published");
  272. b.Property<string>("ShortDescription");
  273. b.Property<int?>("StatusId");
  274. b.Property<int>("SuburbId");
  275. b.Property<string>("Unit");
  276. b.Property<string>("Video");
  277. b.Property<string>("VirtualTour");
  278. b.HasKey("Id");
  279. b.HasIndex("AgencyId");
  280. b.HasIndex("AgentId");
  281. b.HasIndex("CityId");
  282. b.HasIndex("OwnerId");
  283. b.HasIndex("PropertyTypeId");
  284. b.HasIndex("ProvinceId");
  285. b.HasIndex("StatusId");
  286. b.HasIndex("SuburbId");
  287. b.ToTable("Properties");
  288. });
  289. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  290. {
  291. b.Property<int>("Id")
  292. .ValueGeneratedOnAdd()
  293. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  294. b.Property<DateTime>("Created");
  295. b.Property<string>("Image");
  296. b.Property<bool>("IsDefault");
  297. b.Property<bool>("IsDeleted");
  298. b.Property<DateTime>("Modified");
  299. b.Property<string>("ModifiedBy");
  300. b.Property<int>("PropertyId");
  301. b.HasKey("Id");
  302. b.HasIndex("PropertyId");
  303. b.ToTable("PropertyImages");
  304. });
  305. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyType", b =>
  306. {
  307. b.Property<int>("Id")
  308. .ValueGeneratedOnAdd()
  309. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  310. b.Property<DateTime>("Created");
  311. b.Property<string>("Description");
  312. b.Property<bool>("IsDeleted");
  313. b.Property<DateTime>("Modified");
  314. b.Property<string>("ModifiedBy");
  315. b.Property<int>("UsageType");
  316. b.HasKey("Id");
  317. b.ToTable("PropertyTypes");
  318. });
  319. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  320. {
  321. b.Property<int>("Id")
  322. .ValueGeneratedOnAdd()
  323. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  324. b.Property<DateTime>("Created");
  325. b.Property<string>("Description");
  326. b.Property<bool>("IsDeleted");
  327. b.Property<DateTime>("Modified");
  328. b.Property<string>("ModifiedBy");
  329. b.Property<int>("PropertyId");
  330. b.Property<int>("UserDefinedFieldId");
  331. b.Property<string>("Value");
  332. b.HasKey("Id");
  333. b.HasIndex("PropertyId");
  334. b.HasIndex("UserDefinedFieldId");
  335. b.ToTable("PropertyUserFields");
  336. });
  337. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  338. {
  339. b.Property<int>("Id")
  340. .ValueGeneratedOnAdd()
  341. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  342. b.Property<DateTime>("Created");
  343. b.Property<string>("FieldName");
  344. b.Property<string>("FieldType");
  345. b.Property<int>("GroupId");
  346. b.Property<bool>("IsDeleted");
  347. b.Property<DateTime>("Modified");
  348. b.Property<string>("ModifiedBy");
  349. b.Property<int>("Rank");
  350. b.HasKey("Id");
  351. b.HasIndex("GroupId");
  352. b.ToTable("UserDefinedFields");
  353. });
  354. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedGroup", b =>
  355. {
  356. b.Property<int>("Id")
  357. .ValueGeneratedOnAdd()
  358. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  359. b.Property<DateTime>("Created");
  360. b.Property<string>("Description");
  361. b.Property<bool>("IsDeleted");
  362. b.Property<DateTime>("Modified");
  363. b.Property<string>("ModifiedBy");
  364. b.Property<int>("Rank");
  365. b.Property<int>("UsageType");
  366. b.HasKey("Id");
  367. b.ToTable("UserDefinedGroups");
  368. });
  369. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  370. {
  371. b.Property<int>("Id")
  372. .ValueGeneratedOnAdd()
  373. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  374. b.Property<string>("Code");
  375. b.Property<DateTime>("Created");
  376. b.Property<string>("Description");
  377. b.Property<bool>("IsDeleted");
  378. b.Property<DateTime>("Modified");
  379. b.Property<string>("ModifiedBy");
  380. b.Property<int>("ProvinceId");
  381. b.HasKey("Id");
  382. b.HasIndex("ProvinceId");
  383. b.ToTable("Cities");
  384. });
  385. modelBuilder.Entity("UnivateProperties_API.Model.Region.Province", b =>
  386. {
  387. b.Property<int>("Id")
  388. .ValueGeneratedOnAdd()
  389. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  390. b.Property<string>("Code");
  391. b.Property<DateTime>("Created");
  392. b.Property<string>("Description");
  393. b.Property<bool>("IsDeleted");
  394. b.Property<DateTime>("Modified");
  395. b.Property<string>("ModifiedBy");
  396. b.HasKey("Id");
  397. b.ToTable("Provinces");
  398. });
  399. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  400. {
  401. b.Property<int>("Id")
  402. .ValueGeneratedOnAdd()
  403. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  404. b.Property<int>("CityId");
  405. b.Property<DateTime>("Created");
  406. b.Property<string>("Description");
  407. b.Property<bool>("IsDeleted");
  408. b.Property<DateTime>("Modified");
  409. b.Property<string>("ModifiedBy");
  410. b.Property<string>("PostalCode");
  411. b.HasKey("Id");
  412. b.HasIndex("CityId");
  413. b.ToTable("Suburbs");
  414. });
  415. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Season", b =>
  416. {
  417. b.Property<int>("Id")
  418. .ValueGeneratedOnAdd()
  419. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  420. b.Property<DateTime>("Created");
  421. b.Property<bool>("IsDeleted");
  422. b.Property<DateTime>("Modified");
  423. b.Property<string>("ModifiedBy");
  424. b.Property<string>("Name");
  425. b.HasKey("Id");
  426. b.ToTable("Seasons");
  427. });
  428. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Status", b =>
  429. {
  430. b.Property<int>("Id")
  431. .ValueGeneratedOnAdd()
  432. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  433. b.Property<string>("Code");
  434. b.Property<DateTime>("Created");
  435. b.Property<string>("Description");
  436. b.Property<bool>("IsDeleted");
  437. b.Property<DateTime>("Modified");
  438. b.Property<string>("ModifiedBy");
  439. b.Property<int>("StatusType");
  440. b.HasKey("Id");
  441. b.ToTable("Status");
  442. });
  443. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  444. {
  445. b.Property<int>("Id")
  446. .ValueGeneratedOnAdd()
  447. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  448. b.Property<int?>("AgencyId");
  449. b.Property<bool>("AgentAsRep");
  450. b.Property<double>("AgentCommision");
  451. b.Property<int?>("AgentId");
  452. b.Property<DateTime>("ArrivalDate");
  453. b.Property<string>("BankedWith");
  454. b.Property<int>("Bedrooms");
  455. b.Property<DateTime>("Created");
  456. b.Property<bool>("CurrentYearBanked");
  457. b.Property<DateTime>("DepartureDate");
  458. b.Property<bool>("IsDeleted");
  459. b.Property<bool>("LeviesPaidInFull");
  460. b.Property<double>("LevyAmount");
  461. b.Property<string>("Mandate");
  462. b.Property<int>("MaxSleep");
  463. b.Property<DateTime>("Modified");
  464. b.Property<string>("ModifiedBy");
  465. b.Property<string>("Module");
  466. b.Property<DateTime>("OriginalPurchaseDate");
  467. b.Property<double>("OriginalPurchasePrice");
  468. b.Property<bool>("OtherResort");
  469. b.Property<string>("OtherResortName");
  470. b.Property<int>("OwnerId");
  471. b.Property<bool>("ReferedByAgent");
  472. b.Property<int>("RegionId");
  473. b.Property<string>("ResortCode");
  474. b.Property<string>("ResortName");
  475. b.Property<string>("Season");
  476. b.Property<double>("SellPrice");
  477. b.Property<int>("StatusId");
  478. b.Property<string>("UnitNumber");
  479. b.Property<string>("WeekNumber");
  480. b.Property<bool>("WeekPlacedForRental");
  481. b.HasKey("Id");
  482. b.HasIndex("AgencyId");
  483. b.HasIndex("AgentId");
  484. b.HasIndex("OwnerId");
  485. b.HasIndex("RegionId");
  486. b.HasIndex("StatusId");
  487. b.ToTable("Weeks");
  488. });
  489. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfiguration", b =>
  490. {
  491. b.Property<int>("Id")
  492. .ValueGeneratedOnAdd()
  493. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  494. b.Property<int>("Adults");
  495. b.Property<int>("Bedrooms");
  496. b.Property<int>("Children");
  497. b.Property<string>("Code");
  498. b.Property<DateTime>("Created");
  499. b.Property<bool>("IsDeleted");
  500. b.Property<DateTime>("Modified");
  501. b.Property<string>("ModifiedBy");
  502. b.HasKey("Id");
  503. b.HasIndex("Code")
  504. .IsUnique()
  505. .HasFilter("[Code] IS NOT NULL");
  506. b.ToTable("UnitConfigurations");
  507. });
  508. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  509. {
  510. b.Property<int>("Id")
  511. .ValueGeneratedOnAdd()
  512. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  513. b.Property<DateTime>("Created");
  514. b.Property<string>("Description");
  515. b.Property<bool>("IsDeleted");
  516. b.Property<DateTime>("Modified");
  517. b.Property<string>("ModifiedBy");
  518. b.Property<int>("UnitConfigurationId");
  519. b.HasKey("Id");
  520. b.HasIndex("UnitConfigurationId");
  521. b.ToTable("UnitConfigurationTypes");
  522. });
  523. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agency", b =>
  524. {
  525. b.Property<int>("Id")
  526. .ValueGeneratedOnAdd()
  527. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  528. b.Property<string>("AgencyName");
  529. b.Property<string>("CompanyRegNumber");
  530. b.Property<DateTime>("Created");
  531. b.Property<string>("EAABEFFCNumber");
  532. b.Property<bool>("IsDeleted");
  533. b.Property<DateTime>("Modified");
  534. b.Property<string>("ModifiedBy");
  535. b.HasKey("Id");
  536. b.ToTable("Agencies");
  537. });
  538. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  539. {
  540. b.Property<int>("Id")
  541. .ValueGeneratedOnAdd()
  542. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  543. b.Property<int?>("AgencyId");
  544. b.Property<string>("CellNumber");
  545. b.Property<DateTime>("Created");
  546. b.Property<string>("Email");
  547. b.Property<bool>("IsDeleted");
  548. b.Property<DateTime>("Modified");
  549. b.Property<string>("ModifiedBy");
  550. b.Property<string>("Name");
  551. b.Property<string>("Surname");
  552. b.Property<string>("Telephone");
  553. b.Property<int?>("TemplateId");
  554. b.Property<int?>("UserId");
  555. b.HasKey("Id");
  556. b.HasIndex("AgencyId");
  557. b.HasIndex("TemplateId");
  558. b.HasIndex("UserId");
  559. b.ToTable("Agents");
  560. });
  561. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  562. {
  563. b.Property<int>("Id")
  564. .ValueGeneratedOnAdd()
  565. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  566. b.Property<int?>("AddressId");
  567. b.Property<int?>("BankAccountId");
  568. b.Property<string>("CellNumber");
  569. b.Property<string>("CompanyRegNumber");
  570. b.Property<DateTime>("Created");
  571. b.Property<string>("Email");
  572. b.Property<string>("IdNumber");
  573. b.Property<string>("IncomeTaxNumber");
  574. b.Property<bool>("IsDeleted");
  575. b.Property<string>("MaritalStatus");
  576. b.Property<DateTime>("Modified");
  577. b.Property<string>("ModifiedBy");
  578. b.Property<string>("Name");
  579. b.Property<string>("Surname");
  580. b.Property<string>("Telephone");
  581. b.Property<int?>("TemplateId");
  582. b.Property<int?>("UserId");
  583. b.HasKey("Id");
  584. b.HasIndex("AddressId");
  585. b.HasIndex("BankAccountId");
  586. b.HasIndex("TemplateId");
  587. b.HasIndex("UserId");
  588. b.HasIndex("Telephone", "CellNumber", "Email")
  589. .IsUnique()
  590. .HasFilter("[Telephone] IS NOT NULL AND [CellNumber] IS NOT NULL AND [Email] IS NOT NULL");
  591. b.ToTable("Individuals");
  592. });
  593. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  594. {
  595. b.Property<int>("Id")
  596. .ValueGeneratedOnAdd()
  597. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  598. b.Property<string>("CellNumber");
  599. b.Property<DateTime>("Created");
  600. b.Property<string>("Email");
  601. b.Property<bool>("IsDeleted");
  602. b.Property<DateTime>("Modified");
  603. b.Property<string>("ModifiedBy");
  604. b.Property<string>("Name");
  605. b.Property<string>("Surname");
  606. b.Property<string>("Telephone");
  607. b.Property<int?>("UserId");
  608. b.HasKey("Id");
  609. b.HasIndex("UserId");
  610. b.ToTable("Person");
  611. });
  612. modelBuilder.Entity("UnivateProperties_API.Model.Users.User", b =>
  613. {
  614. b.Property<int>("Id")
  615. .ValueGeneratedOnAdd()
  616. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  617. b.Property<DateTime>("Created");
  618. b.Property<bool>("IsDeleted");
  619. b.Property<DateTime>("Modified");
  620. b.Property<string>("ModifiedBy");
  621. b.Property<byte[]>("PasswordHash");
  622. b.Property<byte[]>("PasswordSalt");
  623. b.Property<string>("Role");
  624. b.Property<string>("Token");
  625. b.Property<string>("Username");
  626. b.Property<bool>("Verified");
  627. b.HasKey("Id");
  628. b.HasIndex("Username")
  629. .IsUnique()
  630. .HasFilter("[Username] IS NOT NULL");
  631. b.ToTable("Users");
  632. });
  633. modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
  634. {
  635. b.HasOne("UnivateProperties_API.Model.Banks.Bank", "Bank")
  636. .WithMany()
  637. .HasForeignKey("BankId");
  638. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  639. .WithMany()
  640. .HasForeignKey("OwnerId");
  641. });
  642. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  643. {
  644. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  645. .WithMany("Emails")
  646. .HasForeignKey("SenderId")
  647. .OnDelete(DeleteBehavior.Cascade);
  648. });
  649. modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b =>
  650. {
  651. b.HasOne("UnivateProperties_API.Model.Communication.Template", "Template")
  652. .WithMany("PlaceHolders")
  653. .HasForeignKey("TemplateId")
  654. .OnDelete(DeleteBehavior.Cascade);
  655. });
  656. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  657. {
  658. b.HasOne("UnivateProperties_API.Model.Communication.SMTPHost", "SMTPHost")
  659. .WithMany("SMTPAccounts")
  660. .HasForeignKey("SMTPHostId")
  661. .OnDelete(DeleteBehavior.Cascade);
  662. });
  663. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b =>
  664. {
  665. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  666. .WithMany("Templates")
  667. .HasForeignKey("SenderId");
  668. });
  669. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  670. {
  671. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  672. .WithMany()
  673. .HasForeignKey("OwnerId");
  674. });
  675. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  676. {
  677. b.HasOne("UnivateProperties_API.Model.Users.Individual", "BidMaker")
  678. .WithMany()
  679. .HasForeignKey("BidMakerId");
  680. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  681. .WithMany("BidItems")
  682. .HasForeignKey("PropertyId");
  683. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  684. .WithMany()
  685. .HasForeignKey("StatusId");
  686. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  687. .WithMany("BidItems")
  688. .HasForeignKey("TimeshareWeekId");
  689. });
  690. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  691. {
  692. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  693. .WithMany("ProcessFlows")
  694. .HasForeignKey("PropertyID");
  695. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  696. .WithMany()
  697. .HasForeignKey("StatusID")
  698. .OnDelete(DeleteBehavior.Cascade);
  699. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Timeshare")
  700. .WithMany("ProcessFlows")
  701. .HasForeignKey("TimeshareID");
  702. });
  703. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  704. {
  705. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  706. .WithMany("Properties")
  707. .HasForeignKey("AgencyId");
  708. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  709. .WithMany("Properties")
  710. .HasForeignKey("AgentId");
  711. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  712. .WithMany()
  713. .HasForeignKey("CityId")
  714. .OnDelete(DeleteBehavior.Cascade);
  715. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  716. .WithMany("Properties")
  717. .HasForeignKey("OwnerId");
  718. b.HasOne("UnivateProperties_API.Model.Properties.PropertyType", "PropertyType")
  719. .WithMany()
  720. .HasForeignKey("PropertyTypeId")
  721. .OnDelete(DeleteBehavior.Cascade);
  722. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  723. .WithMany()
  724. .HasForeignKey("ProvinceId")
  725. .OnDelete(DeleteBehavior.Cascade);
  726. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  727. .WithMany()
  728. .HasForeignKey("StatusId");
  729. b.HasOne("UnivateProperties_API.Model.Region.Suburb", "Suburb")
  730. .WithMany()
  731. .HasForeignKey("SuburbId")
  732. .OnDelete(DeleteBehavior.Cascade);
  733. });
  734. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  735. {
  736. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  737. .WithMany("PropertyImages")
  738. .HasForeignKey("PropertyId")
  739. .OnDelete(DeleteBehavior.Cascade);
  740. });
  741. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  742. {
  743. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  744. .WithMany("PropertyUserFields")
  745. .HasForeignKey("PropertyId")
  746. .OnDelete(DeleteBehavior.Cascade);
  747. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedField", "UserDefinedField")
  748. .WithMany()
  749. .HasForeignKey("UserDefinedFieldId")
  750. .OnDelete(DeleteBehavior.Cascade);
  751. });
  752. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  753. {
  754. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedGroup", "Group")
  755. .WithMany("Fields")
  756. .HasForeignKey("GroupId")
  757. .OnDelete(DeleteBehavior.Cascade);
  758. });
  759. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  760. {
  761. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  762. .WithMany()
  763. .HasForeignKey("ProvinceId")
  764. .OnDelete(DeleteBehavior.Cascade);
  765. });
  766. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  767. {
  768. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  769. .WithMany()
  770. .HasForeignKey("CityId")
  771. .OnDelete(DeleteBehavior.Cascade);
  772. });
  773. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  774. {
  775. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  776. .WithMany()
  777. .HasForeignKey("AgencyId");
  778. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  779. .WithMany()
  780. .HasForeignKey("AgentId");
  781. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  782. .WithMany()
  783. .HasForeignKey("OwnerId")
  784. .OnDelete(DeleteBehavior.Cascade);
  785. b.HasOne("UnivateProperties_API.Model.Region.Province", "Region")
  786. .WithMany()
  787. .HasForeignKey("RegionId")
  788. .OnDelete(DeleteBehavior.Cascade);
  789. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  790. .WithMany()
  791. .HasForeignKey("StatusId")
  792. .OnDelete(DeleteBehavior.Cascade);
  793. });
  794. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  795. {
  796. b.HasOne("UnivateProperties_API.Model.Timeshare.UnitConfiguration", "UnitConfiguration")
  797. .WithMany("Types")
  798. .HasForeignKey("UnitConfigurationId")
  799. .OnDelete(DeleteBehavior.Cascade);
  800. });
  801. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  802. {
  803. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  804. .WithMany("Agents")
  805. .HasForeignKey("AgencyId");
  806. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  807. .WithMany("AgentBCC")
  808. .HasForeignKey("TemplateId");
  809. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  810. .WithMany()
  811. .HasForeignKey("UserId");
  812. });
  813. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  814. {
  815. b.HasOne("UnivateProperties_API.Model.Misc.Address", "Address")
  816. .WithMany()
  817. .HasForeignKey("AddressId");
  818. b.HasOne("UnivateProperties_API.Model.Banks.BankAccount", "BankAccount")
  819. .WithMany()
  820. .HasForeignKey("BankAccountId");
  821. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  822. .WithMany("IndividualBCC")
  823. .HasForeignKey("TemplateId");
  824. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  825. .WithMany()
  826. .HasForeignKey("UserId");
  827. });
  828. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  829. {
  830. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  831. .WithMany()
  832. .HasForeignKey("UserId");
  833. });
  834. #pragma warning restore 612, 618
  835. }
  836. }
  837. }