Ship legacy migrate APIs, portfolio/blog old-id schema, and admin migrate/purge flows.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-07-29 16:10:41 +03:30
co-authored by Cursor
parent 7244b70e90
commit 4598add88c
32 changed files with 4234 additions and 265 deletions
@@ -3,6 +3,7 @@ import {
IsArray,
IsInt,
IsOptional,
IsPositive,
IsString,
Matches,
MinLength,
@@ -44,4 +45,12 @@ export class UpdateBusinessDto {
@Type(() => Number)
@IsInt()
ownerUserId?: number | null;
/** Legacy WillaEngine businesses.id; null clears the link. */
@IsOptional()
@ValidateIf((_, value) => value !== null)
@Type(() => Number)
@IsInt()
@IsPositive()
oldBusinessId?: number | null;
}