API
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

20220714123442_MailSource.Designer.cs 61KB

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