API
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

20200909062006_AddSpouseDetails.Designer.cs 52KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599
  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("20200909062006_AddSpouseDetails")]
  13. partial class AddSpouseDetails
  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>("AddressOther");
  370. b.Property<string>("AddressURL");
  371. b.Property<int?>("AgencyId");
  372. b.Property<int?>("AgentId");
  373. b.Property<string>("City");
  374. b.Property<string>("Country");
  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<string>("PostalCode");
  386. b.Property<decimal>("Price");
  387. b.Property<string>("PricePer");
  388. b.Property<string>("PropertCoords");
  389. b.Property<string>("PropertyName");
  390. b.Property<string>("PropertyRef");
  391. b.Property<int>("PropertyTypeId");
  392. b.Property<string>("Province");
  393. b.Property<bool>("Published");
  394. b.Property<string>("ShortDescription");
  395. b.Property<bool>("ShowAddress");
  396. b.Property<DateTime>("StatusDate");
  397. b.Property<int?>("StatusId");
  398. b.Property<string>("StreetName");
  399. b.Property<string>("StreetNumber");
  400. b.Property<string>("Suburb");
  401. b.Property<string>("Unit");
  402. b.Property<string>("Video");
  403. b.Property<string>("VirtualTour");
  404. b.HasKey("Id");
  405. b.HasIndex("AgencyId");
  406. b.HasIndex("AgentId");
  407. b.HasIndex("OwnerId");
  408. b.HasIndex("PropertyTypeId");
  409. b.ToTable("Properties");
  410. });
  411. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  412. {
  413. b.Property<int>("Id")
  414. .ValueGeneratedOnAdd()
  415. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  416. b.Property<DateTime>("Created");
  417. b.Property<string>("Image");
  418. b.Property<bool>("IsDefault");
  419. b.Property<bool>("IsDeleted");
  420. b.Property<DateTime>("Modified");
  421. b.Property<string>("ModifiedBy");
  422. b.Property<int>("PropertyId");
  423. b.HasKey("Id");
  424. b.HasIndex("PropertyId");
  425. b.ToTable("PropertyImages");
  426. });
  427. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyType", b =>
  428. {
  429. b.Property<int>("Id")
  430. .ValueGeneratedOnAdd()
  431. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  432. b.Property<DateTime>("Created");
  433. b.Property<string>("Description");
  434. b.Property<bool>("IsDeleted");
  435. b.Property<DateTime>("Modified");
  436. b.Property<string>("ModifiedBy");
  437. b.Property<int>("UsageType");
  438. b.HasKey("Id");
  439. b.ToTable("PropertyTypes");
  440. });
  441. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  442. {
  443. b.Property<int>("Id")
  444. .ValueGeneratedOnAdd()
  445. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  446. b.Property<DateTime>("Created");
  447. b.Property<string>("Description");
  448. b.Property<bool>("IsDeleted");
  449. b.Property<DateTime>("Modified");
  450. b.Property<string>("ModifiedBy");
  451. b.Property<int>("PropertyId");
  452. b.Property<int>("UserDefinedFieldId");
  453. b.Property<string>("Value");
  454. b.HasKey("Id");
  455. b.HasIndex("PropertyId");
  456. b.HasIndex("UserDefinedFieldId");
  457. b.ToTable("PropertyUserFields");
  458. });
  459. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  460. {
  461. b.Property<int>("Id")
  462. .ValueGeneratedOnAdd()
  463. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  464. b.Property<DateTime>("Created");
  465. b.Property<string>("FieldName");
  466. b.Property<string>("FieldType");
  467. b.Property<int>("GroupId");
  468. b.Property<bool>("IsDeleted");
  469. b.Property<DateTime>("Modified");
  470. b.Property<string>("ModifiedBy");
  471. b.Property<int>("Rank");
  472. b.HasKey("Id");
  473. b.HasIndex("GroupId");
  474. b.ToTable("UserDefinedFields");
  475. });
  476. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedGroup", b =>
  477. {
  478. b.Property<int>("Id")
  479. .ValueGeneratedOnAdd()
  480. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  481. b.Property<DateTime>("Created");
  482. b.Property<string>("Description");
  483. b.Property<bool>("IsDeleted");
  484. b.Property<DateTime>("Modified");
  485. b.Property<string>("ModifiedBy");
  486. b.Property<int>("Rank");
  487. b.Property<int>("UsageType");
  488. b.HasKey("Id");
  489. b.ToTable("UserDefinedGroups");
  490. });
  491. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  492. {
  493. b.Property<int>("Id")
  494. .ValueGeneratedOnAdd()
  495. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  496. b.Property<string>("Code");
  497. b.Property<DateTime>("Created");
  498. b.Property<string>("Description");
  499. b.Property<bool>("IsDeleted");
  500. b.Property<DateTime>("Modified");
  501. b.Property<string>("ModifiedBy");
  502. b.Property<int>("ProvinceId");
  503. b.HasKey("Id");
  504. b.HasIndex("ProvinceId");
  505. b.ToTable("Cities");
  506. });
  507. modelBuilder.Entity("UnivateProperties_API.Model.Region.Province", b =>
  508. {
  509. b.Property<int>("Id")
  510. .ValueGeneratedOnAdd()
  511. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  512. b.Property<string>("Code");
  513. b.Property<DateTime>("Created");
  514. b.Property<string>("Description");
  515. b.Property<bool>("IsDeleted");
  516. b.Property<DateTime>("Modified");
  517. b.Property<string>("ModifiedBy");
  518. b.HasKey("Id");
  519. b.ToTable("Provinces");
  520. });
  521. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  522. {
  523. b.Property<int>("Id")
  524. .ValueGeneratedOnAdd()
  525. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  526. b.Property<int>("CityId");
  527. b.Property<DateTime>("Created");
  528. b.Property<string>("Description");
  529. b.Property<bool>("IsDeleted");
  530. b.Property<DateTime>("Modified");
  531. b.Property<string>("ModifiedBy");
  532. b.Property<string>("PostalCode");
  533. b.HasKey("Id");
  534. b.HasIndex("CityId");
  535. b.ToTable("Suburbs");
  536. });
  537. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Season", b =>
  538. {
  539. b.Property<int>("Id")
  540. .ValueGeneratedOnAdd()
  541. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  542. b.Property<DateTime>("Created");
  543. b.Property<bool>("IsDeleted");
  544. b.Property<DateTime>("Modified");
  545. b.Property<string>("ModifiedBy");
  546. b.Property<string>("Name");
  547. b.HasKey("Id");
  548. b.ToTable("Seasons");
  549. });
  550. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.Status", b =>
  551. {
  552. b.Property<int>("Id")
  553. .ValueGeneratedOnAdd()
  554. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  555. b.Property<string>("Code");
  556. b.Property<DateTime>("Created");
  557. b.Property<string>("Description");
  558. b.Property<bool>("IsDeleted");
  559. b.Property<DateTime>("Modified");
  560. b.Property<string>("ModifiedBy");
  561. b.Property<int>("StatusType");
  562. b.HasKey("Id");
  563. b.ToTable("Status");
  564. });
  565. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  566. {
  567. b.Property<int>("Id")
  568. .ValueGeneratedOnAdd()
  569. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  570. b.Property<int?>("AgencyId");
  571. b.Property<bool>("AgentAsRep");
  572. b.Property<double>("AgentCommision");
  573. b.Property<int?>("AgentId");
  574. b.Property<DateTime>("ArrivalDate");
  575. b.Property<string>("BankedWith");
  576. b.Property<int>("Bedrooms");
  577. b.Property<DateTime>("Created");
  578. b.Property<bool>("CurrentYearBanked");
  579. b.Property<DateTime>("DepartureDate");
  580. b.Property<bool>("IsDeleted");
  581. b.Property<bool>("LeviesPaidInFull");
  582. b.Property<double>("LevyAmount");
  583. b.Property<string>("Mandate");
  584. b.Property<int>("MaxSleep");
  585. b.Property<DateTime>("Modified");
  586. b.Property<string>("ModifiedBy");
  587. b.Property<string>("Module");
  588. b.Property<DateTime>("OriginalPurchaseDate");
  589. b.Property<double>("OriginalPurchasePrice");
  590. b.Property<bool>("OtherResort");
  591. b.Property<string>("OtherResortName");
  592. b.Property<int>("OwnerId");
  593. b.Property<bool>("ReferedByAgent");
  594. b.Property<int>("RegionId");
  595. b.Property<string>("ResortCode");
  596. b.Property<string>("ResortName");
  597. b.Property<string>("Season");
  598. b.Property<double>("SellPrice");
  599. b.Property<int>("StatusId");
  600. b.Property<string>("UnitNumber");
  601. b.Property<string>("WeekNumber");
  602. b.Property<bool>("WeekPlacedForRental");
  603. b.Property<int>("WeekType");
  604. b.HasKey("Id");
  605. b.HasIndex("AgencyId");
  606. b.HasIndex("AgentId");
  607. b.HasIndex("OwnerId");
  608. b.HasIndex("RegionId");
  609. b.HasIndex("StatusId");
  610. b.ToTable("Weeks");
  611. });
  612. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfiguration", b =>
  613. {
  614. b.Property<int>("Id")
  615. .ValueGeneratedOnAdd()
  616. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  617. b.Property<int>("Adults");
  618. b.Property<int>("Bedrooms");
  619. b.Property<int>("Children");
  620. b.Property<string>("Code");
  621. b.Property<DateTime>("Created");
  622. b.Property<bool>("IsDeleted");
  623. b.Property<DateTime>("Modified");
  624. b.Property<string>("ModifiedBy");
  625. b.HasKey("Id");
  626. b.HasIndex("Code")
  627. .IsUnique()
  628. .HasFilter("[Code] IS NOT NULL");
  629. b.ToTable("UnitConfigurations");
  630. });
  631. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  632. {
  633. b.Property<int>("Id")
  634. .ValueGeneratedOnAdd()
  635. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  636. b.Property<DateTime>("Created");
  637. b.Property<string>("Description");
  638. b.Property<bool>("IsDeleted");
  639. b.Property<DateTime>("Modified");
  640. b.Property<string>("ModifiedBy");
  641. b.Property<int>("UnitConfigurationId");
  642. b.HasKey("Id");
  643. b.HasIndex("UnitConfigurationId");
  644. b.ToTable("UnitConfigurationTypes");
  645. });
  646. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agency", b =>
  647. {
  648. b.Property<int>("Id")
  649. .ValueGeneratedOnAdd()
  650. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  651. b.Property<string>("AgencyName");
  652. b.Property<string>("CompanyRegNumber");
  653. b.Property<DateTime>("Created");
  654. b.Property<string>("EAABEFFCNumber");
  655. b.Property<bool>("IsDeleted");
  656. b.Property<DateTime>("Modified");
  657. b.Property<string>("ModifiedBy");
  658. b.HasKey("Id");
  659. b.ToTable("Agencies");
  660. });
  661. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  662. {
  663. b.Property<int>("Id")
  664. .ValueGeneratedOnAdd()
  665. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  666. b.Property<int?>("AgencyId");
  667. b.Property<string>("CellNumber");
  668. b.Property<DateTime>("Created");
  669. b.Property<string>("Email");
  670. b.Property<int>("HowMarried");
  671. b.Property<bool>("IsDeleted");
  672. b.Property<DateTime>("Modified");
  673. b.Property<string>("ModifiedBy");
  674. b.Property<string>("Name");
  675. b.Property<string>("SpouseCellnumber");
  676. b.Property<string>("SpouseEmail");
  677. b.Property<string>("SpouseName");
  678. b.Property<string>("SpouseSurname");
  679. b.Property<string>("SpouseTelephone");
  680. b.Property<string>("Surname");
  681. b.Property<string>("Telephone");
  682. b.Property<int?>("TemplateId");
  683. b.Property<int?>("UserId");
  684. b.HasKey("Id");
  685. b.HasIndex("AgencyId");
  686. b.HasIndex("TemplateId");
  687. b.HasIndex("UserId");
  688. b.ToTable("Agents");
  689. });
  690. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  691. {
  692. b.Property<int>("Id")
  693. .ValueGeneratedOnAdd()
  694. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  695. b.Property<int?>("AddressId");
  696. b.Property<int?>("BankAccountId");
  697. b.Property<string>("CellNumber");
  698. b.Property<string>("CompanyRegNumber");
  699. b.Property<DateTime>("Created");
  700. b.Property<string>("Email");
  701. b.Property<int>("HowMarried");
  702. b.Property<string>("IdNumber");
  703. b.Property<string>("IncomeTaxNumber");
  704. b.Property<bool>("IsDeleted");
  705. b.Property<string>("MaritalStatus");
  706. b.Property<DateTime>("Modified");
  707. b.Property<string>("ModifiedBy");
  708. b.Property<string>("Name");
  709. b.Property<string>("SpouseCellnumber");
  710. b.Property<string>("SpouseEmail");
  711. b.Property<string>("SpouseName");
  712. b.Property<string>("SpouseSurname");
  713. b.Property<string>("SpouseTelephone");
  714. b.Property<string>("Surname");
  715. b.Property<string>("Telephone");
  716. b.Property<int?>("TemplateId");
  717. b.Property<int?>("UserId");
  718. b.HasKey("Id");
  719. b.HasIndex("AddressId");
  720. b.HasIndex("BankAccountId");
  721. b.HasIndex("TemplateId");
  722. b.HasIndex("UserId");
  723. b.HasIndex("Telephone", "CellNumber", "Email")
  724. .IsUnique()
  725. .HasFilter("[Telephone] IS NOT NULL AND [CellNumber] IS NOT NULL AND [Email] IS NOT NULL");
  726. b.ToTable("Individuals");
  727. });
  728. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  729. {
  730. b.Property<int>("Id")
  731. .ValueGeneratedOnAdd()
  732. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  733. b.Property<string>("CellNumber");
  734. b.Property<DateTime>("Created");
  735. b.Property<string>("Email");
  736. b.Property<int>("HowMarried");
  737. b.Property<bool>("IsDeleted");
  738. b.Property<DateTime>("Modified");
  739. b.Property<string>("ModifiedBy");
  740. b.Property<string>("Name");
  741. b.Property<string>("SpouseCellnumber");
  742. b.Property<string>("SpouseEmail");
  743. b.Property<string>("SpouseName");
  744. b.Property<string>("SpouseSurname");
  745. b.Property<string>("SpouseTelephone");
  746. b.Property<string>("Surname");
  747. b.Property<string>("Telephone");
  748. b.Property<int?>("UserId");
  749. b.HasKey("Id");
  750. b.HasIndex("UserId");
  751. b.ToTable("Person");
  752. });
  753. modelBuilder.Entity("UnivateProperties_API.Model.Users.User", b =>
  754. {
  755. b.Property<int>("Id")
  756. .ValueGeneratedOnAdd()
  757. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  758. b.Property<DateTime>("Created");
  759. b.Property<bool>("IsDeleted");
  760. b.Property<DateTime>("Modified");
  761. b.Property<string>("ModifiedBy");
  762. b.Property<byte[]>("PasswordHash");
  763. b.Property<byte[]>("PasswordSalt");
  764. b.Property<string>("Role");
  765. b.Property<string>("Token");
  766. b.Property<string>("Username");
  767. b.Property<bool>("Verified");
  768. b.HasKey("Id");
  769. b.HasIndex("Username")
  770. .IsUnique()
  771. .HasFilter("[Username] IS NOT NULL");
  772. b.ToTable("Users");
  773. });
  774. modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
  775. {
  776. b.HasOne("UnivateProperties_API.Model.Banks.Bank", "Bank")
  777. .WithMany()
  778. .HasForeignKey("BankId");
  779. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  780. .WithMany()
  781. .HasForeignKey("OwnerId");
  782. });
  783. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItem", b =>
  784. {
  785. b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign")
  786. .WithMany("Items")
  787. .HasForeignKey("CampaignId")
  788. .OnDelete(DeleteBehavior.Cascade);
  789. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Week")
  790. .WithMany()
  791. .HasForeignKey("WeekId")
  792. .OnDelete(DeleteBehavior.Cascade);
  793. });
  794. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignItemPlaceHolder", b =>
  795. {
  796. b.HasOne("UnivateProperties_API.Model.Campaigns.CampaignItem", "CampaignItem")
  797. .WithMany("CampaignItemPlaceHolder")
  798. .HasForeignKey("CampaignItemId")
  799. .OnDelete(DeleteBehavior.Cascade);
  800. });
  801. modelBuilder.Entity("UnivateProperties_API.Model.Campaigns.CampaignPlaceHolder", b =>
  802. {
  803. b.HasOne("UnivateProperties_API.Model.Campaigns.Campaign", "Campaign")
  804. .WithMany("PlaceHolders")
  805. .HasForeignKey("CampaignId")
  806. .OnDelete(DeleteBehavior.Cascade);
  807. });
  808. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Email", b =>
  809. {
  810. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  811. .WithMany("Emails")
  812. .HasForeignKey("SenderId")
  813. .OnDelete(DeleteBehavior.Cascade);
  814. });
  815. modelBuilder.Entity("UnivateProperties_API.Model.Communication.PlaceHolder", b =>
  816. {
  817. b.HasOne("UnivateProperties_API.Model.Communication.Template", "Template")
  818. .WithMany("PlaceHolders")
  819. .HasForeignKey("TemplateId")
  820. .OnDelete(DeleteBehavior.Cascade);
  821. });
  822. modelBuilder.Entity("UnivateProperties_API.Model.Communication.SMTPAccount", b =>
  823. {
  824. b.HasOne("UnivateProperties_API.Model.Communication.SMTPHost", "SMTPHost")
  825. .WithMany("SMTPAccounts")
  826. .HasForeignKey("SMTPHostId")
  827. .OnDelete(DeleteBehavior.Cascade);
  828. });
  829. modelBuilder.Entity("UnivateProperties_API.Model.Communication.Template", b =>
  830. {
  831. b.HasOne("UnivateProperties_API.Model.Communication.SMTPAccount", "Sender")
  832. .WithMany("Templates")
  833. .HasForeignKey("SenderId");
  834. });
  835. modelBuilder.Entity("UnivateProperties_API.Model.Financial.Payment", b =>
  836. {
  837. b.HasOne("UnivateProperties_API.Model.Users.User", "CreatedBy")
  838. .WithMany()
  839. .HasForeignKey("CreatedById")
  840. .OnDelete(DeleteBehavior.Cascade);
  841. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  842. .WithMany()
  843. .HasForeignKey("PropertyId");
  844. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  845. .WithMany()
  846. .HasForeignKey("TimeshareWeekId");
  847. });
  848. modelBuilder.Entity("UnivateProperties_API.Model.Misc.Address", b =>
  849. {
  850. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  851. .WithMany()
  852. .HasForeignKey("OwnerId");
  853. });
  854. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.BidItem", b =>
  855. {
  856. b.HasOne("UnivateProperties_API.Model.Users.Individual", "BidMaker")
  857. .WithMany()
  858. .HasForeignKey("BidMakerId");
  859. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  860. .WithMany("BidItems")
  861. .HasForeignKey("PropertyId");
  862. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  863. .WithMany()
  864. .HasForeignKey("StatusId");
  865. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "TimeshareWeek")
  866. .WithMany("BidItems")
  867. .HasForeignKey("TimeshareWeekId");
  868. });
  869. modelBuilder.Entity("UnivateProperties_API.Model.ProcessFlow.ProcessFlow", b =>
  870. {
  871. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  872. .WithMany("ProcessFlows")
  873. .HasForeignKey("PropertyID");
  874. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  875. .WithMany()
  876. .HasForeignKey("StatusID")
  877. .OnDelete(DeleteBehavior.Cascade);
  878. b.HasOne("UnivateProperties_API.Model.Timeshare.TimeshareWeek", "Timeshare")
  879. .WithMany("ProcessFlows")
  880. .HasForeignKey("TimeshareID");
  881. });
  882. modelBuilder.Entity("UnivateProperties_API.Model.Properties.Property", b =>
  883. {
  884. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  885. .WithMany("Properties")
  886. .HasForeignKey("AgencyId");
  887. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  888. .WithMany("Properties")
  889. .HasForeignKey("AgentId");
  890. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  891. .WithMany("Properties")
  892. .HasForeignKey("OwnerId");
  893. b.HasOne("UnivateProperties_API.Model.Properties.PropertyType", "PropertyType")
  894. .WithMany()
  895. .HasForeignKey("PropertyTypeId")
  896. .OnDelete(DeleteBehavior.Cascade);
  897. });
  898. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyImage", b =>
  899. {
  900. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  901. .WithMany("PropertyImages")
  902. .HasForeignKey("PropertyId")
  903. .OnDelete(DeleteBehavior.Cascade);
  904. });
  905. modelBuilder.Entity("UnivateProperties_API.Model.Properties.PropertyUserField", b =>
  906. {
  907. b.HasOne("UnivateProperties_API.Model.Properties.Property", "Property")
  908. .WithMany("PropertyUserFields")
  909. .HasForeignKey("PropertyId")
  910. .OnDelete(DeleteBehavior.Cascade);
  911. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedField", "UserDefinedField")
  912. .WithMany()
  913. .HasForeignKey("UserDefinedFieldId")
  914. .OnDelete(DeleteBehavior.Cascade);
  915. });
  916. modelBuilder.Entity("UnivateProperties_API.Model.Properties.UserDefinedField", b =>
  917. {
  918. b.HasOne("UnivateProperties_API.Model.Properties.UserDefinedGroup", "Group")
  919. .WithMany("Fields")
  920. .HasForeignKey("GroupId")
  921. .OnDelete(DeleteBehavior.Cascade);
  922. });
  923. modelBuilder.Entity("UnivateProperties_API.Model.Region.City", b =>
  924. {
  925. b.HasOne("UnivateProperties_API.Model.Region.Province", "Province")
  926. .WithMany()
  927. .HasForeignKey("ProvinceId")
  928. .OnDelete(DeleteBehavior.Cascade);
  929. });
  930. modelBuilder.Entity("UnivateProperties_API.Model.Region.Suburb", b =>
  931. {
  932. b.HasOne("UnivateProperties_API.Model.Region.City", "City")
  933. .WithMany()
  934. .HasForeignKey("CityId")
  935. .OnDelete(DeleteBehavior.Cascade);
  936. });
  937. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.TimeshareWeek", b =>
  938. {
  939. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  940. .WithMany()
  941. .HasForeignKey("AgencyId");
  942. b.HasOne("UnivateProperties_API.Model.Users.Agent", "Agent")
  943. .WithMany()
  944. .HasForeignKey("AgentId");
  945. b.HasOne("UnivateProperties_API.Model.Users.Individual", "Owner")
  946. .WithMany()
  947. .HasForeignKey("OwnerId")
  948. .OnDelete(DeleteBehavior.Cascade);
  949. b.HasOne("UnivateProperties_API.Model.Region.Province", "Region")
  950. .WithMany()
  951. .HasForeignKey("RegionId")
  952. .OnDelete(DeleteBehavior.Cascade);
  953. b.HasOne("UnivateProperties_API.Model.Timeshare.Status", "Status")
  954. .WithMany()
  955. .HasForeignKey("StatusId")
  956. .OnDelete(DeleteBehavior.Cascade);
  957. });
  958. modelBuilder.Entity("UnivateProperties_API.Model.Timeshare.UnitConfigurationType", b =>
  959. {
  960. b.HasOne("UnivateProperties_API.Model.Timeshare.UnitConfiguration", "UnitConfiguration")
  961. .WithMany("Types")
  962. .HasForeignKey("UnitConfigurationId")
  963. .OnDelete(DeleteBehavior.Cascade);
  964. });
  965. modelBuilder.Entity("UnivateProperties_API.Model.Users.Agent", b =>
  966. {
  967. b.HasOne("UnivateProperties_API.Model.Users.Agency", "Agency")
  968. .WithMany("Agents")
  969. .HasForeignKey("AgencyId");
  970. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  971. .WithMany("AgentBCC")
  972. .HasForeignKey("TemplateId");
  973. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  974. .WithMany()
  975. .HasForeignKey("UserId");
  976. });
  977. modelBuilder.Entity("UnivateProperties_API.Model.Users.Individual", b =>
  978. {
  979. b.HasOne("UnivateProperties_API.Model.Misc.Address", "Address")
  980. .WithMany()
  981. .HasForeignKey("AddressId");
  982. b.HasOne("UnivateProperties_API.Model.Banks.BankAccount", "BankAccount")
  983. .WithMany()
  984. .HasForeignKey("BankAccountId");
  985. b.HasOne("UnivateProperties_API.Model.Communication.Template")
  986. .WithMany("IndividualBCC")
  987. .HasForeignKey("TemplateId");
  988. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  989. .WithMany()
  990. .HasForeignKey("UserId");
  991. });
  992. modelBuilder.Entity("UnivateProperties_API.Model.Users.Person", b =>
  993. {
  994. b.HasOne("UnivateProperties_API.Model.Users.User", "User")
  995. .WithMany()
  996. .HasForeignKey("UserId");
  997. });
  998. #pragma warning restore 612, 618
  999. }
  1000. }
  1001. }