import { IsString, MinLength, MaxLength } from 'class-validator';

/**
 * Admin places a settlement master on HOLD. Reason is mandatory —
 * matches the DB CHECK constraint and lands in `hold_reason` on the
 * master row. Released via the sibling `releaseHold` endpoint; no
 * reason required to release (the act of releasing is itself the
 * audit event, plus `updated_by`).
 */
export class PlaceHoldDto {
  @IsString()
  @MinLength(3)
  @MaxLength(500)
  reason: string;
}
