// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using ExampleForm;
using Volo.Abp.EntityFrameworkCore;
#nullable disable
namespace ExampleForm.EntityFrameworkCore.Migrations
{
[DbContext(typeof(SqliteDbContext))]
partial class SqliteDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.Sqlite)
.HasAnnotation("ProductVersion", "8.0.19");
modelBuilder.Entity("ExampleForm.dynamicmodels.DynamicField", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("AttributesJson")
.HasColumnType("TEXT");
b.Property<string>("DataType")
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<string>("DefaultValue")
.HasColumnType("TEXT");
b.Property<bool>("IsEnable")
.HasColumnType("INTEGER");
b.Property<bool>("MatchRegex")
.HasColumnType("INTEGER");
b.Property<int>("Maxlength")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<bool>("NeedRemove")
.HasColumnType("INTEGER");
b.Property<string>("Placeholder")
.HasMaxLength(128)
.HasColumnType("TEXT");
b.Property<bool>("ReadOnly")
.HasColumnType("INTEGER");
b.Property<bool>("Required")
.HasColumnType("INTEGER");
b.Property<bool>("ShowAdd")
.HasColumnType("INTEGER");
b.Property<bool>("ShowEdit")
.HasColumnType("INTEGER");
b.Property<bool>("ShowList")
.HasColumnType("INTEGER");
b.Property<bool>("ShowMark")
.HasColumnType("INTEGER");
b.Property<bool>("ShowView")
.HasColumnType("INTEGER");
b.Property<int>("Sort")
.HasColumnType("INTEGER");
b.Property<int>("TableId")
.HasColumnType("INTEGER");
b.Property<string>("Title")
.HasMaxLength(16)
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("PTDynamicField", (string)null);
});
modelBuilder.Entity("ExampleForm.dynamicmodels.DynamicTable", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("AttributeJson")
.HasColumnType("TEXT");
b.Property<bool>("CanAdd")
.HasColumnType("INTEGER");
b.Property<bool>("CanDel")
.HasColumnType("INTEGER");
b.Property<bool>("CanEdit")
.HasColumnType("INTEGER");
b.Property<bool>("CanView")
.HasColumnType("INTEGER");
b.Property<string>("Code")
.HasMaxLength(32)
.HasColumnType("TEXT");
b.Property<string>("Desc")
.HasMaxLength(128)
.HasColumnType("TEXT");
b.Property<bool>("IsEnable")
.HasColumnType("INTEGER");
b.Property<string>("KeyType")
.HasMaxLength(16)
.HasColumnType("TEXT");
b.Property<string>("KeyWord")
.HasMaxLength(128)
.HasColumnType("TEXT");
b.Property<bool>("MatchRegex")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.HasMaxLength(16)
.HasColumnType("TEXT");
b.Property<string>("Path")
.HasMaxLength(256)
.HasColumnType("TEXT");
b.Property<bool>("ReadOnly")
.HasColumnType("INTEGER");
b.Property<int>("Sort")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("Code")
.IsUnique();
b.ToTable("PTDynamicTable", (string)null);
});
modelBuilder.Entity("ExampleForm.newsmodels.ArticleInfo", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Body")
.HasColumnType("TEXT");
b.Property<string>("Desc")
.HasMaxLength(256)
.HasColumnType("TEXT");
b.Property<bool>("IsEnable")
.HasColumnType("INTEGER");
b.Property<int>("Sort")
.HasColumnType("INTEGER");
b.Property<string>("Title")
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<int>("UserId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("PTArticleInfo", (string)null);
});
modelBuilder.Entity("ExampleForm.testmodels.GuidTest1", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property<string>("Desc")
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<string>("Name")
.HasMaxLength(16)
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("PTGuidTest1", (string)null);
});
modelBuilder.Entity("ExampleForm.testmodels.IncludeTable", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Desc")
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<string>("Name")
.HasMaxLength(16)
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("PTIncludeTable", (string)null);
});
modelBuilder.Entity("ExampleForm.testmodels.MyTable", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int>("Age")
.HasColumnType("INTEGER");
b.Property<DateTime>("CreateDate")
.HasColumnType("TEXT");
b.Property<bool>("IsEnable")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.HasMaxLength(16)
.HasColumnType("TEXT");
b.Property<double>("Rate")
.HasColumnType("REAL");
b.HasKey("Id");
b.ToTable("PTMyTable", (string)null);
});
modelBuilder.Entity("ExampleForm.testmodels.ParentTable", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int>("Age")
.HasColumnType("INTEGER");
b.Property<DateTime>("CreateDate")
.HasColumnType("TEXT");
b.Property<int?>("FrontId")
.HasColumnType("INTEGER");
b.Property<bool>("IsEnable")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.HasMaxLength(16)
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("FrontId");
b.ToTable("PTParentTable", (string)null);
});
modelBuilder.Entity("ExampleForm.testmodels.TestLinkInclude", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int>("GradeId")
.HasColumnType("INTEGER");
b.Property<int?>("MyTableId")
.HasColumnType("INTEGER");
b.Property<int>("UserId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("MyTableId");
b.ToTable("PTTestLinkInclude", (string)null);
});
modelBuilder.Entity("ExampleForm.testmodels.TestTable", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int>("Age")
.HasColumnType("INTEGER");
b.Property<int>("Balance")
.HasColumnType("INTEGER");
b.Property<DateTime>("DateEnd")
.HasColumnType("TEXT");
b.Property<DateTime>("DateStart")
.HasColumnType("TEXT");
b.Property<string>("Head")
.HasMaxLength(128)
.HasColumnType("TEXT");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(16)
.HasColumnType("TEXT");
b.Property<int>("UserId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("UserId")
.IsUnique();
b.ToTable("PTTestTable", (string)null);
});
modelBuilder.Entity("ExampleForm.testmodels.UintTest1", b =>
{
b.Property<uint>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Desc")
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<string>("Name")
.HasMaxLength(16)
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("PTUintTest1", (string)null);
});
modelBuilder.Entity("ExampleForm.toolmodels.UploadImageInfo", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime>("CreateDate")
.HasColumnType("TEXT");
b.Property<string>("Dir")
.HasMaxLength(8)
.HasColumnType("TEXT");
b.Property<string>("Extension")
.HasMaxLength(8)
.HasColumnType("TEXT");
b.Property<int>("Height")
.HasColumnType("INTEGER");
b.Property<string>("Md5")
.HasMaxLength(32)
.HasColumnType("TEXT");
b.Property<string>("Path")
.HasMaxLength(128)
.HasColumnType("TEXT");
b.Property<int>("Size")
.HasColumnType("INTEGER");
b.Property<bool>("UploadCloud")
.HasColumnType("INTEGER");
b.Property<string>("Url")
.HasMaxLength(128)
.HasColumnType("TEXT");
b.Property<long>("UserId")
.HasColumnType("INTEGER");
b.Property<int>("Width")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("PTUploadImageInfo", (string)null);
});
modelBuilder.Entity("ExampleForm.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("ExampleForm.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("ExampleForm.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("ExampleForm.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("ExampleForm.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("登录用户表");
});
});
modelBuilder.Entity("ExampleForm.testmodels.ParentTable", b =>
{
b.HasOne("ExampleForm.testmodels.IncludeTable", "Front")
.WithMany()
.HasForeignKey("FrontId");
b.Navigation("Front");
});
modelBuilder.Entity("ExampleForm.testmodels.TestLinkInclude", b =>
{
b.HasOne("ExampleForm.testmodels.MyTable", "MyTable")
.WithMany()
.HasForeignKey("MyTableId");
b.Navigation("MyTable");
});
#pragma warning restore 612, 618
}
}
}