@@ -17,7 +17,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
1717 {
1818#pragma warning disable 612 , 618
1919 modelBuilder
20- . HasAnnotation ( "ProductVersion" , "2.0.0 -rtm-26452 " ) ;
20+ . HasAnnotation ( "ProductVersion" , "2.0.1 -rtm-125 " ) ;
2121
2222 modelBuilder . Entity ( "AspNetCoreSpa.Server.Entities.ApplicationRole" , b =>
2323 {
@@ -320,16 +320,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
320320
321321 b . Property < string > ( "AuthorizationId" ) ;
322322
323- b . Property < string > ( "Ciphertext" ) ;
324-
325323 b . Property < string > ( "ConcurrencyToken" )
326324 . IsConcurrencyToken ( ) ;
327325
328326 b . Property < DateTimeOffset ? > ( "CreationDate" ) ;
329327
330328 b . Property < DateTimeOffset ? > ( "ExpirationDate" ) ;
331329
332- b . Property < string > ( "Hash" ) ;
330+ b . Property < string > ( "Payload" ) ;
331+
332+ b . Property < string > ( "ReferenceId" ) ;
333333
334334 b . Property < string > ( "Status" ) ;
335335
@@ -345,7 +345,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
345345
346346 b . HasIndex ( "AuthorizationId" ) ;
347347
348- b . HasIndex ( "Hash " )
348+ b . HasIndex ( "ReferenceId " )
349349 . IsUnique ( ) ;
350350
351351 b . ToTable ( "OpenIddictTokens" ) ;
@@ -422,13 +422,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
422422 {
423423 b . HasOne ( "OpenIddict.Models.OpenIddictApplication" , "Application" )
424424 . WithMany ( "Tokens" )
425- . HasForeignKey ( "ApplicationId" )
426- . OnDelete ( DeleteBehavior . Cascade ) ;
425+ . HasForeignKey ( "ApplicationId" ) ;
427426
428427 b . HasOne ( "OpenIddict.Models.OpenIddictAuthorization" , "Authorization" )
429428 . WithMany ( "Tokens" )
430- . HasForeignKey ( "AuthorizationId" )
431- . OnDelete ( DeleteBehavior . Cascade ) ;
429+ . HasForeignKey ( "AuthorizationId" ) ;
432430 } ) ;
433431#pragma warning restore 612 , 618
434432 }
0 commit comments