The packageId on a ReportFigure is the foreign key that binds the chart or map definition to a specific compliance report. When Piper renders a ReportVersion for a package, it collects all ReportFigure records with a matching packageId that have included set to true, generates each chart from live data, and assembles them in order. If you want to reuse a figure definition in a different report, you would create a new ReportFigure with the new package's packageId rather than modifying the original.
Technical section
Data model, API, and internals — visible to developers.
