mh_custom/wtmProject.DataAccess/Migrations/20251014020832_hmr2025101401.cs
2026-01-06 10:55:05 +08:00

38 lines
1.6 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace wtmProject.DataAccess.Migrations
{
public partial class hmr2025101401 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "WTM_BILLING_LIST_YEAR",
columns: table => new
{
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
YEAR = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
TargetAmount = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
CreateBy = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
UpdateBy = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_WTM_BILLING_LIST_YEAR", x => x.ID);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "WTM_BILLING_LIST_YEAR");
}
}
}