Files
MonkeyCode/backend/migration/000011_create_workspace_files_table.down.sql
Haoxin Li b5ecb92371 feat: feat: Implement workspace and real-time file synchronization
- Added WorkspaceFileHandler for handling workspace file operations including create, update, delete, and list functionalities.
- Introduced WorkspaceFileRepo for database interactions related to workspace files.
- Created WorkspaceFileUsecase to encapsulate business logic for workspace file management.
- Implemented API endpoints for workspace file operations with appropriate request and response structures.
- Added database migrations for creating workspaces and workspace_files tables with necessary constraints and indexes.
- Enhanced user authentication and authorization for workspace file operations.
2025-07-23 17:42:20 +08:00

6 lines
217 B
SQL

-- Drop workspace_files table first (due to foreign key dependency)
DROP TABLE IF EXISTS workspace_files CASCADE;
-- Drop workspaces table and all its constraints and indexes
DROP TABLE IF EXISTS workspaces CASCADE;