AuthServerDbContextModelSnapshot.cs 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056
  1. // <auto-generated />
  2. using System;
  3. using AuthServer.Host.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Metadata;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. using Volo.Abp.EntityFrameworkCore;
  9. #nullable disable
  10. namespace AuthServer.Host.Migrations
  11. {
  12. [DbContext(typeof(AuthServerDbContext))]
  13. partial class AuthServerDbContextModelSnapshot : ModelSnapshot
  14. {
  15. protected override void BuildModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder
  19. .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
  20. .HasAnnotation("ProductVersion", "6.0.5")
  21. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  22. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
  23. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b =>
  24. {
  25. b.Property<Guid>("Id")
  26. .ValueGeneratedOnAdd()
  27. .HasColumnType("uniqueidentifier");
  28. b.Property<string>("AllowedAccessTokenSigningAlgorithms")
  29. .HasMaxLength(100)
  30. .HasColumnType("nvarchar(100)");
  31. b.Property<string>("ConcurrencyStamp")
  32. .IsConcurrencyToken()
  33. .HasMaxLength(40)
  34. .HasColumnType("nvarchar(40)")
  35. .HasColumnName("ConcurrencyStamp");
  36. b.Property<DateTime>("CreationTime")
  37. .HasColumnType("datetime2")
  38. .HasColumnName("CreationTime");
  39. b.Property<Guid?>("CreatorId")
  40. .HasColumnType("uniqueidentifier")
  41. .HasColumnName("CreatorId");
  42. b.Property<Guid?>("DeleterId")
  43. .HasColumnType("uniqueidentifier")
  44. .HasColumnName("DeleterId");
  45. b.Property<DateTime?>("DeletionTime")
  46. .HasColumnType("datetime2")
  47. .HasColumnName("DeletionTime");
  48. b.Property<string>("Description")
  49. .HasMaxLength(1000)
  50. .HasColumnType("nvarchar(1000)");
  51. b.Property<string>("DisplayName")
  52. .HasMaxLength(200)
  53. .HasColumnType("nvarchar(200)");
  54. b.Property<bool>("Enabled")
  55. .HasColumnType("bit");
  56. b.Property<string>("ExtraProperties")
  57. .HasColumnType("nvarchar(max)")
  58. .HasColumnName("ExtraProperties");
  59. b.Property<bool>("IsDeleted")
  60. .ValueGeneratedOnAdd()
  61. .HasColumnType("bit")
  62. .HasDefaultValue(false)
  63. .HasColumnName("IsDeleted");
  64. b.Property<DateTime?>("LastModificationTime")
  65. .HasColumnType("datetime2")
  66. .HasColumnName("LastModificationTime");
  67. b.Property<Guid?>("LastModifierId")
  68. .HasColumnType("uniqueidentifier")
  69. .HasColumnName("LastModifierId");
  70. b.Property<string>("Name")
  71. .IsRequired()
  72. .HasMaxLength(200)
  73. .HasColumnType("nvarchar(200)");
  74. b.Property<bool>("ShowInDiscoveryDocument")
  75. .HasColumnType("bit");
  76. b.HasKey("Id");
  77. b.ToTable("IdentityServerApiResources", (string)null);
  78. });
  79. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b =>
  80. {
  81. b.Property<Guid>("ApiResourceId")
  82. .HasColumnType("uniqueidentifier");
  83. b.Property<string>("Type")
  84. .HasMaxLength(200)
  85. .HasColumnType("nvarchar(200)");
  86. b.HasKey("ApiResourceId", "Type");
  87. b.ToTable("IdentityServerApiResourceClaims", (string)null);
  88. });
  89. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b =>
  90. {
  91. b.Property<Guid>("ApiResourceId")
  92. .HasColumnType("uniqueidentifier");
  93. b.Property<string>("Key")
  94. .HasMaxLength(250)
  95. .HasColumnType("nvarchar(250)");
  96. b.Property<string>("Value")
  97. .HasMaxLength(2000)
  98. .HasColumnType("nvarchar(2000)");
  99. b.HasKey("ApiResourceId", "Key", "Value");
  100. b.ToTable("IdentityServerApiResourceProperties", (string)null);
  101. });
  102. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b =>
  103. {
  104. b.Property<Guid>("ApiResourceId")
  105. .HasColumnType("uniqueidentifier");
  106. b.Property<string>("Scope")
  107. .HasMaxLength(200)
  108. .HasColumnType("nvarchar(200)");
  109. b.HasKey("ApiResourceId", "Scope");
  110. b.ToTable("IdentityServerApiResourceScopes", (string)null);
  111. });
  112. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b =>
  113. {
  114. b.Property<Guid>("ApiResourceId")
  115. .HasColumnType("uniqueidentifier");
  116. b.Property<string>("Type")
  117. .HasMaxLength(250)
  118. .HasColumnType("nvarchar(250)");
  119. b.Property<string>("Value")
  120. .HasMaxLength(4000)
  121. .HasColumnType("nvarchar(4000)");
  122. b.Property<string>("Description")
  123. .HasMaxLength(1000)
  124. .HasColumnType("nvarchar(1000)");
  125. b.Property<DateTime?>("Expiration")
  126. .HasColumnType("datetime2");
  127. b.HasKey("ApiResourceId", "Type", "Value");
  128. b.ToTable("IdentityServerApiResourceSecrets", (string)null);
  129. });
  130. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b =>
  131. {
  132. b.Property<Guid>("Id")
  133. .ValueGeneratedOnAdd()
  134. .HasColumnType("uniqueidentifier");
  135. b.Property<string>("ConcurrencyStamp")
  136. .IsConcurrencyToken()
  137. .HasMaxLength(40)
  138. .HasColumnType("nvarchar(40)")
  139. .HasColumnName("ConcurrencyStamp");
  140. b.Property<DateTime>("CreationTime")
  141. .HasColumnType("datetime2")
  142. .HasColumnName("CreationTime");
  143. b.Property<Guid?>("CreatorId")
  144. .HasColumnType("uniqueidentifier")
  145. .HasColumnName("CreatorId");
  146. b.Property<Guid?>("DeleterId")
  147. .HasColumnType("uniqueidentifier")
  148. .HasColumnName("DeleterId");
  149. b.Property<DateTime?>("DeletionTime")
  150. .HasColumnType("datetime2")
  151. .HasColumnName("DeletionTime");
  152. b.Property<string>("Description")
  153. .HasMaxLength(1000)
  154. .HasColumnType("nvarchar(1000)");
  155. b.Property<string>("DisplayName")
  156. .HasMaxLength(200)
  157. .HasColumnType("nvarchar(200)");
  158. b.Property<bool>("Emphasize")
  159. .HasColumnType("bit");
  160. b.Property<bool>("Enabled")
  161. .HasColumnType("bit");
  162. b.Property<string>("ExtraProperties")
  163. .HasColumnType("nvarchar(max)")
  164. .HasColumnName("ExtraProperties");
  165. b.Property<bool>("IsDeleted")
  166. .ValueGeneratedOnAdd()
  167. .HasColumnType("bit")
  168. .HasDefaultValue(false)
  169. .HasColumnName("IsDeleted");
  170. b.Property<DateTime?>("LastModificationTime")
  171. .HasColumnType("datetime2")
  172. .HasColumnName("LastModificationTime");
  173. b.Property<Guid?>("LastModifierId")
  174. .HasColumnType("uniqueidentifier")
  175. .HasColumnName("LastModifierId");
  176. b.Property<string>("Name")
  177. .IsRequired()
  178. .HasMaxLength(200)
  179. .HasColumnType("nvarchar(200)");
  180. b.Property<bool>("Required")
  181. .HasColumnType("bit");
  182. b.Property<bool>("ShowInDiscoveryDocument")
  183. .HasColumnType("bit");
  184. b.HasKey("Id");
  185. b.ToTable("IdentityServerApiScopes", (string)null);
  186. });
  187. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b =>
  188. {
  189. b.Property<Guid>("ApiScopeId")
  190. .HasColumnType("uniqueidentifier");
  191. b.Property<string>("Type")
  192. .HasMaxLength(200)
  193. .HasColumnType("nvarchar(200)");
  194. b.HasKey("ApiScopeId", "Type");
  195. b.ToTable("IdentityServerApiScopeClaims", (string)null);
  196. });
  197. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b =>
  198. {
  199. b.Property<Guid>("ApiScopeId")
  200. .HasColumnType("uniqueidentifier");
  201. b.Property<string>("Key")
  202. .HasMaxLength(250)
  203. .HasColumnType("nvarchar(250)");
  204. b.Property<string>("Value")
  205. .HasMaxLength(2000)
  206. .HasColumnType("nvarchar(2000)");
  207. b.HasKey("ApiScopeId", "Key", "Value");
  208. b.ToTable("IdentityServerApiScopeProperties", (string)null);
  209. });
  210. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b =>
  211. {
  212. b.Property<Guid>("Id")
  213. .ValueGeneratedOnAdd()
  214. .HasColumnType("uniqueidentifier");
  215. b.Property<int>("AbsoluteRefreshTokenLifetime")
  216. .HasColumnType("int");
  217. b.Property<int>("AccessTokenLifetime")
  218. .HasColumnType("int");
  219. b.Property<int>("AccessTokenType")
  220. .HasColumnType("int");
  221. b.Property<bool>("AllowAccessTokensViaBrowser")
  222. .HasColumnType("bit");
  223. b.Property<bool>("AllowOfflineAccess")
  224. .HasColumnType("bit");
  225. b.Property<bool>("AllowPlainTextPkce")
  226. .HasColumnType("bit");
  227. b.Property<bool>("AllowRememberConsent")
  228. .HasColumnType("bit");
  229. b.Property<string>("AllowedIdentityTokenSigningAlgorithms")
  230. .HasMaxLength(100)
  231. .HasColumnType("nvarchar(100)");
  232. b.Property<bool>("AlwaysIncludeUserClaimsInIdToken")
  233. .HasColumnType("bit");
  234. b.Property<bool>("AlwaysSendClientClaims")
  235. .HasColumnType("bit");
  236. b.Property<int>("AuthorizationCodeLifetime")
  237. .HasColumnType("int");
  238. b.Property<bool>("BackChannelLogoutSessionRequired")
  239. .HasColumnType("bit");
  240. b.Property<string>("BackChannelLogoutUri")
  241. .HasMaxLength(2000)
  242. .HasColumnType("nvarchar(2000)");
  243. b.Property<string>("ClientClaimsPrefix")
  244. .HasMaxLength(200)
  245. .HasColumnType("nvarchar(200)");
  246. b.Property<string>("ClientId")
  247. .IsRequired()
  248. .HasMaxLength(200)
  249. .HasColumnType("nvarchar(200)");
  250. b.Property<string>("ClientName")
  251. .HasMaxLength(200)
  252. .HasColumnType("nvarchar(200)");
  253. b.Property<string>("ClientUri")
  254. .HasMaxLength(2000)
  255. .HasColumnType("nvarchar(2000)");
  256. b.Property<string>("ConcurrencyStamp")
  257. .IsConcurrencyToken()
  258. .HasMaxLength(40)
  259. .HasColumnType("nvarchar(40)")
  260. .HasColumnName("ConcurrencyStamp");
  261. b.Property<int?>("ConsentLifetime")
  262. .HasColumnType("int");
  263. b.Property<DateTime>("CreationTime")
  264. .HasColumnType("datetime2")
  265. .HasColumnName("CreationTime");
  266. b.Property<Guid?>("CreatorId")
  267. .HasColumnType("uniqueidentifier")
  268. .HasColumnName("CreatorId");
  269. b.Property<Guid?>("DeleterId")
  270. .HasColumnType("uniqueidentifier")
  271. .HasColumnName("DeleterId");
  272. b.Property<DateTime?>("DeletionTime")
  273. .HasColumnType("datetime2")
  274. .HasColumnName("DeletionTime");
  275. b.Property<string>("Description")
  276. .HasMaxLength(1000)
  277. .HasColumnType("nvarchar(1000)");
  278. b.Property<int>("DeviceCodeLifetime")
  279. .HasColumnType("int");
  280. b.Property<bool>("EnableLocalLogin")
  281. .HasColumnType("bit");
  282. b.Property<bool>("Enabled")
  283. .HasColumnType("bit");
  284. b.Property<string>("ExtraProperties")
  285. .HasColumnType("nvarchar(max)")
  286. .HasColumnName("ExtraProperties");
  287. b.Property<bool>("FrontChannelLogoutSessionRequired")
  288. .HasColumnType("bit");
  289. b.Property<string>("FrontChannelLogoutUri")
  290. .HasMaxLength(2000)
  291. .HasColumnType("nvarchar(2000)");
  292. b.Property<int>("IdentityTokenLifetime")
  293. .HasColumnType("int");
  294. b.Property<bool>("IncludeJwtId")
  295. .HasColumnType("bit");
  296. b.Property<bool>("IsDeleted")
  297. .ValueGeneratedOnAdd()
  298. .HasColumnType("bit")
  299. .HasDefaultValue(false)
  300. .HasColumnName("IsDeleted");
  301. b.Property<DateTime?>("LastModificationTime")
  302. .HasColumnType("datetime2")
  303. .HasColumnName("LastModificationTime");
  304. b.Property<Guid?>("LastModifierId")
  305. .HasColumnType("uniqueidentifier")
  306. .HasColumnName("LastModifierId");
  307. b.Property<string>("LogoUri")
  308. .HasMaxLength(2000)
  309. .HasColumnType("nvarchar(2000)");
  310. b.Property<string>("PairWiseSubjectSalt")
  311. .HasMaxLength(200)
  312. .HasColumnType("nvarchar(200)");
  313. b.Property<string>("ProtocolType")
  314. .IsRequired()
  315. .HasMaxLength(200)
  316. .HasColumnType("nvarchar(200)");
  317. b.Property<int>("RefreshTokenExpiration")
  318. .HasColumnType("int");
  319. b.Property<int>("RefreshTokenUsage")
  320. .HasColumnType("int");
  321. b.Property<bool>("RequireClientSecret")
  322. .HasColumnType("bit");
  323. b.Property<bool>("RequireConsent")
  324. .HasColumnType("bit");
  325. b.Property<bool>("RequirePkce")
  326. .HasColumnType("bit");
  327. b.Property<bool>("RequireRequestObject")
  328. .HasColumnType("bit");
  329. b.Property<int>("SlidingRefreshTokenLifetime")
  330. .HasColumnType("int");
  331. b.Property<bool>("UpdateAccessTokenClaimsOnRefresh")
  332. .HasColumnType("bit");
  333. b.Property<string>("UserCodeType")
  334. .HasMaxLength(100)
  335. .HasColumnType("nvarchar(100)");
  336. b.Property<int?>("UserSsoLifetime")
  337. .HasColumnType("int");
  338. b.HasKey("Id");
  339. b.HasIndex("ClientId");
  340. b.ToTable("IdentityServerClients", (string)null);
  341. });
  342. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b =>
  343. {
  344. b.Property<Guid>("ClientId")
  345. .HasColumnType("uniqueidentifier");
  346. b.Property<string>("Type")
  347. .HasMaxLength(250)
  348. .HasColumnType("nvarchar(250)");
  349. b.Property<string>("Value")
  350. .HasMaxLength(250)
  351. .HasColumnType("nvarchar(250)");
  352. b.HasKey("ClientId", "Type", "Value");
  353. b.ToTable("IdentityServerClientClaims", (string)null);
  354. });
  355. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b =>
  356. {
  357. b.Property<Guid>("ClientId")
  358. .HasColumnType("uniqueidentifier");
  359. b.Property<string>("Origin")
  360. .HasMaxLength(150)
  361. .HasColumnType("nvarchar(150)");
  362. b.HasKey("ClientId", "Origin");
  363. b.ToTable("IdentityServerClientCorsOrigins", (string)null);
  364. });
  365. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b =>
  366. {
  367. b.Property<Guid>("ClientId")
  368. .HasColumnType("uniqueidentifier");
  369. b.Property<string>("GrantType")
  370. .HasMaxLength(250)
  371. .HasColumnType("nvarchar(250)");
  372. b.HasKey("ClientId", "GrantType");
  373. b.ToTable("IdentityServerClientGrantTypes", (string)null);
  374. });
  375. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b =>
  376. {
  377. b.Property<Guid>("ClientId")
  378. .HasColumnType("uniqueidentifier");
  379. b.Property<string>("Provider")
  380. .HasMaxLength(200)
  381. .HasColumnType("nvarchar(200)");
  382. b.HasKey("ClientId", "Provider");
  383. b.ToTable("IdentityServerClientIdPRestrictions", (string)null);
  384. });
  385. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b =>
  386. {
  387. b.Property<Guid>("ClientId")
  388. .HasColumnType("uniqueidentifier");
  389. b.Property<string>("PostLogoutRedirectUri")
  390. .HasMaxLength(2000)
  391. .HasColumnType("nvarchar(2000)");
  392. b.HasKey("ClientId", "PostLogoutRedirectUri");
  393. b.ToTable("IdentityServerClientPostLogoutRedirectUris", (string)null);
  394. });
  395. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b =>
  396. {
  397. b.Property<Guid>("ClientId")
  398. .HasColumnType("uniqueidentifier");
  399. b.Property<string>("Key")
  400. .HasMaxLength(250)
  401. .HasColumnType("nvarchar(250)");
  402. b.Property<string>("Value")
  403. .HasMaxLength(2000)
  404. .HasColumnType("nvarchar(2000)");
  405. b.HasKey("ClientId", "Key", "Value");
  406. b.ToTable("IdentityServerClientProperties", (string)null);
  407. });
  408. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b =>
  409. {
  410. b.Property<Guid>("ClientId")
  411. .HasColumnType("uniqueidentifier");
  412. b.Property<string>("RedirectUri")
  413. .HasMaxLength(2000)
  414. .HasColumnType("nvarchar(2000)");
  415. b.HasKey("ClientId", "RedirectUri");
  416. b.ToTable("IdentityServerClientRedirectUris", (string)null);
  417. });
  418. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b =>
  419. {
  420. b.Property<Guid>("ClientId")
  421. .HasColumnType("uniqueidentifier");
  422. b.Property<string>("Scope")
  423. .HasMaxLength(200)
  424. .HasColumnType("nvarchar(200)");
  425. b.HasKey("ClientId", "Scope");
  426. b.ToTable("IdentityServerClientScopes", (string)null);
  427. });
  428. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b =>
  429. {
  430. b.Property<Guid>("ClientId")
  431. .HasColumnType("uniqueidentifier");
  432. b.Property<string>("Type")
  433. .HasMaxLength(250)
  434. .HasColumnType("nvarchar(250)");
  435. b.Property<string>("Value")
  436. .HasMaxLength(4000)
  437. .HasColumnType("nvarchar(4000)");
  438. b.Property<string>("Description")
  439. .HasMaxLength(2000)
  440. .HasColumnType("nvarchar(2000)");
  441. b.Property<DateTime?>("Expiration")
  442. .HasColumnType("datetime2");
  443. b.HasKey("ClientId", "Type", "Value");
  444. b.ToTable("IdentityServerClientSecrets", (string)null);
  445. });
  446. modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b =>
  447. {
  448. b.Property<Guid>("Id")
  449. .ValueGeneratedOnAdd()
  450. .HasColumnType("uniqueidentifier");
  451. b.Property<string>("ClientId")
  452. .IsRequired()
  453. .HasMaxLength(200)
  454. .HasColumnType("nvarchar(200)");
  455. b.Property<string>("ConcurrencyStamp")
  456. .IsConcurrencyToken()
  457. .HasMaxLength(40)
  458. .HasColumnType("nvarchar(40)")
  459. .HasColumnName("ConcurrencyStamp");
  460. b.Property<DateTime>("CreationTime")
  461. .HasColumnType("datetime2")
  462. .HasColumnName("CreationTime");
  463. b.Property<Guid?>("CreatorId")
  464. .HasColumnType("uniqueidentifier")
  465. .HasColumnName("CreatorId");
  466. b.Property<string>("Data")
  467. .IsRequired()
  468. .HasMaxLength(50000)
  469. .HasColumnType("nvarchar(max)");
  470. b.Property<string>("Description")
  471. .HasMaxLength(200)
  472. .HasColumnType("nvarchar(200)");
  473. b.Property<string>("DeviceCode")
  474. .IsRequired()
  475. .HasMaxLength(200)
  476. .HasColumnType("nvarchar(200)");
  477. b.Property<DateTime?>("Expiration")
  478. .IsRequired()
  479. .HasColumnType("datetime2");
  480. b.Property<string>("ExtraProperties")
  481. .HasColumnType("nvarchar(max)")
  482. .HasColumnName("ExtraProperties");
  483. b.Property<string>("SessionId")
  484. .HasMaxLength(100)
  485. .HasColumnType("nvarchar(100)");
  486. b.Property<string>("SubjectId")
  487. .HasMaxLength(200)
  488. .HasColumnType("nvarchar(200)");
  489. b.Property<string>("UserCode")
  490. .IsRequired()
  491. .HasMaxLength(200)
  492. .HasColumnType("nvarchar(200)");
  493. b.HasKey("Id");
  494. b.HasIndex("DeviceCode")
  495. .IsUnique();
  496. b.HasIndex("Expiration");
  497. b.HasIndex("UserCode");
  498. b.ToTable("IdentityServerDeviceFlowCodes", (string)null);
  499. });
  500. modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b =>
  501. {
  502. b.Property<string>("Key")
  503. .HasMaxLength(200)
  504. .HasColumnType("nvarchar(200)");
  505. b.Property<string>("ClientId")
  506. .IsRequired()
  507. .HasMaxLength(200)
  508. .HasColumnType("nvarchar(200)");
  509. b.Property<string>("ConcurrencyStamp")
  510. .IsConcurrencyToken()
  511. .HasMaxLength(40)
  512. .HasColumnType("nvarchar(40)")
  513. .HasColumnName("ConcurrencyStamp");
  514. b.Property<DateTime?>("ConsumedTime")
  515. .HasColumnType("datetime2");
  516. b.Property<DateTime>("CreationTime")
  517. .HasColumnType("datetime2");
  518. b.Property<string>("Data")
  519. .IsRequired()
  520. .HasMaxLength(50000)
  521. .HasColumnType("nvarchar(max)");
  522. b.Property<string>("Description")
  523. .HasMaxLength(200)
  524. .HasColumnType("nvarchar(200)");
  525. b.Property<DateTime?>("Expiration")
  526. .HasColumnType("datetime2");
  527. b.Property<string>("ExtraProperties")
  528. .HasColumnType("nvarchar(max)")
  529. .HasColumnName("ExtraProperties");
  530. b.Property<Guid>("Id")
  531. .HasColumnType("uniqueidentifier");
  532. b.Property<string>("SessionId")
  533. .HasMaxLength(100)
  534. .HasColumnType("nvarchar(100)");
  535. b.Property<string>("SubjectId")
  536. .HasMaxLength(200)
  537. .HasColumnType("nvarchar(200)");
  538. b.Property<string>("Type")
  539. .IsRequired()
  540. .HasMaxLength(50)
  541. .HasColumnType("nvarchar(50)");
  542. b.HasKey("Key");
  543. b.HasIndex("Expiration");
  544. b.HasIndex("SubjectId", "ClientId", "Type");
  545. b.HasIndex("SubjectId", "SessionId", "Type");
  546. b.ToTable("IdentityServerPersistedGrants", (string)null);
  547. });
  548. modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b =>
  549. {
  550. b.Property<Guid>("Id")
  551. .ValueGeneratedOnAdd()
  552. .HasColumnType("uniqueidentifier");
  553. b.Property<string>("ConcurrencyStamp")
  554. .IsConcurrencyToken()
  555. .HasMaxLength(40)
  556. .HasColumnType("nvarchar(40)")
  557. .HasColumnName("ConcurrencyStamp");
  558. b.Property<DateTime>("CreationTime")
  559. .HasColumnType("datetime2")
  560. .HasColumnName("CreationTime");
  561. b.Property<Guid?>("CreatorId")
  562. .HasColumnType("uniqueidentifier")
  563. .HasColumnName("CreatorId");
  564. b.Property<Guid?>("DeleterId")
  565. .HasColumnType("uniqueidentifier")
  566. .HasColumnName("DeleterId");
  567. b.Property<DateTime?>("DeletionTime")
  568. .HasColumnType("datetime2")
  569. .HasColumnName("DeletionTime");
  570. b.Property<string>("Description")
  571. .HasMaxLength(1000)
  572. .HasColumnType("nvarchar(1000)");
  573. b.Property<string>("DisplayName")
  574. .HasMaxLength(200)
  575. .HasColumnType("nvarchar(200)");
  576. b.Property<bool>("Emphasize")
  577. .HasColumnType("bit");
  578. b.Property<bool>("Enabled")
  579. .HasColumnType("bit");
  580. b.Property<string>("ExtraProperties")
  581. .HasColumnType("nvarchar(max)")
  582. .HasColumnName("ExtraProperties");
  583. b.Property<bool>("IsDeleted")
  584. .ValueGeneratedOnAdd()
  585. .HasColumnType("bit")
  586. .HasDefaultValue(false)
  587. .HasColumnName("IsDeleted");
  588. b.Property<DateTime?>("LastModificationTime")
  589. .HasColumnType("datetime2")
  590. .HasColumnName("LastModificationTime");
  591. b.Property<Guid?>("LastModifierId")
  592. .HasColumnType("uniqueidentifier")
  593. .HasColumnName("LastModifierId");
  594. b.Property<string>("Name")
  595. .IsRequired()
  596. .HasMaxLength(200)
  597. .HasColumnType("nvarchar(200)");
  598. b.Property<bool>("Required")
  599. .HasColumnType("bit");
  600. b.Property<bool>("ShowInDiscoveryDocument")
  601. .HasColumnType("bit");
  602. b.HasKey("Id");
  603. b.ToTable("IdentityServerIdentityResources", (string)null);
  604. });
  605. modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b =>
  606. {
  607. b.Property<Guid>("IdentityResourceId")
  608. .HasColumnType("uniqueidentifier");
  609. b.Property<string>("Type")
  610. .HasMaxLength(200)
  611. .HasColumnType("nvarchar(200)");
  612. b.HasKey("IdentityResourceId", "Type");
  613. b.ToTable("IdentityServerIdentityResourceClaims", (string)null);
  614. });
  615. modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b =>
  616. {
  617. b.Property<Guid>("IdentityResourceId")
  618. .HasColumnType("uniqueidentifier");
  619. b.Property<string>("Key")
  620. .HasMaxLength(250)
  621. .HasColumnType("nvarchar(250)");
  622. b.Property<string>("Value")
  623. .HasMaxLength(2000)
  624. .HasColumnType("nvarchar(2000)");
  625. b.HasKey("IdentityResourceId", "Key", "Value");
  626. b.ToTable("IdentityServerIdentityResourceProperties", (string)null);
  627. });
  628. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b =>
  629. {
  630. b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null)
  631. .WithMany("UserClaims")
  632. .HasForeignKey("ApiResourceId")
  633. .OnDelete(DeleteBehavior.Cascade)
  634. .IsRequired();
  635. });
  636. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b =>
  637. {
  638. b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null)
  639. .WithMany("Properties")
  640. .HasForeignKey("ApiResourceId")
  641. .OnDelete(DeleteBehavior.Cascade)
  642. .IsRequired();
  643. });
  644. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b =>
  645. {
  646. b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null)
  647. .WithMany("Scopes")
  648. .HasForeignKey("ApiResourceId")
  649. .OnDelete(DeleteBehavior.Cascade)
  650. .IsRequired();
  651. });
  652. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b =>
  653. {
  654. b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null)
  655. .WithMany("Secrets")
  656. .HasForeignKey("ApiResourceId")
  657. .OnDelete(DeleteBehavior.Cascade)
  658. .IsRequired();
  659. });
  660. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b =>
  661. {
  662. b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null)
  663. .WithMany("UserClaims")
  664. .HasForeignKey("ApiScopeId")
  665. .OnDelete(DeleteBehavior.Cascade)
  666. .IsRequired();
  667. });
  668. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b =>
  669. {
  670. b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null)
  671. .WithMany("Properties")
  672. .HasForeignKey("ApiScopeId")
  673. .OnDelete(DeleteBehavior.Cascade)
  674. .IsRequired();
  675. });
  676. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b =>
  677. {
  678. b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
  679. .WithMany("Claims")
  680. .HasForeignKey("ClientId")
  681. .OnDelete(DeleteBehavior.Cascade)
  682. .IsRequired();
  683. });
  684. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b =>
  685. {
  686. b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
  687. .WithMany("AllowedCorsOrigins")
  688. .HasForeignKey("ClientId")
  689. .OnDelete(DeleteBehavior.Cascade)
  690. .IsRequired();
  691. });
  692. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b =>
  693. {
  694. b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
  695. .WithMany("AllowedGrantTypes")
  696. .HasForeignKey("ClientId")
  697. .OnDelete(DeleteBehavior.Cascade)
  698. .IsRequired();
  699. });
  700. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b =>
  701. {
  702. b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
  703. .WithMany("IdentityProviderRestrictions")
  704. .HasForeignKey("ClientId")
  705. .OnDelete(DeleteBehavior.Cascade)
  706. .IsRequired();
  707. });
  708. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b =>
  709. {
  710. b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
  711. .WithMany("PostLogoutRedirectUris")
  712. .HasForeignKey("ClientId")
  713. .OnDelete(DeleteBehavior.Cascade)
  714. .IsRequired();
  715. });
  716. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b =>
  717. {
  718. b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
  719. .WithMany("Properties")
  720. .HasForeignKey("ClientId")
  721. .OnDelete(DeleteBehavior.Cascade)
  722. .IsRequired();
  723. });
  724. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b =>
  725. {
  726. b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
  727. .WithMany("RedirectUris")
  728. .HasForeignKey("ClientId")
  729. .OnDelete(DeleteBehavior.Cascade)
  730. .IsRequired();
  731. });
  732. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b =>
  733. {
  734. b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
  735. .WithMany("AllowedScopes")
  736. .HasForeignKey("ClientId")
  737. .OnDelete(DeleteBehavior.Cascade)
  738. .IsRequired();
  739. });
  740. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b =>
  741. {
  742. b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
  743. .WithMany("ClientSecrets")
  744. .HasForeignKey("ClientId")
  745. .OnDelete(DeleteBehavior.Cascade)
  746. .IsRequired();
  747. });
  748. modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b =>
  749. {
  750. b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null)
  751. .WithMany("UserClaims")
  752. .HasForeignKey("IdentityResourceId")
  753. .OnDelete(DeleteBehavior.Cascade)
  754. .IsRequired();
  755. });
  756. modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b =>
  757. {
  758. b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null)
  759. .WithMany("Properties")
  760. .HasForeignKey("IdentityResourceId")
  761. .OnDelete(DeleteBehavior.Cascade)
  762. .IsRequired();
  763. });
  764. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b =>
  765. {
  766. b.Navigation("Properties");
  767. b.Navigation("Scopes");
  768. b.Navigation("Secrets");
  769. b.Navigation("UserClaims");
  770. });
  771. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b =>
  772. {
  773. b.Navigation("Properties");
  774. b.Navigation("UserClaims");
  775. });
  776. modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b =>
  777. {
  778. b.Navigation("AllowedCorsOrigins");
  779. b.Navigation("AllowedGrantTypes");
  780. b.Navigation("AllowedScopes");
  781. b.Navigation("Claims");
  782. b.Navigation("ClientSecrets");
  783. b.Navigation("IdentityProviderRestrictions");
  784. b.Navigation("PostLogoutRedirectUris");
  785. b.Navigation("Properties");
  786. b.Navigation("RedirectUris");
  787. });
  788. modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b =>
  789. {
  790. b.Navigation("Properties");
  791. b.Navigation("UserClaims");
  792. });
  793. #pragma warning restore 612, 618
  794. }
  795. }
  796. }