Interchange6-Schema
view release on metacpan or search on metacpan
lib/Interchange6/Schema/Result/ProductAttribute.pm view on Meta::CPAN
column canonical =>
{ data_type => "boolean", default_value => 1 };
=head1 UNIQUE CONSTRAINT
=head2 sku_attributes_id
=over 4
=item * L</sku>
=item * L</attributes_id>
=back
=cut
unique_constraint sku_attributes_id => [qw/sku attributes_id/];
=head1 RELATIONS
=head2 product
Type: belongs_to
Related object: L<Interchange6::Schema::Result::Product>
=cut
belongs_to
product => "Interchange6::Schema::Result::Product",
"sku",
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" };
=head2 attribute
Type: belongs_to
Related object: L<Interchange6::Schema::Result::Attribute>
=cut
belongs_to
attribute => "Interchange6::Schema::Result::Attribute",
"attributes_id",
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" };
=head2 product_attribute_values
Type: has_many
Related object: L<Interchange6::Schema::Result::ProductAttributeValue>
=cut
has_many
product_attribute_values =>
"Interchange6::Schema::Result::ProductAttributeValue",
"product_attributes_id",
{ cascade_copy => 0, cascade_delete => 0 };
1;
( run in 0.614 second using v1.01-cache-2.11-cpan-39bf76dae61 )