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(type: "int", nullable: false, comment: "Id") .Annotation("SqlServer:Identity", "1, 1"), Code = table.Column(type: "nvarchar(100)", nullable: true, comment: "AI设备的唯一编码"), SchoolCode = table.Column(type: "nvarchar(100)", nullable: true, comment: "学校编号"), TeacherId = table.Column(type: "int", nullable: false, comment: "老师Id"), TeacherPhoneNo = table.Column(type: "nvarchar(20)", nullable: true, comment: "老师联系方式"), CreateDate = table.Column(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"); } } }