Interchange6::Schema::Result::Cart
The Cart class (table) is used for storing shopping carts with products in the cart held in the related Interchange6::Schema::Result::CartProduct class.
Primary key.
The name of the cart. You might perhaps have a "main" cart that is used by default for the current shopping session and also a "wishlist" cart. Other uses might be "saved_items" so a user can save things for another time or maybe on logout all cart items are moved to "previous_session" cart.
Foreign key constraint on "users_id" in Interchange6::Schema::Result::User via "user" relationship.
Foreign key constraint on "sessions_id" in Interchange6::Schema::Result::Session via "session" relationship. Is nullable.
Date and time when this record was created returned as DateTime object. Value is auto-set on insert.
Date and time when this record was last modified returned as DateTime object. Value is auto-set on insert and update.
On ( name, sessions_id )
Type: has_many
Related object: Interchange6::Schema::Result::CartProduct
Type: belongs_to
Related object: Interchange6::Schema::Result::Session
Related object: Interchange6::Schema::Result::User
Return a clone of the with the new name. If a clone with the same name and same session already exists, the clone is removed and recreated anew.
To install Interchange6::Schema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Interchange6::Schema
CPAN shell
perl -MCPAN -e shell install Interchange6::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.