using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace VOL.Core.Migrations { public partial class _20250225v3 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "XW_TrainViolationsBO", columns: table => new { Id = table.Column(type: "int", nullable: false, comment: "Id") .Annotation("SqlServer:Identity", "1, 1"), ViolationId = table.Column(type: "int", nullable: true, comment: "违规动作编号"), PicUrl = table.Column(type: "nvarchar(max)", nullable: true, comment: "违规动图地址"), SkipStumblingNumber = table.Column(type: "int", nullable: true, comment: "跳绳绊脚次数"), TrainTime = table.Column(type: "nvarchar(max)", nullable: true, comment: "违规动作训练时间"), XW_TrainStudentsId = table.Column(type: "int", nullable: true) }, constraints: table => { table.PrimaryKey("PK_XW_TrainViolationsBO", x => x.Id); table.ForeignKey( name: "FK_XW_TrainViolationsBO_XW_TrainStudents_XW_TrainStudentsId", column: x => x.XW_TrainStudentsId, principalTable: "XW_TrainStudents", principalColumn: "Id"); }); migrationBuilder.CreateIndex( name: "IX_XW_TrainViolationsBO_XW_TrainStudentsId", table: "XW_TrainViolationsBO", column: "XW_TrainStudentsId"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "XW_TrainViolationsBO"); } } }