« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/GiftCard.pm
↑ Summary
blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Customer.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::Product; | ||
| 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_products'); | |
| 12 | 1 | __PACKAGE__->add_columns( | |
| 13 | "published_at", { is_nullable => '1', data_type => 'DATETIME' }, | ||
| 14 | "vendor", { data_type => 'TEXT', is_nullable => '1' }, | ||
| 15 | "id", { data_type => 'BIGINT', is_nullable => '0' }, | ||
| 16 | "body_html", { is_nullable => '1', data_type => 'TEXT' }, | ||
| 17 | "tags", { data_type => 'TEXT', is_nullable => '1' }, | ||
| 18 | "handle", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 19 | "template_suffix", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 20 | "product_type", { data_type => 'TEXT', is_nullable => '1' }, | ||
| 21 | "published_scope", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 22 | "title", { data_type => 'TEXT', is_nullable => '1' }, | ||
| 23 | "created_at", { data_type => 'DATETIME', is_nullable => '1' }, | ||
| 24 | "updated_at", { data_type => 'DATETIME', is_nullable => '1' }, | ||
| 25 | "shop_id", { data_type => "BIGINT" } | ||
| 26 | ); | ||
| 27 | 1 | __PACKAGE__->set_primary_key('id'); | |
| 28 | |||
| 29 | |||
| 30 | |||
| 31 | 1 | __PACKAGE__->belongs_to(shop => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Shop', 'shop_id'); | |
| 32 | |||
| 33 | 1 | __PACKAGE__->has_many(options => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Product::Option', 'product_id'); | |
| 34 | 1 | __PACKAGE__->has_many(variants => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Product::Variant', 'product_id'); | |
| 35 | 1 | __PACKAGE__->has_many(images => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Product::Image', 'product_id'); | |
| 36 | 1 | __PACKAGE__->has_many(metafields_hasmany => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::MetafieldProduct', 'product_id'); | |
| 37 | 1 | __PACKAGE__->many_to_many(metafields => 'metafields_hasmany', 'metafield'); | |
| 38 | 0 | ▶ | sub represents { return 'WWW::Shopify::Model::Product'; } |
|
Subroutine
represents: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 39 | 0 | ▶ | sub parent_variable { return undef; } |
|
Subroutine
parent_variable: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 40 | 1 | __PACKAGE__->has_many('collects', 'WWW::Shopify::Model::DBIx::Schema::Result::Model::CustomCollection::Collect', 'product_id'); | |
| 41 | |||
| 42 | 1 | 1; | |