The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20190804060515_2_5_1_ConfigDBUpdateMigration.Designer.cs 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  1. // <auto-generated />
  2. using System;
  3. using IdentityServer4.EntityFramework.DbContexts;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Metadata;
  7. using Microsoft.EntityFrameworkCore.Migrations;
  8. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  9. namespace Teknik.IdentityServer.Data.Migrations.IdentityServer.ConfigurationDb
  10. {
  11. [DbContext(typeof(ConfigurationDbContext))]
  12. [Migration("20190804060515_2_5_1_ConfigDBUpdateMigration")]
  13. partial class _2_5_1_ConfigDBUpdateMigration
  14. {
  15. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder
  19. .HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
  20. .HasAnnotation("Relational:MaxIdentifierLength", 128)
  21. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  22. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResource", b =>
  23. {
  24. b.Property<int>("Id")
  25. .ValueGeneratedOnAdd()
  26. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  27. b.Property<DateTime>("Created");
  28. b.Property<string>("Description")
  29. .HasMaxLength(1000);
  30. b.Property<string>("DisplayName")
  31. .HasMaxLength(200);
  32. b.Property<bool>("Enabled");
  33. b.Property<DateTime?>("LastAccessed");
  34. b.Property<string>("Name")
  35. .IsRequired()
  36. .HasMaxLength(200);
  37. b.Property<bool>("NonEditable");
  38. b.Property<DateTime?>("Updated");
  39. b.HasKey("Id");
  40. b.HasIndex("Name")
  41. .IsUnique();
  42. b.ToTable("ApiResources");
  43. });
  44. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceClaim", b =>
  45. {
  46. b.Property<int>("Id")
  47. .ValueGeneratedOnAdd()
  48. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  49. b.Property<int>("ApiResourceId");
  50. b.Property<string>("Type")
  51. .IsRequired()
  52. .HasMaxLength(200);
  53. b.HasKey("Id");
  54. b.HasIndex("ApiResourceId");
  55. b.ToTable("ApiClaims");
  56. });
  57. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceProperty", b =>
  58. {
  59. b.Property<int>("Id")
  60. .ValueGeneratedOnAdd()
  61. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  62. b.Property<int>("ApiResourceId");
  63. b.Property<string>("Key")
  64. .IsRequired()
  65. .HasMaxLength(250);
  66. b.Property<string>("Value")
  67. .IsRequired()
  68. .HasMaxLength(2000);
  69. b.HasKey("Id");
  70. b.HasIndex("ApiResourceId");
  71. b.ToTable("ApiProperties");
  72. });
  73. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScope", b =>
  74. {
  75. b.Property<int>("Id")
  76. .ValueGeneratedOnAdd()
  77. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  78. b.Property<int>("ApiResourceId");
  79. b.Property<string>("Description")
  80. .HasMaxLength(1000);
  81. b.Property<string>("DisplayName")
  82. .HasMaxLength(200);
  83. b.Property<bool>("Emphasize");
  84. b.Property<string>("Name")
  85. .IsRequired()
  86. .HasMaxLength(200);
  87. b.Property<bool>("Required");
  88. b.Property<bool>("ShowInDiscoveryDocument");
  89. b.HasKey("Id");
  90. b.HasIndex("ApiResourceId");
  91. b.HasIndex("Name")
  92. .IsUnique();
  93. b.ToTable("ApiScopes");
  94. });
  95. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeClaim", b =>
  96. {
  97. b.Property<int>("Id")
  98. .ValueGeneratedOnAdd()
  99. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  100. b.Property<int>("ApiScopeId");
  101. b.Property<string>("Type")
  102. .IsRequired()
  103. .HasMaxLength(200);
  104. b.HasKey("Id");
  105. b.HasIndex("ApiScopeId");
  106. b.ToTable("ApiScopeClaims");
  107. });
  108. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiSecret", b =>
  109. {
  110. b.Property<int>("Id")
  111. .ValueGeneratedOnAdd()
  112. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  113. b.Property<int>("ApiResourceId");
  114. b.Property<DateTime>("Created");
  115. b.Property<string>("Description")
  116. .HasMaxLength(1000);
  117. b.Property<DateTime?>("Expiration");
  118. b.Property<string>("Type")
  119. .IsRequired()
  120. .HasMaxLength(250);
  121. b.Property<string>("Value")
  122. .IsRequired()
  123. .HasMaxLength(4000);
  124. b.HasKey("Id");
  125. b.HasIndex("ApiResourceId");
  126. b.ToTable("ApiSecrets");
  127. });
  128. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.Client", b =>
  129. {
  130. b.Property<int>("Id")
  131. .ValueGeneratedOnAdd()
  132. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  133. b.Property<int>("AbsoluteRefreshTokenLifetime");
  134. b.Property<int>("AccessTokenLifetime");
  135. b.Property<int>("AccessTokenType");
  136. b.Property<bool>("AllowAccessTokensViaBrowser");
  137. b.Property<bool>("AllowOfflineAccess");
  138. b.Property<bool>("AllowPlainTextPkce");
  139. b.Property<bool>("AllowRememberConsent");
  140. b.Property<bool>("AlwaysIncludeUserClaimsInIdToken");
  141. b.Property<bool>("AlwaysSendClientClaims");
  142. b.Property<int>("AuthorizationCodeLifetime");
  143. b.Property<bool>("BackChannelLogoutSessionRequired");
  144. b.Property<string>("BackChannelLogoutUri")
  145. .HasMaxLength(2000);
  146. b.Property<string>("ClientClaimsPrefix")
  147. .HasMaxLength(200);
  148. b.Property<string>("ClientId")
  149. .IsRequired()
  150. .HasMaxLength(200);
  151. b.Property<string>("ClientName")
  152. .HasMaxLength(200);
  153. b.Property<string>("ClientUri")
  154. .HasMaxLength(2000);
  155. b.Property<int?>("ConsentLifetime");
  156. b.Property<DateTime>("Created");
  157. b.Property<string>("Description")
  158. .HasMaxLength(1000);
  159. b.Property<int>("DeviceCodeLifetime");
  160. b.Property<bool>("EnableLocalLogin");
  161. b.Property<bool>("Enabled");
  162. b.Property<bool>("FrontChannelLogoutSessionRequired");
  163. b.Property<string>("FrontChannelLogoutUri")
  164. .HasMaxLength(2000);
  165. b.Property<int>("IdentityTokenLifetime");
  166. b.Property<bool>("IncludeJwtId");
  167. b.Property<DateTime?>("LastAccessed");
  168. b.Property<string>("LogoUri")
  169. .HasMaxLength(2000);
  170. b.Property<bool>("NonEditable");
  171. b.Property<string>("PairWiseSubjectSalt")
  172. .HasMaxLength(200);
  173. b.Property<string>("ProtocolType")
  174. .IsRequired()
  175. .HasMaxLength(200);
  176. b.Property<int>("RefreshTokenExpiration");
  177. b.Property<int>("RefreshTokenUsage");
  178. b.Property<bool>("RequireClientSecret");
  179. b.Property<bool>("RequireConsent");
  180. b.Property<bool>("RequirePkce");
  181. b.Property<int>("SlidingRefreshTokenLifetime");
  182. b.Property<bool>("UpdateAccessTokenClaimsOnRefresh");
  183. b.Property<DateTime?>("Updated");
  184. b.Property<string>("UserCodeType")
  185. .HasMaxLength(100);
  186. b.Property<int?>("UserSsoLifetime");
  187. b.HasKey("Id");
  188. b.HasIndex("ClientId")
  189. .IsUnique();
  190. b.ToTable("Clients");
  191. });
  192. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientClaim", b =>
  193. {
  194. b.Property<int>("Id")
  195. .ValueGeneratedOnAdd()
  196. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  197. b.Property<int>("ClientId");
  198. b.Property<string>("Type")
  199. .IsRequired()
  200. .HasMaxLength(250);
  201. b.Property<string>("Value")
  202. .IsRequired()
  203. .HasMaxLength(250);
  204. b.HasKey("Id");
  205. b.HasIndex("ClientId");
  206. b.ToTable("ClientClaims");
  207. });
  208. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientCorsOrigin", b =>
  209. {
  210. b.Property<int>("Id")
  211. .ValueGeneratedOnAdd()
  212. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  213. b.Property<int>("ClientId");
  214. b.Property<string>("Origin")
  215. .IsRequired()
  216. .HasMaxLength(150);
  217. b.HasKey("Id");
  218. b.HasIndex("ClientId");
  219. b.ToTable("ClientCorsOrigins");
  220. });
  221. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientGrantType", b =>
  222. {
  223. b.Property<int>("Id")
  224. .ValueGeneratedOnAdd()
  225. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  226. b.Property<int>("ClientId");
  227. b.Property<string>("GrantType")
  228. .IsRequired()
  229. .HasMaxLength(250);
  230. b.HasKey("Id");
  231. b.HasIndex("ClientId");
  232. b.ToTable("ClientGrantTypes");
  233. });
  234. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientIdPRestriction", b =>
  235. {
  236. b.Property<int>("Id")
  237. .ValueGeneratedOnAdd()
  238. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  239. b.Property<int>("ClientId");
  240. b.Property<string>("Provider")
  241. .IsRequired()
  242. .HasMaxLength(200);
  243. b.HasKey("Id");
  244. b.HasIndex("ClientId");
  245. b.ToTable("ClientIdPRestrictions");
  246. });
  247. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
  248. {
  249. b.Property<int>("Id")
  250. .ValueGeneratedOnAdd()
  251. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  252. b.Property<int>("ClientId");
  253. b.Property<string>("PostLogoutRedirectUri")
  254. .IsRequired()
  255. .HasMaxLength(2000);
  256. b.HasKey("Id");
  257. b.HasIndex("ClientId");
  258. b.ToTable("ClientPostLogoutRedirectUris");
  259. });
  260. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientProperty", b =>
  261. {
  262. b.Property<int>("Id")
  263. .ValueGeneratedOnAdd()
  264. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  265. b.Property<int>("ClientId");
  266. b.Property<string>("Key")
  267. .IsRequired()
  268. .HasMaxLength(250);
  269. b.Property<string>("Value")
  270. .IsRequired()
  271. .HasMaxLength(2000);
  272. b.HasKey("Id");
  273. b.HasIndex("ClientId");
  274. b.ToTable("ClientProperties");
  275. });
  276. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientRedirectUri", b =>
  277. {
  278. b.Property<int>("Id")
  279. .ValueGeneratedOnAdd()
  280. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  281. b.Property<int>("ClientId");
  282. b.Property<string>("RedirectUri")
  283. .IsRequired()
  284. .HasMaxLength(2000);
  285. b.HasKey("Id");
  286. b.HasIndex("ClientId");
  287. b.ToTable("ClientRedirectUris");
  288. });
  289. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientScope", b =>
  290. {
  291. b.Property<int>("Id")
  292. .ValueGeneratedOnAdd()
  293. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  294. b.Property<int>("ClientId");
  295. b.Property<string>("Scope")
  296. .IsRequired()
  297. .HasMaxLength(200);
  298. b.HasKey("Id");
  299. b.HasIndex("ClientId");
  300. b.ToTable("ClientScopes");
  301. });
  302. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientSecret", b =>
  303. {
  304. b.Property<int>("Id")
  305. .ValueGeneratedOnAdd()
  306. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  307. b.Property<int>("ClientId");
  308. b.Property<DateTime>("Created");
  309. b.Property<string>("Description")
  310. .HasMaxLength(2000);
  311. b.Property<DateTime?>("Expiration");
  312. b.Property<string>("Type")
  313. .IsRequired()
  314. .HasMaxLength(250);
  315. b.Property<string>("Value")
  316. .IsRequired()
  317. .HasMaxLength(4000);
  318. b.HasKey("Id");
  319. b.HasIndex("ClientId");
  320. b.ToTable("ClientSecrets");
  321. });
  322. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityClaim", b =>
  323. {
  324. b.Property<int>("Id")
  325. .ValueGeneratedOnAdd()
  326. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  327. b.Property<int>("IdentityResourceId");
  328. b.Property<string>("Type")
  329. .IsRequired()
  330. .HasMaxLength(200);
  331. b.HasKey("Id");
  332. b.HasIndex("IdentityResourceId");
  333. b.ToTable("IdentityClaims");
  334. });
  335. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResource", b =>
  336. {
  337. b.Property<int>("Id")
  338. .ValueGeneratedOnAdd()
  339. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  340. b.Property<DateTime>("Created");
  341. b.Property<string>("Description")
  342. .HasMaxLength(1000);
  343. b.Property<string>("DisplayName")
  344. .HasMaxLength(200);
  345. b.Property<bool>("Emphasize");
  346. b.Property<bool>("Enabled");
  347. b.Property<string>("Name")
  348. .IsRequired()
  349. .HasMaxLength(200);
  350. b.Property<bool>("NonEditable");
  351. b.Property<bool>("Required");
  352. b.Property<bool>("ShowInDiscoveryDocument");
  353. b.Property<DateTime?>("Updated");
  354. b.HasKey("Id");
  355. b.HasIndex("Name")
  356. .IsUnique();
  357. b.ToTable("IdentityResources");
  358. });
  359. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceProperty", b =>
  360. {
  361. b.Property<int>("Id")
  362. .ValueGeneratedOnAdd()
  363. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  364. b.Property<int>("IdentityResourceId");
  365. b.Property<string>("Key")
  366. .IsRequired()
  367. .HasMaxLength(250);
  368. b.Property<string>("Value")
  369. .IsRequired()
  370. .HasMaxLength(2000);
  371. b.HasKey("Id");
  372. b.HasIndex("IdentityResourceId");
  373. b.ToTable("IdentityProperties");
  374. });
  375. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceClaim", b =>
  376. {
  377. b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
  378. .WithMany("UserClaims")
  379. .HasForeignKey("ApiResourceId")
  380. .OnDelete(DeleteBehavior.Cascade);
  381. });
  382. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceProperty", b =>
  383. {
  384. b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
  385. .WithMany("Properties")
  386. .HasForeignKey("ApiResourceId")
  387. .OnDelete(DeleteBehavior.Cascade);
  388. });
  389. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScope", b =>
  390. {
  391. b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
  392. .WithMany("Scopes")
  393. .HasForeignKey("ApiResourceId")
  394. .OnDelete(DeleteBehavior.Cascade);
  395. });
  396. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeClaim", b =>
  397. {
  398. b.HasOne("IdentityServer4.EntityFramework.Entities.ApiScope", "ApiScope")
  399. .WithMany("UserClaims")
  400. .HasForeignKey("ApiScopeId")
  401. .OnDelete(DeleteBehavior.Cascade);
  402. });
  403. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiSecret", b =>
  404. {
  405. b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
  406. .WithMany("Secrets")
  407. .HasForeignKey("ApiResourceId")
  408. .OnDelete(DeleteBehavior.Cascade);
  409. });
  410. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientClaim", b =>
  411. {
  412. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  413. .WithMany("Claims")
  414. .HasForeignKey("ClientId")
  415. .OnDelete(DeleteBehavior.Cascade);
  416. });
  417. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientCorsOrigin", b =>
  418. {
  419. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  420. .WithMany("AllowedCorsOrigins")
  421. .HasForeignKey("ClientId")
  422. .OnDelete(DeleteBehavior.Cascade);
  423. });
  424. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientGrantType", b =>
  425. {
  426. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  427. .WithMany("AllowedGrantTypes")
  428. .HasForeignKey("ClientId")
  429. .OnDelete(DeleteBehavior.Cascade);
  430. });
  431. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientIdPRestriction", b =>
  432. {
  433. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  434. .WithMany("IdentityProviderRestrictions")
  435. .HasForeignKey("ClientId")
  436. .OnDelete(DeleteBehavior.Cascade);
  437. });
  438. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
  439. {
  440. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  441. .WithMany("PostLogoutRedirectUris")
  442. .HasForeignKey("ClientId")
  443. .OnDelete(DeleteBehavior.Cascade);
  444. });
  445. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientProperty", b =>
  446. {
  447. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  448. .WithMany("Properties")
  449. .HasForeignKey("ClientId")
  450. .OnDelete(DeleteBehavior.Cascade);
  451. });
  452. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientRedirectUri", b =>
  453. {
  454. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  455. .WithMany("RedirectUris")
  456. .HasForeignKey("ClientId")
  457. .OnDelete(DeleteBehavior.Cascade);
  458. });
  459. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientScope", b =>
  460. {
  461. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  462. .WithMany("AllowedScopes")
  463. .HasForeignKey("ClientId")
  464. .OnDelete(DeleteBehavior.Cascade);
  465. });
  466. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientSecret", b =>
  467. {
  468. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  469. .WithMany("ClientSecrets")
  470. .HasForeignKey("ClientId")
  471. .OnDelete(DeleteBehavior.Cascade);
  472. });
  473. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityClaim", b =>
  474. {
  475. b.HasOne("IdentityServer4.EntityFramework.Entities.IdentityResource", "IdentityResource")
  476. .WithMany("UserClaims")
  477. .HasForeignKey("IdentityResourceId")
  478. .OnDelete(DeleteBehavior.Cascade);
  479. });
  480. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceProperty", b =>
  481. {
  482. b.HasOne("IdentityServer4.EntityFramework.Entities.IdentityResource", "IdentityResource")
  483. .WithMany("Properties")
  484. .HasForeignKey("IdentityResourceId")
  485. .OnDelete(DeleteBehavior.Cascade);
  486. });
  487. #pragma warning restore 612, 618
  488. }
  489. }
  490. }