Appearance
Uploaded Document
sfc.document · every change is kept in the audit log
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
application | application | link → sfc.application | required |
student | student | link → core.student | required |
entered_by | entered by | link → core.user | |
education | education | link → sfc.education | |
document_type | document type | text | required |
file | file | file | required; personal data |
prn | prn | text | personal data |
sem_year | sem year | select | one of: First Year, Second Year, Third Year, Fourth Year, Fifth Year, Sixth Year, Seventh Year, Eighth Year, Ninth Year, Tenth Year, Semester 1, Semester 2, Semester 3, Semester 4, Semester 5, Semester 6, Semester 7, Semester 8, Semester 9, Semester 10 |
verified | verified | check | default false |
errata | errata | check | default false |
errata_notes | errata notes | text | |
upload_status | upload status | select | one of: Default, Requested, Updated; default "Default" |
fetched_from_exam | fetched from exam | check | default false |
ocr_done | ocr done | check | default false |
detached_at | detached at | datetime | |
detached_reason | detached reason | text | max 64 characters |
extra_fields | extra fields | json |
Permissions
| Role | Can |
|---|---|
sfc:admin | read, create, update, delete |
sfc:verifier | read, update |
sfc:signatory | read |
sfc:printer | read |
sfc:student | read, create, update — only own rows (via student) |
sfc:agent | read, create, update — only own rows (via entered_by) |
API
http
GET /api/sfc/document?<field>=<value>&limit=100&offset=0
POST /api/sfc/document
GET /api/sfc/document/:id
PATCH /api/sfc/document/:id
DELETE /api/sfc/document/:id