API
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

DataContextModelSnapshot.cs 52KB

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