Open lduf opened 13 hours ago
AI-Assisted Response:
This issue is a feature request for the implementation of a system that allows the dynamic creation of database schemas for different teams. Each team's schema will contain custom tables. The system uses Laravel Artisan commands to create schemas, manage migrations, and maintain modularity. Testing is required to ensure the feature's functionality.
Feature Request
The new feature should enable the creation of separate database schemas for each team via Artisan commands. The feature will include:
TEAM_ID
and create one if absent.@lduf
php artisan make:schema TEAM_ID
to generate and check schemas for teams.php artisan migration:copy TABLE_NAME SCHEMA
to handle copying and executing base table migrations for each schema.php artisan migration:copy TABLE_NAME SCHEMA
command validate dependencies or prerequisites of the migrations before copying and executing them?(These are preliminary suggestions and may require adaptation as the issue is further clarified.)
Description:
This feature introduces the ability to dynamically create specific database schemas for individual teams. Each team will have its own schema, including custom tables such as
fields
,items
, andlinks
. The process will rely on Artisan commands to manage schema creation and migration execution, ensuring flexibility and modularity in the system. Tests will validate all functionalities to ensure a seamless experience.Tasks to Perform:
Artisan Command to Generate Specific Schemas:
TEAM_ID
already exists.Organize Schema-Specific Migrations:
/database/migrations/global
: Contains global migrations./database/migrations/teams/TEAM_ID
: Contains migrations specific to a team.Artisan Command to Copy and Execute Base Table Migrations:
teams/TEAM_ID
.Handle Global Migration Files:
Schema Migration Execution:
Unit and Functional Testing: