feat(db): implement complete database schema and models
- Add Prisma schema with PostgreSQL 15 support
- Create Users, Batches, Images, Payments, ApiKeys tables
- Implement proper foreign key relationships and indexes
- Add enum types for status fields (Plan, BatchStatus, ImageStatus, PaymentStatus)
- Support for JSON fields (vision_tags, metadata)
- UUID primary keys for security
- Created/updated timestamps with proper defaults
Database Layer Components:
- Prisma service with connection management and health checks
- Repository pattern for all entities with comprehensive CRUD operations
- TypeScript DTOs with class-validator decorations
- Swagger API documentation annotations
- Helper functions for business logic (quota management, pricing, etc.)
Development Support:
- Environment variables template
- Database seed script with realistic test data
- TypeScript configuration optimized for Nest.js
- Package.json with all required dependencies
Resolves database requirements from issues §78-81 establishing
the complete data layer foundation for the AI Bulk Image Renamer SaaS.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 17:02:03 +02:00
|
|
|
{
|
|
|
|
"compilerOptions": {
|
|
|
|
"module": "commonjs",
|
|
|
|
"declaration": true,
|
|
|
|
"removeComments": true,
|
|
|
|
"emitDecoratorMetadata": true,
|
|
|
|
"experimentalDecorators": true,
|
|
|
|
"allowSyntheticDefaultImports": true,
|
|
|
|
"target": "ES2021",
|
|
|
|
"sourceMap": true,
|
|
|
|
"outDir": "./dist",
|
|
|
|
"baseUrl": "./",
|
|
|
|
"incremental": true,
|
|
|
|
"skipLibCheck": true,
|
2025-08-05 21:44:32 +02:00
|
|
|
"strictNullChecks": false,
|
|
|
|
"noImplicitAny": false,
|
|
|
|
"strictBindCallApply": false,
|
|
|
|
"forceConsistentCasingInFileNames": false,
|
|
|
|
"noFallthroughCasesInSwitch": false,
|
|
|
|
"strict": false,
|
|
|
|
"noImplicitReturns": false,
|
|
|
|
"noImplicitThis": false,
|
|
|
|
"noImplicitOverride": false,
|
|
|
|
"exactOptionalPropertyTypes": false,
|
|
|
|
"noUncheckedIndexedAccess": false,
|
feat(db): implement complete database schema and models
- Add Prisma schema with PostgreSQL 15 support
- Create Users, Batches, Images, Payments, ApiKeys tables
- Implement proper foreign key relationships and indexes
- Add enum types for status fields (Plan, BatchStatus, ImageStatus, PaymentStatus)
- Support for JSON fields (vision_tags, metadata)
- UUID primary keys for security
- Created/updated timestamps with proper defaults
Database Layer Components:
- Prisma service with connection management and health checks
- Repository pattern for all entities with comprehensive CRUD operations
- TypeScript DTOs with class-validator decorations
- Swagger API documentation annotations
- Helper functions for business logic (quota management, pricing, etc.)
Development Support:
- Environment variables template
- Database seed script with realistic test data
- TypeScript configuration optimized for Nest.js
- Package.json with all required dependencies
Resolves database requirements from issues §78-81 establishing
the complete data layer foundation for the AI Bulk Image Renamer SaaS.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 17:02:03 +02:00
|
|
|
"paths": {
|
|
|
|
"@/*": ["src/*"],
|
|
|
|
"@/database/*": ["src/database/*"],
|
|
|
|
"@/users/*": ["src/users/*"],
|
|
|
|
"@/batches/*": ["src/batches/*"],
|
|
|
|
"@/images/*": ["src/images/*"],
|
|
|
|
"@/payments/*": ["src/payments/*"],
|
|
|
|
"@/auth/*": ["src/auth/*"],
|
|
|
|
"@/common/*": ["src/common/*"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"include": [
|
|
|
|
"src/**/*",
|
|
|
|
"prisma/**/*"
|
|
|
|
],
|
|
|
|
"exclude": [
|
|
|
|
"node_modules",
|
|
|
|
"dist",
|
|
|
|
"test",
|
|
|
|
"**/*.spec.ts"
|
|
|
|
]
|
|
|
|
}
|