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

20201030070202_addFieldsToPayments1.Designer.cs 55KB

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