40 lines
1.7 KiB
C#
40 lines
1.7 KiB
C#
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<int>(type: "int", nullable: false, comment: "Id")
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
StadiumCode = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "场馆编号"),
|
|
PhoneNo = table.Column<string>(type: "nvarchar(2000)", nullable: true, comment: "联系电话"),
|
|
Status = table.Column<int>(type: "int", nullable: false, comment: "状态"), // 修正了类型定义
|
|
VisitingTime = table.Column<DateTime>(type: "datetime", nullable: true, comment: "来访时间"),
|
|
UserName = table.Column<string>(type: "nvarchar(2000)", nullable: true, comment: "用户姓名"),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime", nullable: true, comment: "最后修改时间"),
|
|
Remarks = table.Column<string>(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");
|
|
}
|
|
}
|
|
}
|