mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 04:53:11 +00:00
- VerifiedBy and VerifiedAt fields on Dispatch model - VerifyDispatch endpoint validates all checklist items complete + both signoffs present - Returns missing items list if validation fails - Sets status to Verified, logs to audit trail - GetDispatchById includes verifiedBy and verifiedAt - Migration for new fields
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Data.SeaHavenIndustries.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddDispatchVerification : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "VerifiedAt",
|
|
table: "Dispatches",
|
|
type: "datetime2",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VerifiedBy",
|
|
table: "Dispatches",
|
|
type: "nvarchar(max)",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "VerifiedAt",
|
|
table: "Dispatches");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VerifiedBy",
|
|
table: "Dispatches");
|
|
}
|
|
}
|
|
}
|