import { z } from 'zod';

/**
 * 团队应用关联表单验证
 */
export const teamApplicationFormSchema = z.object({
    teamId: z.number({
        required_error: '团队ID不能为空',
        invalid_type_error: '团队ID必须是数字',
    }),
    applicationId: z.number({
        required_error: '请选择应用',
        invalid_type_error: '应用ID必须是数字',
    }),
});

export type TeamApplicationFormValues = z.infer<typeof teamApplicationFormSchema>;

