import { IsEmail, IsEnum, IsOptional } from 'class-validator';

export enum FamilyRole {
  PARENT = 'parent',
  CAREGIVER = 'caregiver',
  VIEWER = 'viewer',
}

export class InviteFamilyMemberDto {
  @IsEmail()
  email: string;

  @IsEnum(FamilyRole)
  role: FamilyRole;

  @IsOptional()
  message?: string;
}
