Work order types.
Work order types.
is_planned is what separates preventive work from a breakdown without a client knowing any type code. parent_id/depth/path/parent_name carry the same tree shape api.work_type_settings does, so a type filed under another one is offered nested rather than as a bare, unplaced row. depth counts the levels above this one however many there are, and path reads them out — “Preventive › Predictive › Vibration”.
site_ids says where the type is offered — empty means everywhere, not nowhere. A job filed against a location counts as being at that location’s site. category_ids says which classes of equipment it is offered for, read the same way.

