The created rolling stock
Rolling Stock Livery
A rolling stock can have several liveries, which are deleted on cascade if the rolling stock is removed. It can have several liveries, and each livery can have one or several separated images and one compound image (created by aggregating the separated images together).
A livery has a compound_image_id field which refers to a document. The separated images of the livery also have a image_id field which refers to a document.
/!\ Its compound image is not deleted by cascade if the livery is removed.