# doit-now/database-craftsman architecture

> Architecture diagram of the GitHub repository doit-now/database-craftsman, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/doit-now/database-craftsman
- Repository: https://github.com/doit-now/database-craftsman

## Overview

##### Project type and purpose
- This is not a running application but an educational repository (“DoIt.Now – DATABASE CRAFTSMAN”) containing course materials for an introductory relational-database subject.
- Purpose: organize and distribute lecture slides, labs, hands-on SQL exercises, sample databases, exams, atlas (theory outlines), and installation scripts to students.

##### File structure
- Top-level directories:
- atlas – high-level concept slices (PDFs)
- exam – practical exam PDF
- exercises – text-based ERD and exercise prompts
- hands-on – four parts of SQL and DB-design programming exercises, each with numbered sessions
- installation.sqlserver-2019 – setup script
- labs – PDF lab instructions
- sample-db – sample database files (Northwind, CompanyDB)
- slides – chapter-by-chapter slide decks in PDF
- Notice the hierarchical grouping by content type and learning progression.
- No code-build scripts or deployment configs—this is a content repository.

##### README for additional insights
- Describes the collection as an RDBMS course resource, with links to video channel.
- Indicates it’s a living document (“Đang cập nhật…”), collaborative, student-driven.

a. Main components
- Atlas (Concept modules)
- Slides (Lecture decks)
- Labs (Guided exercises)
- Hands-On (Practical SQL and design tasks)
- Exercises (ERD and theory questions)
- Sample-DB (Database artifacts)
- Exam (Assessment)
- Installation (Environment setup)
- External Service (YouTube channel)
b. Relationships and interactions
- Slides → inform Labs & Hands-On & Exercises
- Sample-DB → consumed by Labs & Hands-On & Exam
- Atlas → theory reference for Slides & Exercises
- Installation → prerequisite for Hands-On & Labs environment
- Exam → draws on knowledge from all preceding modules
- External Service → supplements all components with video instruction
c. Architectural patterns/design principles
- Module separation by content type
- Progressive dependency: theory (atlas) → lecture (slides) → practice (labs/hands-on) → assessment (exam)
- Reuse of Sample-DB across multiple modules
d. Key “technologies”
- SQL scripts (.sql)
- PDF documents
- Compressed database backups (.bak, .rar)
- External video link

##### Detail
- Part-04, part-03, etc., as sub-components under Hands-On
- That “Exercises” group contains multiple text files for ERD practice
- “installation.sqlserver-2019” as a prerequisite node
- Do not overcomplicate—focus on module boundaries, dependencies, and flow of learning materials

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Content Modules
    Atlas["Atlas"]:::theory
    Slides["Slides"]:::theory
    Exercises["Exercises"]:::practice
    Labs["Labs"]:::practice
    subgraph "Hands-On"
        Part02["Part02-SQL"]:::practice
        Part03["Part03-DB Design"]:::practice
        Part04["Part04-Programming"]:::practice
    end
    SampleDB[(Sample-DB)]:::data
    Installation["Installation"]:::infra
    Exam["Exam"]:::assessment
    YouTube["YouTube Channel"]:::external

    %% Dependencies
    Atlas -->|"theory feeds"| Slides
    Atlas -->|"reference for"| Exercises

    Slides -->|"informs"| Labs
    Slides -->|"informs"| Part02
    Slides -->|"informs"| Part03
    Slides -->|"informs"| Part04
    Slides -->|"informs"| Exercises

    Installation -->|"prerequisite for"| Labs
    Installation -->|"prerequisite for"| Part02
    Installation -->|"prerequisite for"| Part03
    Installation -->|"prerequisite for"| Part04

    SampleDB -->|"used by"| Labs
    SampleDB -->|"used by"| Part02
    SampleDB -->|"used by"| Part03
    SampleDB -->|"used by"| Part04
    SampleDB -->|"used by"| Exam

    Labs -->|"practice contributes to"| Exam
    Part02 -->|"practice contributes to"| Exam
    Part03 -->|"practice contributes to"| Exam
    Part04 -->|"practice contributes to"| Exam
    Exercises -->|"theory practice contributes to"| Exam

    %% External Service
    YouTube -.-> Atlas
    YouTube -.-> Slides
    YouTube -.-> Labs
    YouTube -.-> Part02
    YouTube -.-> Part03
    YouTube -.-> Part04
    YouTube -.-> Exercises
    YouTube -.-> Exam

    %% Click Events
    click Atlas "https://github.com/doit-now/database-craftsman/blob/main/atlas/DB Design-21.1012.pdf"
    click Slides "https://github.com/doit-now/database-craftsman/blob/main/slides/Chapter 1.pdf"
    click Labs "https://github.com/doit-now/database-craftsman/blob/main/labs/Lab1.pdf"
    click Part02 "https://github.com/doit-now/database-craftsman/tree/main/hands-on/Part02-SQL"
    click Part03 "https://github.com/doit-now/database-craftsman/tree/main/hands-on/Part03-DB Design"
    click Part04 "https://github.com/doit-now/database-craftsman/tree/main/hands-on/Part04-Programming"
    click Exercises "https://github.com/doit-now/database-craftsman/blob/main/exercises/Exercise.39.txt"
    click SampleDB "https://github.com/doit-now/database-craftsman/blob/main/sample-db/FUHCM.CompanyDB/CompanyDB.rar"
    click Installation "https://github.com/doit-now/database-craftsman/blob/main/installation.sqlserver-2019"
    click Exam "https://github.com/doit-now/database-craftsman/blob/main/exam/2021.Fall.DBI202.Practical Exam.pdf"

    %% Styles
    classDef theory fill:#AED6F1,stroke:#21618C
    classDef practice fill:#A9DFBF,stroke:#196F3D
    classDef data fill:#F9E79F,stroke:#B7950B
    classDef assessment fill:#F5B7B1,stroke:#C0392B
    classDef external fill:#D7BDE2,stroke:#7D3C98
    classDef infra fill:#D5DBDB,stroke:#566573
```
