mysql> show create table sales_flat_order_item \G;
*************************** 1. row ***************************
Table: sales_flat_order_item
Create Table: CREATE TABLE `sales_flat_order_item` (
`item_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`order_id` int(10) unsigned NOT NULL DEFAULT '0',
`parent_item_id` int(10) unsigned DEFAULT NULL,
`quote_item_id` int(10) unsigned DEFAULT NULL,
`store_id` smallint(5) unsigned DEFAULT NULL,
`created_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`product_id` int(10) unsigned DEFAULT NULL,
`product_type` varchar(255) DEFAULT NULL,
`product_options` text,
`weight` decimal(12,4) DEFAULT '0.0000',
`is_virtual` tinyint(1) unsigned DEFAULT NULL,
`sku` varchar(255) NOT NULL DEFAULT '',
`name` varchar(255) DEFAULT NULL,
`description` text,
`applied_rule_ids` text,
`additional_data` text,
`free_shipping` tinyint(1) unsigned NOT NULL DEFAULT '0',
`is_qty_decimal` tinyint(1) unsigned DEFAULT NULL,
`no_discount` tinyint(1) unsigned DEFAULT '0',
`qty_backordered` decimal(12,4) DEFAULT '0.0000',
`qty_canceled` decimal(12,4) DEFAULT '0.0000',
`qty_invoiced` decimal(12,4) DEFAULT '0.0000',
`qty_ordered` decimal(12,4) DEFAULT '0.0000',
`qty_refunded` decimal(12,4) DEFAULT '0.0000',
`qty_shipped` decimal(12,4) DEFAULT '0.0000',
`base_cost` decimal(12,4) DEFAULT '0.0000',
`price` decimal(12,4) NOT NULL DEFAULT '0.0000',
`base_price` decimal(12,4) NOT NULL DEFAULT '0.0000',
`original_price` decimal(12,4) DEFAULT NULL,
`base_original_price` decimal(12,4) DEFAULT NULL,
`tax_percent` decimal(12,4) DEFAULT '0.0000',
`tax_amount` decimal(12,4) DEFAULT '0.0000',
`base_tax_amount` decimal(12,4) DEFAULT '0.0000',
`tax_invoiced` decimal(12,4) DEFAULT '0.0000',
`base_tax_invoiced` decimal(12,4) DEFAULT '0.0000',
`discount_percent` decimal(12,4) DEFAULT '0.0000',
`discount_amount` decimal(12,4) DEFAULT '0.0000',
`base_discount_amount` decimal(12,4) DEFAULT '0.0000',
`discount_invoiced` decimal(12,4) DEFAULT '0.0000',
`base_discount_invoiced` decimal(12,4) DEFAULT '0.0000',
`amount_refunded` decimal(12,4) DEFAULT '0.0000',
`base_amount_refunded` decimal(12,4) DEFAULT '0.0000',
`row_total` decimal(12,4) NOT NULL DEFAULT '0.0000',
`base_row_total` decimal(12,4) NOT NULL DEFAULT '0.0000',
`row_invoiced` decimal(12,4) NOT NULL DEFAULT '0.0000',
`base_row_invoiced` decimal(12,4) NOT NULL DEFAULT '0.0000',
`row_weight` decimal(12,4) DEFAULT '0.0000',
`gift_message_id` int(10) DEFAULT NULL,
`gift_message_available` int(10) DEFAULT NULL,
`base_tax_before_discount` decimal(12,4) DEFAULT NULL,
`tax_before_discount` decimal(12,4) DEFAULT NULL,
`ext_order_item_id` varchar(255) DEFAULT NULL,
`weee_tax_applied` text,
`weee_tax_applied_amount` decimal(12,4) DEFAULT NULL,
`weee_tax_applied_row_amount` decimal(12,4) DEFAULT NULL,
`base_weee_tax_applied_amount` decimal(12,4) DEFAULT NULL,
`base_weee_tax_applied_row_amount` decimal(12,4) DEFAULT NULL,
`weee_tax_disposition` decimal(12,4) DEFAULT NULL,
`weee_tax_row_disposition` decimal(12,4) DEFAULT NULL,
`base_weee_tax_disposition` decimal(12,4) DEFAULT NULL,
`base_weee_tax_row_disposition` decimal(12,4) DEFAULT NULL,
`locked_do_invoice` tinyint(1) unsigned DEFAULT NULL,
`locked_do_ship` tinyint(1) unsigned DEFAULT NULL,
`price_incl_tax` decimal(12,4) DEFAULT NULL,
`base_price_incl_tax` decimal(12,4) DEFAULT NULL,
`row_total_incl_tax` decimal(12,4) DEFAULT NULL,
`base_row_total_incl_tax` decimal(12,4) DEFAULT NULL,
`hidden_tax_amount` decimal(12,4) DEFAULT NULL,
`base_hidden_tax_amount` decimal(12,4) DEFAULT NULL,
`hidden_tax_invoiced` decimal(12,4) DEFAULT NULL,
`base_hidden_tax_invoiced` decimal(12,4) DEFAULT NULL,
`hidden_tax_refunded` decimal(12,4) DEFAULT NULL,
`base_hidden_tax_refunded` decimal(12,4) DEFAULT NULL,
`is_nominal` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`item_id`),
KEY `IDX_ORDER` (`order_id`),
KEY `IDX_STORE_ID` (`store_id`),
CONSTRAINT `FK_SALES_FLAT_ORDER_ITEM_PARENT` FOREIGN KEY (`order_id`) REFERENCES `sales_flat_order` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `FK_SALES_FLAT_ORDER_ITEM_STORE` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3808 DEFAULT CHARSET=utf8
1 row in set (0.00 sec)