// <auto-generated />
using System;
using ExampleApeart.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace ExampleApeart.EntityFrameworkCore.Migrations
{
[DbContext(typeof(SqliteDb))]
[Migration("20260725013709_database_init")]
partial class database_init
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "8.0.19");
modelBuilder.Entity("ExampleApeart.usermodels.GradeInfo", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Code")
.HasMaxLength(4)
.HasColumnType("TEXT");
b.Property<string>("Desc")
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<bool>("IsEnable")
.HasColumnType("INTEGER");
b.Property<string>("Mark")
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(16)
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("Name")
.IsUnique();
b.ToTable("PTGradeInfo", (string)null);
});
modelBuilder.Entity("ExampleApeart.usermodels.GradeRole", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int>("GradeId")
.HasColumnType("INTEGER");
b.Property<int>("RoleId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("PTGradeRole", null, t =>
{
t.HasComment("角色绑定权限");
});
});
modelBuilder.Entity("ExampleApeart.usermodels.RoleInfo", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Desc")
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<int>("FatherId")
.HasColumnType("INTEGER");
b.Property<string>("FatherStr")
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<string>("Icon")
.HasMaxLength(32)
.HasColumnType("TEXT");
b.Property<bool>("IsEnable")
.HasColumnType("INTEGER");
b.Property<int>("Level")
.HasColumnType("INTEGER");
b.Property<string>("Model")
.HasMaxLength(16)
.HasColumnType("TEXT");
b.Property<string>("Name")
.HasMaxLength(16)
.HasColumnType("TEXT");
b.Property<string>("Path")
.HasMaxLength(128)
.HasColumnType("TEXT");
b.Property<string>("Role")
.HasMaxLength(16)
.HasColumnType("TEXT");
b.Property<int>("RoleType")
.HasColumnType("INTEGER");
b.Property<int>("RootId")
.HasColumnType("INTEGER");
b.Property<int>("Sort")
.HasColumnType("INTEGER");
b.Property<string>("SortStr")
.HasMaxLength(20)
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("PTRoleInfo", (string)null);
});
modelBuilder.Entity("ExampleApeart.usermodels.UserGrade", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int>("GradeId")
.HasColumnType("INTEGER");
b.Property<int>("UserId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("PTUserGrade", (string)null);
});
modelBuilder.Entity("ExampleApeart.usermodels.UserInfo", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime>("CreateDate")
.HasColumnType("TEXT");
b.Property<string>("Desc")
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<string>("Email")
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<bool>("IsEnable")
.HasColumnType("INTEGER");
b.Property<string>("PassWord")
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<string>("UserHead")
.HasMaxLength(128)
.HasColumnType("TEXT");
b.Property<string>("UserName")
.HasMaxLength(32)
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("Email")
.IsUnique();
b.ToTable("PTUserInfo", null, t =>
{
t.HasComment("登录用户表");
});
});
#pragma warning restore 612, 618
}
}
}