82 lines
2.6 KiB
C#
82 lines
2.6 KiB
C#
// <auto-generated />
|
|
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
|
|
{
|
|
/// <inheritdoc />
|
|
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<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Email")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("email");
|
|
|
|
b.Property<byte[]>("PasswordHash")
|
|
.IsRequired()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.Property<byte[]>("PasswordSalt")
|
|
.IsRequired()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.Property<string>("Role")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("user_account");
|
|
});
|
|
|
|
modelBuilder.Entity("BlazorPolicyAuth.Models.Entities.UserAccountPolicy", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("is_enabled");
|
|
|
|
b.Property<int>("UserAccountId")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("user_account_policy");
|
|
|
|
b.Property<string>("UserPolicy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("user_policy");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("user_account_policy");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|