Create forms, validation schemas, and CRUD API endpoints. Use when building new data entry features or managing existing forms.
src/lib/validations/{feature}.schema.tsexport const featureSchema = z.object({ ... });
export type FeatureFormValues = z.infer<typeof featureSchema>;
src/components/forms/{feature}-form.tsx"use client"; required.useForm with zodResolver.initialData and onSubmit.Form, , ).FormFieldInputsrc/app/api/{feature}/route.tswithOrganizationAuthRequired.withSuperAdminAuthRequired.GET: Handle pagination/search. Filter by organizationId.POST: Validate body -> Insert to DB with organizationId from session.PATCH: Validate partial body -> Update DB (ensure organizationId matches).For code patterns, best practices, and examples, see reference.md.