<?php
require 'includes/db.php';
echo "inventory_item_product:\n";
$cols = fetchAll('DESCRIBE inventory_item_product');
foreach($cols as $c) echo $c['Field'] . " (" . $c['Type'] . ")\n";

echo "\nproduction_line_products:\n";
$cols = fetchAll('DESCRIBE production_line_products');
foreach($cols as $c) echo $c['Field'] . " (" . $c['Type'] . ")\n";

echo "\nline_stages:\n";
$cols = fetchAll('DESCRIBE line_stages');
foreach($cols as $c) echo $c['Field'] . " (" . $c['Type'] . ")\n";
