API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20200910134303_ListingFees.Designer.cs 52KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Metadata;
  6. using Microsoft.EntityFrameworkCore.Migrations;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. using UnivateProperties_API.Context;
  9. namespace UnivateProperties_API.Migrations
  10. {
  11. [DbContext(typeof(DataContext))]
  12. [Migration("20200910134303_ListingFees")]
  13. partial class ListingFees
  14. {
  15. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder
  19. .HasAnnotation("ProductVersion", "2.2.0-rtm-35687")
  20. .HasAnnotation("Relational:MaxIdentifierLength", 128)
  21. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  22. modelBuilder.Entity("UnivateProperties_API.Model.Banks.Bank", b =>
  23. {
  24. b.Property<int>("Id")
  25. .ValueGeneratedOnAdd()
  26. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  27. b.Property<DateTime>("Created");
  28. b.Property<bool>("IsDeleted");
  29. b.Property<DateTime>("Modified");
  30. b.Property<string>("ModifiedBy");
  31. b.Property<string>("Name");
  32. b.Property<string>("UniversalBranchCode");
  33. b.HasKey("Id");
  34. b.ToTable("Banks");
  35. });
  36. modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
  37. {
  38. b.Property<int>("Id")
  39. .ValueGeneratedOnAdd()
  40. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  41. b.Property<string>("AccountHolder");
  42. b.Property<string>("AccountNumber");
  43. b.Property<int?>("BankId");
  44. b.Property<DateTime>("Created");
  45. b.Property<bool>("IsDeleted");
  46. b.Property<DateTime>("Modified");
  47. b.Property<string>("ModifiedBy");
  48. b.Property<int?>("OwnerId");
  49. b.HasKey("Id");
  50. b.HasIndex("BankId");
  51. b.HasIndex("OwnerId");
  52. b.ToTable("BankAccounts");
  53. });
  54. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.Campaign", b =>
  55. {
  56. b.Property<int>("Id")
  57. .ValueGeneratedOnAdd()
  58. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  59. b.Property<string>("Body");
  60. b.Property<DateTime>("Created");
  61. b.Property<DateTime>("EndDate");
  62. b.Property<bool>("IsDeleted");
  63. b.Property<string>("ItemBody");
  64. b.Property<int>("ItemsPerRow");
  65. b.Property<DateTime>("Modified");
  66. b.Property<string>("ModifiedBy");
  67. b.Property<string>("Name");
  68. b.Property<DateTime>("StartDate");
  69. b.Property<string>("Subject");
  70. b.HasKey("Id");
  71. b.ToTable("Campaigns");
  72. });
  73. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItem", b =>
  74. {
  75. b.Property<int>("Id")
  76. .ValueGeneratedOnAdd()
  77. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  78. b.Property<int>("CampaignId");
  79. b.Property<DateTime>("Created");
  80. b.Property<string>("Image");
  81. b.Property<bool>("IsDeleted");
  82. b.Property<DateTime>("Modified");
  83. b.Property<string>("ModifiedBy");
  84. b.Property<int>("WeekId");
  85. b.HasKey("Id");
  86. b.HasIndex("CampaignId");
  87. b.HasIndex("WeekId");
  88. b.ToTable("CampaignItems");
  89. });
  90. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItemPlaceHolder", b =>
  91. {
  92. b.Property<int>("Id")
  93. .ValueGeneratedOnAdd()
  94. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  95. b.Property<int>("CampaignItemId");
  96. b.Property<DateTime>("Created");
  97. b.Property<bool>("IsDeleted");
  98. b.Property<DateTime>("Modified");
  99. b.Property<string>("ModifiedBy");
  100. b.Property<string>("PlaceHolder");
  101. b.Property<string>("Value");
  102. b.HasKey("Id");
  103. b.HasIndex("CampaignItemId");
  104. b.ToTable("CampaignItemPlaceHolders");
  105. });
  106. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignPlaceHolder", b =>
  107. {
  108. b.Property<int>("Id")
  109. .ValueGeneratedOnAdd()
  110. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  111. b.Property<string>("BoundTo");
  112. b.Property<string>("BoundToClass");
  113. b.Property<string>("BoundToClassDisplay");
  114. b.Property<int>("CampaignId");
  115. b.Property<DateTime>("Created");
  116. b.Property<string>("Format");
  117. b.Property<bool>("IsDeleted");
  118. b.Property<DateTime>("Modified");
  119. b.Property<string>("ModifiedBy");
  120. b.Property<string>("Name");
  121. b.HasKey("Id");
  122. b.HasIndex("CampaignId");
  123. b.ToTable("CampaignPlaceHolders");
  124. });
  125. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  126. {
  127. b.Property<int>("Id")
  128. .ValueGeneratedOnAdd()
  129. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  130. b.Property<string>("BCC");
  131. b.Property<string>("Body");
  132. b.Property<string>("CC");
  133. b.Property<string>("Comment");
  134. b.Property<DateTime>("Created");
  135. b.Property<bool>("IsBodyHtml");
  136. b.Property<bool>("IsDeleted");
  137. b.Property<DateTime>("Modified");
  138. b.Property<string>("ModifiedBy");
  139. b.Property<int>("SenderId");
  140. b.Property<string>("Subject");
  141. b.Property<string>("To");
  142. b.Property<string>("ToDisplay");
  143. b.HasKey("Id");
  144. b.HasIndex("SenderId");
  145. b.ToTable("Emails");
  146. });
  147. modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b =>
  148. {
  149. b.Property<int>("Id")
  150. .ValueGeneratedOnAdd()
  151. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  152. b.Property<string>("BoundTo");
  153. b.Property<string>("BoundToClass");
  154. b.Property<string>("BoundToClassDisplay");
  155. b.Property<DateTime>("Created");
  156. b.Property<bool>("IsDeleted");
  157. b.Property<DateTime>("Modified");
  158. b.Property<string>("ModifiedBy");
  159. b.Property<string>("Name");
  160. b.Property<int>("TemplateId");
  161. b.HasKey("Id");
  162. b.HasIndex("TemplateId");
  163. b.ToTable("PlaceHolders");
  164. });
  165. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  166. {
  167. b.Property<int>("Id")
  168. .ValueGeneratedOnAdd()
  169. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  170. b.Property<string>("Address");
  171. b.Property<DateTime>("Created");
  172. b.Property<bool>("Default");
  173. b.Property<string>("DisplayName");
  174. b.Property<bool>("IsDeleted");
  175. b.Property<DateTime>("Modified");
  176. b.Property<string>("ModifiedBy");
  177. b.Property<int>("SMTPHostId");
  178. b.HasKey("Id");
  179. b.HasIndex("SMTPHostId");
  180. b.ToTable("Accounts");
  181. });
  182. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPHost", b =>
  183. {
  184. b.Property<int>("Id")
  185. .ValueGeneratedOnAdd()
  186. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  187. b.Property<DateTime>("Created");
  188. b.Property<string>("Host");
  189. b.Property<bool>("IsDeleted");
  190. b.Property<DateTime>("Modified");
  191. b.Property<string>("ModifiedBy");
  192. b.Property<bool>("NeedsAuthorize");
  193. b.Property<string>("Password");
  194. b.Property<bool>("UseSSL");
  195. b.Property<string>("User");
  196. b.HasKey("Id");
  197. b.ToTable("Hosts");
  198. });
  199. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b =>
  200. {
  201. b.Property<int>("Id")
  202. .ValueGeneratedOnAdd()
  203. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  204. b.Property<string>("Body");
  205. b.Property<DateTime>("Created");
  206. b.Property<bool>("IsDeleted");
  207. b.Property<DateTime>("Modified");
  208. b.Property<string>("ModifiedBy");
  209. b.Property<string>("Name");
  210. b.Property<int?>("SenderId");
  211. b.Property<string>("Subject");
  212. b.HasKey("Id");
  213. b.HasIndex("SenderId");
  214. b.ToTable("Templates");
  215. });
  216. modelBuilder.Entity("UnivateProperties_API.Model.Financial.ListingFee", b =>
  217. {
  218. b.Property<int>("Id")
  219. .ValueGeneratedOnAdd()
  220. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  221. b.Property<double>("Amount");
  222. b.Property<string>("Name");
  223. b.HasKey("Id");
  224. b.ToTable("ListingFees");
  225. });
  226. modelBuilder.Entity("UnivateProperties_API.Model.Financial.Payment", b =>
  227. {
  228. b.Property<int>("Id")
  229. .ValueGeneratedOnAdd()
  230. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  231. b.Property<decimal>("Amount");
  232. b.Property<DateTime>("Created");
  233. b.Property<int>("CreatedById");
  234. b.Property<bool>("IsDeleted");
  235. b.Property<DateTime>("Modified");
  236. b.Property<string>("ModifiedBy");
  237. b.Property<string>("PaymentStatus");
  238. b.Property<string>("PaymentToken");
  239. b.Property<int?>("PropertyId");
  240. b.Property<int?>("TimeshareWeekId");
  241. b.HasKey("Id");
  242. b.HasIndex("CreatedById");
  243. b.HasIndex("PropertyId");
  244. b.HasIndex("TimeshareWeekId");
  245. b.ToTable("Payments");
  246. });
  247. modelBuilder.Entity("UnivateProperties_API.Model.Logging.SearchLog", b =>
  248. {
  249. b.Property<int>("Id")
  250. .ValueGeneratedOnAdd()
  251. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  252. b.Property<DateTime>("Created");
  253. b.Property<bool>("IsDeleted");
  254. b.Property<DateTime>("Modified");
  255. b.Property<string>("ModifiedBy");
  256. b.Property<string>("Search");
  257. b.Property<string>("Type");
  258. b.HasKey("Id");
  259. b.ToTable("SearchLogs");
  260. });
  261. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  262. {
  263. b.Property<int>("Id")
  264. .ValueGeneratedOnAdd()
  265. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  266. b.Property<string>("City");
  267. b.Property<DateTime>("Created");
  268. b.Property<bool>("IsDeleted");
  269. b.Property<DateTime>("Modified");
  270. b.Property<string>("ModifiedBy");
  271. b.Property<int?>("OwnerId");
  272. b.Property<string>("PostalCode");
  273. b.Property<string>("Province");
  274. b.Property<string>("Street");
  275. b.Property<string>("StreetNumber");
  276. b.Property<string>("Suburb");
  277. b.HasKey("Id");
  278. b.HasIndex("OwnerId");
  279. b.ToTable("Addresses");
  280. });
  281. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Carousel", b =>
  282. {
  283. b.Property<int>("Id")
  284. .ValueGeneratedOnAdd()
  285. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  286. b.Property<DateTime>("Created");
  287. b.Property<string>("Header");
  288. b.Property<string>("Image");
  289. b.Property<bool>("IsDeleted");
  290. b.Property<DateTime>("Modified");
  291. b.Property<string>("ModifiedBy");
  292. b.Property<int>("PropertyId");
  293. b.Property<int>("TimeshareId");
  294. b.HasKey("Id");
  295. b.ToTable("Carousel");
  296. });
  297. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Default", b =>
  298. {
  299. b.Property<string>("Id")
  300. .ValueGeneratedOnAdd();
  301. b.Property<string>("Value");
  302. b.HasKey("Id");
  303. b.ToTable("Defaults");
  304. });
  305. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Location", b =>
  306. {
  307. b.Property<int>("Id")
  308. .ValueGeneratedOnAdd()
  309. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  310. b.Property<DateTime>("Created");
  311. b.Property<bool>("IsDeleted");
  312. b.Property<bool>("IsTesting");
  313. b.Property<DateTime>("Modified");
  314. b.Property<string>("ModifiedBy");
  315. b.Property<string>("PropertyImageLocation");
  316. b.HasKey("Id");
  317. b.ToTable("Location");
  318. });
  319. modelBuilder.Entity("UnivateProperties_API.Model.Misc.PlaceHolderFormat", b =>
  320. {
  321. b.Property<int>("Id")
  322. .ValueGeneratedOnAdd()
  323. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  324. b.Property<DateTime>("Created");
  325. b.Property<string>("DisplayName");
  326. b.Property<string>("Format");
  327. b.Property<bool>("IsDeleted");
  328. b.Property<DateTime>("Modified");
  329. b.Property<string>("ModifiedBy");
  330. b.HasKey("Id");
  331. b.ToTable("PlaceHolderFormats");
  332. });
  333. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  334. {
  335. b.Property<int>("Id")
  336. .ValueGeneratedOnAdd()
  337. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  338. b.Property<double>("Amount");
  339. b.Property<int?>("BidMakerId");
  340. b.Property<string>("Comment");
  341. b.Property<DateTime>("Created");
  342. b.Property<string>("DeclinedReason");
  343. b.Property<bool>("IsDeleted");
  344. b.Property<DateTime>("Modified");
  345. b.Property<string>("ModifiedBy");
  346. b.Property<int?>("PropertyId");
  347. b.Property<int?>("StatusId");
  348. b.Property<int?>("TimeshareWeekId");
  349. b.HasKey("Id");
  350. b.HasIndex("BidMakerId");
  351. b.HasIndex("PropertyId");
  352. b.HasIndex("StatusId");
  353. b.HasIndex("TimeshareWeekId");
  354. b.ToTable("BidItems");
  355. });
  356. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  357. {
  358. b.Property<int>("Id")
  359. .ValueGeneratedOnAdd()
  360. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  361. b.Property<DateTime>("Created");
  362. b.Property<bool>("IsDeleted");
  363. b.Property<DateTime>("Modified");
  364. b.Property<string>("ModifiedBy");
  365. b.Property<int?>("PropertyID");
  366. b.Property<int>("StatusID");
  367. b.Property<int?>("TimeshareID");
  368. b.HasKey("Id");
  369. b.HasIndex("PropertyID");
  370. b.HasIndex("StatusID");
  371. b.HasIndex("TimeshareID");
  372. b.ToTable("ProcessFlows");
  373. });
  374. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  375. {
  376. b.Property<int>("Id")
  377. .ValueGeneratedOnAdd()
  378. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  379. b.Property<string>("AddressOther");
  380. b.Property<string>("AddressURL");
  381. b.Property<int?>("AgencyId");
  382. b.Property<int?>("AgentId");
  383. b.Property<string>("City");
  384. b.Property<string>("Country");
  385. b.Property<DateTime>("Created");
  386. b.Property<DateTime>("DateAvailable");
  387. b.Property<DateTime>("DatePublished");
  388. b.Property<string>("Description");
  389. b.Property<bool>("IsDeleted");
  390. b.Property<bool>("IsSale");
  391. b.Property<DateTime>("Modified");
  392. b.Property<string>("ModifiedBy");
  393. b.Property<decimal>("OperationalCosts");
  394. b.Property<int?>("OwnerId");
  395. b.Property<string>("PostalCode");
  396. b.Property<decimal>("Price");
  397. b.Property<string>("PricePer");
  398. b.Property<string>("PropertCoords");
  399. b.Property<string>("PropertyName");
  400. b.Property<string>("PropertyRef");
  401. b.Property<int>("PropertyTypeId");
  402. b.Property<string>("Province");
  403. b.Property<bool>("Published");
  404. b.Property<string>("ShortDescription");
  405. b.Property<bool>("ShowAddress");
  406. b.Property<DateTime>("StatusDate");
  407. b.Property<int?>("StatusId");
  408. b.Property<string>("StreetName");
  409. b.Property<string>("StreetNumber");
  410. b.Property<string>("Suburb");
  411. b.Property<string>("Unit");
  412. b.Property<string>("Video");
  413. b.Property<string>("VirtualTour");
  414. b.HasKey("Id");
  415. b.HasIndex("AgencyId");
  416. b.HasIndex("AgentId");
  417. b.HasIndex("OwnerId");
  418. b.HasIndex("PropertyTypeId");
  419. b.ToTable("Properties");
  420. });
  421. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  422. {
  423. b.Property<int>("Id")
  424. .ValueGeneratedOnAdd()
  425. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  426. b.Property<DateTime>("Created");
  427. b.Property<string>("Image");
  428. b.Property<bool>("IsDefault");
  429. b.Property<bool>("IsDeleted");
  430. b.Property<DateTime>("Modified");
  431. b.Property<string>("ModifiedBy");
  432. b.Property<int>("PropertyId");
  433. b.HasKey("Id");
  434. b.HasIndex("PropertyId");
  435. b.ToTable("PropertyImages");
  436. });
  437. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyType", b =>
  438. {
  439. b.Property<int>("Id")
  440. .ValueGeneratedOnAdd()
  441. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  442. b.Property<DateTime>("Created");
  443. b.Property<string>("Description");
  444. b.Property<bool>("IsDeleted");
  445. b.Property<DateTime>("Modified");
  446. b.Property<string>("ModifiedBy");
  447. b.Property<int>("UsageType");
  448. b.HasKey("Id");
  449. b.ToTable("PropertyTypes");
  450. });
  451. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  452. {
  453. b.Property<int>("Id")
  454. .ValueGeneratedOnAdd()
  455. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  456. b.Property<DateTime>("Created");
  457. b.Property<string>("Description");
  458. b.Property<bool>("IsDeleted");
  459. b.Property<DateTime>("Modified");
  460. b.Property<string>("ModifiedBy");
  461. b.Property<int>("PropertyId");
  462. b.Property<int>("UserDefinedFieldId");
  463. b.Property<string>("Value");
  464. b.HasKey("Id");
  465. b.HasIndex("PropertyId");
  466. b.HasIndex("UserDefinedFieldId");
  467. b.ToTable("PropertyUserFields");
  468. });
  469. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  470. {
  471. b.Property<int>("Id")
  472. .ValueGeneratedOnAdd()
  473. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  474. b.Property<DateTime>("Created");
  475. b.Property<string>("FieldName");
  476. b.Property<string>("FieldType");
  477. b.Property<int>("GroupId");
  478. b.Property<bool>("IsDeleted");
  479. b.Property<DateTime>("Modified");
  480. b.Property<string>("ModifiedBy");
  481. b.Property<int>("Rank");
  482. b.HasKey("Id");
  483. b.HasIndex("GroupId");
  484. b.ToTable("UserDefinedFields");
  485. });
  486. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedGroup", b =>
  487. {
  488. b.Property<int>("Id")
  489. .ValueGeneratedOnAdd()
  490. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  491. b.Property<DateTime>("Created");
  492. b.Property<string>("Description");
  493. b.Property<bool>("IsDeleted");
  494. b.Property<DateTime>("Modified");
  495. b.Property<string>("ModifiedBy");
  496. b.Property<int>("Rank");
  497. b.Property<int>("UsageType");
  498. b.HasKey("Id");
  499. b.ToTable("UserDefinedGroups");
  500. });
  501. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  502. {
  503. b.Property<int>("Id")
  504. .ValueGeneratedOnAdd()
  505. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  506. b.Property<string>("Code");
  507. b.Property<DateTime>("Created");
  508. b.Property<string>("Description");
  509. b.Property<bool>("IsDeleted");
  510. b.Property<DateTime>("Modified");
  511. b.Property<string>("ModifiedBy");
  512. b.Property<int>("ProvinceId");
  513. b.HasKey("Id");
  514. b.HasIndex("ProvinceId");
  515. b.ToTable("Cities");
  516. });
  517. modelBuilder.Entity("UnivateProperties_API.Model.Region.Province", b =>
  518. {
  519. b.Property<int>("Id")
  520. .ValueGeneratedOnAdd()
  521. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  522. b.Property<string>("Code");
  523. b.Property<DateTime>("Created");
  524. b.Property<string>("Description");
  525. b.Property<bool>("IsDeleted");
  526. b.Property<DateTime>("Modified");
  527. b.Property<string>("ModifiedBy");
  528. b.HasKey("Id");
  529. b.ToTable("Provinces");
  530. });
  531. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  532. {
  533. b.Property<int>("Id")
  534. .ValueGeneratedOnAdd()
  535. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  536. b.Property<int>("CityId");
  537. b.Property<DateTime>("Created");
  538. b.Property<string>("Description");
  539. b.Property<bool>("IsDeleted");
  540. b.Property<DateTime>("Modified");
  541. b.Property<string>("ModifiedBy");
  542. b.Property<string>("PostalCode");
  543. b.HasKey("Id");
  544. b.HasIndex("CityId");
  545. b.ToTable("Suburbs");
  546. });
  547. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Season", b =>
  548. {
  549. b.Property<int>("Id")
  550. .ValueGeneratedOnAdd()
  551. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  552. b.Property<DateTime>("Created");
  553. b.Property<bool>("IsDeleted");
  554. b.Property<DateTime>("Modified");
  555. b.Property<string>("ModifiedBy");
  556. b.Property<string>("Name");
  557. b.HasKey("Id");
  558. b.ToTable("Seasons");
  559. });
  560. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Status", b =>
  561. {
  562. b.Property<int>("Id")
  563. .ValueGeneratedOnAdd()
  564. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  565. b.Property<string>("Code");
  566. b.Property<DateTime>("Created");
  567. b.Property<string>("Description");
  568. b.Property<bool>("IsDeleted");
  569. b.Property<DateTime>("Modified");
  570. b.Property<string>("ModifiedBy");
  571. b.Property<int>("StatusType");
  572. b.HasKey("Id");
  573. b.ToTable("Status");
  574. });
  575. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  576. {
  577. b.Property<int>("Id")
  578. .ValueGeneratedOnAdd()
  579. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  580. b.Property<int?>("AgencyId");
  581. b.Property<bool>("AgentAsRep");
  582. b.Property<double>("AgentCommision");
  583. b.Property<int?>("AgentId");
  584. b.Property<DateTime>("ArrivalDate");
  585. b.Property<string>("BankedWith");
  586. b.Property<int>("Bedrooms");
  587. b.Property<DateTime>("Created");
  588. b.Property<bool>("CurrentYearBanked");
  589. b.Property<DateTime>("DateMandated");
  590. b.Property<DateTime>("DepartureDate");
  591. b.Property<bool>("IsDeleted");
  592. b.Property<bool>("LeviesPaidInFull");
  593. b.Property<double>("LevyAmount");
  594. b.Property<bool>("Mandate");
  595. b.Property<int>("MaxSleep");
  596. b.Property<DateTime>("Modified");
  597. b.Property<string>("ModifiedBy");
  598. b.Property<string>("Module");
  599. b.Property<DateTime>("OriginalPurchaseDate");
  600. b.Property<double>("OriginalPurchasePrice");
  601. b.Property<bool>("OtherResort");
  602. b.Property<string>("OtherResortName");
  603. b.Property<int>("OwnerId");
  604. b.Property<bool>("ReferedByAgent");
  605. b.Property<int>("RegionId");
  606. b.Property<string>("ResortCode");
  607. b.Property<string>("ResortName");
  608. b.Property<string>("Season");
  609. b.Property<double>("SellPrice");
  610. b.Property<int>("StatusId");
  611. b.Property<string>("UnitNumber");
  612. b.Property<string>("WeekNumber");
  613. b.Property<bool>("WeekPlacedForRental");
  614. b.Property<int>("WeekType");
  615. b.HasKey("Id");
  616. b.HasIndex("AgencyId");
  617. b.HasIndex("AgentId");
  618. b.HasIndex("OwnerId");
  619. b.HasIndex("RegionId");
  620. b.HasIndex("StatusId");
  621. b.ToTable("Weeks");
  622. });
  623. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfiguration", b =>
  624. {
  625. b.Property<int>("Id")
  626. .ValueGeneratedOnAdd()
  627. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  628. b.Property<int>("Adults");
  629. b.Property<int>("Bedrooms");
  630. b.Property<int>("Children");
  631. b.Property<string>("Code");
  632. b.Property<DateTime>("Created");
  633. b.Property<bool>("IsDeleted");
  634. b.Property<DateTime>("Modified");
  635. b.Property<string>("ModifiedBy");
  636. b.HasKey("Id");
  637. b.HasIndex("Code")
  638. .IsUnique()
  639. .HasFilter("[Code] IS NOT NULL");
  640. b.ToTable("UnitConfigurations");
  641. });
  642. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  643. {
  644. b.Property<int>("Id")
  645. .ValueGeneratedOnAdd()
  646. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  647. b.Property<DateTime>("Created");
  648. b.Property<string>("Description");
  649. b.Property<bool>("IsDeleted");
  650. b.Property<DateTime>("Modified");
  651. b.Property<string>("ModifiedBy");
  652. b.Property<int>("UnitConfigurationId");
  653. b.HasKey("Id");
  654. b.HasIndex("UnitConfigurationId");
  655. b.ToTable("UnitConfigurationTypes");
  656. });
  657. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agency", b =>
  658. {
  659. b.Property<int>("Id")
  660. .ValueGeneratedOnAdd()
  661. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  662. b.Property<string>("AgencyName");
  663. b.Property<string>("CompanyRegNumber");
  664. b.Property<DateTime>("Created");
  665. b.Property<string>("EAABEFFCNumber");
  666. b.Property<bool>("IsDeleted");
  667. b.Property<DateTime>("Modified");
  668. b.Property<string>("ModifiedBy");
  669. b.HasKey("Id");
  670. b.ToTable("Agencies");
  671. });
  672. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  673. {
  674. b.Property<int>("Id")
  675. .ValueGeneratedOnAdd()
  676. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  677. b.Property<int?>("AgencyId");
  678. b.Property<string>("CellNumber");
  679. b.Property<DateTime>("Created");
  680. b.Property<string>("Email");
  681. b.Property<bool>("IsDeleted");
  682. b.Property<DateTime>("Modified");
  683. b.Property<string>("ModifiedBy");
  684. b.Property<string>("Name");
  685. b.Property<string>("Surname");
  686. b.Property<string>("Telephone");
  687. b.Property<int?>("TemplateId");
  688. b.Property<int?>("UserId");
  689. b.HasKey("Id");
  690. b.HasIndex("AgencyId");
  691. b.HasIndex("TemplateId");
  692. b.HasIndex("UserId");
  693. b.ToTable("Agents");
  694. });
  695. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  696. {
  697. b.Property<int>("Id")
  698. .ValueGeneratedOnAdd()
  699. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  700. b.Property<int?>("AddressId");
  701. b.Property<int?>("BankAccountId");
  702. b.Property<string>("CellNumber");
  703. b.Property<string>("CompanyRegNumber");
  704. b.Property<DateTime>("Created");
  705. b.Property<string>("Email");
  706. b.Property<int>("HowMarried");
  707. b.Property<string>("IdNumber");
  708. b.Property<string>("IncomeTaxNumber");
  709. b.Property<bool>("IsDeleted");
  710. b.Property<DateTime>("Modified");
  711. b.Property<string>("ModifiedBy");
  712. b.Property<string>("Name");
  713. b.Property<string>("SpouseCellnumber");
  714. b.Property<string>("SpouseEmail");
  715. b.Property<string>("SpouseName");
  716. b.Property<string>("SpouseSurname");
  717. b.Property<string>("SpouseTelephone");
  718. b.Property<string>("Surname");
  719. b.Property<string>("Telephone");
  720. b.Property<int?>("TemplateId");
  721. b.Property<int?>("UserId");
  722. b.HasKey("Id");
  723. b.HasIndex("AddressId");
  724. b.HasIndex("BankAccountId");
  725. b.HasIndex("TemplateId");
  726. b.HasIndex("UserId");
  727. b.HasIndex("Telephone", "CellNumber", "Email")
  728. .IsUnique()
  729. .HasFilter("[Telephone] IS NOT NULL AND [CellNumber] IS NOT NULL AND [Email] IS NOT NULL");
  730. b.ToTable("Individuals");
  731. });
  732. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  733. {
  734. b.Property<int>("Id")
  735. .ValueGeneratedOnAdd()
  736. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  737. b.Property<string>("CellNumber");
  738. b.Property<DateTime>("Created");
  739. b.Property<string>("Email");
  740. b.Property<bool>("IsDeleted");
  741. b.Property<DateTime>("Modified");
  742. b.Property<string>("ModifiedBy");
  743. b.Property<string>("Name");
  744. b.Property<string>("Surname");
  745. b.Property<string>("Telephone");
  746. b.Property<int?>("UserId");
  747. b.HasKey("Id");
  748. b.HasIndex("UserId");
  749. b.ToTable("Person");
  750. });
  751. modelBuilder.Entity("UnivateProperties_API.Model.Users.User", b =>
  752. {
  753. b.Property<int>("Id")
  754. .ValueGeneratedOnAdd()
  755. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  756. b.Property<DateTime>("Created");
  757. b.Property<bool>("IsDeleted");
  758. b.Property<DateTime>("Modified");
  759. b.Property<string>("ModifiedBy");
  760. b.Property<byte[]>("PasswordHash");
  761. b.Property<byte[]>("PasswordSalt");
  762. b.Property<string>("Role");
  763. b.Property<string>("Token");
  764. b.Property<string>("Username");
  765. b.Property<bool>("Verified");
  766. b.HasKey("Id");
  767. b.HasIndex("Username")
  768. .IsUnique()
  769. .HasFilter("[Username] IS NOT NULL");
  770. b.ToTable("Users");
  771. });
  772. modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
  773. {
  774. b.HasOne("UnivateProperties_API.Model.Banks.Bank", "Bank")
  775. .WithMany()
  776. .HasForeignKey("BankId");
  777. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  778. .WithMany()
  779. .HasForeignKey("OwnerId");
  780. });
  781. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItem", b =>
  782. {
  783. b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign")
  784. .WithMany("Items")
  785. .HasForeignKey("CampaignId")
  786. .OnDelete(DeleteBehavior.Cascade);
  787. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Week")
  788. .WithMany()
  789. .HasForeignKey("WeekId")
  790. .OnDelete(DeleteBehavior.Cascade);
  791. });
  792. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItemPlaceHolder", b =>
  793. {
  794. b.HasOne("UnivateProperties_API.Model.Campaigns.CampaignItem", "CampaignItem")
  795. .WithMany("CampaignItemPlaceHolder")
  796. .HasForeignKey("CampaignItemId")
  797. .OnDelete(DeleteBehavior.Cascade);
  798. });
  799. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignPlaceHolder", b =>
  800. {
  801. b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign")
  802. .WithMany("PlaceHolders")
  803. .HasForeignKey("CampaignId")
  804. .OnDelete(DeleteBehavior.Cascade);
  805. });
  806. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  807. {
  808. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  809. .WithMany("Emails")
  810. .HasForeignKey("SenderId")
  811. .OnDelete(DeleteBehavior.Cascade);
  812. });
  813. modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b =>
  814. {
  815. b.HasOne("UnivateProperties_API.Model.Communication.Template", "Template")
  816. .WithMany("PlaceHolders")
  817. .HasForeignKey("TemplateId")
  818. .OnDelete(DeleteBehavior.Cascade);
  819. });
  820. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  821. {
  822. b.HasOne("UnivateProperties_API.Model.Communication.SMTPHost", "SMTPHost")
  823. .WithMany("SMTPAccounts")
  824. .HasForeignKey("SMTPHostId")
  825. .OnDelete(DeleteBehavior.Cascade);
  826. });
  827. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b =>
  828. {
  829. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  830. .WithMany("Templates")
  831. .HasForeignKey("SenderId");
  832. });
  833. modelBuilder.Entity("UnivateProperties_API.Model.Financial.Payment", b =>
  834. {
  835. b.HasOne("UnivateProperties_API.Model.Users.User", "CreatedBy")
  836. .WithMany()
  837. .HasForeignKey("CreatedById")
  838. .OnDelete(DeleteBehavior.Cascade);
  839. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  840. .WithMany()
  841. .HasForeignKey("PropertyId");
  842. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  843. .WithMany()
  844. .HasForeignKey("TimeshareWeekId");
  845. });
  846. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  847. {
  848. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  849. .WithMany()
  850. .HasForeignKey("OwnerId");
  851. });
  852. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  853. {
  854. b.HasOne("UnivateProperties_API.Model.Users.Individual", "BidMaker")
  855. .WithMany()
  856. .HasForeignKey("BidMakerId");
  857. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  858. .WithMany("BidItems")
  859. .HasForeignKey("PropertyId");
  860. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  861. .WithMany()
  862. .HasForeignKey("StatusId");
  863. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  864. .WithMany("BidItems")
  865. .HasForeignKey("TimeshareWeekId");
  866. });
  867. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  868. {
  869. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  870. .WithMany("ProcessFlows")
  871. .HasForeignKey("PropertyID");
  872. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  873. .WithMany()
  874. .HasForeignKey("StatusID")
  875. .OnDelete(DeleteBehavior.Cascade);
  876. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Timeshare")
  877. .WithMany("ProcessFlows")
  878. .HasForeignKey("TimeshareID");
  879. });
  880. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  881. {
  882. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  883. .WithMany("Properties")
  884. .HasForeignKey("AgencyId");
  885. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  886. .WithMany("Properties")
  887. .HasForeignKey("AgentId");
  888. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  889. .WithMany("Properties")
  890. .HasForeignKey("OwnerId");
  891. b.HasOne("UnivateProperties_API.Model.Properties.PropertyType", "PropertyType")
  892. .WithMany()
  893. .HasForeignKey("PropertyTypeId")
  894. .OnDelete(DeleteBehavior.Cascade);
  895. });
  896. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  897. {
  898. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  899. .WithMany("PropertyImages")
  900. .HasForeignKey("PropertyId")
  901. .OnDelete(DeleteBehavior.Cascade);
  902. });
  903. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  904. {
  905. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  906. .WithMany("PropertyUserFields")
  907. .HasForeignKey("PropertyId")
  908. .OnDelete(DeleteBehavior.Cascade);
  909. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedField", "UserDefinedField")
  910. .WithMany()
  911. .HasForeignKey("UserDefinedFieldId")
  912. .OnDelete(DeleteBehavior.Cascade);
  913. });
  914. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  915. {
  916. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedGroup", "Group")
  917. .WithMany("Fields")
  918. .HasForeignKey("GroupId")
  919. .OnDelete(DeleteBehavior.Cascade);
  920. });
  921. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  922. {
  923. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  924. .WithMany()
  925. .HasForeignKey("ProvinceId")
  926. .OnDelete(DeleteBehavior.Cascade);
  927. });
  928. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  929. {
  930. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  931. .WithMany()
  932. .HasForeignKey("CityId")
  933. .OnDelete(DeleteBehavior.Cascade);
  934. });
  935. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  936. {
  937. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  938. .WithMany()
  939. .HasForeignKey("AgencyId");
  940. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  941. .WithMany()
  942. .HasForeignKey("AgentId");
  943. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  944. .WithMany()
  945. .HasForeignKey("OwnerId")
  946. .OnDelete(DeleteBehavior.Cascade);
  947. b.HasOne("UnivateProperties_API.Model.Region.Province", "Region")
  948. .WithMany()
  949. .HasForeignKey("RegionId")
  950. .OnDelete(DeleteBehavior.Cascade);
  951. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  952. .WithMany()
  953. .HasForeignKey("StatusId")
  954. .OnDelete(DeleteBehavior.Cascade);
  955. });
  956. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  957. {
  958. b.HasOne("UnivateProperties_API.Model.Timeshare.UnitConfiguration", "UnitConfiguration")
  959. .WithMany("Types")
  960. .HasForeignKey("UnitConfigurationId")
  961. .OnDelete(DeleteBehavior.Cascade);
  962. });
  963. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  964. {
  965. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  966. .WithMany("Agents")
  967. .HasForeignKey("AgencyId");
  968. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  969. .WithMany("AgentBCC")
  970. .HasForeignKey("TemplateId");
  971. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  972. .WithMany()
  973. .HasForeignKey("UserId");
  974. });
  975. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  976. {
  977. b.HasOne("UnivateProperties_API.Model.Misc.Address", "Address")
  978. .WithMany()
  979. .HasForeignKey("AddressId");
  980. b.HasOne("UnivateProperties_API.Model.Banks.BankAccount", "BankAccount")
  981. .WithMany()
  982. .HasForeignKey("BankAccountId");
  983. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  984. .WithMany("IndividualBCC")
  985. .HasForeignKey("TemplateId");
  986. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  987. .WithMany()
  988. .HasForeignKey("UserId");
  989. });
  990. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  991. {
  992. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  993. .WithMany()
  994. .HasForeignKey("UserId");
  995. });
  996. #pragma warning restore 612, 618
  997. }
  998. }
  999. }