Commit graph

11 commits

Author SHA1 Message Date
DustyWalker
e7e09d5e2c 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
DustyWalker
90016254a9 23 2025-08-04 21:09:31 +02:00
DustyWalker
8faf2c9dde new-plan 2025-08-04 21:04:50 +02:00
DustyWalker
04eb4fad08 plan 2025-08-04 21:01:11 +02:00
DustyWalker
5e419a7bff Merge branch 'main' of https://vibecodetogether.com/Vibecode-Together/SEO_iamge_renamer_starting_point 2025-08-04 20:50:44 +02:00
DustyWalker
84d0b8ecc1 213 2025-08-04 20:50:42 +02:00
Jeen Koster
e0d4d6d8d5 more info for MVP added 2025-08-04 20:49:51 +02:00
Jeen Koster
6b6df81b1e Added MVP information 2025-08-04 20:48:34 +02:00
Jeen Koster
44804ef9a7 hello 2025-08-04 20:39:26 +02:00
DustyWalker
fc11062e84 1 2025-08-04 17:22:48 +02:00
DustyWalker
d07fe78014 first commit 2025-08-04 16:04:06 +02:00