API
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

DataContextModelSnapshot.cs 55KB

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