Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Apprentices (tbl0HJM700Jmd5Oob) - primary learner record
├── Support log (tblWINmz4JDtVUucD)
├── Learner Touchpoint Log (tbl2O3QcYpss1SaP4)
└── Cohorts (tbllAnSw8VPYFAa1a)
└── Events - Apprentice Pulse (tblkbskw4fuTq0E9p)

Progress Reviews (Employer Feedback) (tblwdSYGgGMXJ1DX7)
└── Apprentice record → links to Apprentices
Expand Down Expand Up @@ -202,6 +203,22 @@ Cohort reference for filtering and grouping.

---

## Events - Apprentice Pulse

**Table ID:** `tblkbskw4fuTq0E9p`

Scheduled events/sessions for attendance tracking.

| Field | ID | Type | Purpose |
|-------|-----|------|---------|
| Name | `fldMCZijN6TJeUdFR` | singleLineText | Event name |
| FAC Cohort | `fldcXDEDkeHvWTnxE` | multipleRecordLinks | Links to Cohorts |
| Date Time | `fld8AkM3EanzZa5QX` | dateTime | Event start date and time |
| Event Type | `fldo7fwAsFhkA1icC` | singleSelect | Regular class, Workshop, Hackathon |
| Survey | `fld9XBHnCWBtZiZah` | url | Optional survey form URL |

---

## Learner Touchpoint Log

**Table ID:** `tbl2O3QcYpss1SaP4`
Expand Down
10 changes: 10 additions & 0 deletions src/lib/airtable/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const TABLES = {
COHORTS: 'tbllAnSw8VPYFAa1a',
APPRENTICES: 'tbl0HJM700Jmd5Oob',
STAFF: 'tblJjn62ExE1LVjmx',
EVENTS: 'tblkbskw4fuTq0E9p',
} as const;

// Fields - Cohorts
Expand All @@ -27,3 +28,12 @@ export const APPRENTICE_FIELDS = {
export const STAFF_FIELDS = {
COLLABORATOR: 'fldHEHhQInmSdipn8', // singleCollaborator with { id, email, name }
} as const;

// Fields - Events
export const EVENT_FIELDS = {
NAME: 'fldMCZijN6TJeUdFR',
COHORT: 'fldcXDEDkeHvWTnxE', // multipleRecordLinks to Cohorts
DATE_TIME: 'fld8AkM3EanzZa5QX', // dateTime (combined date and time)
EVENT_TYPE: 'fldo7fwAsFhkA1icC', // singleSelect (Regular class, Workshop, Hackathon)
SURVEY: 'fld9XBHnCWBtZiZah', // url (optional survey form)
} as const;