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.

ConfigurationDbContextModelSnapshot.cs 25KB

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