import { IsNumber, IsString, IsOptional } from 'class-validator';

export class CreateLogDto {
  @IsOptional()
  @IsNumber()
  userId?: number;

  @IsString()
  action: string;

  @IsOptional()
  @IsString()
  content?: string;

  @IsOptional()
  @IsString()
  ip?: string;

  @IsOptional()
  @IsString()
  userAgent?: string;
}
