59 lines
3.7 KiB
C#
59 lines
3.7 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace VOL.Core.Migrations
|
|
{
|
|
public partial class init101 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "Ai_FastJumpRopeData",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<int>(type: "int", nullable: false, comment: "Id")
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
SchoolCode = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "学校Code"),
|
|
Code = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "AI设备的唯一编码"),
|
|
ClassRoomRecordId = table.Column<int>(type: "int", nullable: false, comment: "课堂记录Id"),
|
|
ActivitiesId = table.Column<int>(type: "int", nullable: true, comment: "Ai赛场Id"),
|
|
UniqueId = table.Column<long>(type: "bigint", nullable: false, comment: "设备上传成绩时唯一标识, 重复时服务端不保存数据"),
|
|
GradeId = table.Column<int>(type: "int", nullable: false, comment: "年级编号"),
|
|
ClassId = table.Column<int>(type: "int", nullable: false, comment: "班级Id"),
|
|
GradeName = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "年级名称"),
|
|
ClassName = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "班级名称"),
|
|
StudentCount = table.Column<int>(type: "int", nullable: true, comment: "测试人数"),
|
|
TeacherId = table.Column<int>(type: "int", nullable: false, comment: "老师Id"),
|
|
TrainingModule = table.Column<int>(type: "int", nullable: false, comment: "训练模块[[1:专项教学/2:测评考级/3:AI赛场/4:AI体测]/5:速度跳绳"),
|
|
StartTime = table.Column<DateTime>(type: "datetime", nullable: true, comment: "开始时间"),
|
|
EndTime = table.Column<DateTime>(type: "datetime", nullable: true, comment: "结束时间"),
|
|
ScoreTime = table.Column<DateTime>(type: "datetime", nullable: false, comment: "测试时间"),
|
|
StudentNo = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "学号"),
|
|
StudentName = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "姓名"),
|
|
Sex = table.Column<int>(type: "int", nullable: false, comment: "学校Co性别de"),
|
|
MotionDuration = table.Column<int>(type: "int", nullable: true, comment: "运动时长/秒"),
|
|
RankEnum = table.Column<int>(type: "int", nullable: false, comment: "训练成绩等级"),
|
|
Rank = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "等级"),
|
|
ErrorNumber = table.Column<int>(type: "int", nullable: true, comment: "错误个数"),
|
|
JumpValue = table.Column<int>(type: "int", nullable: true, comment: "正确个数"),
|
|
Year = table.Column<int>(type: "int", nullable: false, comment: "当前年份"),
|
|
Semester = table.Column<int>(type: "int", nullable: false, comment: "学期")
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_Ai_FastJumpRopeData", x => x.Id);
|
|
}
|
|
);
|
|
}
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "Ai_FastJumpRopeData");
|
|
}
|
|
}
|
|
}
|