using Microsoft.EntityFrameworkCore.Migrations; using System; #nullable disable namespace VOL.Core.Migrations { public partial class init015 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Ai_Result", columns: table => new { Id = table.Column(type: "int", nullable: false, comment: "Id") .Annotation("SqlServer:Identity", "1, 1"), Code = table.Column(type: "nvarchar(100)", nullable: true, comment: "AI设备的唯一编码"), TestTime = table.Column(type: "datetime2", nullable: true), StudentNo = table.Column(type: "nvarchar(max)", nullable: true), ItemCode = table.Column(type: "nvarchar(max)", nullable: true), TestResult = table.Column(type: "nvarchar(max)", nullable: true), Remark = table.Column(type: "nvarchar(max)", nullable: true), Duration = table.Column(type: "int", nullable: false), UniqueId = table.Column(type: "bigint", nullable: false), WrongResults = table.Column(type: "nvarchar(max)", nullable: true), CorrectJudge = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Ai_Result", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Ai_Result"); } } }