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