Teachers
A teacher may or may not have a staff login (user_id is nullable).
Teacher pay is computed from the class roster
(report_students_per_teacher), not from check-ins.
list_teachers
Section titled “list_teachers”| Argument | Type | Required | Notes |
|---|---|---|---|
limit | number | no | default 50, max 200 |
offset | number | no | default 0 |
Ordered by full_name ascending.
get_teacher
Section titled “get_teacher”| Argument | Type | Required |
|---|---|---|
id | uuid | yes |
create_teacher
Section titled “create_teacher”| Argument | Type | Required | Notes |
|---|---|---|---|
full_name | string | yes | |
revenue_share_pct | number | yes | 0-100 |
user_id | uuid | null | no | links an existing staff login |
update_teacher
Section titled “update_teacher”Same fields as create_teacher, all optional, plus id (required).
delete_teacher
Section titled “delete_teacher”| Argument | Type | Required |
|---|---|---|
id | uuid | yes |
Fails if any classes row still references this teacher.