Commit Graph

1 Commits

Author SHA1 Message Date
mindesbunister
e3eff629a3 Fix: Resolve SL Learner database errors and enhance automation
- Fixed Prisma schema: Added @default(cuid()) to ai_learning_data.id field
- Fixed all updatedAt fields: Added @updatedAt decorators across all models
- Enhanced position-aware automation with intelligent DCA/doubling down logic
- Added safe automation starter script with position awareness
- Resolved 'Argument id is missing' database creation errors
- All AI learning data can now be created without Prisma errors

Database schema now properly auto-generates IDs and timestamps for:
- ai_learning_data records
- All model updatedAt fields
- Prevents Enhanced Risk Manager database failures
2025-07-26 10:40:05 +02:00