473c36d65f
Captures the IP when the user submits the CV match form and stores it on the token, giving a full audit trail: token holds the match-site IP, session holds the email link-click IP. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
33 lines
937 B
C#
33 lines
937 B
C#
using CvSearch.Data;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace CvSearch.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddClientIpToJobSearchTokens : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ClientIpAddress",
|
|
schema: MigrationConstants.SchemaName,
|
|
table: "JobSearchTokens",
|
|
type: "nvarchar(45)",
|
|
maxLength: 45,
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ClientIpAddress",
|
|
schema: MigrationConstants.SchemaName,
|
|
table: "JobSearchTokens");
|
|
}
|
|
}
|
|
}
|