Skip to content

Conversation

@VuQuoc18
Copy link

Summary

  • Add 11 new Alembic migrations for LESMEE database schema
  • Create enums.py file with 12 ENUM types
  • Restructure models.py with domain-based organization
  • Add complete LESMEE models file (lesmee_models_complete.py)
  • Implement hybrid key strategy (INT for internal, UUID for public entities)
  • Add 16 new tables: users, staff, customers, products, orders, workflow tables, etc.
  • Include proper indexing and relationships

Migration Details

  • UUID extension setup for LESMEE schema
  • ENUM types: user roles, order status, payment status, etc.
  • Complete LESMEE business model structure
  • Performance indexes for optimized queries
  • Domain-based model organization for better maintainability

Test Plan

  • Run all migration files in sequence
  • Verify table creation and relationships
  • Test ENUM type constraints
  • Validate hybrid key strategy implementation
  • Check indexing for performance
  • Run existing test suite to ensure compatibility

VuQuoc18 and others added 10 commits November 20, 2025 19:33
Add test database configuration and function-scoped fixtures to ensure
complete test isolation and prevent data persistence between test cases.

- Add TEST_DATABASE_URL configuration in app/core/config.py
- Create test_lesmee database configuration for separation
- Implement function-scoped db_engine and db fixtures with transaction isolation
- Override get_db dependency in client fixture for proper test isolation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Add 11 new Alembic migrations for LESMEE schema
- Create enums.py with 12 ENUM types
- Restructure models.py with domain-based organization
- Add complete LESMEE models file (lesmee_models_complete.py)
- Implement hybrid key strategy (INT for internal, UUID for public)
- Add 16 new tables: users, staff, customers, products, orders, workflow
- Include proper indexing and relationships
@VuQuoc18 VuQuoc18 closed this Nov 21, 2025
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