using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace VOL.Core.Migrations { public partial class _20260402v1 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "YL_Device"); migrationBuilder.DropColumn( name: "EduId", table: "S_Student"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "EduId", table: "S_Student", type: "nvarchar(100)", nullable: true, comment: "EduId"); migrationBuilder.CreateTable( name: "YL_Device", columns: table => new { Id = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), AndroidId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), CreateTime = table.Column(type: "datetime2", nullable: false), IMEI = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), IMSI = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), IsActive = table.Column(type: "int", nullable: false), IsCalibration = table.Column(type: "int", nullable: false), IsOnline = table.Column(type: "int", nullable: false), IsSynchronization = table.Column(type: "int", nullable: false), LastOnlineTime = table.Column(type: "datetime2", nullable: true), Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), Remark = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), SerialNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), SportStationId = table.Column(type: "bigint", nullable: false), TenantName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), UpdateTime = table.Column(type: "datetime2", nullable: true) }, constraints: table => { table.PrimaryKey("PK_YL_Device", x => x.Id); }); } } }