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

/**
 * Payload accepted by `POST /auth/register`.
 *
 * Username must be unique (enforced by DB); password is hashed with bcrypt.
 */
export class RegisterDto {
  @IsString()
  @IsNotEmpty()
  username!: string;

  @IsString()
  @MinLength(6)
  password!: string;
}
