@@ -37,11 +37,14 @@ public OpenShockContext(DbContextOptions<OpenShockContext> options)
3737
3838 public virtual DbSet < User > Users { get ; set ; }
3939
40+ public virtual DbSet < UsersActivation > UsersActivations { get ; set ; }
41+
4042 protected override void OnModelCreating ( ModelBuilder modelBuilder )
4143 {
4244 modelBuilder
4345 . HasPostgresEnum ( "control_type" , new [ ] { "sound" , "vibrate" , "shock" , "stop" } )
4446 . HasPostgresEnum ( "ota_update_status" , new [ ] { "started" , "running" , "finished" , "error" , "timeout" } )
47+ . HasPostgresEnum ( "password_encryption_type" , new [ ] { "pbkdf2" , "bcrypt_enhanced" } )
4548 . HasPostgresEnum ( "permission_type" , new [ ] { "shockers.use" } )
4649 . HasPostgresEnum ( "rank_type" , new [ ] { "user" , "support" , "staff" , "admin" , "system" } )
4750 . HasPostgresEnum ( "shocker_model_type" , new [ ] { "caiXianlin" , "petTrainer" } ) ;
@@ -372,6 +375,9 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
372375 entity . Property ( e => e . Rank )
373376 . HasColumnType ( "rank_type" )
374377 . HasColumnName ( "rank" ) ;
378+ entity . Property ( e => e . PasswordEncryption )
379+ . HasColumnType ( "password_encryption_type" )
380+ . HasColumnName ( "password_encryption" ) ;
375381 } ) ;
376382
377383 modelBuilder . Entity < UsersActivation > ( entity =>
0 commit comments