Skip to content

fix: Refactor database schema for improved integrity and performance - #50

Merged
Aswinkl1 merged 1 commit into
developfrom
fix/rm-migration-file
Jun 27, 2026
Merged

Aswinkl1 merged 1 commit into
developfrom
fix/rm-migration-file

Conversation

@Aswinkl1

Copy link
Copy Markdown
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 Aswinkl1 changed the title fix : Refactor database schema for improved integrity and performance fix: Refactor database schema for improved integrity and performance Jun 27, 2026
@Aswinkl1
Aswinkl1 merged commit f3291cb into develop Jun 27, 2026
1 of 2 checks passed
@Aswinkl1
Aswinkl1 deleted the fix/rm-migration-file branch June 27, 2026 15:54
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant