API
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

DataContextModelSnapshot.cs 41KB

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