YD_WeChatApplet.Api/WeChatApplet/Migrations/20241008063150_init007.cs
2025-06-06 14:57:20 +08:00

50 lines
1.3 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace YD_WeChatApplet.Api.Migrations
{
public partial class init007 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "BirthDate",
table: "User",
type: "datetime",
nullable: true,
comment: "出生日期");
migrationBuilder.AddColumn<double>(
name: "Height",
table: "User",
type: "float",
nullable: true,
comment: "身高");
migrationBuilder.AddColumn<double>(
name: "Weight",
table: "User",
type: "float",
nullable: true,
comment: "体重");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "BirthDate",
table: "User");
migrationBuilder.DropColumn(
name: "Height",
table: "User");
migrationBuilder.DropColumn(
name: "Weight",
table: "User");
}
}
}