Mango::Schema::Order::Item - DBIC schema class for order items
use Mango::Schema; my $schema = Mango::Schema->connect; my $items = $schema->resultset('OrderItems')->search;
Mango::Schema::Order::Item is loaded by Mango::Schema to read/write order item data.
Contains the primary key for each order item record.
id => { data_type => 'INT', is_auto_increment => 1, is_nullable => 0, extras => {unsigned => 1} },
Contains the foreign key to the orders table.
order_id => { data_type => 'INT', is_nullable => 0, is_foreign_key => 1, extras => {unsigned => 1} },
Contains the sku (Stock Keeping Unit), or part number for the current order item.
sku => { data_type => 'VARCHAR', size => 25, is_nullable => 0, },
Contains the number of this order item being ordered.
quantity => { data_type => 'TINYINT', size => 3, is_nullable => 0, default_value => 1, extras => {unsigned => 1} },
The price of the current order item.
price => { data_type => 'DECIMAL', size => [9,2], is_nullable => 0, default_value => '0.00' },
The total cost of this order item.
total => { data_type => 'DECIMAL', size => [9,2], is_nullable => 0, default_value => '0.00' },
Contains the description of the current order item.
description => { data_type => 'VARCHAR', size => 255, is_nullable => 1, default_value => undef },
When the order item record was created.
created => { data_type => 'DATETIME', is_nullable => 0 },
When the order item record was updated.
updated => { data_type => 'DATETIME', is_nullable => 0 }
Christopher H. Laco CPAN ID: CLACO claco@chrislaco.com http://today.icantfocus.com/blog/
To install Mango, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mango
CPAN shell
perl -MCPAN -e shell install Mango
For more information on module installation, please visit the detailed CPAN module installation guide.