using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace VOL.Core.Migrations { public partial class _20260109v2 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "JS_Class", columns: table => new { Id = table.Column(type: "bigint", nullable: false, comment: "Id") .Annotation("SqlServer:Identity", "1, 1"), SchoolCode = table.Column(type: "nvarchar(100)", nullable: true, comment: "学校编号"), Code = table.Column(type: "nvarchar(100)", nullable: true, comment: "AI设备的唯一编码"), GradeNo = table.Column(type: "nvarchar(100)", nullable: true, comment: "年级编号"), GradeName = table.Column(type: "nvarchar(100)", nullable: true, comment: "年级名称"), ClassNo = table.Column(type: "nvarchar(100)", nullable: true, comment: "班级编号"), ClassName = table.Column(type: "nvarchar(100)", nullable: true, comment: "班级名称") }, constraints: table => { table.PrimaryKey("PK_JS_Class", x => x.Id); }); migrationBuilder.CreateTable( name: "JS_Teacher", columns: table => new { Id = table.Column(type: "bigint", nullable: false, comment: "Id") .Annotation("SqlServer:Identity", "1, 1"), SchoolCode = table.Column(type: "nvarchar(100)", nullable: true, comment: "学校编号"), Code = table.Column(type: "nvarchar(100)", nullable: true, comment: "AI设备的唯一编码"), SchoolName = table.Column(type: "nvarchar(100)", nullable: true, comment: "学校名称"), TeacherNo = table.Column(type: "nvarchar(100)", nullable: true, comment: "教师编号"), TeacherName = table.Column(type: "nvarchar(100)", nullable: true, comment: "教师名称") }, constraints: table => { table.PrimaryKey("PK_JS_Teacher", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "JS_Class"); migrationBuilder.DropTable( name: "JS_Teacher"); } } }