API
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

20190905084739_AddedSellPrice.Designer.cs 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Migrations;
  6. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  7. using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
  8. using UnivateProperties_API.Context;
  9. namespace UnivateProperties_API.Migrations
  10. {
  11. [DbContext(typeof(DataContext))]
  12. [Migration("20190905084739_AddedSellPrice")]
  13. partial class AddedSellPrice
  14. {
  15. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder
  19. .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn)
  20. .HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
  21. .HasAnnotation("Relational:MaxIdentifierLength", 63);
  22. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  23. {
  24. b.Property<int>("Id")
  25. .ValueGeneratedOnAdd();
  26. b.Property<string>("BCC");
  27. b.Property<string>("Body");
  28. b.Property<string>("CC");
  29. b.Property<string>("Comment");
  30. b.Property<DateTime>("Created");
  31. b.Property<bool>("IsBodyHtml");
  32. b.Property<DateTime>("Modified");
  33. b.Property<string>("ModifiedBy");
  34. b.Property<int>("SenderId");
  35. b.Property<string>("Subject");
  36. b.Property<string>("To");
  37. b.Property<string>("ToDisplay");
  38. b.HasKey("Id");
  39. b.HasIndex("SenderId");
  40. b.ToTable("Emails");
  41. });
  42. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  43. {
  44. b.Property<int>("Id")
  45. .ValueGeneratedOnAdd();
  46. b.Property<string>("Address");
  47. b.Property<DateTime>("Created");
  48. b.Property<string>("DisplayName");
  49. b.Property<DateTime>("Modified");
  50. b.Property<string>("ModifiedBy");
  51. b.Property<int>("SMTPHostId");
  52. b.HasKey("Id");
  53. b.HasIndex("SMTPHostId");
  54. b.ToTable("Accounts");
  55. });
  56. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPHost", b =>
  57. {
  58. b.Property<int>("Id")
  59. .ValueGeneratedOnAdd();
  60. b.Property<DateTime>("Created");
  61. b.Property<string>("Host");
  62. b.Property<DateTime>("Modified");
  63. b.Property<string>("ModifiedBy");
  64. b.Property<bool>("NeedsAuthorize");
  65. b.Property<string>("Password");
  66. b.Property<bool>("UseSSL");
  67. b.Property<string>("User");
  68. b.HasKey("Id");
  69. b.ToTable("Hosts");
  70. });
  71. modelBuilder.Entity("UnivateProperties_API.Model.Property.Property", b =>
  72. {
  73. b.Property<int>("Id")
  74. .ValueGeneratedOnAdd();
  75. b.Property<string>("AddressLine1");
  76. b.Property<string>("AddressLine2");
  77. b.Property<string>("AddressLine3");
  78. b.Property<int>("CityId");
  79. b.Property<DateTime>("Created");
  80. b.Property<string>("CreatedBy");
  81. b.Property<string>("Description");
  82. b.Property<bool>("IsSale");
  83. b.Property<DateTime>("Modified");
  84. b.Property<string>("ModifiedBy");
  85. b.Property<decimal>("OperationalCosts");
  86. b.Property<decimal>("Price");
  87. b.Property<string>("PricePer");
  88. b.Property<string>("PropertyName");
  89. b.Property<int>("PropertyTypeId");
  90. b.Property<int>("ProvinceId");
  91. b.Property<bool>("Published");
  92. b.Property<string>("ShortDescription");
  93. b.Property<int>("SuburbId");
  94. b.Property<string>("Unit");
  95. b.HasKey("Id");
  96. b.HasIndex("CityId");
  97. b.HasIndex("PropertyTypeId");
  98. b.HasIndex("ProvinceId");
  99. b.HasIndex("SuburbId");
  100. b.ToTable("Properties");
  101. });
  102. modelBuilder.Entity("UnivateProperties_API.Model.Property.PropertyImage", b =>
  103. {
  104. b.Property<int>("Id")
  105. .ValueGeneratedOnAdd();
  106. b.Property<DateTime>("Created");
  107. b.Property<string>("Image");
  108. b.Property<bool>("IsDefault");
  109. b.Property<DateTime>("Modified");
  110. b.Property<string>("ModifiedBy");
  111. b.Property<int>("PropertyId");
  112. b.HasKey("Id");
  113. b.HasIndex("PropertyId");
  114. b.ToTable("PropertyImages");
  115. });
  116. modelBuilder.Entity("UnivateProperties_API.Model.Property.PropertyType", b =>
  117. {
  118. b.Property<int>("Id")
  119. .ValueGeneratedOnAdd();
  120. b.Property<DateTime>("Created");
  121. b.Property<string>("Description");
  122. b.Property<DateTime>("Modified");
  123. b.Property<string>("ModifiedBy");
  124. b.Property<int>("UsageType");
  125. b.HasKey("Id");
  126. b.ToTable("PropertyTypes");
  127. });
  128. modelBuilder.Entity("UnivateProperties_API.Model.Property.PropertyUserField", b =>
  129. {
  130. b.Property<int>("Id")
  131. .ValueGeneratedOnAdd();
  132. b.Property<DateTime>("Created");
  133. b.Property<string>("Description");
  134. b.Property<DateTime>("Modified");
  135. b.Property<string>("ModifiedBy");
  136. b.Property<int>("PropertyId");
  137. b.Property<int>("UserDefinedFieldId");
  138. b.Property<string>("Value");
  139. b.HasKey("Id");
  140. b.HasIndex("PropertyId");
  141. b.HasIndex("UserDefinedFieldId");
  142. b.ToTable("PropertyUserFields");
  143. });
  144. modelBuilder.Entity("UnivateProperties_API.Model.Property.UserDefinedField", b =>
  145. {
  146. b.Property<int>("Id")
  147. .ValueGeneratedOnAdd();
  148. b.Property<DateTime>("Created");
  149. b.Property<string>("FieldName");
  150. b.Property<string>("FieldType");
  151. b.Property<int>("GroupId");
  152. b.Property<DateTime>("Modified");
  153. b.Property<string>("ModifiedBy");
  154. b.Property<int>("Rank");
  155. b.HasKey("Id");
  156. b.HasIndex("GroupId");
  157. b.ToTable("UserDefinedFields");
  158. });
  159. modelBuilder.Entity("UnivateProperties_API.Model.Property.UserDefinedGroup", b =>
  160. {
  161. b.Property<int>("Id")
  162. .ValueGeneratedOnAdd();
  163. b.Property<DateTime>("Created");
  164. b.Property<string>("Description");
  165. b.Property<DateTime>("Modified");
  166. b.Property<string>("ModifiedBy");
  167. b.Property<int>("Rank");
  168. b.Property<int>("UsageType");
  169. b.HasKey("Id");
  170. b.ToTable("UserDefinedGroups");
  171. });
  172. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  173. {
  174. b.Property<int>("Id")
  175. .ValueGeneratedOnAdd();
  176. b.Property<string>("Code");
  177. b.Property<DateTime>("Created");
  178. b.Property<string>("Description");
  179. b.Property<DateTime>("Modified");
  180. b.Property<string>("ModifiedBy");
  181. b.Property<int>("ProvinceId");
  182. b.HasKey("Id");
  183. b.HasIndex("ProvinceId");
  184. b.ToTable("Cities");
  185. });
  186. modelBuilder.Entity("UnivateProperties_API.Model.Region.Province", b =>
  187. {
  188. b.Property<int>("Id")
  189. .ValueGeneratedOnAdd();
  190. b.Property<string>("Code");
  191. b.Property<DateTime>("Created");
  192. b.Property<string>("Description");
  193. b.Property<DateTime>("Modified");
  194. b.Property<string>("ModifiedBy");
  195. b.HasKey("Id");
  196. b.ToTable("Provinces");
  197. });
  198. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  199. {
  200. b.Property<int>("Id")
  201. .ValueGeneratedOnAdd();
  202. b.Property<int>("CityId");
  203. b.Property<DateTime>("Created");
  204. b.Property<string>("Description");
  205. b.Property<DateTime>("Modified");
  206. b.Property<string>("ModifiedBy");
  207. b.Property<string>("PostalCode");
  208. b.HasKey("Id");
  209. b.HasIndex("CityId");
  210. b.ToTable("Suburbs");
  211. });
  212. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Season", b =>
  213. {
  214. b.Property<int>("Id")
  215. .ValueGeneratedOnAdd();
  216. b.Property<DateTime>("Created");
  217. b.Property<DateTime>("Modified");
  218. b.Property<string>("ModifiedBy");
  219. b.Property<string>("Name");
  220. b.HasKey("Id");
  221. b.ToTable("Seasons");
  222. });
  223. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Status", b =>
  224. {
  225. b.Property<int>("Id")
  226. .ValueGeneratedOnAdd();
  227. b.Property<string>("Code");
  228. b.Property<DateTime>("Created");
  229. b.Property<string>("Description");
  230. b.Property<DateTime>("Modified");
  231. b.Property<string>("ModifiedBy");
  232. b.Property<int>("StatusType");
  233. b.HasKey("Id");
  234. b.ToTable("Status");
  235. });
  236. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  237. {
  238. b.Property<int>("Id")
  239. .ValueGeneratedOnAdd();
  240. b.Property<int?>("AgencyId");
  241. b.Property<bool>("AgentAsRep");
  242. b.Property<int?>("AgentId");
  243. b.Property<DateTime>("ArrivalDate");
  244. b.Property<string>("BankedWith");
  245. b.Property<int>("Bedrooms");
  246. b.Property<DateTime>("Created");
  247. b.Property<bool>("CurrentYearBanked");
  248. b.Property<DateTime>("DepartureDate");
  249. b.Property<bool>("LeviesPaidInFull");
  250. b.Property<double>("LevyAmount");
  251. b.Property<int>("MaxSleep");
  252. b.Property<DateTime>("Modified");
  253. b.Property<string>("ModifiedBy");
  254. b.Property<string>("Module");
  255. b.Property<DateTime>("OriginalPurchaseDate");
  256. b.Property<double>("OriginalPurchasePrice");
  257. b.Property<bool>("OtherResort");
  258. b.Property<int>("OwnerId");
  259. b.Property<bool>("ReferedByAgent");
  260. b.Property<int>("RegionId");
  261. b.Property<string>("ResortCode");
  262. b.Property<string>("ResortName");
  263. b.Property<string>("Season");
  264. b.Property<double>("SellPrice");
  265. b.Property<int>("StatusId");
  266. b.Property<string>("WeekNumber");
  267. b.Property<bool>("WeekPlacedForRental");
  268. b.HasKey("Id");
  269. b.HasIndex("AgencyId");
  270. b.HasIndex("AgentId");
  271. b.HasIndex("OwnerId");
  272. b.HasIndex("RegionId");
  273. b.HasIndex("StatusId");
  274. b.ToTable("Weeks");
  275. });
  276. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfiguration", b =>
  277. {
  278. b.Property<int>("Id")
  279. .ValueGeneratedOnAdd();
  280. b.Property<int>("Adults");
  281. b.Property<int>("Bedrooms");
  282. b.Property<int>("Children");
  283. b.Property<string>("Code");
  284. b.Property<DateTime>("Created");
  285. b.Property<DateTime>("Modified");
  286. b.Property<string>("ModifiedBy");
  287. b.HasKey("Id");
  288. b.HasIndex("Code")
  289. .IsUnique();
  290. b.ToTable("UnitConfigurations");
  291. });
  292. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  293. {
  294. b.Property<int>("Id")
  295. .ValueGeneratedOnAdd();
  296. b.Property<DateTime>("Created");
  297. b.Property<string>("Description");
  298. b.Property<DateTime>("Modified");
  299. b.Property<string>("ModifiedBy");
  300. b.Property<int>("UnitConfigurationId");
  301. b.HasKey("Id");
  302. b.HasIndex("UnitConfigurationId");
  303. b.ToTable("UnitConfigurationTypes");
  304. });
  305. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agency", b =>
  306. {
  307. b.Property<int>("Id")
  308. .ValueGeneratedOnAdd();
  309. b.Property<string>("AgencyName");
  310. b.Property<string>("CompanyRegNumber");
  311. b.Property<DateTime>("Created");
  312. b.Property<string>("EAABEFFCNumber");
  313. b.Property<DateTime>("Modified");
  314. b.Property<string>("ModifiedBy");
  315. b.HasKey("Id");
  316. b.ToTable("Agencies");
  317. });
  318. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  319. {
  320. b.Property<int>("Id")
  321. .ValueGeneratedOnAdd();
  322. b.Property<int?>("AgencyId");
  323. b.Property<string>("CellNumber");
  324. b.Property<DateTime>("Created");
  325. b.Property<string>("Email");
  326. b.Property<DateTime>("Modified");
  327. b.Property<string>("ModifiedBy");
  328. b.Property<string>("Name");
  329. b.Property<string>("Surname");
  330. b.Property<string>("Telephone");
  331. b.Property<int>("UserId");
  332. b.HasKey("Id");
  333. b.HasIndex("AgencyId");
  334. b.HasIndex("UserId");
  335. b.ToTable("Agents");
  336. });
  337. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  338. {
  339. b.Property<int>("Id")
  340. .ValueGeneratedOnAdd();
  341. b.Property<string>("CellNumber");
  342. b.Property<DateTime>("Created");
  343. b.Property<string>("Email");
  344. b.Property<DateTime>("Modified");
  345. b.Property<string>("ModifiedBy");
  346. b.Property<string>("Name");
  347. b.Property<string>("Surname");
  348. b.Property<string>("Telephone");
  349. b.Property<int>("UserId");
  350. b.HasKey("Id");
  351. b.HasIndex("UserId");
  352. b.ToTable("Individuals");
  353. });
  354. modelBuilder.Entity("UnivateProperties_API.Model.Users.User", b =>
  355. {
  356. b.Property<int>("Id")
  357. .ValueGeneratedOnAdd();
  358. b.Property<DateTime>("Created");
  359. b.Property<DateTime>("Modified");
  360. b.Property<string>("ModifiedBy");
  361. b.Property<byte[]>("PasswordHash");
  362. b.Property<byte[]>("PasswordSalt");
  363. b.Property<string>("Role");
  364. b.Property<string>("Token");
  365. b.Property<string>("Username");
  366. b.Property<bool>("Verified");
  367. b.HasKey("Id");
  368. b.ToTable("Users");
  369. });
  370. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  371. {
  372. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  373. .WithMany("Emails")
  374. .HasForeignKey("SenderId")
  375. .OnDelete(DeleteBehavior.Cascade);
  376. });
  377. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  378. {
  379. b.HasOne("UnivateProperties_API.Model.Communication.SMTPHost", "SMTPHost")
  380. .WithMany("SMTPAccounts")
  381. .HasForeignKey("SMTPHostId")
  382. .OnDelete(DeleteBehavior.Cascade);
  383. });
  384. modelBuilder.Entity("UnivateProperties_API.Model.Property.Property", b =>
  385. {
  386. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  387. .WithMany()
  388. .HasForeignKey("CityId")
  389. .OnDelete(DeleteBehavior.Cascade);
  390. b.HasOne("UnivateProperties_API.Model.Property.PropertyType", "PropertyType")
  391. .WithMany()
  392. .HasForeignKey("PropertyTypeId")
  393. .OnDelete(DeleteBehavior.Cascade);
  394. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  395. .WithMany()
  396. .HasForeignKey("ProvinceId")
  397. .OnDelete(DeleteBehavior.Cascade);
  398. b.HasOne("UnivateProperties_API.Model.Region.Suburb", "Suburb")
  399. .WithMany()
  400. .HasForeignKey("SuburbId")
  401. .OnDelete(DeleteBehavior.Cascade);
  402. });
  403. modelBuilder.Entity("UnivateProperties_API.Model.Property.PropertyImage", b =>
  404. {
  405. b.HasOne("UnivateProperties_API.Model.Property.Property", "Property")
  406. .WithMany("PropertyImages")
  407. .HasForeignKey("PropertyId")
  408. .OnDelete(DeleteBehavior.Cascade);
  409. });
  410. modelBuilder.Entity("UnivateProperties_API.Model.Property.PropertyUserField", b =>
  411. {
  412. b.HasOne("UnivateProperties_API.Model.Property.Property", "Property")
  413. .WithMany("PropertyUserFields")
  414. .HasForeignKey("PropertyId")
  415. .OnDelete(DeleteBehavior.Cascade);
  416. b.HasOne("UnivateProperties_API.Model.Property.UserDefinedField", "UserDefinedField")
  417. .WithMany()
  418. .HasForeignKey("UserDefinedFieldId")
  419. .OnDelete(DeleteBehavior.Cascade);
  420. });
  421. modelBuilder.Entity("UnivateProperties_API.Model.Property.UserDefinedField", b =>
  422. {
  423. b.HasOne("UnivateProperties_API.Model.Property.UserDefinedGroup", "Group")
  424. .WithMany("Fields")
  425. .HasForeignKey("GroupId")
  426. .OnDelete(DeleteBehavior.Cascade);
  427. });
  428. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  429. {
  430. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  431. .WithMany()
  432. .HasForeignKey("ProvinceId")
  433. .OnDelete(DeleteBehavior.Cascade);
  434. });
  435. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  436. {
  437. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  438. .WithMany()
  439. .HasForeignKey("CityId")
  440. .OnDelete(DeleteBehavior.Cascade);
  441. });
  442. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  443. {
  444. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  445. .WithMany()
  446. .HasForeignKey("AgencyId");
  447. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  448. .WithMany()
  449. .HasForeignKey("AgentId");
  450. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  451. .WithMany()
  452. .HasForeignKey("OwnerId")
  453. .OnDelete(DeleteBehavior.Cascade);
  454. b.HasOne("UnivateProperties_API.Model.Region.Province", "Region")
  455. .WithMany()
  456. .HasForeignKey("RegionId")
  457. .OnDelete(DeleteBehavior.Cascade);
  458. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  459. .WithMany()
  460. .HasForeignKey("StatusId")
  461. .OnDelete(DeleteBehavior.Cascade);
  462. });
  463. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  464. {
  465. b.HasOne("UnivateProperties_API.Model.Timeshare.UnitConfiguration", "UnitConfiguration")
  466. .WithMany("Types")
  467. .HasForeignKey("UnitConfigurationId")
  468. .OnDelete(DeleteBehavior.Cascade);
  469. });
  470. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  471. {
  472. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  473. .WithMany("Agents")
  474. .HasForeignKey("AgencyId");
  475. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  476. .WithMany()
  477. .HasForeignKey("UserId")
  478. .OnDelete(DeleteBehavior.Cascade);
  479. });
  480. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  481. {
  482. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  483. .WithMany()
  484. .HasForeignKey("UserId")
  485. .OnDelete(DeleteBehavior.Cascade);
  486. });
  487. #pragma warning restore 612, 618
  488. }
  489. }
  490. }