191 lines
6.9 KiB
C#
191 lines
6.9 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using YD_WeChatApplet.Context;
|
|
|
|
#nullable disable
|
|
|
|
namespace YD_WeChatApplet.Api.Migrations
|
|
{
|
|
[DbContext(typeof(UserContext))]
|
|
[Migration("20241005142228_init002")]
|
|
partial class init002
|
|
{
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "6.0.0")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
|
|
|
|
modelBuilder.Entity("YD_WeChatApplet.Api.Entitys.User", b =>
|
|
{
|
|
b.Property<int>("User_Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasComment("Id");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("User_Id"), 1L, 1);
|
|
|
|
b.Property<string>("Address")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)")
|
|
.HasComment("地址");
|
|
|
|
b.Property<int?>("CreateID")
|
|
.HasColumnType("int")
|
|
.HasComment("CreateID");
|
|
|
|
b.Property<string>("Creator")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)")
|
|
.HasComment("创建人");
|
|
|
|
b.Property<string>("Email")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)")
|
|
.HasComment("Email");
|
|
|
|
b.Property<byte>("Enable")
|
|
.HasColumnType("tinyint")
|
|
.HasComment("是否可用");
|
|
|
|
b.Property<int?>("Gender")
|
|
.HasColumnType("int")
|
|
.HasComment("性别");
|
|
|
|
b.Property<string>("HeadImageUrl")
|
|
.IsRequired()
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)")
|
|
.HasComment("头像");
|
|
|
|
b.Property<DateTime?>("LastLoginDate")
|
|
.HasColumnType("datetime")
|
|
.HasComment("最后登陆时间");
|
|
|
|
b.Property<DateTime?>("LastModifyPwdDate")
|
|
.HasColumnType("datetime")
|
|
.HasComment("最后密码修改时间");
|
|
|
|
b.Property<string>("Modifier")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)")
|
|
.HasComment("修改人");
|
|
|
|
b.Property<DateTime?>("ModifyDate")
|
|
.HasColumnType("datetime")
|
|
.HasComment("修改时间");
|
|
|
|
b.Property<int?>("ModifyID")
|
|
.HasColumnType("int")
|
|
.HasComment("ModifyID");
|
|
|
|
b.Property<string>("PhoneNo")
|
|
.IsRequired()
|
|
.HasMaxLength(11)
|
|
.HasColumnType("nvarchar(11)")
|
|
.HasComment("手机号");
|
|
|
|
b.Property<string>("Remark")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)")
|
|
.HasComment("备注");
|
|
|
|
b.Property<string>("RoleName")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)")
|
|
.HasComment("角色");
|
|
|
|
b.Property<int>("Role_Id")
|
|
.HasColumnType("int")
|
|
.HasComment("角色Id");
|
|
|
|
b.Property<string>("SchoolCode")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(100)")
|
|
.HasComment("学校编号");
|
|
|
|
b.Property<string>("UserName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)")
|
|
.HasComment("帐号");
|
|
|
|
b.Property<string>("UserPwd")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)")
|
|
.HasComment("密码");
|
|
|
|
b.Property<string>("UserTrueName")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)")
|
|
.HasComment("姓名");
|
|
|
|
b.Property<string>("wx_HeadImgUrl")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("nvarchar(2000)")
|
|
.HasComment("微信头像");
|
|
|
|
b.Property<string>("wx_NickName")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)")
|
|
.HasComment("微信昵称");
|
|
|
|
b.Property<string>("wx_OpenID")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)")
|
|
.HasComment("微信OpenId");
|
|
|
|
b.Property<string>("wx_UnionID")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)")
|
|
.HasComment("微信UnionId");
|
|
|
|
b.HasKey("User_Id");
|
|
|
|
b.ToTable("User");
|
|
});
|
|
|
|
modelBuilder.Entity("YD_WeChatApplet.Entitys.TestTable", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasComment("Id");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<string>("Json")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(100)")
|
|
.HasComment("Json");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(100)")
|
|
.HasComment("Name");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("TestTable");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|