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ů.

20200625173633_Update-Database.Designer.cs 50KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542
  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("20200625173633_Update-Database")]
  13. partial class UpdateDatabase
  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.Payment", b =>
  217. {
  218. b.Property<int>("Id")
  219. .ValueGeneratedOnAdd()
  220. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  221. b.Property<decimal>("Amount");
  222. b.Property<DateTime>("Created");
  223. b.Property<int>("CreatedById");
  224. b.Property<bool>("IsDeleted");
  225. b.Property<DateTime>("Modified");
  226. b.Property<string>("ModifiedBy");
  227. b.Property<string>("PaymentStatus");
  228. b.Property<string>("PaymentToken");
  229. b.Property<int?>("PropertyId");
  230. b.Property<int?>("TimeshareWeekId");
  231. b.HasKey("Id");
  232. b.HasIndex("CreatedById");
  233. b.HasIndex("PropertyId");
  234. b.HasIndex("TimeshareWeekId");
  235. b.ToTable("Payments");
  236. });
  237. modelBuilder.Entity("UnivateProperties_API.Model.Logging.SearchLog", b =>
  238. {
  239. b.Property<int>("Id")
  240. .ValueGeneratedOnAdd()
  241. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  242. b.Property<DateTime>("Created");
  243. b.Property<bool>("IsDeleted");
  244. b.Property<DateTime>("Modified");
  245. b.Property<string>("ModifiedBy");
  246. b.Property<string>("Search");
  247. b.Property<string>("Type");
  248. b.HasKey("Id");
  249. b.ToTable("SearchLogs");
  250. });
  251. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  252. {
  253. b.Property<int>("Id")
  254. .ValueGeneratedOnAdd()
  255. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  256. b.Property<string>("City");
  257. b.Property<DateTime>("Created");
  258. b.Property<bool>("IsDeleted");
  259. b.Property<DateTime>("Modified");
  260. b.Property<string>("ModifiedBy");
  261. b.Property<int?>("OwnerId");
  262. b.Property<string>("PostalCode");
  263. b.Property<string>("Province");
  264. b.Property<string>("Street");
  265. b.Property<string>("StreetNumber");
  266. b.Property<string>("Suburb");
  267. b.HasKey("Id");
  268. b.HasIndex("OwnerId");
  269. b.ToTable("Addresses");
  270. });
  271. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Carousel", b =>
  272. {
  273. b.Property<int>("Id")
  274. .ValueGeneratedOnAdd()
  275. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  276. b.Property<DateTime>("Created");
  277. b.Property<string>("Header");
  278. b.Property<string>("Image");
  279. b.Property<bool>("IsDeleted");
  280. b.Property<DateTime>("Modified");
  281. b.Property<string>("ModifiedBy");
  282. b.Property<int>("PropertyId");
  283. b.Property<int>("TimeshareId");
  284. b.HasKey("Id");
  285. b.ToTable("Carousel");
  286. });
  287. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Default", b =>
  288. {
  289. b.Property<string>("Id")
  290. .ValueGeneratedOnAdd();
  291. b.Property<string>("Value");
  292. b.HasKey("Id");
  293. b.ToTable("Defaults");
  294. });
  295. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Location", b =>
  296. {
  297. b.Property<int>("Id")
  298. .ValueGeneratedOnAdd()
  299. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  300. b.Property<DateTime>("Created");
  301. b.Property<bool>("IsDeleted");
  302. b.Property<bool>("IsTesting");
  303. b.Property<DateTime>("Modified");
  304. b.Property<string>("ModifiedBy");
  305. b.Property<string>("PropertyImageLocation");
  306. b.HasKey("Id");
  307. b.ToTable("Location");
  308. });
  309. modelBuilder.Entity("UnivateProperties_API.Model.Misc.PlaceHolderFormat", b =>
  310. {
  311. b.Property<int>("Id")
  312. .ValueGeneratedOnAdd()
  313. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  314. b.Property<DateTime>("Created");
  315. b.Property<string>("DisplayName");
  316. b.Property<string>("Format");
  317. b.Property<bool>("IsDeleted");
  318. b.Property<DateTime>("Modified");
  319. b.Property<string>("ModifiedBy");
  320. b.HasKey("Id");
  321. b.ToTable("PlaceHolderFormats");
  322. });
  323. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  324. {
  325. b.Property<int>("Id")
  326. .ValueGeneratedOnAdd()
  327. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  328. b.Property<double>("Amount");
  329. b.Property<int?>("BidMakerId");
  330. b.Property<string>("Comment");
  331. b.Property<DateTime>("Created");
  332. b.Property<string>("DeclinedReason");
  333. b.Property<bool>("IsDeleted");
  334. b.Property<DateTime>("Modified");
  335. b.Property<string>("ModifiedBy");
  336. b.Property<int?>("PropertyId");
  337. b.Property<int?>("StatusId");
  338. b.Property<int?>("TimeshareWeekId");
  339. b.HasKey("Id");
  340. b.HasIndex("BidMakerId");
  341. b.HasIndex("PropertyId");
  342. b.HasIndex("StatusId");
  343. b.HasIndex("TimeshareWeekId");
  344. b.ToTable("BidItems");
  345. });
  346. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  347. {
  348. b.Property<int>("Id")
  349. .ValueGeneratedOnAdd()
  350. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  351. b.Property<DateTime>("Created");
  352. b.Property<bool>("IsDeleted");
  353. b.Property<DateTime>("Modified");
  354. b.Property<string>("ModifiedBy");
  355. b.Property<int?>("PropertyID");
  356. b.Property<int>("StatusID");
  357. b.Property<int?>("TimeshareID");
  358. b.HasKey("Id");
  359. b.HasIndex("PropertyID");
  360. b.HasIndex("StatusID");
  361. b.HasIndex("TimeshareID");
  362. b.ToTable("ProcessFlows");
  363. });
  364. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  365. {
  366. b.Property<int>("Id")
  367. .ValueGeneratedOnAdd()
  368. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  369. b.Property<string>("AddressLine1");
  370. b.Property<string>("AddressLine2");
  371. b.Property<string>("AddressLine3");
  372. b.Property<int?>("AgencyId");
  373. b.Property<int?>("AgentId");
  374. b.Property<int>("CityId");
  375. b.Property<DateTime>("Created");
  376. b.Property<DateTime>("DateAvailable");
  377. b.Property<DateTime>("DatePublished");
  378. b.Property<string>("Description");
  379. b.Property<bool>("IsDeleted");
  380. b.Property<bool>("IsSale");
  381. b.Property<DateTime>("Modified");
  382. b.Property<string>("ModifiedBy");
  383. b.Property<decimal>("OperationalCosts");
  384. b.Property<int?>("OwnerId");
  385. b.Property<decimal>("Price");
  386. b.Property<string>("PricePer");
  387. b.Property<string>("PropertyName");
  388. b.Property<int>("PropertyTypeId");
  389. b.Property<int>("ProvinceId");
  390. b.Property<bool>("Published");
  391. b.Property<string>("ShortDescription");
  392. b.Property<DateTime>("StatusDate");
  393. b.Property<int?>("StatusId");
  394. b.Property<int>("SuburbId");
  395. b.Property<string>("Unit");
  396. b.Property<string>("Video");
  397. b.Property<string>("VirtualTour");
  398. b.HasKey("Id");
  399. b.HasIndex("AgencyId");
  400. b.HasIndex("AgentId");
  401. b.HasIndex("OwnerId");
  402. b.ToTable("Properties");
  403. });
  404. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  405. {
  406. b.Property<int>("Id")
  407. .ValueGeneratedOnAdd()
  408. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  409. b.Property<DateTime>("Created");
  410. b.Property<string>("Image");
  411. b.Property<bool>("IsDefault");
  412. b.Property<bool>("IsDeleted");
  413. b.Property<DateTime>("Modified");
  414. b.Property<string>("ModifiedBy");
  415. b.Property<int>("PropertyId");
  416. b.HasKey("Id");
  417. b.HasIndex("PropertyId");
  418. b.ToTable("PropertyImages");
  419. });
  420. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyType", b =>
  421. {
  422. b.Property<int>("Id")
  423. .ValueGeneratedOnAdd()
  424. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  425. b.Property<DateTime>("Created");
  426. b.Property<string>("Description");
  427. b.Property<bool>("IsDeleted");
  428. b.Property<DateTime>("Modified");
  429. b.Property<string>("ModifiedBy");
  430. b.Property<int>("UsageType");
  431. b.HasKey("Id");
  432. b.ToTable("PropertyTypes");
  433. });
  434. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  435. {
  436. b.Property<int>("Id")
  437. .ValueGeneratedOnAdd()
  438. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  439. b.Property<DateTime>("Created");
  440. b.Property<string>("Description");
  441. b.Property<bool>("IsDeleted");
  442. b.Property<DateTime>("Modified");
  443. b.Property<string>("ModifiedBy");
  444. b.Property<int>("PropertyId");
  445. b.Property<int>("UserDefinedFieldId");
  446. b.Property<string>("Value");
  447. b.HasKey("Id");
  448. b.HasIndex("PropertyId");
  449. b.HasIndex("UserDefinedFieldId");
  450. b.ToTable("PropertyUserFields");
  451. });
  452. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  453. {
  454. b.Property<int>("Id")
  455. .ValueGeneratedOnAdd()
  456. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  457. b.Property<DateTime>("Created");
  458. b.Property<string>("FieldName");
  459. b.Property<string>("FieldType");
  460. b.Property<int>("GroupId");
  461. b.Property<bool>("IsDeleted");
  462. b.Property<DateTime>("Modified");
  463. b.Property<string>("ModifiedBy");
  464. b.Property<int>("Rank");
  465. b.HasKey("Id");
  466. b.HasIndex("GroupId");
  467. b.ToTable("UserDefinedFields");
  468. });
  469. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedGroup", b =>
  470. {
  471. b.Property<int>("Id")
  472. .ValueGeneratedOnAdd()
  473. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  474. b.Property<DateTime>("Created");
  475. b.Property<string>("Description");
  476. b.Property<bool>("IsDeleted");
  477. b.Property<DateTime>("Modified");
  478. b.Property<string>("ModifiedBy");
  479. b.Property<int>("Rank");
  480. b.Property<int>("UsageType");
  481. b.HasKey("Id");
  482. b.ToTable("UserDefinedGroups");
  483. });
  484. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  485. {
  486. b.Property<int>("Id")
  487. .ValueGeneratedOnAdd()
  488. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  489. b.Property<string>("Code");
  490. b.Property<DateTime>("Created");
  491. b.Property<string>("Description");
  492. b.Property<bool>("IsDeleted");
  493. b.Property<DateTime>("Modified");
  494. b.Property<string>("ModifiedBy");
  495. b.Property<int>("ProvinceId");
  496. b.HasKey("Id");
  497. b.HasIndex("ProvinceId");
  498. b.ToTable("Cities");
  499. });
  500. modelBuilder.Entity("UnivateProperties_API.Model.Region.Province", b =>
  501. {
  502. b.Property<int>("Id")
  503. .ValueGeneratedOnAdd()
  504. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  505. b.Property<string>("Code");
  506. b.Property<DateTime>("Created");
  507. b.Property<string>("Description");
  508. b.Property<bool>("IsDeleted");
  509. b.Property<DateTime>("Modified");
  510. b.Property<string>("ModifiedBy");
  511. b.HasKey("Id");
  512. b.ToTable("Provinces");
  513. });
  514. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  515. {
  516. b.Property<int>("Id")
  517. .ValueGeneratedOnAdd()
  518. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  519. b.Property<int>("CityId");
  520. b.Property<DateTime>("Created");
  521. b.Property<string>("Description");
  522. b.Property<bool>("IsDeleted");
  523. b.Property<DateTime>("Modified");
  524. b.Property<string>("ModifiedBy");
  525. b.Property<string>("PostalCode");
  526. b.HasKey("Id");
  527. b.HasIndex("CityId");
  528. b.ToTable("Suburbs");
  529. });
  530. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Season", b =>
  531. {
  532. b.Property<int>("Id")
  533. .ValueGeneratedOnAdd()
  534. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  535. b.Property<DateTime>("Created");
  536. b.Property<bool>("IsDeleted");
  537. b.Property<DateTime>("Modified");
  538. b.Property<string>("ModifiedBy");
  539. b.Property<string>("Name");
  540. b.HasKey("Id");
  541. b.ToTable("Seasons");
  542. });
  543. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Status", b =>
  544. {
  545. b.Property<int>("Id")
  546. .ValueGeneratedOnAdd()
  547. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  548. b.Property<string>("Code");
  549. b.Property<DateTime>("Created");
  550. b.Property<string>("Description");
  551. b.Property<bool>("IsDeleted");
  552. b.Property<DateTime>("Modified");
  553. b.Property<string>("ModifiedBy");
  554. b.Property<int>("StatusType");
  555. b.HasKey("Id");
  556. b.ToTable("Status");
  557. });
  558. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  559. {
  560. b.Property<int>("Id")
  561. .ValueGeneratedOnAdd()
  562. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  563. b.Property<int?>("AgencyId");
  564. b.Property<bool>("AgentAsRep");
  565. b.Property<double>("AgentCommision");
  566. b.Property<int?>("AgentId");
  567. b.Property<DateTime>("ArrivalDate");
  568. b.Property<string>("BankedWith");
  569. b.Property<int>("Bedrooms");
  570. b.Property<DateTime>("Created");
  571. b.Property<bool>("CurrentYearBanked");
  572. b.Property<DateTime>("DepartureDate");
  573. b.Property<bool>("IsDeleted");
  574. b.Property<bool>("LeviesPaidInFull");
  575. b.Property<double>("LevyAmount");
  576. b.Property<string>("Mandate");
  577. b.Property<int>("MaxSleep");
  578. b.Property<DateTime>("Modified");
  579. b.Property<string>("ModifiedBy");
  580. b.Property<string>("Module");
  581. b.Property<DateTime>("OriginalPurchaseDate");
  582. b.Property<double>("OriginalPurchasePrice");
  583. b.Property<bool>("OtherResort");
  584. b.Property<string>("OtherResortName");
  585. b.Property<int>("OwnerId");
  586. b.Property<bool>("ReferedByAgent");
  587. b.Property<int>("RegionId");
  588. b.Property<string>("ResortCode");
  589. b.Property<string>("ResortName");
  590. b.Property<string>("Season");
  591. b.Property<double>("SellPrice");
  592. b.Property<int>("StatusId");
  593. b.Property<string>("UnitNumber");
  594. b.Property<string>("WeekNumber");
  595. b.Property<bool>("WeekPlacedForRental");
  596. b.HasKey("Id");
  597. b.HasIndex("AgencyId");
  598. b.HasIndex("AgentId");
  599. b.HasIndex("OwnerId");
  600. b.HasIndex("RegionId");
  601. b.HasIndex("StatusId");
  602. b.ToTable("Weeks");
  603. });
  604. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfiguration", b =>
  605. {
  606. b.Property<int>("Id")
  607. .ValueGeneratedOnAdd()
  608. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  609. b.Property<int>("Adults");
  610. b.Property<int>("Bedrooms");
  611. b.Property<int>("Children");
  612. b.Property<string>("Code");
  613. b.Property<DateTime>("Created");
  614. b.Property<bool>("IsDeleted");
  615. b.Property<DateTime>("Modified");
  616. b.Property<string>("ModifiedBy");
  617. b.HasKey("Id");
  618. b.HasIndex("Code")
  619. .IsUnique()
  620. .HasFilter("[Code] IS NOT NULL");
  621. b.ToTable("UnitConfigurations");
  622. });
  623. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  624. {
  625. b.Property<int>("Id")
  626. .ValueGeneratedOnAdd()
  627. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  628. b.Property<DateTime>("Created");
  629. b.Property<string>("Description");
  630. b.Property<bool>("IsDeleted");
  631. b.Property<DateTime>("Modified");
  632. b.Property<string>("ModifiedBy");
  633. b.Property<int>("UnitConfigurationId");
  634. b.HasKey("Id");
  635. b.HasIndex("UnitConfigurationId");
  636. b.ToTable("UnitConfigurationTypes");
  637. });
  638. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agency", b =>
  639. {
  640. b.Property<int>("Id")
  641. .ValueGeneratedOnAdd()
  642. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  643. b.Property<string>("AgencyName");
  644. b.Property<string>("CompanyRegNumber");
  645. b.Property<DateTime>("Created");
  646. b.Property<string>("EAABEFFCNumber");
  647. b.Property<bool>("IsDeleted");
  648. b.Property<DateTime>("Modified");
  649. b.Property<string>("ModifiedBy");
  650. b.HasKey("Id");
  651. b.ToTable("Agencies");
  652. });
  653. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  654. {
  655. b.Property<int>("Id")
  656. .ValueGeneratedOnAdd()
  657. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  658. b.Property<int?>("AgencyId");
  659. b.Property<string>("CellNumber");
  660. b.Property<DateTime>("Created");
  661. b.Property<string>("Email");
  662. b.Property<bool>("IsDeleted");
  663. b.Property<DateTime>("Modified");
  664. b.Property<string>("ModifiedBy");
  665. b.Property<string>("Name");
  666. b.Property<string>("Surname");
  667. b.Property<string>("Telephone");
  668. b.Property<int?>("TemplateId");
  669. b.Property<int?>("UserId");
  670. b.HasKey("Id");
  671. b.HasIndex("AgencyId");
  672. b.HasIndex("TemplateId");
  673. b.HasIndex("UserId");
  674. b.ToTable("Agents");
  675. });
  676. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  677. {
  678. b.Property<int>("Id")
  679. .ValueGeneratedOnAdd()
  680. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  681. b.Property<int?>("AddressId");
  682. b.Property<int?>("BankAccountId");
  683. b.Property<string>("CellNumber");
  684. b.Property<string>("CompanyRegNumber");
  685. b.Property<DateTime>("Created");
  686. b.Property<string>("Email");
  687. b.Property<string>("IdNumber");
  688. b.Property<string>("IncomeTaxNumber");
  689. b.Property<bool>("IsDeleted");
  690. b.Property<string>("MaritalStatus");
  691. b.Property<DateTime>("Modified");
  692. b.Property<string>("ModifiedBy");
  693. b.Property<string>("Name");
  694. b.Property<string>("Surname");
  695. b.Property<string>("Telephone");
  696. b.Property<int?>("TemplateId");
  697. b.Property<int?>("UserId");
  698. b.HasKey("Id");
  699. b.HasIndex("AddressId");
  700. b.HasIndex("BankAccountId");
  701. b.HasIndex("TemplateId");
  702. b.HasIndex("UserId");
  703. b.HasIndex("Telephone", "CellNumber", "Email")
  704. .IsUnique()
  705. .HasFilter("[Telephone] IS NOT NULL AND [CellNumber] IS NOT NULL AND [Email] IS NOT NULL");
  706. b.ToTable("Individuals");
  707. });
  708. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  709. {
  710. b.Property<int>("Id")
  711. .ValueGeneratedOnAdd()
  712. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  713. b.Property<string>("CellNumber");
  714. b.Property<DateTime>("Created");
  715. b.Property<string>("Email");
  716. b.Property<bool>("IsDeleted");
  717. b.Property<DateTime>("Modified");
  718. b.Property<string>("ModifiedBy");
  719. b.Property<string>("Name");
  720. b.Property<string>("Surname");
  721. b.Property<string>("Telephone");
  722. b.Property<int?>("UserId");
  723. b.HasKey("Id");
  724. b.HasIndex("UserId");
  725. b.ToTable("Person");
  726. });
  727. modelBuilder.Entity("UnivateProperties_API.Model.Users.User", b =>
  728. {
  729. b.Property<int>("Id")
  730. .ValueGeneratedOnAdd()
  731. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  732. b.Property<DateTime>("Created");
  733. b.Property<bool>("IsDeleted");
  734. b.Property<DateTime>("Modified");
  735. b.Property<string>("ModifiedBy");
  736. b.Property<byte[]>("PasswordHash");
  737. b.Property<byte[]>("PasswordSalt");
  738. b.Property<string>("Role");
  739. b.Property<string>("Token");
  740. b.Property<string>("Username");
  741. b.Property<bool>("Verified");
  742. b.HasKey("Id");
  743. b.HasIndex("Username")
  744. .IsUnique()
  745. .HasFilter("[Username] IS NOT NULL");
  746. b.ToTable("Users");
  747. });
  748. modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
  749. {
  750. b.HasOne("UnivateProperties_API.Model.Banks.Bank", "Bank")
  751. .WithMany()
  752. .HasForeignKey("BankId");
  753. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  754. .WithMany()
  755. .HasForeignKey("OwnerId");
  756. });
  757. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItem", b =>
  758. {
  759. b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign")
  760. .WithMany("Items")
  761. .HasForeignKey("CampaignId")
  762. .OnDelete(DeleteBehavior.Cascade);
  763. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Week")
  764. .WithMany()
  765. .HasForeignKey("WeekId")
  766. .OnDelete(DeleteBehavior.Cascade);
  767. });
  768. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItemPlaceHolder", b =>
  769. {
  770. b.HasOne("UnivateProperties_API.Model.Campaigns.CampaignItem", "CampaignItem")
  771. .WithMany("CampaignItemPlaceHolder")
  772. .HasForeignKey("CampaignItemId")
  773. .OnDelete(DeleteBehavior.Cascade);
  774. });
  775. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignPlaceHolder", b =>
  776. {
  777. b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign")
  778. .WithMany("PlaceHolders")
  779. .HasForeignKey("CampaignId")
  780. .OnDelete(DeleteBehavior.Cascade);
  781. });
  782. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  783. {
  784. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  785. .WithMany("Emails")
  786. .HasForeignKey("SenderId")
  787. .OnDelete(DeleteBehavior.Cascade);
  788. });
  789. modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b =>
  790. {
  791. b.HasOne("UnivateProperties_API.Model.Communication.Template", "Template")
  792. .WithMany("PlaceHolders")
  793. .HasForeignKey("TemplateId")
  794. .OnDelete(DeleteBehavior.Cascade);
  795. });
  796. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  797. {
  798. b.HasOne("UnivateProperties_API.Model.Communication.SMTPHost", "SMTPHost")
  799. .WithMany("SMTPAccounts")
  800. .HasForeignKey("SMTPHostId")
  801. .OnDelete(DeleteBehavior.Cascade);
  802. });
  803. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b =>
  804. {
  805. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  806. .WithMany("Templates")
  807. .HasForeignKey("SenderId");
  808. });
  809. modelBuilder.Entity("UnivateProperties_API.Model.Financial.Payment", b =>
  810. {
  811. b.HasOne("UnivateProperties_API.Model.Users.User", "CreatedBy")
  812. .WithMany()
  813. .HasForeignKey("CreatedById")
  814. .OnDelete(DeleteBehavior.Cascade);
  815. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  816. .WithMany()
  817. .HasForeignKey("PropertyId");
  818. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  819. .WithMany()
  820. .HasForeignKey("TimeshareWeekId");
  821. });
  822. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  823. {
  824. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  825. .WithMany()
  826. .HasForeignKey("OwnerId");
  827. });
  828. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  829. {
  830. b.HasOne("UnivateProperties_API.Model.Users.Individual", "BidMaker")
  831. .WithMany()
  832. .HasForeignKey("BidMakerId");
  833. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  834. .WithMany("BidItems")
  835. .HasForeignKey("PropertyId");
  836. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  837. .WithMany()
  838. .HasForeignKey("StatusId");
  839. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  840. .WithMany("BidItems")
  841. .HasForeignKey("TimeshareWeekId");
  842. });
  843. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  844. {
  845. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  846. .WithMany("ProcessFlows")
  847. .HasForeignKey("PropertyID");
  848. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  849. .WithMany()
  850. .HasForeignKey("StatusID")
  851. .OnDelete(DeleteBehavior.Cascade);
  852. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Timeshare")
  853. .WithMany("ProcessFlows")
  854. .HasForeignKey("TimeshareID");
  855. });
  856. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  857. {
  858. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  859. .WithMany("Properties")
  860. .HasForeignKey("AgencyId");
  861. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  862. .WithMany("Properties")
  863. .HasForeignKey("AgentId");
  864. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  865. .WithMany("Properties")
  866. .HasForeignKey("OwnerId");
  867. });
  868. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  869. {
  870. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  871. .WithMany("PropertyImages")
  872. .HasForeignKey("PropertyId")
  873. .OnDelete(DeleteBehavior.Cascade);
  874. });
  875. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  876. {
  877. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  878. .WithMany("PropertyUserFields")
  879. .HasForeignKey("PropertyId")
  880. .OnDelete(DeleteBehavior.Cascade);
  881. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedField", "UserDefinedField")
  882. .WithMany()
  883. .HasForeignKey("UserDefinedFieldId")
  884. .OnDelete(DeleteBehavior.Cascade);
  885. });
  886. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  887. {
  888. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedGroup", "Group")
  889. .WithMany("Fields")
  890. .HasForeignKey("GroupId")
  891. .OnDelete(DeleteBehavior.Cascade);
  892. });
  893. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  894. {
  895. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  896. .WithMany()
  897. .HasForeignKey("ProvinceId")
  898. .OnDelete(DeleteBehavior.Cascade);
  899. });
  900. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  901. {
  902. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  903. .WithMany()
  904. .HasForeignKey("CityId")
  905. .OnDelete(DeleteBehavior.Cascade);
  906. });
  907. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  908. {
  909. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  910. .WithMany()
  911. .HasForeignKey("AgencyId");
  912. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  913. .WithMany()
  914. .HasForeignKey("AgentId");
  915. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  916. .WithMany()
  917. .HasForeignKey("OwnerId")
  918. .OnDelete(DeleteBehavior.Cascade);
  919. b.HasOne("UnivateProperties_API.Model.Region.Province", "Region")
  920. .WithMany()
  921. .HasForeignKey("RegionId")
  922. .OnDelete(DeleteBehavior.Cascade);
  923. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  924. .WithMany()
  925. .HasForeignKey("StatusId")
  926. .OnDelete(DeleteBehavior.Cascade);
  927. });
  928. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  929. {
  930. b.HasOne("UnivateProperties_API.Model.Timeshare.UnitConfiguration", "UnitConfiguration")
  931. .WithMany("Types")
  932. .HasForeignKey("UnitConfigurationId")
  933. .OnDelete(DeleteBehavior.Cascade);
  934. });
  935. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  936. {
  937. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  938. .WithMany("Agents")
  939. .HasForeignKey("AgencyId");
  940. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  941. .WithMany("AgentBCC")
  942. .HasForeignKey("TemplateId");
  943. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  944. .WithMany()
  945. .HasForeignKey("UserId");
  946. });
  947. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  948. {
  949. b.HasOne("UnivateProperties_API.Model.Misc.Address", "Address")
  950. .WithMany()
  951. .HasForeignKey("AddressId");
  952. b.HasOne("UnivateProperties_API.Model.Banks.BankAccount", "BankAccount")
  953. .WithMany()
  954. .HasForeignKey("BankAccountId");
  955. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  956. .WithMany("IndividualBCC")
  957. .HasForeignKey("TemplateId");
  958. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  959. .WithMany()
  960. .HasForeignKey("UserId");
  961. });
  962. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  963. {
  964. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  965. .WithMany()
  966. .HasForeignKey("UserId");
  967. });
  968. #pragma warning restore 612, 618
  969. }
  970. }
  971. }