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.

20210420082718_CommunicationSystem1.Designer.cs 61KB

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