37 lines
1.5 KiB
C#
37 lines
1.5 KiB
C#
|
using System;
|
|||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace VOL.Core.Migrations
|
|||
|
{
|
|||
|
public partial class _20250708v1 : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.CreateTable(
|
|||
|
name: "Ai_ScanCodeLogin",
|
|||
|
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设备的唯一编码"),
|
|||
|
SchoolCode = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "学校编号"),
|
|||
|
TeacherId = table.Column<int>(type: "int", nullable: false, comment: "老师Id"),
|
|||
|
TeacherPhoneNo = table.Column<string>(type: "nvarchar(20)", nullable: true, comment: "老师联系方式"),
|
|||
|
CreateDate = table.Column<DateTime>(type: "datetime", nullable: true, comment: "创建时间")
|
|||
|
},
|
|||
|
constraints: table =>
|
|||
|
{
|
|||
|
table.PrimaryKey("PK_Ai_ScanCodeLogin", x => x.Id);
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropTable(
|
|||
|
name: "Ai_ScanCodeLogin");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|