YD_SmartSports.Api/VOL.Core/Migrations/20240911072335_init056.cs
2025-06-06 16:00:39 +08:00

84 lines
7.0 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
using System;
#nullable disable
namespace VOL.Core.Migrations
{
public partial class init056 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "N_StudentPerformanceStats");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "N_StudentPerformanceStats",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false, comment: "Id")
.Annotation("SqlServer:Identity", "1, 1"),
AccumulatedRopeSkipCount = table.Column<int>(type: "int", nullable: false, comment: "累计跳绳次数"),
AccumulatedTrainCount = table.Column<int>(type: "int", nullable: false, comment: "累计训练次数"),
AccumulatedTrainDuration = table.Column<int>(type: "int", nullable: false, comment: "累计训练时长"),
Age = table.Column<int>(type: "int", nullable: false, comment: "年龄"),
AvgConsume = table.Column<int>(type: "int", nullable: false, comment: "平均消耗"),
AvgHeartRate = table.Column<int>(type: "int", nullable: false, comment: "平均心率"),
AvgRopeSkipCount = table.Column<int>(type: "int", nullable: false, comment: "平均跳绳次数"),
BMI = table.Column<double>(type: "float", nullable: false, comment: "BMI"),
BmiRank = table.Column<int>(type: "int", nullable: false, comment: "BMI等级"),
ClassName = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "班级名称"),
CreateDate = table.Column<DateTime>(type: "datetime", nullable: true, comment: "创建时间"),
Creator = table.Column<int>(type: "int)", nullable: false, comment: "创建人"),
CrossQuadrantJump = table.Column<double>(type: "float", nullable: false, comment: "十字急限跳"),
CrossQuadrantJumpRank = table.Column<int>(type: "int", nullable: false, comment: "十字急限跳等级"),
ExerciseDuration = table.Column<int>(type: "int", nullable: false, comment: "运动时长"),
ExerciseFrequency = table.Column<int>(type: "int", nullable: false, comment: "运动次数"),
GradeName = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "年级名称"),
HeartRate = table.Column<double>(type: "float", nullable: false, comment: "心率"),
HeartRateRank = table.Column<int>(type: "int", nullable: false, comment: "心率等级"),
MeterRun_1000_M = table.Column<double>(type: "float", nullable: false, comment: "1000米跑(男)"),
MeterRun_1000_MRank = table.Column<int>(type: "int", nullable: false, comment: "1000米跑(男)等级"),
MeterRun_50 = table.Column<double>(type: "float", nullable: false, comment: "50米跑"),
MeterRun_50Rank = table.Column<int>(type: "int", nullable: false, comment: "50米跑等级"),
MeterRun_800_F = table.Column<double>(type: "float", nullable: false, comment: "800米跑(女)等级"),
MeterRun_800_FRank = table.Column<int>(type: "int", nullable: false, comment: "800米跑(女)等级"),
Modifier = table.Column<int>(type: "int)", nullable: false, comment: "修改人"),
ModifyDate = table.Column<DateTime>(type: "datetime", nullable: true, comment: "修改时间"),
OneMinuteJumpRope = table.Column<double>(type: "float", nullable: false, comment: "1分钟跳绳"),
OneMinuteJumpRopeRank = table.Column<int>(type: "int", nullable: false, comment: "1分钟跳绳等级"),
One_Minute_Sit_Up_F = table.Column<double>(type: "float", nullable: false, comment: "1分钟仰卧起坐(女)"),
One_Minute_Sit_Up_FRank = table.Column<int>(type: "int", nullable: false, comment: "1分钟仰卧起坐(女)等级"),
One_Minute_Sit_Up_M = table.Column<double>(type: "float", nullable: false, comment: "1分钟仰卧起坐(男)"),
One_Minute_Sit_Up_MRank = table.Column<int>(type: "int", nullable: false, comment: "1分钟仰卧起坐(男)等级"),
Pull_Up_M = table.Column<double>(type: "float", nullable: false, comment: "引体向上(男)"),
Pull_Up_MRank = table.Column<int>(type: "int", nullable: false, comment: "引体向上(男)等级"),
Remarks = table.Column<string>(type: "text", nullable: true, comment: "备注"),
RopeSkipping_30s = table.Column<double>(type: "float", nullable: false, comment: "30秒跳绳"),
RopeSkipping_30sRank = table.Column<int>(type: "int", nullable: false, comment: "30秒跳绳等级"),
RopeSkipping_4m = table.Column<double>(type: "float", nullable: false, comment: "4分钟跳绳"),
RopeSkipping_4mRank = table.Column<int>(type: "int", nullable: false, comment: "4分钟跳绳等级"),
Sex = table.Column<int>(type: "int", nullable: false, comment: "性别"),
ShuttleRun_50x8 = table.Column<double>(type: "float", nullable: false, comment: "50米x8往返跑"),
ShuttleRun_50x8Rank = table.Column<int>(type: "int", nullable: false, comment: "50米x8往返跑等级"),
Sit_And_Reach = table.Column<double>(type: "float", nullable: false, comment: "坐位体前屈"),
Sit_And_ReachRank = table.Column<int>(type: "int", nullable: false, comment: "坐位体前屈等级"),
StandingLongJump = table.Column<double>(type: "float", nullable: false, comment: "立定跳远"),
StandingLongJumpRank = table.Column<int>(type: "int", nullable: false, comment: "立定跳远等级"),
StudentName = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "学生名称"),
StudentNo = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "学生学号"),
Vision_L = table.Column<double>(type: "float", nullable: false, comment: "视力/左"),
Vision_R = table.Column<double>(type: "float", nullable: false, comment: "视力/右"),
VitalCapacity = table.Column<double>(type: "float", nullable: false, comment: "肺活量"),
VitalCapacityRank = table.Column<int>(type: "int", nullable: false, comment: "肺活量等级")
},
constraints: table =>
{
table.PrimaryKey("PK_N_StudentPerformanceStats", x => x.Id);
});
}
}
}