AuthServerDbContextModelSnapshot.cs 40 KB

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