Appearance
AI Study Pack
lms.ai_study_pack · every change is kept in the audit log · numbered AIP-{YYYY}-{#####}
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
faculty | faculty | link → core.user | required |
subject | subject | link → core.subject | required |
batch | batch | link → lms.batch | |
semester_number | semester number | number | min 1; max 12 |
college | college | link → core.college | |
chapter_name | chapter name | text | max 255 characters |
display_order | display order | number | min 0 |
source_type | source type | select | one of: Syllabus File, Topic, Chapter PDF; default "Syllabus File" |
source_file | source file | file | |
source_text | source text | longtext | max 500000 characters |
language | language | text | default "English"; max 50 characters |
generated_notes | generated notes | longtext | max 500000 characters |
notes_pdf | notes pdf | file | |
flashcards | flashcards | json | |
quiz | quiz | json | |
mind_map | mind map | json | |
audio_script | audio script | longtext | max 200000 characters |
audio_file | audio file | file | |
video_file | video file | file | |
generation_status | generation status | select | one of: Pending, Processing, Ready, Failed; default "Pending" |
generation_error | generation error | text | max 500 characters |
is_published | is published | check | default false |
published_at | published at | datetime | |
published_features | published features | json |
Permissions
| Role | Can |
|---|---|
lms:admin | read, create, update, delete |
lms:college_admin | read |
lms:hod | read |
lms:faculty | read, create, update, delete — only own rows (via faculty) |
lms:student | read |
API
http
GET /api/lms/ai_study_pack?<field>=<value>&limit=100&offset=0
POST /api/lms/ai_study_pack
GET /api/lms/ai_study_pack/:id
PATCH /api/lms/ai_study_pack/:id
DELETE /api/lms/ai_study_pack/:id