API
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

20210413105321_uploadcampaign1.Designer.cs 59KB

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