# database-skill > Design strong databases with table creation, migrations, and clean schema design. - Author: muhammadali304 - Repository: muhammadali304/Hackathon-II_Phase-III - Version: 20260208163832 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-08 - Source: https://github.com/muhammadali304/Hackathon-II_Phase-III - Web: https://mule.run/skillshub/@@muhammadali304/Hackathon-II_Phase-III~database-skill:20260208163832 --- --- name: database-skill description: Design strong databases with table creation, migrations, and clean schema design. --- # Database Skill – Tables, Migrations & Schema Design ## Instructions 1. **Core Concepts** - Create Tables - Define Relationships - Write Migrations - Design Schemas 2. **Database Setup** - Choose correct database type - Use proper data types - Apply primary and foreign keys - Use indexes for performance 3. **Design Flow** - Analyze requirements - Plan entities - Define relationships - Create schema - Write migrations --- ## Modules ### Create Tables - Define table purpose clearly - Use meaningful column names - Set primary keys - Add constraints ### Migrations - Track database changes - Support rollback - Version control structure - Keep migrations small ### Schema Design - Normalize data - Avoid duplication - Design scalable structure - Plan for future changes ### Relationships - One-to-One - One-to-Many - Many-to-Many - Use foreign keys correctly --- ## Best Practices - Use naming conventions - Avoid over-complication - Normalize but don’t over-normalize - Backup before migrations - Test migrations - Document schema --- ## Skill Outcome After completing this skill, you will be able to: - Design clean database schemas - Create and manage tables - Write safe migrations - Build scalable data structures - Maintain database integrity