API
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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