Repository navigation
fix: Refactor database schema for improved integrity and performance - #50
Merged
Merged
Conversation
Aswinkl1
commented
Jun 27, 2026
Owner
- Deleted migrations for enum and table changes related to roles, tokens, and mentor attributes.
- Added new migrations to create and modify tables for sessions, availability, and booking intents.
- Introduced new enums for currency and slot status, and updated existing enums for proficiency and achievement types.
- Implemented foreign key constraints and indexes to enhance relational integrity across tables.
…pdate existing structures for improved data integrity and performance. - Deleted migrations for enum and table changes related to roles, tokens, and mentor attributes. - Added new migrations to create and modify tables for sessions, availability, and booking intents. - Introduced new enums for currency and slot status, and updated existing enums for proficiency and achievement types. - Implemented foreign key constraints and indexes to enhance relational integrity across tables.
Aswinkl1
added a commit
that referenced
this pull request
Jun 28, 2026
…50) Refactor database schema: Remove unused columns, enums, and tables; update existing structures for improved data integrity and performance. - Deleted migrations for enum and table changes related to roles, tokens, and mentor attributes. - Added new migrations to create and modify tables for sessions, availability, and booking intents. - Introduced new enums for currency and slot status, and updated existing enums for proficiency and achievement types. - Implemented foreign key constraints and indexes to enhance relational integrity across tables.
Aswinkl1
added a commit
that referenced
this pull request
Jun 30, 2026
…nhancements (#51) * feat(prisma) : implement prisma schema for booking and payment tables * feat(domain): implement domain for both of booking and paymet * feat(booking) : implement Repository interface for both of the payment and booking * feat(booking): update booking table with userid and mentorid * feat(booking) : implment repository for both payment adn booking * feat(booking): implement DI * feat(booking): add payment verification DTO and confirm booking use case * feat(booking): add date-fns dependency and update Booking model relations * feat(booking): update payments table by removing bookingId and adding foreign key to bookings * feat(booking): enhance booking and payment repositories with transaction handling and new interfaces * fix: Refactor database schema for improved integrity and performance (#50) Refactor database schema: Remove unused columns, enums, and tables; update existing structures for improved data integrity and performance. - Deleted migrations for enum and table changes related to roles, tokens, and mentor attributes. - Added new migrations to create and modify tables for sessions, availability, and booking intents. - Introduced new enums for currency and slot status, and updated existing enums for proficiency and achievement types. - Implemented foreign key constraints and indexes to enhance relational integrity across tables. * feat(booking): refactor createBookingTransaction for improved readability and maintainability * feat(booking): implement transaction retry logic and refactor booking repository methods * feat(database): create initial payment and booking tables with foreign key constraints * feat: Implement confirm booking use case and update booking controller - Added ConfirmBookingUsecase to handle booking confirmation logic. - Updated BookingController to include confirmBooking method for processing payment verification. - Enhanced BookingRepository to return booking ID upon successful transaction. - Modified DI container to bind new use case and updated types. - Updated booking routes to include a new endpoint for booking confirmation. - Refactored existing methods for improved readability and consistency. * feat(booking): enhance createBookingTransaction with additional data handling and slot status update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.