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

DataContextModelSnapshot.cs 34KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119
  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.SMTPAccount", b =>
  72. {
  73. b.Property<int>("Id")
  74. .ValueGeneratedOnAdd();
  75. b.Property<string>("Address");
  76. b.Property<DateTime>("Created");
  77. b.Property<string>("DisplayName");
  78. b.Property<bool>("IsDeleted");
  79. b.Property<DateTime>("Modified");
  80. b.Property<string>("ModifiedBy");
  81. b.Property<int>("SMTPHostId");
  82. b.HasKey("Id");
  83. b.HasIndex("SMTPHostId");
  84. b.ToTable("Accounts");
  85. });
  86. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPHost", b =>
  87. {
  88. b.Property<int>("Id")
  89. .ValueGeneratedOnAdd();
  90. b.Property<DateTime>("Created");
  91. b.Property<string>("Host");
  92. b.Property<bool>("IsDeleted");
  93. b.Property<DateTime>("Modified");
  94. b.Property<string>("ModifiedBy");
  95. b.Property<bool>("NeedsAuthorize");
  96. b.Property<string>("Password");
  97. b.Property<bool>("UseSSL");
  98. b.Property<string>("User");
  99. b.HasKey("Id");
  100. b.ToTable("Hosts");
  101. });
  102. modelBuilder.Entity("UnivateProperties_API.Model.Logging.SearchLog", b =>
  103. {
  104. b.Property<int>("Id")
  105. .ValueGeneratedOnAdd();
  106. b.Property<DateTime>("Created");
  107. b.Property<bool>("IsDeleted");
  108. b.Property<DateTime>("Modified");
  109. b.Property<string>("ModifiedBy");
  110. b.Property<string>("Search");
  111. b.Property<string>("Type");
  112. b.HasKey("Id");
  113. b.ToTable("SearchLogs");
  114. });
  115. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  116. {
  117. b.Property<int>("Id")
  118. .ValueGeneratedOnAdd();
  119. b.Property<string>("City");
  120. b.Property<DateTime>("Created");
  121. b.Property<bool>("IsDeleted");
  122. b.Property<DateTime>("Modified");
  123. b.Property<string>("ModifiedBy");
  124. b.Property<string>("PostalCode");
  125. b.Property<string>("Street");
  126. b.Property<string>("StreetNumber");
  127. b.Property<string>("Suburb");
  128. b.HasKey("Id");
  129. b.ToTable("Addresses");
  130. });
  131. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  132. {
  133. b.Property<int>("Id")
  134. .ValueGeneratedOnAdd();
  135. b.Property<double>("Amount");
  136. b.Property<int?>("BidMakerId");
  137. b.Property<string>("Comment");
  138. b.Property<DateTime>("Created");
  139. b.Property<string>("DeclinedReason");
  140. b.Property<bool>("IsDeleted");
  141. b.Property<DateTime>("Modified");
  142. b.Property<string>("ModifiedBy");
  143. b.Property<int?>("PropertyId");
  144. b.Property<int?>("StatusId");
  145. b.Property<int?>("TimeshareWeekId");
  146. b.HasKey("Id");
  147. b.HasIndex("BidMakerId");
  148. b.HasIndex("PropertyId");
  149. b.HasIndex("StatusId");
  150. b.HasIndex("TimeshareWeekId");
  151. b.ToTable("BidItems");
  152. });
  153. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  154. {
  155. b.Property<int>("Id")
  156. .ValueGeneratedOnAdd();
  157. b.Property<DateTime>("Created");
  158. b.Property<bool>("IsDeleted");
  159. b.Property<DateTime>("Modified");
  160. b.Property<string>("ModifiedBy");
  161. b.Property<int?>("PropertyID");
  162. b.Property<int>("StatusID");
  163. b.Property<int?>("TimeshareID");
  164. b.HasKey("Id");
  165. b.HasIndex("PropertyID");
  166. b.HasIndex("StatusID");
  167. b.HasIndex("TimeshareID");
  168. b.ToTable("ProcessFlows");
  169. });
  170. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  171. {
  172. b.Property<int>("Id")
  173. .ValueGeneratedOnAdd();
  174. b.Property<string>("AddressLine1");
  175. b.Property<string>("AddressLine2");
  176. b.Property<string>("AddressLine3");
  177. b.Property<int?>("AgencyId");
  178. b.Property<int?>("AgentId");
  179. b.Property<int>("CityId");
  180. b.Property<DateTime>("Created");
  181. b.Property<string>("Description");
  182. b.Property<bool>("IsDeleted");
  183. b.Property<bool>("IsSale");
  184. b.Property<DateTime>("Modified");
  185. b.Property<string>("ModifiedBy");
  186. b.Property<decimal>("OperationalCosts");
  187. b.Property<int?>("OwnerId");
  188. b.Property<decimal>("Price");
  189. b.Property<string>("PricePer");
  190. b.Property<string>("PropertyName");
  191. b.Property<int>("PropertyTypeId");
  192. b.Property<int>("ProvinceId");
  193. b.Property<bool>("Published");
  194. b.Property<string>("ShortDescription");
  195. b.Property<int?>("StatusId");
  196. b.Property<int>("SuburbId");
  197. b.Property<string>("Unit");
  198. b.HasKey("Id");
  199. b.HasIndex("AgencyId");
  200. b.HasIndex("AgentId");
  201. b.HasIndex("CityId");
  202. b.HasIndex("OwnerId");
  203. b.HasIndex("PropertyTypeId");
  204. b.HasIndex("ProvinceId");
  205. b.HasIndex("StatusId");
  206. b.HasIndex("SuburbId");
  207. b.ToTable("Properties");
  208. });
  209. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  210. {
  211. b.Property<int>("Id")
  212. .ValueGeneratedOnAdd();
  213. b.Property<DateTime>("Created");
  214. b.Property<string>("Image");
  215. b.Property<bool>("IsDefault");
  216. b.Property<bool>("IsDeleted");
  217. b.Property<DateTime>("Modified");
  218. b.Property<string>("ModifiedBy");
  219. b.Property<int>("PropertyId");
  220. b.HasKey("Id");
  221. b.HasIndex("PropertyId");
  222. b.ToTable("PropertyImages");
  223. });
  224. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyType", b =>
  225. {
  226. b.Property<int>("Id")
  227. .ValueGeneratedOnAdd();
  228. b.Property<DateTime>("Created");
  229. b.Property<string>("Description");
  230. b.Property<bool>("IsDeleted");
  231. b.Property<DateTime>("Modified");
  232. b.Property<string>("ModifiedBy");
  233. b.Property<int>("UsageType");
  234. b.HasKey("Id");
  235. b.ToTable("PropertyTypes");
  236. });
  237. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  238. {
  239. b.Property<int>("Id")
  240. .ValueGeneratedOnAdd();
  241. b.Property<DateTime>("Created");
  242. b.Property<string>("Description");
  243. b.Property<bool>("IsDeleted");
  244. b.Property<DateTime>("Modified");
  245. b.Property<string>("ModifiedBy");
  246. b.Property<int>("PropertyId");
  247. b.Property<int>("UserDefinedFieldId");
  248. b.Property<string>("Value");
  249. b.HasKey("Id");
  250. b.HasIndex("PropertyId");
  251. b.HasIndex("UserDefinedFieldId");
  252. b.ToTable("PropertyUserFields");
  253. });
  254. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  255. {
  256. b.Property<int>("Id")
  257. .ValueGeneratedOnAdd();
  258. b.Property<DateTime>("Created");
  259. b.Property<string>("FieldName");
  260. b.Property<string>("FieldType");
  261. b.Property<int>("GroupId");
  262. b.Property<bool>("IsDeleted");
  263. b.Property<DateTime>("Modified");
  264. b.Property<string>("ModifiedBy");
  265. b.Property<int>("Rank");
  266. b.HasKey("Id");
  267. b.HasIndex("GroupId");
  268. b.ToTable("UserDefinedFields");
  269. });
  270. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedGroup", b =>
  271. {
  272. b.Property<int>("Id")
  273. .ValueGeneratedOnAdd();
  274. b.Property<DateTime>("Created");
  275. b.Property<string>("Description");
  276. b.Property<bool>("IsDeleted");
  277. b.Property<DateTime>("Modified");
  278. b.Property<string>("ModifiedBy");
  279. b.Property<int>("Rank");
  280. b.Property<int>("UsageType");
  281. b.HasKey("Id");
  282. b.ToTable("UserDefinedGroups");
  283. });
  284. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  285. {
  286. b.Property<int>("Id")
  287. .ValueGeneratedOnAdd();
  288. b.Property<string>("Code");
  289. b.Property<DateTime>("Created");
  290. b.Property<string>("Description");
  291. b.Property<bool>("IsDeleted");
  292. b.Property<DateTime>("Modified");
  293. b.Property<string>("ModifiedBy");
  294. b.Property<int>("ProvinceId");
  295. b.HasKey("Id");
  296. b.HasIndex("ProvinceId");
  297. b.ToTable("Cities");
  298. });
  299. modelBuilder.Entity("UnivateProperties_API.Model.Region.Province", b =>
  300. {
  301. b.Property<int>("Id")
  302. .ValueGeneratedOnAdd();
  303. b.Property<string>("Code");
  304. b.Property<DateTime>("Created");
  305. b.Property<string>("Description");
  306. b.Property<bool>("IsDeleted");
  307. b.Property<DateTime>("Modified");
  308. b.Property<string>("ModifiedBy");
  309. b.HasKey("Id");
  310. b.ToTable("Provinces");
  311. });
  312. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  313. {
  314. b.Property<int>("Id")
  315. .ValueGeneratedOnAdd();
  316. b.Property<int>("CityId");
  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<string>("PostalCode");
  323. b.HasKey("Id");
  324. b.HasIndex("CityId");
  325. b.ToTable("Suburbs");
  326. });
  327. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Season", b =>
  328. {
  329. b.Property<int>("Id")
  330. .ValueGeneratedOnAdd();
  331. b.Property<DateTime>("Created");
  332. b.Property<bool>("IsDeleted");
  333. b.Property<DateTime>("Modified");
  334. b.Property<string>("ModifiedBy");
  335. b.Property<string>("Name");
  336. b.HasKey("Id");
  337. b.ToTable("Seasons");
  338. });
  339. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Status", b =>
  340. {
  341. b.Property<int>("Id")
  342. .ValueGeneratedOnAdd();
  343. b.Property<string>("Code");
  344. b.Property<DateTime>("Created");
  345. b.Property<string>("Description");
  346. b.Property<bool>("IsDeleted");
  347. b.Property<DateTime>("Modified");
  348. b.Property<string>("ModifiedBy");
  349. b.Property<int>("StatusType");
  350. b.HasKey("Id");
  351. b.ToTable("Status");
  352. });
  353. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  354. {
  355. b.Property<int>("Id")
  356. .ValueGeneratedOnAdd();
  357. b.Property<int?>("AgencyId");
  358. b.Property<bool>("AgentAsRep");
  359. b.Property<int?>("AgentId");
  360. b.Property<DateTime>("ArrivalDate");
  361. b.Property<string>("BankedWith");
  362. b.Property<int>("Bedrooms");
  363. b.Property<DateTime>("Created");
  364. b.Property<bool>("CurrentYearBanked");
  365. b.Property<DateTime>("DepartureDate");
  366. b.Property<bool>("IsDeleted");
  367. b.Property<bool>("LeviesPaidInFull");
  368. b.Property<double>("LevyAmount");
  369. b.Property<int>("MaxSleep");
  370. b.Property<DateTime>("Modified");
  371. b.Property<string>("ModifiedBy");
  372. b.Property<string>("Module");
  373. b.Property<DateTime>("OriginalPurchaseDate");
  374. b.Property<double>("OriginalPurchasePrice");
  375. b.Property<bool>("OtherResort");
  376. b.Property<int>("OwnerId");
  377. b.Property<bool>("ReferedByAgent");
  378. b.Property<int>("RegionId");
  379. b.Property<string>("ResortCode");
  380. b.Property<string>("ResortName");
  381. b.Property<string>("Season");
  382. b.Property<double>("SellPrice");
  383. b.Property<int>("StatusId");
  384. b.Property<string>("UnitNumber");
  385. b.Property<string>("WeekNumber");
  386. b.Property<bool>("WeekPlacedForRental");
  387. b.HasKey("Id");
  388. b.HasIndex("AgencyId");
  389. b.HasIndex("AgentId");
  390. b.HasIndex("OwnerId");
  391. b.HasIndex("RegionId");
  392. b.HasIndex("StatusId");
  393. b.ToTable("Weeks");
  394. });
  395. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfiguration", b =>
  396. {
  397. b.Property<int>("Id")
  398. .ValueGeneratedOnAdd();
  399. b.Property<int>("Adults");
  400. b.Property<int>("Bedrooms");
  401. b.Property<int>("Children");
  402. b.Property<string>("Code");
  403. b.Property<DateTime>("Created");
  404. b.Property<bool>("IsDeleted");
  405. b.Property<DateTime>("Modified");
  406. b.Property<string>("ModifiedBy");
  407. b.HasKey("Id");
  408. b.HasIndex("Code")
  409. .IsUnique();
  410. b.ToTable("UnitConfigurations");
  411. });
  412. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  413. {
  414. b.Property<int>("Id")
  415. .ValueGeneratedOnAdd();
  416. b.Property<DateTime>("Created");
  417. b.Property<string>("Description");
  418. b.Property<bool>("IsDeleted");
  419. b.Property<DateTime>("Modified");
  420. b.Property<string>("ModifiedBy");
  421. b.Property<int>("UnitConfigurationId");
  422. b.HasKey("Id");
  423. b.HasIndex("UnitConfigurationId");
  424. b.ToTable("UnitConfigurationTypes");
  425. });
  426. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agency", b =>
  427. {
  428. b.Property<int>("Id")
  429. .ValueGeneratedOnAdd();
  430. b.Property<string>("AgencyName");
  431. b.Property<string>("CompanyRegNumber");
  432. b.Property<DateTime>("Created");
  433. b.Property<string>("EAABEFFCNumber");
  434. b.Property<bool>("IsDeleted");
  435. b.Property<DateTime>("Modified");
  436. b.Property<string>("ModifiedBy");
  437. b.HasKey("Id");
  438. b.ToTable("Agencies");
  439. });
  440. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  441. {
  442. b.Property<int>("Id")
  443. .ValueGeneratedOnAdd();
  444. b.Property<int?>("AgencyId");
  445. b.Property<string>("CellNumber");
  446. b.Property<DateTime>("Created");
  447. b.Property<string>("Email");
  448. b.Property<bool>("IsDeleted");
  449. b.Property<DateTime>("Modified");
  450. b.Property<string>("ModifiedBy");
  451. b.Property<string>("Name");
  452. b.Property<string>("Surname");
  453. b.Property<string>("Telephone");
  454. b.Property<int?>("UserId");
  455. b.HasKey("Id");
  456. b.HasIndex("AgencyId");
  457. b.HasIndex("UserId");
  458. b.ToTable("Agents");
  459. });
  460. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  461. {
  462. b.Property<int>("Id")
  463. .ValueGeneratedOnAdd();
  464. b.Property<int?>("AddressId");
  465. b.Property<string>("CellNumber");
  466. b.Property<string>("CompanyRegNumber");
  467. b.Property<DateTime>("Created");
  468. b.Property<string>("Email");
  469. b.Property<string>("IdNumber");
  470. b.Property<string>("IncomeTaxNumber");
  471. b.Property<bool>("IsDeleted");
  472. b.Property<string>("MaritalStatus");
  473. b.Property<DateTime>("Modified");
  474. b.Property<string>("ModifiedBy");
  475. b.Property<string>("Name");
  476. b.Property<string>("Surname");
  477. b.Property<string>("Telephone");
  478. b.Property<int?>("UserId");
  479. b.HasKey("Id");
  480. b.HasIndex("AddressId");
  481. b.HasIndex("UserId");
  482. b.ToTable("Individuals");
  483. });
  484. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  485. {
  486. b.Property<int>("Id")
  487. .ValueGeneratedOnAdd();
  488. b.Property<string>("CellNumber");
  489. b.Property<DateTime>("Created");
  490. b.Property<string>("Email");
  491. b.Property<bool>("IsDeleted");
  492. b.Property<DateTime>("Modified");
  493. b.Property<string>("ModifiedBy");
  494. b.Property<string>("Name");
  495. b.Property<string>("Surname");
  496. b.Property<string>("Telephone");
  497. b.Property<int?>("UserId");
  498. b.HasKey("Id");
  499. b.HasIndex("UserId");
  500. b.ToTable("Person");
  501. });
  502. modelBuilder.Entity("UnivateProperties_API.Model.Users.User", b =>
  503. {
  504. b.Property<int>("Id")
  505. .ValueGeneratedOnAdd();
  506. b.Property<DateTime>("Created");
  507. b.Property<bool>("IsDeleted");
  508. b.Property<DateTime>("Modified");
  509. b.Property<string>("ModifiedBy");
  510. b.Property<byte[]>("PasswordHash");
  511. b.Property<byte[]>("PasswordSalt");
  512. b.Property<string>("Role");
  513. b.Property<string>("Token");
  514. b.Property<string>("Username");
  515. b.Property<bool>("Verified");
  516. b.HasKey("Id");
  517. b.ToTable("Users");
  518. });
  519. modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
  520. {
  521. b.HasOne("UnivateProperties_API.Model.Banks.Bank", "Bank")
  522. .WithMany()
  523. .HasForeignKey("BankId")
  524. .OnDelete(DeleteBehavior.Cascade);
  525. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  526. .WithMany()
  527. .HasForeignKey("OwnerId");
  528. });
  529. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  530. {
  531. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  532. .WithMany("Emails")
  533. .HasForeignKey("SenderId")
  534. .OnDelete(DeleteBehavior.Cascade);
  535. });
  536. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  537. {
  538. b.HasOne("UnivateProperties_API.Model.Communication.SMTPHost", "SMTPHost")
  539. .WithMany("SMTPAccounts")
  540. .HasForeignKey("SMTPHostId")
  541. .OnDelete(DeleteBehavior.Cascade);
  542. });
  543. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  544. {
  545. b.HasOne("UnivateProperties_API.Model.Users.Individual", "BidMaker")
  546. .WithMany()
  547. .HasForeignKey("BidMakerId");
  548. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  549. .WithMany("BidItems")
  550. .HasForeignKey("PropertyId");
  551. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  552. .WithMany()
  553. .HasForeignKey("StatusId");
  554. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  555. .WithMany("BidItems")
  556. .HasForeignKey("TimeshareWeekId");
  557. });
  558. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  559. {
  560. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  561. .WithMany("ProcessFlows")
  562. .HasForeignKey("PropertyID");
  563. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  564. .WithMany()
  565. .HasForeignKey("StatusID")
  566. .OnDelete(DeleteBehavior.Cascade);
  567. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Timeshare")
  568. .WithMany("ProcessFlows")
  569. .HasForeignKey("TimeshareID");
  570. });
  571. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  572. {
  573. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  574. .WithMany("Properties")
  575. .HasForeignKey("AgencyId");
  576. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  577. .WithMany("Properties")
  578. .HasForeignKey("AgentId");
  579. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  580. .WithMany()
  581. .HasForeignKey("CityId")
  582. .OnDelete(DeleteBehavior.Cascade);
  583. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  584. .WithMany("Properties")
  585. .HasForeignKey("OwnerId");
  586. b.HasOne("UnivateProperties_API.Model.Properties.PropertyType", "PropertyType")
  587. .WithMany()
  588. .HasForeignKey("PropertyTypeId")
  589. .OnDelete(DeleteBehavior.Cascade);
  590. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  591. .WithMany()
  592. .HasForeignKey("ProvinceId")
  593. .OnDelete(DeleteBehavior.Cascade);
  594. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  595. .WithMany()
  596. .HasForeignKey("StatusId");
  597. b.HasOne("UnivateProperties_API.Model.Region.Suburb", "Suburb")
  598. .WithMany()
  599. .HasForeignKey("SuburbId")
  600. .OnDelete(DeleteBehavior.Cascade);
  601. });
  602. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  603. {
  604. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  605. .WithMany("PropertyImages")
  606. .HasForeignKey("PropertyId")
  607. .OnDelete(DeleteBehavior.Cascade);
  608. });
  609. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  610. {
  611. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  612. .WithMany("PropertyUserFields")
  613. .HasForeignKey("PropertyId")
  614. .OnDelete(DeleteBehavior.Cascade);
  615. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedField", "UserDefinedField")
  616. .WithMany()
  617. .HasForeignKey("UserDefinedFieldId")
  618. .OnDelete(DeleteBehavior.Cascade);
  619. });
  620. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  621. {
  622. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedGroup", "Group")
  623. .WithMany("Fields")
  624. .HasForeignKey("GroupId")
  625. .OnDelete(DeleteBehavior.Cascade);
  626. });
  627. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  628. {
  629. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  630. .WithMany()
  631. .HasForeignKey("ProvinceId")
  632. .OnDelete(DeleteBehavior.Cascade);
  633. });
  634. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  635. {
  636. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  637. .WithMany()
  638. .HasForeignKey("CityId")
  639. .OnDelete(DeleteBehavior.Cascade);
  640. });
  641. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  642. {
  643. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  644. .WithMany()
  645. .HasForeignKey("AgencyId");
  646. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  647. .WithMany()
  648. .HasForeignKey("AgentId");
  649. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  650. .WithMany()
  651. .HasForeignKey("OwnerId")
  652. .OnDelete(DeleteBehavior.Cascade);
  653. b.HasOne("UnivateProperties_API.Model.Region.Province", "Region")
  654. .WithMany()
  655. .HasForeignKey("RegionId")
  656. .OnDelete(DeleteBehavior.Cascade);
  657. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  658. .WithMany()
  659. .HasForeignKey("StatusId")
  660. .OnDelete(DeleteBehavior.Cascade);
  661. });
  662. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  663. {
  664. b.HasOne("UnivateProperties_API.Model.Timeshare.UnitConfiguration", "UnitConfiguration")
  665. .WithMany("Types")
  666. .HasForeignKey("UnitConfigurationId")
  667. .OnDelete(DeleteBehavior.Cascade);
  668. });
  669. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  670. {
  671. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  672. .WithMany("Agents")
  673. .HasForeignKey("AgencyId");
  674. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  675. .WithMany()
  676. .HasForeignKey("UserId");
  677. });
  678. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  679. {
  680. b.HasOne("UnivateProperties_API.Model.Misc.Address", "Address")
  681. .WithMany()
  682. .HasForeignKey("AddressId");
  683. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  684. .WithMany()
  685. .HasForeignKey("UserId");
  686. });
  687. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  688. {
  689. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  690. .WithMany()
  691. .HasForeignKey("UserId");
  692. });
  693. #pragma warning restore 612, 618
  694. }
  695. }
  696. }