ruvector/studio/components/interfaces/ProjectCreation/ProjectCreation.schema.ts
rUv 814f595995 feat(studio): Add complete RuVector Studio application
Major additions:
- Complete Next.js studio application with 1600+ components
- Docker support (Dockerfile.combined, docker-compose.yml)
- GCP deployment documentation and benchmarks
- SQL benchmark scripts for performance testing
- Sentry integration for monitoring
- Comprehensive test suite and mocks

Studio features:
- Dashboard and admin interfaces
- Data visualization components
- Authentication and user management
- API integration with RuVector backend
- Static data and public assets

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-06 23:04:48 +00:00

33 lines
1 KiB
TypeScript

import { z } from 'zod'
export const FormSchema = z.object({
organization: z.string({
required_error: 'Please select an organization',
}),
projectName: z
.string()
.trim()
.min(1, 'Please enter a project name.') // Required field check
.min(3, 'Project name must be at least 3 characters long.') // Minimum length check
.max(64, 'Project name must be no longer than 64 characters.'), // Maximum length check
postgresVersion: z.string({
required_error: 'Please enter a Postgres version.',
}),
dbRegion: z.string({
required_error: 'Please select a region.',
}),
cloudProvider: z.string({
required_error: 'Please select a cloud provider.',
}),
dbPassStrength: z.number(),
dbPass: z
.string({ required_error: 'Please enter a database password.' })
.min(1, 'Password is required.'),
instanceSize: z.string().optional(),
dataApi: z.boolean(),
useApiSchema: z.boolean(),
postgresVersionSelection: z.string(),
useOrioleDb: z.boolean(),
})
export type CreateProjectForm = z.infer<typeof FormSchema>