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

20220829091928_AddConsentTimeshareWeek.Designer.cs 62KB

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