« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Product.pm
↑ Summary
blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Checkout.pm »
| 1 | |||
| 2 | #!/usr/bin/perl | ||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | # This class is generated from DBIx.pm. Do not modify. | ||
| 6 | package WWW::Shopify::Model::DBIx::Schema::Result::Model::Customer; | ||
| 7 | 1 | ▶ | use base qw/DBIx::Class::Core/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | __PACKAGE__->load_components(qw/InflateColumn::DateTime/); | |
| 10 | |||
| 11 | 1 | __PACKAGE__->table('shopify_customers'); | |
| 12 | 1 | __PACKAGE__->add_columns( | |
| 13 | "image_url", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 14 | "verified_email", { is_nullable => '1', data_type => 'BOOL' }, | ||
| 15 | "password", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 16 | "note", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 17 | "id", { data_type => 'BIGINT', is_nullable => '0' }, | ||
| 18 | "orders_count", { data_type => 'INT', is_nullable => '1' }, | ||
| 19 | "total_spent", { data_type => 'DECIMAL(10,2)', is_nullable => '1' }, | ||
| 20 | "send_email_invite", { is_nullable => '1', data_type => 'BOOL' }, | ||
| 21 | "password_confirmation", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 22 | "email", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 23 | "state", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 24 | "last_order_name", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 25 | "tags", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 26 | "first_name", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 27 | "multipass_identifier", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 28 | "last_name", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 29 | "created_at", { data_type => 'DATETIME', is_nullable => '1' }, | ||
| 30 | "accepts_marketing", { is_nullable => '1', data_type => 'BOOL' }, | ||
| 31 | "updated_at", { is_nullable => '1', data_type => 'DATETIME' }, | ||
| 32 | "default_address_id", { data_type => 'BIGINT', is_nullable => '1' }, | ||
| 33 | "last_order_id", { is_nullable => '1', data_type => 'BIGINT' }, | ||
| 34 | "shop_id", { data_type => "BIGINT" } | ||
| 35 | ); | ||
| 36 | 1 | __PACKAGE__->set_primary_key('id'); | |
| 37 | |||
| 38 | 1 | __PACKAGE__->add_unique_constraint(constraint_name => [ "email" ]); | |
| 39 | |||
| 40 | 1 | __PACKAGE__->belongs_to(shop => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Shop', 'shop_id'); | |
| 41 | |||
| 42 | 1 | __PACKAGE__->belongs_to(default_address => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Address', 'default_address_id'); | |
| 43 | 1 | __PACKAGE__->belongs_to(last_order => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order', 'last_order_id'); | |
| 44 | 1 | __PACKAGE__->has_many(addresses_hasmany => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::AddressCustomer', 'customer_id'); | |
| 45 | 1 | __PACKAGE__->many_to_many(addresses => 'addresses_hasmany', 'address'); | |
| 46 | 1 | __PACKAGE__->has_many(metafields_hasmany => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::CustomerMetafield', 'customer_id'); | |
| 47 | 1 | __PACKAGE__->many_to_many(metafields => 'metafields_hasmany', 'metafield'); | |
| 48 | 0 | ▶ | sub represents { return 'WWW::Shopify::Model::Customer'; } |
|
Subroutine
represents: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 49 | 0 | ▶ | sub parent_variable { return undef; } |
|
Subroutine
parent_variable: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 50 | |||
| 51 | 1 | 1; | |