Skip to content

Drawings registry

ADMINISTRATOR The global drawings registry catalogues every technical drawing referenced across the fleet (yard drawings like H-1, H-3, H-19; system schematics; isometrics).

Tables

  • drawings(id, registry_code, title, vessel_id, file_key, ...). vessel_id NULL for fleet-wide drawings.
  • components.drawing_refs — JSON array of registry_code strings on each component (added by migration 0086).

Migration 0087 backfill

/api/admin/migrations/0087-drawing-refs-rerun — parses leftover H-token references (regex /H-\d+[A-Z]?/gi) out of the location field into drawing_refs. Cursor-paginated with MAX_OFFSET=50000; returns {halted, nextCursor} on partial completion.

Linking drawings from a component

The "Link a technical drawing" smart-hint (v2.29.4) opens the upload picker when clicked — earlier versions only scrolled, which made operators think the link was broken.

Mutation policy

Only the administrator can add, rename, or delete entries in drawings. canManageFoundation() gate.

RAPAX PMS Help · v2.31.0.26 · released 2026-04-28