feat: Add Customer field to Project entity
Adds a customer name field to projects for better job tracking and identification on reports. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
28
CutList.Web/Migrations/20260202041453_AddProjectCustomer.cs
Normal file
28
CutList.Web/Migrations/20260202041453_AddProjectCustomer.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace CutList.Web.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddProjectCustomer : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Customer",
|
||||
table: "Projects",
|
||||
type: "nvarchar(max)",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Customer",
|
||||
table: "Projects");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user