/**
 * Role Schema - Zod validation for role forms
 */

import { z } from 'zod';

export const roleSchema = z.object({
  name: z.string().min(1, 'Name is required').max(255, 'Name too long'),
  permissions: z.array(z.unknown()).optional(),
});

export type RoleFormData = z.infer<typeof roleSchema>;

export const roleInitialValues: RoleFormData = {
  name: '',
  permissions: [],
};
