//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using VOL.Core.EFDbContext;
#nullable disable
namespace VOL.Core.Migrations
{
[DbContext(typeof(VOLContext))]
[Migration("20240426064352_init005")]
partial class init005
{
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("VOL.Entity.DomainModels.App_Appointment", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasMaxLength(36)
.HasColumnType("uniqueidentifier");
b.Property("CreateDate")
.HasColumnType("datetime");
b.Property("CreateID")
.HasColumnType("int");
b.Property("Creator")
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property("Describe")
.IsRequired()
.HasMaxLength(250)
.HasColumnType("nvarchar(250)");
b.Property("Modifier")
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property("ModifyDate")
.HasColumnType("datetime");
b.Property("ModifyID")
.HasColumnType("int");
b.Property("Name")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("PhoneNo")
.IsRequired()
.HasMaxLength(15)
.HasColumnType("nvarchar(15)");
b.HasKey("Id");
b.ToTable("App_Appointment");
});
modelBuilder.Entity("VOL.Entity.DomainModels.App_Expert", b =>
{
b.Property("ExpertId")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ExpertId"), 1L, 1);
b.Property("AuditDate")
.HasColumnType("datetime");
b.Property("AuditId")
.HasColumnType("int");
b.Property("AuditStatus")
.HasColumnType("int");
b.Property("Auditor")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.Property("Certificate")
.HasMaxLength(2500)
.HasColumnType("nvarchar(2500)");
b.Property("City")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("Company")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("CreateDate")
.HasColumnType("datetime");
b.Property("CreateID")
.HasColumnType("int");
b.Property("Creator")
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property("Education")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("Enable")
.HasColumnType("int");
b.Property("ExpertName")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.Property("HeadImageUrl")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("IDNumber")
.HasMaxLength(18)
.HasColumnType("nvarchar(18)");
b.Property("Modifier")
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property("ModifyDate")
.HasColumnType("datetime");
b.Property("ModifyID")
.HasColumnType("int");
b.Property("PhoneNo")
.HasMaxLength(11)
.HasColumnType("nvarchar(11)");
b.Property("Professional")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("ReallyName")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.Property("Resume")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("SpecialField")
.HasMaxLength(800)
.HasColumnType("nvarchar(800)");
b.Property("UserName")
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property("UserTrueName")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("User_Id")
.HasColumnType("int");
b.HasKey("ExpertId");
b.ToTable("App_Expert");
});
modelBuilder.Entity("VOL.Entity.DomainModels.App_News", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("Author")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("BigImageUrls")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("Content")
.HasColumnType("nvarchar(max)");
b.Property("CreateDate")
.HasColumnType("datetime");
b.Property("CreateID")
.HasColumnType("int");
b.Property("Creator")
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property("DailyRecommend")
.HasColumnType("int");
b.Property("DetailUrl")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property("Enable")
.HasColumnType("int");
b.Property("ImageUrl")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("Modifier")
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property("ModifyDate")
.HasColumnType("datetime");
b.Property("ModifyID")
.HasColumnType("int");
b.Property("NewsType")
.HasColumnType("int");
b.Property("OrderNo")
.HasColumnType("int");
b.Property("ReleaseDate")
.HasColumnType("datetime");
b.Property("Title")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("ViewCount")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("App_News");
});
modelBuilder.Entity("VOL.Entity.DomainModels.App_ReportPrice", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("Age")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("AuditDate")
.HasColumnType("datetime");
b.Property("AuditId")
.HasColumnType("int");
b.Property("AuditStatus")
.HasColumnType("int");
b.Property("Auditor")
.HasMaxLength(40)
.HasColumnType("nvarchar(40)");
b.Property("City")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property("CreateDate")
.HasColumnType("datetime");
b.Property("CreateID")
.HasColumnType("int");
b.Property("Creator")
.HasMaxLength(60)
.HasColumnType("nvarchar(60)");
b.Property("Enable")
.HasColumnType("int");
b.Property("Modifier")
.HasMaxLength(60)
.HasColumnType("nvarchar(60)");
b.Property("ModifyDate")
.HasColumnType("datetime");
b.Property("ModifyID")
.HasColumnType("int");
b.Property("Price")
.HasColumnType("numeric");
b.Property("Variety")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)");
b.HasKey("Id");
b.ToTable("App_ReportPrice");
});
modelBuilder.Entity("VOL.Entity.DomainModels.App_Transaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("CowType")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("CreateDate")
.HasColumnType("datetime");
b.Property("CreateID")
.HasColumnType("int");
b.Property("Creator")
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property("Describe")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("Enable")
.HasColumnType("int");
b.Property("Modifier")
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property("ModifyDate")
.HasColumnType("datetime");
b.Property("ModifyID")
.HasColumnType("int");
b.Property("Name")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("PhoneNo")
.IsRequired()
.HasMaxLength(15)
.HasColumnType("nvarchar(15)");
b.Property("Quantity")
.HasColumnType("int");
b.Property("TransactionType")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("App_Transaction");
});
modelBuilder.Entity("VOL.Entity.DomainModels.App_TransactionAvgPrice", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("AgeRange")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("AvgPrice")
.HasColumnType("decimal");
b.Property("City")
.IsRequired()
.HasMaxLength(15)
.HasColumnType("nvarchar(15)");
b.Property("CreateDate")
.HasColumnType("datetime");
b.Property("CreateID")
.HasColumnType("int");
b.Property("Creator")
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property("Date")
.HasColumnType("date");
b.Property("Enable")
.HasColumnType("int");
b.Property("IsTop")
.HasColumnType("int");
b.Property("Modifier")
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property("ModifyDate")
.HasColumnType("datetime");
b.Property("ModifyID")
.HasColumnType("int");
b.Property("Variety")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.HasKey("Id");
b.ToTable("App_TransactionAvgPrice");
});
modelBuilder.Entity("VOL.Entity.DomainModels.Business.People.S_GradeAssocCategory", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasComment("Id");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("CategoryId")
.HasColumnType("int")
.HasComment("测试类别Id");
b.Property("CreateDate")
.HasColumnType("datetime")
.HasComment("创建时间");
b.Property("Creator")
.HasColumnType("int)")
.HasComment("创建人");
b.Property("GradeId")
.HasColumnType("int")
.HasComment("年级Id");
b.Property("Modifier")
.HasColumnType("int)")
.HasComment("修改人");
b.Property("ModifyDate")
.HasColumnType("datetime")
.HasComment("修改时间");
b.HasKey("Id");
b.ToTable("S_GradeAssocCategory");
});
modelBuilder.Entity("VOL.Entity.DomainModels.Business.People.S_SchoolAssocGrade", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasComment("Id");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("CreateDate")
.HasColumnType("datetime")
.HasComment("创建时间");
b.Property("Creator")
.HasColumnType("int)")
.HasComment("创建人");
b.Property("GradeId")
.HasColumnType("int")
.HasComment("年级Id");
b.Property("Modifier")
.HasColumnType("int)")
.HasComment("修改人");
b.Property("ModifyDate")
.HasColumnType("datetime")
.HasComment("修改时间");
b.Property("SchoolId")
.HasColumnType("int")
.HasComment("学校Id");
b.HasKey("Id");
b.ToTable("S_SchoolAssocGrade");
});
modelBuilder.Entity("VOL.Entity.DomainModels.Business.People.S_SchoolNature", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasComment("Id");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("CreateDate")
.HasColumnType("datetime")
.HasComment("创建时间");
b.Property("Creator")
.HasColumnType("int)")
.HasComment("创建人");
b.Property("Modifier")
.HasColumnType("int)")
.HasComment("修改人");
b.Property("ModifyDate")
.HasColumnType("datetime")
.HasComment("修改时间");
b.Property("NatureEnum")
.HasColumnType("nvarchar(100)")
.HasComment("类别名称");
b.Property("NatureName")
.HasColumnType("nvarchar(100)")
.HasComment("类别名称");
b.Property("Remarks")
.HasColumnType("text")
.HasComment("备注");
b.HasKey("Id");
b.ToTable("S_SchoolNature");
});
modelBuilder.Entity("VOL.Entity.DomainModels.FormCollectionObject", b =>
{
b.Property("FormCollectionId")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("CreateDate")
.HasColumnType("datetime");
b.Property("CreateID")
.HasColumnType("int");
b.Property("Creator")
.HasMaxLength(60)
.HasColumnType("nvarchar(60)");
b.Property("FormData")
.HasColumnType("nvarchar(max)");
b.Property("FormId")
.HasColumnType("uniqueidentifier");
b.Property("Modifier")
.HasMaxLength(60)
.HasColumnType("nvarchar(60)");
b.Property("ModifyDate")
.HasColumnType("datetime");
b.Property("ModifyID")
.HasColumnType("int");
b.Property("Title")
.HasColumnType("nvarchar(max)");
b.HasKey("FormCollectionId");
b.ToTable("FormCollectionObject");
});
modelBuilder.Entity("VOL.Entity.DomainModels.FormDesignOptions", b =>
{
b.Property("FormId")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("CreateDate")
.HasColumnType("datetime");
b.Property("CreateID")
.HasColumnType("int");
b.Property("Creator")
.HasMaxLength(60)
.HasColumnType("nvarchar(60)");
b.Property("DaraggeOptions")
.HasColumnType("nvarchar(max)");
b.Property("FormConfig")
.HasColumnType("nvarchar(max)");
b.Property("FormFields")
.HasColumnType("nvarchar(max)");
b.Property("FormOptions")
.HasColumnType("nvarchar(max)");
b.Property("Modifier")
.HasMaxLength(60)
.HasColumnType("nvarchar(60)");
b.Property("ModifyDate")
.HasColumnType("datetime");
b.Property("ModifyID")
.HasColumnType("int");
b.Property("TableConfig")
.HasColumnType("nvarchar(max)");
b.Property("Title")
.IsRequired()
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.HasKey("FormId");
b.ToTable("FormDesignOptions");
});
modelBuilder.Entity("VOL.Entity.DomainModels.G_Activities", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasComment("Id");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("ActivitiesName")
.HasColumnType("nvarchar(100)")
.HasComment("赛事名称");
b.Property("ActivitiesStatus")
.HasColumnType("int")
.HasComment("状态");
b.Property("CategoryId")
.HasColumnType("int")
.HasComment("测试类别Id");
b.Property("CategoryName")
.HasColumnType("nvarchar(100)")
.HasComment("类别名称");
b.Property("CreateDate")
.HasColumnType("datetime")
.HasComment("创建时间");
b.Property("Creator")
.HasColumnType("int)")
.HasComment("创建人");
b.Property("EndDate")
.HasColumnType("datetime")
.HasComment("活动结束时间");
b.Property("Modifier")
.HasColumnType("int)")
.HasComment("修改人");
b.Property("ModifyDate")
.HasColumnType("datetime")
.HasComment("修改时间");
b.Property("StartDate")
.HasColumnType("datetime")
.HasComment("活动开始时间");
b.HasKey("Id");
b.ToTable("G_Activities");
});
modelBuilder.Entity("VOL.Entity.DomainModels.G_ActivitiesEntry", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasComment("Id");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("ActivitiesId")
.HasColumnType("int");
b.Property("CreateDate")
.HasColumnType("datetime")
.HasComment("创建时间");
b.Property("Creator")
.HasColumnType("int)")
.HasComment("创建人");
b.Property("Modifier")
.HasColumnType("int)")
.HasComment("修改人");
b.Property("ModifyDate")
.HasColumnType("datetime")
.HasComment("修改时间");
b.Property("Participants")
.HasColumnType("nvarchar(100)")
.HasComment("参赛对象");
b.HasKey("Id");
b.ToTable("G_ActivitiesEntry");
});
modelBuilder.Entity("VOL.Entity.DomainModels.G_EntryStudent", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasComment("Id");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("ClassId")
.HasColumnType("int")
.HasComment("班级Id");
b.Property("ClassName")
.HasColumnType("nvarchar(100)")
.HasComment("班级名称");
b.Property("G_ActivitiesEntryId")
.HasColumnType("int")
.HasComment("报名Id");
b.Property("GradeId")
.HasColumnType("int")
.HasComment("年级Id");
b.Property("GradeName")
.HasColumnType("nvarchar(100)")
.HasComment("年级名称");
b.Property("Photo")
.HasColumnType("nvarchar(2000)")
.HasComment("学生照片");
b.Property("Sex")
.HasColumnType("int")
.HasComment("性别");
b.Property("StudentName")
.HasColumnType("nvarchar(100)")
.HasComment("学生名称");
b.Property("StudentNo")
.HasColumnType("nvarchar(100)")
.HasComment("学生学号");
b.HasKey("Id");
b.HasIndex("G_ActivitiesEntryId");
b.ToTable("G_EntryStudent");
});
modelBuilder.Entity("VOL.Entity.DomainModels.I_SportsTestData", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasComment("Id");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("Chinning")
.HasColumnType("int");
b.Property("ClassId")
.HasColumnType("int");
b.Property("ClassName")
.HasColumnType("nvarchar(max)");
b.Property("Gender")
.HasColumnType("int");
b.Property("GradeId")
.HasColumnType("int");
b.Property("GradeName")
.HasColumnType("nvarchar(max)");
b.Property("Hectometer")
.HasColumnType("int");
b.Property("Height")
.HasColumnType("float");
b.Property("Kilometer")
.HasColumnType("int");
b.Property("Pliable")
.HasColumnType("float");
b.Property("Pulmonary")
.HasColumnType("int");
b.Property("Rope")
.HasColumnType("int");
b.Property("SchoolCode")
.HasColumnType("nvarchar(max)");
b.Property("SchoolName")
.HasColumnType("nvarchar(max)");
b.Property("ScoreTime")
.HasColumnType("nvarchar(max)");
b.Property("Situp")
.HasColumnType("int");
b.Property("Speed")
.HasColumnType("float");
b.Property("Speedeight")
.HasColumnType("int");
b.Property("Standing")
.HasColumnType("int");
b.Property("StudenNumber")
.HasColumnType("nvarchar(max)");
b.Property("StudentName")
.HasColumnType("nvarchar(max)");
b.Property("StudentNo")
.HasColumnType("nvarchar(max)");
b.Property("TeacherId")
.HasColumnType("int");
b.Property("TeacherName")
.HasColumnType("nvarchar(max)");
b.Property("Weight")
.HasColumnType("float");
b.HasKey("Id");
b.ToTable("I_SportsTestData");
});
modelBuilder.Entity("VOL.Entity.DomainModels.I_TankingLData", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasComment("Id");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("ClassId")
.HasColumnType("int");
b.Property("ClassScore")
.HasColumnType("int");
b.Property("Efficiency")
.HasColumnType("float");
b.Property("EndTime")
.HasColumnType("nvarchar(max)");
b.Property("ErrorNumber")
.HasColumnType("int");
b.Property("Gender")
.HasColumnType("int");
b.Property("GradeId")
.HasColumnType("int");
b.Property("HeartRatePercentage")
.HasColumnType("int");
b.Property("HighHeartRate")
.HasColumnType("int");
b.Property("InsertTime")
.HasColumnType("nvarchar(max)");
b.Property("ItemType")
.HasColumnType("int");
b.Property("JumpValue")
.HasColumnType("int");
b.Property("Kcal")
.HasColumnType("nvarchar(max)");
b.Property("LimitNumber")
.HasColumnType("int");
b.Property("LimitTime")
.HasColumnType("int");
b.Property("LowHeartRate")
.HasColumnType("int");
b.Property("ModeType")
.HasColumnType("int");
b.Property("ModelName")
.HasColumnType("int");
b.Property("ResultLevel")
.HasColumnType("int");
b.Property("SecondsNumber")
.HasColumnType("float");
b.Property("StuAgileSpeedTimeNumber")
.HasColumnType("int");
b.Property("StudentName")
.HasColumnType("nvarchar(max)");
b.Property("StudentNo")
.HasColumnType("nvarchar(max)");
b.Property("TeacherId")
.HasColumnType("int");
b.Property("TotalNumber")
.HasColumnType("int");
b.Property("TrainType")
.HasColumnType("int");
b.Property("TtotalGroup")
.HasColumnType("int");
b.Property("speedTime")
.HasColumnType("float");
b.HasKey("Id");
b.ToTable("I_TankingLData");
});
modelBuilder.Entity("VOL.Entity.DomainModels.N_HealthStandards", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasComment("Id");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("CategoryEnum")
.HasColumnType("nvarchar(100)")
.HasComment("类别名称");
b.Property("CreateDate")
.HasColumnType("datetime")
.HasComment("创建时间");
b.Property("Creator")
.HasColumnType("int)")
.HasComment("创建人");
b.Property("GradeId")
.HasColumnType("int")
.HasComment("年级Id");
b.Property("MaxValue")
.HasColumnType("float")
.HasComment("标准值(大)");
b.Property("MinValue")
.HasColumnType("float")
.HasComment("标准值(小)");
b.Property("Modifier")
.HasColumnType("int)")
.HasComment("修改人");
b.Property("ModifyDate")
.HasColumnType("datetime")
.HasComment("修改时间");
b.Property("Rank")
.HasColumnType("nvarchar(100)")
.HasComment("等级");
b.Property("Score")
.HasColumnType("float")
.HasComment("得分");
b.Property("Sex")
.HasColumnType("int")
.HasComment("性别");
b.HasKey("Id");
b.ToTable("N_HealthStandards");
});
modelBuilder.Entity("VOL.Entity.DomainModels.N_SportsTestCategory", b =>
{
b.Property