YD_SmartSports.Api/VOL.Core/Migrations/20240426064505_init006.cs

93 lines
5.6 KiB
C#
Raw Permalink Normal View History

2025-06-06 16:00:39 +08:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace VOL.Core.Migrations
{
public partial class init006 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "I_SportsTestData",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false, comment: "Id")
.Annotation("SqlServer:Identity", "1, 1"),
Chinning = table.Column<int>(type: "int", nullable: false),
ClassId = table.Column<int>(type: "int", nullable: false),
ClassName = table.Column<string>(type: "nvarchar(max)", nullable: true),
Gender = table.Column<int>(type: "int", nullable: false),
GradeId = table.Column<int>(type: "int", nullable: false),
GradeName = table.Column<string>(type: "nvarchar(max)", nullable: true),
Hectometer = table.Column<int>(type: "int", nullable: false),
Height = table.Column<double>(type: "float", nullable: false),
Kilometer = table.Column<int>(type: "int", nullable: false),
Pliable = table.Column<double>(type: "float", nullable: false),
Pulmonary = table.Column<int>(type: "int", nullable: false),
Rope = table.Column<int>(type: "int", nullable: false),
SchoolCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
SchoolName = table.Column<string>(type: "nvarchar(max)", nullable: true),
ScoreTime = table.Column<string>(type: "nvarchar(max)", nullable: true),
Situp = table.Column<int>(type: "int", nullable: false),
Speed = table.Column<double>(type: "float", nullable: false),
Speedeight = table.Column<int>(type: "int", nullable: false),
Standing = table.Column<int>(type: "int", nullable: false),
StudenNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
StudentName = table.Column<string>(type: "nvarchar(max)", nullable: true),
StudentNo = table.Column<string>(type: "nvarchar(max)", nullable: true),
TeacherId = table.Column<int>(type: "int", nullable: false),
TeacherName = table.Column<string>(type: "nvarchar(max)", nullable: true),
Weight = table.Column<double>(type: "float", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_I_SportsTestData", x => x.Id);
});
migrationBuilder.CreateTable(
name: "I_TankingLData",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false, comment: "Id")
.Annotation("SqlServer:Identity", "1, 1"),
ClassId = table.Column<int>(type: "int", nullable: false),
ClassScore = table.Column<int>(type: "int", nullable: false),
Efficiency = table.Column<double>(type: "float", nullable: false),
EndTime = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorNumber = table.Column<int>(type: "int", nullable: false),
Gender = table.Column<int>(type: "int", nullable: false),
GradeId = table.Column<int>(type: "int", nullable: false),
HeartRatePercentage = table.Column<int>(type: "int", nullable: false),
HighHeartRate = table.Column<int>(type: "int", nullable: false),
InsertTime = table.Column<string>(type: "nvarchar(max)", nullable: true),
ItemType = table.Column<int>(type: "int", nullable: false),
JumpValue = table.Column<int>(type: "int", nullable: false),
Kcal = table.Column<string>(type: "nvarchar(max)", nullable: true),
LimitNumber = table.Column<int>(type: "int", nullable: false),
LimitTime = table.Column<int>(type: "int", nullable: false),
LowHeartRate = table.Column<int>(type: "int", nullable: false),
ModeType = table.Column<int>(type: "int", nullable: false),
ModelName = table.Column<int>(type: "int", nullable: false),
ResultLevel = table.Column<int>(type: "int", nullable: false),
SecondsNumber = table.Column<double>(type: "float", nullable: false),
StuAgileSpeedTimeNumber = table.Column<int>(type: "int", nullable: false),
StudentName = table.Column<string>(type: "nvarchar(max)", nullable: true),
StudentNo = table.Column<string>(type: "nvarchar(max)", nullable: true),
TeacherId = table.Column<int>(type: "int", nullable: false),
TotalNumber = table.Column<int>(type: "int", nullable: false),
TrainType = table.Column<int>(type: "int", nullable: false),
TtotalGroup = table.Column<int>(type: "int", nullable: false),
speedTime = table.Column<double>(type: "float", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_I_TankingLData", x => x.Id);
});
}
}
}