NAME
Mango::Schema::Cart::Item - DBIC schema class for cart items
SYNOPSIS
use
Mango::Schema;
my
$schema
= Mango::Schema->
connect
;
my
$items
=
$schema
->resultset(
'CartItems'
)->search;
DESCRIPTION
Mango::Schema::Cart::Item is loaded by Mango::Schema to read/write cart item data.
COLUMNS
id
Contains the primary key for each cart item record.
id
=> {
data_type
=>
'INT'
,
is_auto_increment
=> 1,
is_nullable
=> 0,
extras
=> {
unsigned
=> 1}
},
cart_id
Contains the foreign key to the cart table.
cart_id
=> {
data_type
=>
'INT'
,
is_nullable
=> 0,
is_foreign_key
=> 1,
extras
=> {
unsigned
=> 1}
},
sku
Contains the sku (Stock Keeping Unit), or part number for the current cart item.
sku
=> {
data_type
=>
'VARCHAR'
,
size
=> 25,
is_nullable
=> 0,
},
quantity
Contains the number of this cart item being ordered.
quantity
=> {
data_type
=>
'TINYINT'
,
size
=> 3,
is_nullable
=> 0,
default_value
=> 1,
extras
=> {
unsigned
=> 1}
},
price
Contains the price if the current cart item.
price
=> {
data_type
=>
'DECIMAL'
,
size
=> [9,2],
is_nullable
=> 0,
default_value
=>
'0.00'
},
description
Contains the description of the current cart item.
description
=> {
data_type
=>
'VARCHAR'
,
size
=> 255,
is_nullable
=> 1,
default_value
=>
undef
},
created
When the cart item record was created.
created
=> {
data_type
=>
'DATETIME'
,
is_nullable
=> 0
},
updated
When the cart item record was updated.
updated
=> {
data_type
=>
'DATETIME'
,
is_nullable
=> 0
}