数据库迁移

This commit is contained in:
橙子
2021-10-23 02:24:18 +08:00
parent eb15667d21
commit ea5d10d2b1
12 changed files with 177 additions and 762 deletions

View File

@@ -14,40 +14,41 @@ namespace Yi.Framework.Model.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("Relational:MaxIdentifierLength", 64)
.HasAnnotation("ProductVersion", "5.0.11");
modelBuilder.Entity("Yi.Framework.Model.Models.menu", b =>
{
b.Property<int>("id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<string>("icon")
.HasColumnType("TEXT");
.HasColumnType("longtext");
b.Property<int>("is_delete")
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<int>("is_show")
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<int>("is_top")
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<string>("menu_name")
.HasColumnType("TEXT");
.HasColumnType("longtext");
b.Property<int?>("menuid")
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<int?>("mouldid")
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<string>("router")
.HasColumnType("TEXT");
.HasColumnType("longtext");
b.Property<int>("sort")
.HasColumnType("INTEGER");
.HasColumnType("int");
b.HasKey("id");
@@ -62,16 +63,16 @@ namespace Yi.Framework.Model.Migrations
{
b.Property<int>("id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<int>("is_delete")
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<string>("mould_name")
.HasColumnType("TEXT");
.HasColumnType("longtext");
b.Property<string>("url")
.HasColumnType("TEXT");
.HasColumnType("longtext");
b.HasKey("id");
@@ -82,16 +83,16 @@ namespace Yi.Framework.Model.Migrations
{
b.Property<int>("id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<string>("introduce")
.HasColumnType("TEXT");
.HasColumnType("longtext");
b.Property<int>("is_delete")
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<string>("role_name")
.HasColumnType("TEXT");
.HasColumnType("longtext");
b.HasKey("id");
@@ -102,40 +103,40 @@ namespace Yi.Framework.Model.Migrations
{
b.Property<int>("id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<string>("address")
.HasColumnType("TEXT");
.HasColumnType("longtext");
b.Property<int?>("age")
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<string>("email")
.HasColumnType("TEXT");
.HasColumnType("longtext");
b.Property<string>("icon")
.HasColumnType("TEXT");
.HasColumnType("longtext");
b.Property<string>("introduction")
.HasColumnType("TEXT");
.HasColumnType("longtext");
b.Property<string>("ip")
.HasColumnType("TEXT");
.HasColumnType("longtext");
b.Property<int>("is_delete")
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<string>("nick")
.HasColumnType("TEXT");
.HasColumnType("longtext");
b.Property<string>("password")
.HasColumnType("TEXT");
.HasColumnType("longtext");
b.Property<int?>("phone")
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<string>("username")
.HasColumnType("TEXT");
.HasColumnType("longtext");
b.HasKey("id");
@@ -145,10 +146,10 @@ namespace Yi.Framework.Model.Migrations
modelBuilder.Entity("menurole", b =>
{
b.Property<int>("menusid")
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<int>("rolesid")
.HasColumnType("INTEGER");
.HasColumnType("int");
b.HasKey("menusid", "rolesid");
@@ -160,10 +161,10 @@ namespace Yi.Framework.Model.Migrations
modelBuilder.Entity("roleuser", b =>
{
b.Property<int>("rolesid")
.HasColumnType("INTEGER");
.HasColumnType("int");
b.Property<int>("usersid")
.HasColumnType("INTEGER");
.HasColumnType("int");
b.HasKey("rolesid", "usersid");