« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Article.pm
↑ Summary
blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Refund.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::Variant; | ||
| 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_variants'); | |
| 12 | 1 | __PACKAGE__->add_columns( | |
| 13 | "title", { is_nullable => '1', data_type => 'TEXT' }, | ||
| 14 | "option1", { is_nullable => '1', data_type => 'TEXT' }, | ||
| 15 | "inventory_quantity", { is_nullable => '1', data_type => 'INT' }, | ||
| 16 | "created_at", { is_nullable => '1', data_type => 'DATETIME' }, | ||
| 17 | "updated_at", { is_nullable => '1', data_type => 'DATETIME' }, | ||
| 18 | "taxable", { is_nullable => '1', data_type => 'BOOL' }, | ||
| 19 | "old_inventory_quantity", { data_type => 'INT', is_nullable => '1' }, | ||
| 20 | "sku", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 21 | "inventory_policy", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 22 | "position", { is_nullable => '1', data_type => 'INT' }, | ||
| 23 | "fufillment_service", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 24 | "barcode", { is_nullable => '1', data_type => 'VARCHAR(255)' }, | ||
| 25 | "price", { is_nullable => '1', data_type => 'DECIMAL(10,2)' }, | ||
| 26 | "requires_shipping", { data_type => 'BOOL', is_nullable => '1' }, | ||
| 27 | "id", { is_nullable => '0', data_type => 'BIGINT' }, | ||
| 28 | "grams", { data_type => 'INT', is_nullable => '1' }, | ||
| 29 | "inventory_management", { data_type => 'VARCHAR(255)', is_nullable => '1' }, | ||
| 30 | "compare_at_price", { is_nullable => '1', data_type => 'DECIMAL(10,2)' }, | ||
| 31 | "option2", { data_type => 'TEXT', is_nullable => '1' }, | ||
| 32 | "option3", { data_type => 'TEXT', is_nullable => '1' }, | ||
| 33 | "image_id", { is_nullable => '1', data_type => 'BIGINT' }, | ||
| 34 | "product_id", { data_type => 'BIGINT' }, | ||
| 35 | "shop_id", { data_type => "BIGINT" } | ||
| 36 | ); | ||
| 37 | 1 | __PACKAGE__->set_primary_key('id'); | |
| 38 | |||
| 39 | |||
| 40 | |||
| 41 | 1 | __PACKAGE__->belongs_to(shop => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Shop', 'shop_id'); | |
| 42 | |||
| 43 | 1 | __PACKAGE__->belongs_to(image => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Product::Image', 'image_id', { join_type => 'left' }); | |
| 44 | 1 | __PACKAGE__->belongs_to(product => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Product', 'product_id'); | |
| 45 | 1 | __PACKAGE__->has_many(metafields_hasmany => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::MetafieldVariant', 'variant_id'); | |
| 46 | 1 | __PACKAGE__->many_to_many(metafields => 'metafields_hasmany', 'metafield'); | |
| 47 | 0 | ▶ | sub represents { return 'WWW::Shopify::Model::Product::Variant'; } |
|
Subroutine
represents: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 48 | 0 | ▶ | sub parent_variable { return 'product_id'; } |
|
Subroutine
parent_variable: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 49 | |||
| 50 | 1 | 1; | |