CREATE OR REPLACE TYPE inventory_typ AS OBJECT ( product_id NUMBER(6) , warehouse warehouse_typ , quantity_on_hand NUMBER(8) ) ;