290 lines
10 KiB
C#
290 lines
10 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("20250226072133_20250226v1")]
|
|||
|
partial class _20250226v1
|
|||
|
{
|
|||
|
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")
|
|||
|
.HasMaxLength(200)
|
|||
|
.HasColumnType("nvarchar(200)")
|
|||
|
.HasComment("地址");
|
|||
|
|
|||
|
b.Property<DateTime?>("BirthDate")
|
|||
|
.HasColumnType("datetime")
|
|||
|
.HasComment("出生日期");
|
|||
|
|
|||
|
b.Property<DateTime?>("CreateDate")
|
|||
|
.HasColumnType("datetime")
|
|||
|
.HasComment("创建时间");
|
|||
|
|
|||
|
b.Property<int?>("Creator")
|
|||
|
.HasColumnType("int)")
|
|||
|
.HasComment("创建人");
|
|||
|
|
|||
|
b.Property<string>("Email")
|
|||
|
.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")
|
|||
|
.HasMaxLength(500)
|
|||
|
.HasColumnType("nvarchar(500)")
|
|||
|
.HasComment("头像");
|
|||
|
|
|||
|
b.Property<double?>("Height")
|
|||
|
.HasColumnType("float")
|
|||
|
.HasComment("身高");
|
|||
|
|
|||
|
b.Property<int?>("Modifier")
|
|||
|
.HasColumnType("int)")
|
|||
|
.HasComment("修改人");
|
|||
|
|
|||
|
b.Property<DateTime?>("ModifyDate")
|
|||
|
.HasColumnType("datetime")
|
|||
|
.HasComment("修改时间");
|
|||
|
|
|||
|
b.Property<string>("PhoneNo")
|
|||
|
.HasMaxLength(11)
|
|||
|
.HasColumnType("nvarchar(11)")
|
|||
|
.HasComment("手机号");
|
|||
|
|
|||
|
b.Property<Guid>("RelevanceId")
|
|||
|
.HasColumnType("uniqueidentifier");
|
|||
|
|
|||
|
b.Property<string>("Remarks")
|
|||
|
.HasColumnType("text")
|
|||
|
.HasComment("备注");
|
|||
|
|
|||
|
b.Property<string>("RoleName")
|
|||
|
.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")
|
|||
|
.HasMaxLength(200)
|
|||
|
.HasColumnType("nvarchar(200)")
|
|||
|
.HasComment("密码");
|
|||
|
|
|||
|
b.Property<string>("UserTrueName")
|
|||
|
.HasMaxLength(200)
|
|||
|
.HasColumnType("nvarchar(200)")
|
|||
|
.HasComment("姓名");
|
|||
|
|
|||
|
b.Property<double?>("Weight")
|
|||
|
.HasColumnType("float")
|
|||
|
.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.Api.SmartSportsEntitys.WCA_Category", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("int")
|
|||
|
.HasComment("Id");
|
|||
|
|
|||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|||
|
|
|||
|
b.Property<string>("CategoryEnum")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("nvarchar(100)")
|
|||
|
.HasComment("类别枚举名称");
|
|||
|
|
|||
|
b.Property<string>("CategoryName")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("nvarchar(100)")
|
|||
|
.HasComment("类别中文名称");
|
|||
|
|
|||
|
b.Property<int>("CategoryValue")
|
|||
|
.HasColumnType("int")
|
|||
|
.HasComment("类别枚举值");
|
|||
|
|
|||
|
b.Property<string>("Remarks")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("text")
|
|||
|
.HasComment("备注");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("WCA_Category");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("YD_WeChatApplet.Api.SmartSportsEntitys.WCA_ResourceDetails", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("int")
|
|||
|
.HasComment("Id");
|
|||
|
|
|||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|||
|
|
|||
|
b.Property<string>("ImageUrl")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("nvarchar(2000)")
|
|||
|
.HasComment("封面地址");
|
|||
|
|
|||
|
b.Property<string>("ResourceName")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("nvarchar(200)")
|
|||
|
.HasComment("资源名称");
|
|||
|
|
|||
|
b.Property<int>("ResourceTypeId")
|
|||
|
.HasColumnType("int")
|
|||
|
.HasComment("资源类型Id");
|
|||
|
|
|||
|
b.Property<string>("ResourceUrl")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("nvarchar(2000)")
|
|||
|
.HasComment("资源地址");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("WCA_ResourceDetails");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("YD_WeChatApplet.Api.SmartSportsEntitys.WCA_ResourceType", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("int")
|
|||
|
.HasComment("Id");
|
|||
|
|
|||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|||
|
|
|||
|
b.Property<string>("TypeName")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("nvarchar(200)")
|
|||
|
.HasComment("类型名称");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("WCA_ResourceType");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("YD_WeChatApplet.Api.SmartSportsEntitys.WCA_Week", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("int")
|
|||
|
.HasComment("Id");
|
|||
|
|
|||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|||
|
|
|||
|
b.Property<string>("Name")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("nvarchar(100)")
|
|||
|
.HasComment("Name");
|
|||
|
|
|||
|
b.Property<string>("Remarks")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("text")
|
|||
|
.HasComment("备注");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("WCA_Week");
|
|||
|
});
|
|||
|
|
|||
|
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
|
|||
|
}
|
|||
|
}
|
|||
|
}
|