20230131062132_inint.Designer.cs 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055
  1. // <auto-generated />
  2. using System;
  3. using AuthServer.Host.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Migrations;
  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. [Migration("20230131062132_inint")]
  14. partial class inint
  15. {
  16. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  17. {
  18. #pragma warning disable 612, 618
  19. modelBuilder
  20. .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
  21. .HasAnnotation("ProductVersion", "6.0.5")
  22. .HasAnnotation("Relational:MaxIdentifierLength", 64);
  23. modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b =>
  24. {
  25. b.Property<Guid>("Id")
  26. .ValueGeneratedOnAdd()
  27. .HasColumnType("char(36)");
  28. b.Property<string>("AllowedAccessTokenSigningAlgorithms")
  29. .HasMaxLength(100)
  30. .HasColumnType("varchar(100)");
  31. b.Property<string>("ConcurrencyStamp")
  32. .IsConcurrencyToken()
  33. .HasMaxLength(40)
  34. .HasColumnType("varchar(40)")
  35. .HasColumnName("ConcurrencyStamp");
  36. b.Property<DateTime>("CreationTime")
  37. .HasColumnType("datetime")
  38. .HasColumnName("CreationTime");
  39. b.Property<Guid?>("CreatorId")
  40. .HasColumnType("char(36)")
  41. .HasColumnName("CreatorId");
  42. b.Property<Guid?>("DeleterId")
  43. .HasColumnType("char(36)")
  44. .HasColumnName("DeleterId");
  45. b.Property<DateTime?>("DeletionTime")
  46. .HasColumnType("datetime")
  47. .HasColumnName("DeletionTime");
  48. b.Property<string>("Description")
  49. .HasMaxLength(1000)
  50. .HasColumnType("varchar(1000)");
  51. b.Property<string>("DisplayName")
  52. .HasMaxLength(200)
  53. .HasColumnType("varchar(200)");
  54. b.Property<bool>("Enabled")
  55. .HasColumnType("tinyint(1)");
  56. b.Property<string>("ExtraProperties")
  57. .HasColumnType("longtext")
  58. .HasColumnName("ExtraProperties");
  59. b.Property<bool>("IsDeleted")
  60. .ValueGeneratedOnAdd()
  61. .HasColumnType("tinyint(1)")
  62. .HasDefaultValue(false)
  63. .HasColumnName("IsDeleted");
  64. b.Property<DateTime?>("LastModificationTime")
  65. .HasColumnType("datetime")
  66. .HasColumnName("LastModificationTime");
  67. b.Property<Guid?>("LastModifierId")
  68. .HasColumnType("char(36)")
  69. .HasColumnName("LastModifierId");
  70. b.Property<string>("Name")
  71. .IsRequired()
  72. .HasMaxLength(200)
  73. .HasColumnType("varchar(200)");
  74. b.Property<bool>("ShowInDiscoveryDocument")
  75. .HasColumnType("tinyint(1)");
  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("char(36)");
  83. b.Property<string>("Type")
  84. .HasMaxLength(200)
  85. .HasColumnType("varchar(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("char(36)");
  93. b.Property<string>("Key")
  94. .HasMaxLength(250)
  95. .HasColumnType("varchar(250)");
  96. b.Property<string>("Value")
  97. .HasMaxLength(300)
  98. .HasColumnType("varchar(300)");
  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("char(36)");
  106. b.Property<string>("Scope")
  107. .HasMaxLength(200)
  108. .HasColumnType("varchar(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("char(36)");
  116. b.Property<string>("Type")
  117. .HasMaxLength(250)
  118. .HasColumnType("varchar(250)");
  119. b.Property<string>("Value")
  120. .HasMaxLength(300)
  121. .HasColumnType("varchar(300)");
  122. b.Property<string>("Description")
  123. .HasMaxLength(1000)
  124. .HasColumnType("varchar(1000)");
  125. b.Property<DateTime?>("Expiration")
  126. .HasColumnType("datetime");
  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("char(36)");
  135. b.Property<string>("ConcurrencyStamp")
  136. .IsConcurrencyToken()
  137. .HasMaxLength(40)
  138. .HasColumnType("varchar(40)")
  139. .HasColumnName("ConcurrencyStamp");
  140. b.Property<DateTime>("CreationTime")
  141. .HasColumnType("datetime")
  142. .HasColumnName("CreationTime");
  143. b.Property<Guid?>("CreatorId")
  144. .HasColumnType("char(36)")
  145. .HasColumnName("CreatorId");
  146. b.Property<Guid?>("DeleterId")
  147. .HasColumnType("char(36)")
  148. .HasColumnName("DeleterId");
  149. b.Property<DateTime?>("DeletionTime")
  150. .HasColumnType("datetime")
  151. .HasColumnName("DeletionTime");
  152. b.Property<string>("Description")
  153. .HasMaxLength(1000)
  154. .HasColumnType("varchar(1000)");
  155. b.Property<string>("DisplayName")
  156. .HasMaxLength(200)
  157. .HasColumnType("varchar(200)");
  158. b.Property<bool>("Emphasize")
  159. .HasColumnType("tinyint(1)");
  160. b.Property<bool>("Enabled")
  161. .HasColumnType("tinyint(1)");
  162. b.Property<string>("ExtraProperties")
  163. .HasColumnType("longtext")
  164. .HasColumnName("ExtraProperties");
  165. b.Property<bool>("IsDeleted")
  166. .ValueGeneratedOnAdd()
  167. .HasColumnType("tinyint(1)")
  168. .HasDefaultValue(false)
  169. .HasColumnName("IsDeleted");
  170. b.Property<DateTime?>("LastModificationTime")
  171. .HasColumnType("datetime")
  172. .HasColumnName("LastModificationTime");
  173. b.Property<Guid?>("LastModifierId")
  174. .HasColumnType("char(36)")
  175. .HasColumnName("LastModifierId");
  176. b.Property<string>("Name")
  177. .IsRequired()
  178. .HasMaxLength(200)
  179. .HasColumnType("varchar(200)");
  180. b.Property<bool>("Required")
  181. .HasColumnType("tinyint(1)");
  182. b.Property<bool>("ShowInDiscoveryDocument")
  183. .HasColumnType("tinyint(1)");
  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("char(36)");
  191. b.Property<string>("Type")
  192. .HasMaxLength(200)
  193. .HasColumnType("varchar(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("char(36)");
  201. b.Property<string>("Key")
  202. .HasMaxLength(250)
  203. .HasColumnType("varchar(250)");
  204. b.Property<string>("Value")
  205. .HasMaxLength(300)
  206. .HasColumnType("varchar(300)");
  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("char(36)");
  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("tinyint(1)");
  223. b.Property<bool>("AllowOfflineAccess")
  224. .HasColumnType("tinyint(1)");
  225. b.Property<bool>("AllowPlainTextPkce")
  226. .HasColumnType("tinyint(1)");
  227. b.Property<bool>("AllowRememberConsent")
  228. .HasColumnType("tinyint(1)");
  229. b.Property<string>("AllowedIdentityTokenSigningAlgorithms")
  230. .HasMaxLength(100)
  231. .HasColumnType("varchar(100)");
  232. b.Property<bool>("AlwaysIncludeUserClaimsInIdToken")
  233. .HasColumnType("tinyint(1)");
  234. b.Property<bool>("AlwaysSendClientClaims")
  235. .HasColumnType("tinyint(1)");
  236. b.Property<int>("AuthorizationCodeLifetime")
  237. .HasColumnType("int");
  238. b.Property<bool>("BackChannelLogoutSessionRequired")
  239. .HasColumnType("tinyint(1)");
  240. b.Property<string>("BackChannelLogoutUri")
  241. .HasMaxLength(2000)
  242. .HasColumnType("varchar(2000)");
  243. b.Property<string>("ClientClaimsPrefix")
  244. .HasMaxLength(200)
  245. .HasColumnType("varchar(200)");
  246. b.Property<string>("ClientId")
  247. .IsRequired()
  248. .HasMaxLength(200)
  249. .HasColumnType("varchar(200)");
  250. b.Property<string>("ClientName")
  251. .HasMaxLength(200)
  252. .HasColumnType("varchar(200)");
  253. b.Property<string>("ClientUri")
  254. .HasMaxLength(2000)
  255. .HasColumnType("varchar(2000)");
  256. b.Property<string>("ConcurrencyStamp")
  257. .IsConcurrencyToken()
  258. .HasMaxLength(40)
  259. .HasColumnType("varchar(40)")
  260. .HasColumnName("ConcurrencyStamp");
  261. b.Property<int?>("ConsentLifetime")
  262. .HasColumnType("int");
  263. b.Property<DateTime>("CreationTime")
  264. .HasColumnType("datetime")
  265. .HasColumnName("CreationTime");
  266. b.Property<Guid?>("CreatorId")
  267. .HasColumnType("char(36)")
  268. .HasColumnName("CreatorId");
  269. b.Property<Guid?>("DeleterId")
  270. .HasColumnType("char(36)")
  271. .HasColumnName("DeleterId");
  272. b.Property<DateTime?>("DeletionTime")
  273. .HasColumnType("datetime")
  274. .HasColumnName("DeletionTime");
  275. b.Property<string>("Description")
  276. .HasMaxLength(1000)
  277. .HasColumnType("varchar(1000)");
  278. b.Property<int>("DeviceCodeLifetime")
  279. .HasColumnType("int");
  280. b.Property<bool>("EnableLocalLogin")
  281. .HasColumnType("tinyint(1)");
  282. b.Property<bool>("Enabled")
  283. .HasColumnType("tinyint(1)");
  284. b.Property<string>("ExtraProperties")
  285. .HasColumnType("longtext")
  286. .HasColumnName("ExtraProperties");
  287. b.Property<bool>("FrontChannelLogoutSessionRequired")
  288. .HasColumnType("tinyint(1)");
  289. b.Property<string>("FrontChannelLogoutUri")
  290. .HasMaxLength(2000)
  291. .HasColumnType("varchar(2000)");
  292. b.Property<int>("IdentityTokenLifetime")
  293. .HasColumnType("int");
  294. b.Property<bool>("IncludeJwtId")
  295. .HasColumnType("tinyint(1)");
  296. b.Property<bool>("IsDeleted")
  297. .ValueGeneratedOnAdd()
  298. .HasColumnType("tinyint(1)")
  299. .HasDefaultValue(false)
  300. .HasColumnName("IsDeleted");
  301. b.Property<DateTime?>("LastModificationTime")
  302. .HasColumnType("datetime")
  303. .HasColumnName("LastModificationTime");
  304. b.Property<Guid?>("LastModifierId")
  305. .HasColumnType("char(36)")
  306. .HasColumnName("LastModifierId");
  307. b.Property<string>("LogoUri")
  308. .HasMaxLength(2000)
  309. .HasColumnType("varchar(2000)");
  310. b.Property<string>("PairWiseSubjectSalt")
  311. .HasMaxLength(200)
  312. .HasColumnType("varchar(200)");
  313. b.Property<string>("ProtocolType")
  314. .IsRequired()
  315. .HasMaxLength(200)
  316. .HasColumnType("varchar(200)");
  317. b.Property<int>("RefreshTokenExpiration")
  318. .HasColumnType("int");
  319. b.Property<int>("RefreshTokenUsage")
  320. .HasColumnType("int");
  321. b.Property<bool>("RequireClientSecret")
  322. .HasColumnType("tinyint(1)");
  323. b.Property<bool>("RequireConsent")
  324. .HasColumnType("tinyint(1)");
  325. b.Property<bool>("RequirePkce")
  326. .HasColumnType("tinyint(1)");
  327. b.Property<bool>("RequireRequestObject")
  328. .HasColumnType("tinyint(1)");
  329. b.Property<int>("SlidingRefreshTokenLifetime")
  330. .HasColumnType("int");
  331. b.Property<bool>("UpdateAccessTokenClaimsOnRefresh")
  332. .HasColumnType("tinyint(1)");
  333. b.Property<string>("UserCodeType")
  334. .HasMaxLength(100)
  335. .HasColumnType("varchar(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("char(36)");
  346. b.Property<string>("Type")
  347. .HasMaxLength(250)
  348. .HasColumnType("varchar(250)");
  349. b.Property<string>("Value")
  350. .HasMaxLength(250)
  351. .HasColumnType("varchar(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("char(36)");
  359. b.Property<string>("Origin")
  360. .HasMaxLength(150)
  361. .HasColumnType("varchar(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("char(36)");
  369. b.Property<string>("GrantType")
  370. .HasMaxLength(250)
  371. .HasColumnType("varchar(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("char(36)");
  379. b.Property<string>("Provider")
  380. .HasMaxLength(200)
  381. .HasColumnType("varchar(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("char(36)");
  389. b.Property<string>("PostLogoutRedirectUri")
  390. .HasMaxLength(300)
  391. .HasColumnType("varchar(300)");
  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("char(36)");
  399. b.Property<string>("Key")
  400. .HasMaxLength(250)
  401. .HasColumnType("varchar(250)");
  402. b.Property<string>("Value")
  403. .HasMaxLength(300)
  404. .HasColumnType("varchar(300)");
  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("char(36)");
  412. b.Property<string>("RedirectUri")
  413. .HasMaxLength(300)
  414. .HasColumnType("varchar(300)");
  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("char(36)");
  422. b.Property<string>("Scope")
  423. .HasMaxLength(200)
  424. .HasColumnType("varchar(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("char(36)");
  432. b.Property<string>("Type")
  433. .HasMaxLength(250)
  434. .HasColumnType("varchar(250)");
  435. b.Property<string>("Value")
  436. .HasMaxLength(300)
  437. .HasColumnType("varchar(300)");
  438. b.Property<string>("Description")
  439. .HasMaxLength(2000)
  440. .HasColumnType("varchar(2000)");
  441. b.Property<DateTime?>("Expiration")
  442. .HasColumnType("datetime");
  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("char(36)");
  451. b.Property<string>("ClientId")
  452. .IsRequired()
  453. .HasMaxLength(200)
  454. .HasColumnType("varchar(200)");
  455. b.Property<string>("ConcurrencyStamp")
  456. .IsConcurrencyToken()
  457. .HasMaxLength(40)
  458. .HasColumnType("varchar(40)")
  459. .HasColumnName("ConcurrencyStamp");
  460. b.Property<DateTime>("CreationTime")
  461. .HasColumnType("datetime")
  462. .HasColumnName("CreationTime");
  463. b.Property<Guid?>("CreatorId")
  464. .HasColumnType("char(36)")
  465. .HasColumnName("CreatorId");
  466. b.Property<string>("Data")
  467. .IsRequired()
  468. .HasMaxLength(10000)
  469. .HasColumnType("varchar(10000)");
  470. b.Property<string>("Description")
  471. .HasMaxLength(200)
  472. .HasColumnType("varchar(200)");
  473. b.Property<string>("DeviceCode")
  474. .IsRequired()
  475. .HasMaxLength(200)
  476. .HasColumnType("varchar(200)");
  477. b.Property<DateTime?>("Expiration")
  478. .IsRequired()
  479. .HasColumnType("datetime");
  480. b.Property<string>("ExtraProperties")
  481. .HasColumnType("longtext")
  482. .HasColumnName("ExtraProperties");
  483. b.Property<string>("SessionId")
  484. .HasMaxLength(100)
  485. .HasColumnType("varchar(100)");
  486. b.Property<string>("SubjectId")
  487. .HasMaxLength(200)
  488. .HasColumnType("varchar(200)");
  489. b.Property<string>("UserCode")
  490. .IsRequired()
  491. .HasMaxLength(200)
  492. .HasColumnType("varchar(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("varchar(200)");
  505. b.Property<string>("ClientId")
  506. .IsRequired()
  507. .HasMaxLength(200)
  508. .HasColumnType("varchar(200)");
  509. b.Property<string>("ConcurrencyStamp")
  510. .IsConcurrencyToken()
  511. .HasMaxLength(40)
  512. .HasColumnType("varchar(40)")
  513. .HasColumnName("ConcurrencyStamp");
  514. b.Property<DateTime?>("ConsumedTime")
  515. .HasColumnType("datetime");
  516. b.Property<DateTime>("CreationTime")
  517. .HasColumnType("datetime");
  518. b.Property<string>("Data")
  519. .IsRequired()
  520. .HasMaxLength(10000)
  521. .HasColumnType("varchar(10000)");
  522. b.Property<string>("Description")
  523. .HasMaxLength(200)
  524. .HasColumnType("varchar(200)");
  525. b.Property<DateTime?>("Expiration")
  526. .HasColumnType("datetime");
  527. b.Property<string>("ExtraProperties")
  528. .HasColumnType("longtext")
  529. .HasColumnName("ExtraProperties");
  530. b.Property<Guid>("Id")
  531. .HasColumnType("char(36)");
  532. b.Property<string>("SessionId")
  533. .HasMaxLength(100)
  534. .HasColumnType("varchar(100)");
  535. b.Property<string>("SubjectId")
  536. .HasMaxLength(200)
  537. .HasColumnType("varchar(200)");
  538. b.Property<string>("Type")
  539. .IsRequired()
  540. .HasMaxLength(50)
  541. .HasColumnType("varchar(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("char(36)");
  553. b.Property<string>("ConcurrencyStamp")
  554. .IsConcurrencyToken()
  555. .HasMaxLength(40)
  556. .HasColumnType("varchar(40)")
  557. .HasColumnName("ConcurrencyStamp");
  558. b.Property<DateTime>("CreationTime")
  559. .HasColumnType("datetime")
  560. .HasColumnName("CreationTime");
  561. b.Property<Guid?>("CreatorId")
  562. .HasColumnType("char(36)")
  563. .HasColumnName("CreatorId");
  564. b.Property<Guid?>("DeleterId")
  565. .HasColumnType("char(36)")
  566. .HasColumnName("DeleterId");
  567. b.Property<DateTime?>("DeletionTime")
  568. .HasColumnType("datetime")
  569. .HasColumnName("DeletionTime");
  570. b.Property<string>("Description")
  571. .HasMaxLength(1000)
  572. .HasColumnType("varchar(1000)");
  573. b.Property<string>("DisplayName")
  574. .HasMaxLength(200)
  575. .HasColumnType("varchar(200)");
  576. b.Property<bool>("Emphasize")
  577. .HasColumnType("tinyint(1)");
  578. b.Property<bool>("Enabled")
  579. .HasColumnType("tinyint(1)");
  580. b.Property<string>("ExtraProperties")
  581. .HasColumnType("longtext")
  582. .HasColumnName("ExtraProperties");
  583. b.Property<bool>("IsDeleted")
  584. .ValueGeneratedOnAdd()
  585. .HasColumnType("tinyint(1)")
  586. .HasDefaultValue(false)
  587. .HasColumnName("IsDeleted");
  588. b.Property<DateTime?>("LastModificationTime")
  589. .HasColumnType("datetime")
  590. .HasColumnName("LastModificationTime");
  591. b.Property<Guid?>("LastModifierId")
  592. .HasColumnType("char(36)")
  593. .HasColumnName("LastModifierId");
  594. b.Property<string>("Name")
  595. .IsRequired()
  596. .HasMaxLength(200)
  597. .HasColumnType("varchar(200)");
  598. b.Property<bool>("Required")
  599. .HasColumnType("tinyint(1)");
  600. b.Property<bool>("ShowInDiscoveryDocument")
  601. .HasColumnType("tinyint(1)");
  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("char(36)");
  609. b.Property<string>("Type")
  610. .HasMaxLength(200)
  611. .HasColumnType("varchar(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("char(36)");
  619. b.Property<string>("Key")
  620. .HasMaxLength(250)
  621. .HasColumnType("varchar(250)");
  622. b.Property<string>("Value")
  623. .HasMaxLength(300)
  624. .HasColumnType("varchar(300)");
  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. }