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.

20200122063527_ExtraPaymentFields.Designer.cs 41KB

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