API
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

DataContextModelSnapshot.cs 51KB

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