1 Commits

Author SHA1 Message Date
tuan.cna
321865288a � Add Complete SQL Server Database Schema & Scripts
�️ Database Schema Features:
- Complete SQL Server database design for Project Management
- 10 tables with proper relationships and constraints
- Support for Create Project form requirements
- Scalable design with audit trails and time tracking

� SQL Scripts Included:
- Database creation with proper sizing and configuration
- Core tables: Projects, Users, ProjectCategories
- Relationship tables: ProjectManagers, ProjectTeamMembers
- Additional tables: ProjectTags, ProjectAttachments, Clients
- Tracking tables: ProjectActivityLogs, ProjectTimeEntries

� Advanced Features:
- Computed columns for FullName and Initials
- Triggers for automatic UpdatedAt timestamps
- Comprehensive indexes for performance
- Views for complex queries (ProjectSummary, ProjectTeam)
- Stored procedures for API integration

� Stored Procedures:
- sp_CreateProject: Main procedure for form submission
- sp_GetProjectDetails: Complete project information
- sp_GetProjectCategories: Categories for dropdown
- sp_GetManagers: Managers for multi-select
- sp_GetTeamMembers: Team members for assignment
- sp_GetProjects: Project listing with pagination

� Sample Data:
- Project categories (Web Dev, Mobile, Design, etc.)
- Sample users with different roles
- Sample clients and projects
- Complete test data for development

� Production Ready:
- Error handling and validation
- Transaction management
- Proper foreign key constraints
- Soft delete support
- Full audit trail capability
2025-05-29 22:25:15 +07:00