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(type: "int", nullable: false, comment: "Id") .Annotation("SqlServer:Identity", "1, 1"), SchoolCode = table.Column(type: "nvarchar(100)", nullable: true, comment: "学校Code"), Code = table.Column(type: "nvarchar(100)", nullable: true, comment: "AI设备的唯一编码"), ClassRoomRecordId = table.Column(type: "int", nullable: false, comment: "课堂记录Id"), ActivitiesId = table.Column(type: "int", nullable: true, comment: "Ai赛场Id"), UniqueId = table.Column(type: "bigint", nullable: false, comment: "设备上传成绩时唯一标识, 重复时服务端不保存数据"), GradeId = table.Column(type: "int", nullable: false, comment: "年级编号"), ClassId = table.Column(type: "int", nullable: false, comment: "班级Id"), GradeName = table.Column(type: "nvarchar(100)", nullable: true, comment: "年级名称"), ClassName = table.Column(type: "nvarchar(100)", nullable: true, comment: "班级名称"), StudentCount = table.Column(type: "int", nullable: true, comment: "测试人数"), TeacherId = table.Column(type: "int", nullable: false, comment: "老师Id"), TrainingModule = table.Column(type: "int", nullable: false, comment: "训练模块[[1:专项教学/2:测评考级/3:AI赛场/4:AI体测]/5:速度跳绳"), StartTime = table.Column(type: "datetime", nullable: true, comment: "开始时间"), EndTime = table.Column(type: "datetime", nullable: true, comment: "结束时间"), ScoreTime = table.Column(type: "datetime", nullable: false, comment: "测试时间"), StudentNo = table.Column(type: "nvarchar(100)", nullable: true, comment: "学号"), StudentName = table.Column(type: "nvarchar(100)", nullable: true, comment: "姓名"), Sex = table.Column(type: "int", nullable: false, comment: "学校Co性别de"), MotionDuration = table.Column(type: "int", nullable: true, comment: "运动时长/秒"), RankEnum = table.Column(type: "int", nullable: false, comment: "训练成绩等级"), Rank = table.Column(type: "nvarchar(100)", nullable: true, comment: "等级"), ErrorNumber = table.Column(type: "int", nullable: true, comment: "错误个数"), JumpValue = table.Column(type: "int", nullable: true, comment: "正确个数"), Year = table.Column(type: "int", nullable: false, comment: "当前年份"), Semester = table.Column(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"); } } }