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

export class CreateHearingDto {
  @IsString() @IsNotEmpty()
  matterId: string

  @IsString() @IsNotEmpty()
  clientFolderId: string

  @IsDateString()
  date: string

  @IsString() @IsNotEmpty()
  time: string

  @IsEnum(['initial', 'mention', 'trial', 'appeal', 'mediation', 'arbitration', 'other'])
  hearingType: string

  @IsOptional() @IsString() court?: string
  @IsOptional() @IsString() room?: string
  @IsOptional() @IsString() judge?: string
  @IsOptional() @IsString() notes?: string
}
