API
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

DataContextModelSnapshot.cs 53KB

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