import { z } from 'zod';

/**
 * 团队成员表单校验
 */
export const teamMemberFormSchema = z.object({
  teamId: z.number(),
  userId: z.number({
    required_error: '请输入用户ID',
    invalid_type_error: '用户ID必须是数字',
  }),
  userName: z.string().optional(),
  roleInTeam: z.string().optional(),
});

export type TeamMemberFormValues = z.infer<typeof teamMemberFormSchema>;

