diff --git a/BlazorPolicyAuth/Migrations/20260208143144_userpassword.Designer.cs b/BlazorPolicyAuth/Migrations/20260208143144_userpassword.Designer.cs
new file mode 100644
index 0000000..0a5b4b3
--- /dev/null
+++ b/BlazorPolicyAuth/Migrations/20260208143144_userpassword.Designer.cs
@@ -0,0 +1,81 @@
+//
+using System;
+using BlazorPolicyAuth.Data;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+#nullable disable
+
+namespace BlazorPolicyAuth.Migrations
+{
+ [DbContext(typeof(AppDbContext))]
+ [Migration("20260208143144_userpassword")]
+ partial class userpassword
+ {
+ ///
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder.HasAnnotation("ProductVersion", "10.0.2");
+
+ modelBuilder.Entity("BlazorPolicyAuth.Models.Entities.UserAccount", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER")
+ .HasColumnName("id");
+
+ b.Property("DateCreated")
+ .HasColumnType("TEXT");
+
+ b.Property("Email")
+ .HasMaxLength(200)
+ .HasColumnType("TEXT")
+ .HasColumnName("email");
+
+ b.Property("PasswordHash")
+ .IsRequired()
+ .HasColumnType("BLOB");
+
+ b.Property("PasswordSalt")
+ .IsRequired()
+ .HasColumnType("BLOB");
+
+ b.Property("Role")
+ .IsRequired()
+ .HasColumnType("TEXT");
+
+ b.HasKey("Id");
+
+ b.ToTable("user_account");
+ });
+
+ modelBuilder.Entity("BlazorPolicyAuth.Models.Entities.UserAccountPolicy", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER")
+ .HasColumnName("id");
+
+ b.Property("IsEnabled")
+ .HasColumnType("INTEGER")
+ .HasColumnName("is_enabled");
+
+ b.Property("UserAccountId")
+ .HasColumnType("INTEGER")
+ .HasColumnName("user_account_policy");
+
+ b.Property("UserPolicy")
+ .HasColumnType("TEXT")
+ .HasColumnName("user_policy");
+
+ b.HasKey("Id");
+
+ b.ToTable("user_account_policy");
+ });
+#pragma warning restore 612, 618
+ }
+ }
+}
diff --git a/BlazorPolicyAuth/Migrations/20260208143144_userpassword.cs b/BlazorPolicyAuth/Migrations/20260208143144_userpassword.cs
new file mode 100644
index 0000000..1d744c6
--- /dev/null
+++ b/BlazorPolicyAuth/Migrations/20260208143144_userpassword.cs
@@ -0,0 +1,29 @@
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace BlazorPolicyAuth.Migrations
+{
+ ///
+ public partial class userpassword : Migration
+ {
+ ///
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.DropColumn(
+ name: "password",
+ table: "user_account");
+ }
+
+ ///
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.AddColumn(
+ name: "password",
+ table: "user_account",
+ type: "TEXT",
+ maxLength: 100,
+ nullable: true);
+ }
+ }
+}
diff --git a/BlazorPolicyAuth/Migrations/AppDbContextModelSnapshot.cs b/BlazorPolicyAuth/Migrations/AppDbContextModelSnapshot.cs
index ae70d7a..8abd424 100644
--- a/BlazorPolicyAuth/Migrations/AppDbContextModelSnapshot.cs
+++ b/BlazorPolicyAuth/Migrations/AppDbContextModelSnapshot.cs
@@ -15,7 +15,7 @@ namespace BlazorPolicyAuth.Migrations
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
- modelBuilder.HasAnnotation("ProductVersion", "10.0.1");
+ modelBuilder.HasAnnotation("ProductVersion", "10.0.2");
modelBuilder.Entity("BlazorPolicyAuth.Models.Entities.UserAccount", b =>
{
@@ -32,11 +32,6 @@ namespace BlazorPolicyAuth.Migrations
.HasColumnType("TEXT")
.HasColumnName("email");
- b.Property("Password")
- .HasMaxLength(100)
- .HasColumnType("TEXT")
- .HasColumnName("password");
-
b.Property("PasswordHash")
.IsRequired()
.HasColumnType("BLOB");
diff --git a/BlazorPolicyAuth/Models/Entities/UserAccount.cs b/BlazorPolicyAuth/Models/Entities/UserAccount.cs
index c4b7675..9f27404 100644
--- a/BlazorPolicyAuth/Models/Entities/UserAccount.cs
+++ b/BlazorPolicyAuth/Models/Entities/UserAccount.cs
@@ -15,8 +15,8 @@ public class UserAccount
[Column("email")]
[MaxLength(200)]
public string? Email { get; set; }
-
- [Column("password")]
+
+ [NotMapped]
[MaxLength(100)]
public string? Password { get; set; }