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

export class CreateMatterDto {
  @IsString() @IsNotEmpty()
  clientFolderId: string

  @IsString() @IsNotEmpty()
  title: string

  @IsString() @IsNotEmpty()
  practiceArea: string

  @IsOptional() @IsString() description?: string

  @IsString() @IsNotEmpty()
  responsibleAttorney: string

  @IsOptional() @IsString() supervisingAttorney?: string

  @IsOptional() @IsString() courtRef?: string
  @IsOptional() @IsString() caseNumber?: string
  @IsOptional() @IsString() judge?: string

  @IsEnum(['hourly', 'fixed', 'retainer', 'contingency'])
  billingType: string

  @IsOptional() @IsNumber() hourlyRate?: number
  @IsOptional() @IsNumber() fixedFee?: number

  @IsOptional() @IsString() currency?: string
  @IsOptional() @IsString() notes?: string
}
