# chhat2105/little-star architecture

> Architecture diagram of the GitHub repository chhat2105/little-star, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chhat2105/little-star
- Repository: https://github.com/chhat2105/little-star

## Overview

Little Star appears to be a school-management web application with account access, student and staff administration, curriculum and grades, and public news/slides. The likely user flow is an administrator managing school records through web controllers, with persistence in the shared Entity Framework context; registered student, news, and slide services provide an additional repository layer. The README is empty, and several controllers were not sampled, so their internal routes and some service-to-controller wiring are not asserted.

Main entry points: [`little-star/Data/ApplicationDbContext.cs`](https://github.com/chhat2105/little-star/blob/master/little-star/Data/ApplicationDbContext.cs) (Application database), [`little-star/Models/Enrollment.cs`](https://github.com/chhat2105/little-star/blob/master/little-star/Models/Enrollment.cs) (Enrollment record), [`little-star/Models/Student.cs`](https://github.com/chhat2105/little-star/blob/master/little-star/Models/Student.cs) (Student record), [`little-star/Models/Grade.cs`](https://github.com/chhat2105/little-star/blob/master/little-star/Models/Grade.cs) (Grade record)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web and accounts"]
  node_account["Account management"]
  node_identity["Identity access<br/>[Register.cshtml.cs]"]
end

subgraph group_services["Content and student services"]
  node_news["News publishing<br/>[NewsController.cs]"]
  node_slides["Slide publishing<br/>[SlideController.cs]"]
  node_studentservice["Student service<br/>[StudentService.cs]"]
  node_studentrepo["Student repository"]
  node_newsservice["News service<br/>[NewsService.cs]"]
  node_newsrepo["News repository<br/>[NewsRepository.cs]"]
  node_slideservice["Slide service<br/>[SlideService.cs]"]
  node_sliderepo["Slide repository<br/>[SlideRepository.cs]"]
end

subgraph group_data["Persistence and domain"]
  node_db[("Application database")]
  node_user["Application user<br/>[ApplicationUser.cs]"]
  node_studentmodel["Student record<br/>[Student.cs]"]
  node_teacher["Teacher record<br/>[Teacher.cs]"]
  node_staffmodel["Staff record<br/>[Staff.cs]"]
  node_curriculummodel["Curriculum record<br/>[Curriculum.cs]"]
  node_classmodel["Class record<br/>[Class.cs]"]
  node_enrollment["Enrollment record<br/>[Enrollment.cs]"]
  node_subject["Subject record<br/>[Subject.cs]"]
  node_grade["Grade record<br/>[Grade.cs]"]
  node_invoice["Invoice record<br/>[Invoice.cs]"]
  node_payment["Payment record<br/>[Payment.cs]"]
  node_newsmodel["News record<br/>[News.cs]"]
  node_slidemodel["Slide record<br/>[Slide.cs]"]
  node_base["Shared record fields<br/>[BaseClase.cs]"]
end

subgraph group_school["School operations"]
  node_curriculum["Curriculum"]
  node_grades["Grades"]
  node_staff["Staff management"]
  node_teachers["Teacher management"]
  node_students["Student management"]
end

node_admin(("Administrator"))

node_admin -->|"manages accounts"| node_account
node_account -->|"queries records"| node_db
node_identity -->|"registers user"| node_user
node_curriculum -->|"queries records"| node_db
node_grades -->|"queries records"| node_db
node_staff -->|"queries records"| node_db
node_teachers -->|"queries records"| node_db
node_slides -->|"uses service"| node_slideservice
node_studentservice -->|"delegates data"| node_studentrepo
node_studentrepo -->|"reads and writes"| node_db
node_newsservice -->|"delegates data"| node_newsrepo
node_newsrepo -->|"reads and writes"| node_db
node_slideservice -->|"delegates data"| node_sliderepo
node_sliderepo -->|"reads and writes"| node_db
node_db -->|"stores"| node_user
node_db -->|"stores"| node_studentmodel
node_db -->|"stores"| node_teacher
node_db -->|"stores"| node_staffmodel
node_db -->|"stores"| node_curriculummodel
node_db -->|"stores"| node_classmodel
node_db -->|"stores"| node_enrollment
node_db -->|"stores"| node_subject
node_db -->|"stores"| node_grade
node_db -->|"stores"| node_invoice
node_db -->|"stores"| node_payment
node_db -->|"stores"| node_newsmodel
node_db -->|"stores"| node_slidemodel
node_studentmodel -->|"inherits fields"| node_base
node_teacher -->|"relates classes"| node_classmodel
node_enrollment -->|"references student"| node_studentmodel
node_enrollment -->|"references class"| node_classmodel
node_enrollment -->|"has invoice"| node_invoice
node_grade -->|"references student"| node_studentmodel
node_grade -->|"references subject"| node_subject
node_invoice -->|"has payments"| node_payment
node_newsmodel -->|"inherits fields"| node_base
node_slidemodel -->|"inherits fields"| node_base

click node_account "https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/AccountController.cs"
click node_identity "https://github.com/chhat2105/little-star/blob/master/little-star/Areas/Identity/Pages/Account/Register.cshtml.cs"
click node_curriculum "https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/CurriculumController.cs"
click node_grades "https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/GradesController.cs"
click node_staff "https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/StaffsController.cs"
click node_teachers "https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/TeacherController.cs"
click node_students "https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/StudentController.cs"
click node_news "https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/NewsController.cs"
click node_slides "https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/SlideController.cs"
click node_studentservice "https://github.com/chhat2105/little-star/blob/master/little-star/repositories/implimentations/StudentService.cs"
click node_studentrepo "https://github.com/chhat2105/little-star/blob/master/little-star/repositories/implimentations/StudentRepository.cs"
click node_newsservice "https://github.com/chhat2105/little-star/blob/master/little-star/repositories/implimentations/NewsService.cs"
click node_newsrepo "https://github.com/chhat2105/little-star/blob/master/little-star/repositories/implimentations/NewsRepository.cs"
click node_slideservice "https://github.com/chhat2105/little-star/blob/master/little-star/repositories/implimentations/SlideService.cs"
click node_sliderepo "https://github.com/chhat2105/little-star/blob/master/little-star/repositories/implimentations/SlideRepository.cs"
click node_db "https://github.com/chhat2105/little-star/blob/master/little-star/Data/ApplicationDbContext.cs"
click node_user "https://github.com/chhat2105/little-star/blob/master/little-star/Models/ApplicationUser.cs"
click node_studentmodel "https://github.com/chhat2105/little-star/blob/master/little-star/Models/Student.cs"
click node_teacher "https://github.com/chhat2105/little-star/blob/master/little-star/Models/Teacher.cs"
click node_staffmodel "https://github.com/chhat2105/little-star/blob/master/little-star/Models/Staff.cs"
click node_curriculummodel "https://github.com/chhat2105/little-star/blob/master/little-star/Models/Curriculum.cs"
click node_classmodel "https://github.com/chhat2105/little-star/blob/master/little-star/Models/Class.cs"
click node_enrollment "https://github.com/chhat2105/little-star/blob/master/little-star/Models/Enrollment.cs"
click node_subject "https://github.com/chhat2105/little-star/blob/master/little-star/Models/Subject.cs"
click node_grade "https://github.com/chhat2105/little-star/blob/master/little-star/Models/Grade.cs"
click node_invoice "https://github.com/chhat2105/little-star/blob/master/little-star/Models/Invoice.cs"
click node_payment "https://github.com/chhat2105/little-star/blob/master/little-star/Models/Payment.cs"
click node_newsmodel "https://github.com/chhat2105/little-star/blob/master/little-star/Models/News.cs"
click node_slidemodel "https://github.com/chhat2105/little-star/blob/master/little-star/Models/Slide.cs"
click node_base "https://github.com/chhat2105/little-star/blob/master/little-star/Models/BaseClase.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_account,node_identity toneBlue
class node_news,node_slides,node_studentservice,node_studentrepo,node_newsservice,node_newsrepo,node_slideservice,node_sliderepo toneAmber
class node_db,node_user,node_studentmodel,node_teacher,node_staffmodel,node_curriculummodel,node_classmodel,node_enrollment,node_subject,node_grade,node_invoice,node_payment,node_newsmodel,node_slidemodel,node_base toneMint
class node_curriculum,node_grades,node_staff,node_teachers,node_students toneRose
class node_admin toneIndigo
```

## Components

### Web and accounts

- [Account management](https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/AccountController.cs): `little-star/Controllers/AccountController.cs`
- [Identity access](https://github.com/chhat2105/little-star/blob/master/little-star/Areas/Identity/Pages/Account/Register.cshtml.cs): `little-star/Areas/Identity/Pages/Account/Register.cshtml.cs`

### Content and student services

- [News publishing](https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/NewsController.cs): `little-star/Controllers/NewsController.cs`
- [Slide publishing](https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/SlideController.cs): `little-star/Controllers/SlideController.cs`
- [Student service](https://github.com/chhat2105/little-star/blob/master/little-star/repositories/implimentations/StudentService.cs): `little-star/repositories/implimentations/StudentService.cs`
- [Student repository](https://github.com/chhat2105/little-star/blob/master/little-star/repositories/implimentations/StudentRepository.cs): `little-star/repositories/implimentations/StudentRepository.cs`
- [News service](https://github.com/chhat2105/little-star/blob/master/little-star/repositories/implimentations/NewsService.cs): `little-star/repositories/implimentations/NewsService.cs`
- [News repository](https://github.com/chhat2105/little-star/blob/master/little-star/repositories/implimentations/NewsRepository.cs): `little-star/repositories/implimentations/NewsRepository.cs`
- [Slide service](https://github.com/chhat2105/little-star/blob/master/little-star/repositories/implimentations/SlideService.cs): `little-star/repositories/implimentations/SlideService.cs`
- [Slide repository](https://github.com/chhat2105/little-star/blob/master/little-star/repositories/implimentations/SlideRepository.cs): `little-star/repositories/implimentations/SlideRepository.cs`

### Persistence and domain

- [Application database](https://github.com/chhat2105/little-star/blob/master/little-star/Data/ApplicationDbContext.cs): `little-star/Data/ApplicationDbContext.cs`
- [Application user](https://github.com/chhat2105/little-star/blob/master/little-star/Models/ApplicationUser.cs): `little-star/Models/ApplicationUser.cs`
- [Student record](https://github.com/chhat2105/little-star/blob/master/little-star/Models/Student.cs): `little-star/Models/Student.cs`
- [Teacher record](https://github.com/chhat2105/little-star/blob/master/little-star/Models/Teacher.cs): `little-star/Models/Teacher.cs`
- [Staff record](https://github.com/chhat2105/little-star/blob/master/little-star/Models/Staff.cs): `little-star/Models/Staff.cs`
- [Curriculum record](https://github.com/chhat2105/little-star/blob/master/little-star/Models/Curriculum.cs): `little-star/Models/Curriculum.cs`
- [Class record](https://github.com/chhat2105/little-star/blob/master/little-star/Models/Class.cs): `little-star/Models/Class.cs`
- [Enrollment record](https://github.com/chhat2105/little-star/blob/master/little-star/Models/Enrollment.cs): `little-star/Models/Enrollment.cs`
- [Subject record](https://github.com/chhat2105/little-star/blob/master/little-star/Models/Subject.cs): `little-star/Models/Subject.cs`
- [Grade record](https://github.com/chhat2105/little-star/blob/master/little-star/Models/Grade.cs): `little-star/Models/Grade.cs`
- [Invoice record](https://github.com/chhat2105/little-star/blob/master/little-star/Models/Invoice.cs): `little-star/Models/Invoice.cs`
- [Payment record](https://github.com/chhat2105/little-star/blob/master/little-star/Models/Payment.cs): `little-star/Models/Payment.cs`
- [News record](https://github.com/chhat2105/little-star/blob/master/little-star/Models/News.cs): `little-star/Models/News.cs`
- [Slide record](https://github.com/chhat2105/little-star/blob/master/little-star/Models/Slide.cs): `little-star/Models/Slide.cs`
- [Shared record fields](https://github.com/chhat2105/little-star/blob/master/little-star/Models/BaseClase.cs): `little-star/Models/BaseClase.cs`

### School operations

- [Curriculum](https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/CurriculumController.cs): `little-star/Controllers/CurriculumController.cs`
- [Grades](https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/GradesController.cs): `little-star/Controllers/GradesController.cs`
- [Staff management](https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/StaffsController.cs): `little-star/Controllers/StaffsController.cs`
- [Teacher management](https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/TeacherController.cs): `little-star/Controllers/TeacherController.cs`
- [Student management](https://github.com/chhat2105/little-star/blob/master/little-star/Controllers/StudentController.cs): `little-star/Controllers/StudentController.cs`

### Other components

- **Administrator**

## Connections

- Administrator → Account management: manages accounts
- Account management → Application database: queries records (evidence: `little-star/Controllers/AccountController.cs`)
- Identity access → Application user: registers user (evidence: `little-star/Areas/Identity/Pages/Account/Register.cshtml.cs`)
- Curriculum → Application database: queries records (evidence: `little-star/Controllers/CurriculumController.cs`)
- Grades → Application database: queries records (evidence: `little-star/Controllers/GradesController.cs`)
- Staff management → Application database: queries records (evidence: `little-star/Controllers/StaffsController.cs`)
- Teacher management → Application database: queries records (evidence: `little-star/Controllers/TeacherController.cs`)
- Slide publishing → Slide service: uses service (evidence: `little-star/Controllers/SlideController.cs`)
- Student service → Student repository: delegates data (evidence: `little-star/repositories/implimentations/StudentService.cs`)
- Student repository → Application database: reads and writes (evidence: `little-star/repositories/implimentations/StudentRepository.cs`)
- News service → News repository: delegates data (evidence: `little-star/repositories/implimentations/NewsService.cs`)
- News repository → Application database: reads and writes (evidence: `little-star/repositories/implimentations/NewsRepository.cs`)
- Slide service → Slide repository: delegates data (evidence: `little-star/repositories/implimentations/SlideService.cs`)
- Slide repository → Application database: reads and writes (evidence: `little-star/repositories/implimentations/SlideRepository.cs`)
- Application database → Application user: stores (evidence: `little-star/Data/ApplicationDbContext.cs`)
- Application database → Student record: stores (evidence: `little-star/Data/ApplicationDbContext.cs`)
- Application database → Teacher record: stores (evidence: `little-star/Data/ApplicationDbContext.cs`)
- Application database → Staff record: stores (evidence: `little-star/Data/ApplicationDbContext.cs`)
- Application database → Curriculum record: stores (evidence: `little-star/Data/ApplicationDbContext.cs`)
- Application database → Class record: stores (evidence: `little-star/Data/ApplicationDbContext.cs`)
- Application database → Enrollment record: stores (evidence: `little-star/Data/ApplicationDbContext.cs`)
- Application database → Subject record: stores (evidence: `little-star/Data/ApplicationDbContext.cs`)
- Application database → Grade record: stores (evidence: `little-star/Data/ApplicationDbContext.cs`)
- Application database → Invoice record: stores (evidence: `little-star/Data/ApplicationDbContext.cs`)
- Application database → Payment record: stores (evidence: `little-star/Data/ApplicationDbContext.cs`)
- Application database → News record: stores (evidence: `little-star/Data/ApplicationDbContext.cs`)
- Application database → Slide record: stores (evidence: `little-star/Data/ApplicationDbContext.cs`)
- Student record → Shared record fields: inherits fields (evidence: `little-star/Models/Student.cs`)
- Teacher record → Class record: relates classes (evidence: `little-star/Models/Teacher.cs`)
- Enrollment record → Student record: references student (evidence: `little-star/Models/Enrollment.cs`)
- Enrollment record → Class record: references class (evidence: `little-star/Models/Enrollment.cs`)
- Enrollment record → Invoice record: has invoice (evidence: `little-star/Models/Enrollment.cs`)
- Grade record → Student record: references student (evidence: `little-star/Models/Grade.cs`)
- Grade record → Subject record: references subject (evidence: `little-star/Models/Grade.cs`)
- Invoice record → Payment record: has payments (evidence: `little-star/Models/Invoice.cs`)
- News record → Shared record fields: inherits fields (evidence: `little-star/Models/News.cs`)
- Slide record → Shared record fields: inherits fields (evidence: `little-star/Models/Slide.cs`)
