using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace VOL.Core.Migrations { public partial class _20250314v1 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Y_StadiumVisiting", columns: table => new { Id = table.Column(type: "int", nullable: false, comment: "Id") .Annotation("SqlServer:Identity", "1, 1"), StadiumCode = table.Column(type: "nvarchar(100)", nullable: true, comment: "场馆编号"), PhoneNo = table.Column(type: "nvarchar(2000)", nullable: true, comment: "联系电话"), Status = table.Column(type: "int", nullable: false, comment: "状态"), // 修正了类型定义 VisitingTime = table.Column(type: "datetime", nullable: true, comment: "来访时间"), UserName = table.Column(type: "nvarchar(2000)", nullable: true, comment: "用户姓名"), UpdateTime = table.Column(type: "datetime", nullable: true, comment: "最后修改时间"), Remarks = table.Column(type: "text", nullable: true, comment: "备注") }, constraints: table => { table.PrimaryKey("PK_Y_StadiumVisiting", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Y_StadiumVisiting"); } } }