FLN Platform Database Design
INDIA
│
┌────────────┴────────────┐
│ Master Collections │
└────────────┬────────────┘
│
States Collection
│
▼
Districts Collection
│
▼
Blocks Collection
│
▼
Schools Collection
│
┌──────────────┴──────────────┐
│ │
▼ ▼
Teachers Collection Classes Collection
│ │
└──────────────┬──────────────┘
│
▼
Students Collection
│
▼
Student Profiles Collection
│
┌──────────────┼──────────────┐
│ │ │
▼ ▼ ▼
Assessments Competencies Recommendations
│
▼
Assessment Questions
│
▼
Generated Question Paper
│
▼
Offline Assessment
│
▼
Answer Sheet Upload
│
▼
OCR & Evaluation
│
▼
Student Profile Updated
{
"_id" : " ..." ,
"stateCode" : " PB" ,
"stateName" : " Punjab"
}
{
"_id" : " ..." ,
"districtCode" : " RPR" ,
"districtName" : " Rupnagar" ,
"stateId" : " stateId"
}
{
"_id" : " ..." ,
"blockCode" : " B001" ,
"blockName" : " Rupnagar" ,
"districtId" : " districtId"
}
3. Operational Collections
{
"_id" : " ..." ,
"schoolCode" : " 015" ,
"schoolName" : " Government Primary School" ,
"stateId" : " ..." ,
"districtId" : " ..." ,
"blockId" : " ..." ,
"pincode" : " 140001"
}
{
"_id" : " ..." ,
"teacherId" : " T0001" ,
"firstName" : " Sejal" ,
"lastName" : " Kumari" ,
"email" : " teacher@example.com" ,
"phone" : " 9876543210" ,
"password" : " hashedPassword" ,
"schoolId" : " ..." ,
"isActive" : true ,
"createdBy" : " adminId"
}
{
"_id" : " ..." ,
"className" : " Class 1" ,
"teacherId" : " ..." ,
"schoolId" : " ..."
}
{
"_id" : " ..." ,
"studentId" : " PB-RPR-015-0001" ,
"name" : " Rahul Kumar" ,
"age" : 6 ,
"gender" : " Male" ,
"classId" : " ..." ,
"teacherId" : " ..." ,
"schoolId" : " ..." ,
"createdAt" : " ..."
}
{
"_id" : " ..." ,
"studentId" : " ..." ,
"currentLevel" : " Level 2" ,
"weakTopics" : [
" Addition" ,
" Counting"
],
"strongTopics" : [
" Shapes"
],
"recommendedWorksheets" : [],
"lastAssessment" : " assessmentId"
}
4. Assessment Collections
Question
Difficulty
Topic
Learning Outcome
Bloom's Level
Correct Answer
assessmentId
teacherId
classId
testType
generatedAt
assessmentId
questionId
questionOrder
studentId
assessmentId
score
level
status
studentId
assessmentId
imageUrl
obtainedMarks
competencyAnalysis
suggestedLevel
State
│
▼
District
│
▼
Block
│
▼
School
│
▼
Teacher
│
▼
Class
│
▼
Student
│
▼
Student Profile
│
▼
Assessment
Super Admin
│
▼
Import States
│
▼
Import Districts
│
▼
Import Blocks
│
▼
Create School
│
▼
Create Teacher
Teacher Login
│
▼
Select Class
│
▼
Add Student
│
▼
Student ID Generated
│
▼
Generate Baseline Test
│
▼
Generate PDF
│
▼
Offline Assessment
│
▼
Upload Answer Sheet
│
▼
OCR
│
▼
Evaluation
│
▼
Update Student Profile
│
▼
Generate Recommendation
<State Code>-<District Code>-<School Code>-<Sequence>
Example:
PB-RPR-015-0001
10. Folder Classification
Master Collections
------------------
states
districts
blocks
Operational Collections
-----------------------
schools
teachers
classes
students
studentProfiles
Assessment Collections
----------------------
questionBank
assessments
assessmentQuestions
studentAssessments
AI Collections
--------------
answerSheets
ocrResults
evaluationResults
Analytics
----------
competencies
recommendations
reports