YD_SmartSports.Api/VOL.Core/Migrations/20240521065730_init015.cs

41 lines
1.8 KiB
C#
Raw Permalink Normal View History

2025-06-06 16:00:39 +08:00
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<int>(type: "int", nullable: false, comment: "Id")
.Annotation("SqlServer:Identity", "1, 1"),
Code = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "AI设备的唯一编码"),
TestTime = table.Column<DateTime>(type: "datetime2", nullable: true),
StudentNo = table.Column<string>(type: "nvarchar(max)", nullable: true),
ItemCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
TestResult = table.Column<string>(type: "nvarchar(max)", nullable: true),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
Duration = table.Column<int>(type: "int", nullable: false),
UniqueId = table.Column<long>(type: "bigint", nullable: false),
WrongResults = table.Column<string>(type: "nvarchar(max)", nullable: true),
CorrectJudge = table.Column<string>(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");
}
}
}