| line | stmt | bran | cond | sub | pod | time | code | 
| 1 | 2 |  |  | 2 |  | 1238 | use utf8; | 
|  | 2 |  |  |  |  | 13 |  | 
|  | 2 |  |  |  |  | 51 |  | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | package Interchange6::Schema::Result::MerchandisingAttribute; | 
| 4 |  |  |  |  |  |  |  | 
| 5 |  |  |  |  |  |  | =head1 NAME | 
| 6 |  |  |  |  |  |  |  | 
| 7 |  |  |  |  |  |  | Interchange6::Schema::Result::MerchandisingAttribute | 
| 8 |  |  |  |  |  |  |  | 
| 9 |  |  |  |  |  |  | =cut | 
| 10 |  |  |  |  |  |  |  | 
| 11 | 2 |  |  | 2 |  | 97 | use Interchange6::Schema::Candy; | 
|  | 2 |  |  |  |  | 7 |  | 
|  | 2 |  |  |  |  | 15 |  | 
| 12 |  |  |  |  |  |  |  | 
| 13 |  |  |  |  |  |  | =head1 ACCESSORS | 
| 14 |  |  |  |  |  |  |  | 
| 15 |  |  |  |  |  |  | =head2 merchandising_attributes_id | 
| 16 |  |  |  |  |  |  |  | 
| 17 |  |  |  |  |  |  | Primary key. | 
| 18 |  |  |  |  |  |  |  | 
| 19 |  |  |  |  |  |  | =cut | 
| 20 |  |  |  |  |  |  |  | 
| 21 |  |  |  |  |  |  | primary_column merchandising_attributes_id => { | 
| 22 |  |  |  |  |  |  | data_type         => "integer", | 
| 23 |  |  |  |  |  |  | is_auto_increment => 1, | 
| 24 |  |  |  |  |  |  | sequence => "merchandising_attributes_merchandising_attributes_id_seq", | 
| 25 |  |  |  |  |  |  | }; | 
| 26 |  |  |  |  |  |  |  | 
| 27 |  |  |  |  |  |  | =head2 merchandising_products_id | 
| 28 |  |  |  |  |  |  |  | 
| 29 |  |  |  |  |  |  | FK on L<Interchange6::Schema::Result::MerchandisingProduct/merchandising_products_id>. | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | =cut | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | column merchandising_products_id => | 
| 34 |  |  |  |  |  |  | { data_type => "integer" }; | 
| 35 |  |  |  |  |  |  |  | 
| 36 |  |  |  |  |  |  | =head2 name | 
| 37 |  |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | Name. | 
| 39 |  |  |  |  |  |  |  | 
| 40 |  |  |  |  |  |  | =cut | 
| 41 |  |  |  |  |  |  |  | 
| 42 |  |  |  |  |  |  | column name => { data_type => "varchar", size => 32 }; | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | =head2 value | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | Value. | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | =cut | 
| 49 |  |  |  |  |  |  |  | 
| 50 |  |  |  |  |  |  | column value => { data_type => "text" }; | 
| 51 |  |  |  |  |  |  |  | 
| 52 |  |  |  |  |  |  | =head1 RELATIONS | 
| 53 |  |  |  |  |  |  |  | 
| 54 |  |  |  |  |  |  | =head2 merchandising_product | 
| 55 |  |  |  |  |  |  |  | 
| 56 |  |  |  |  |  |  | Type: belongs_to | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | Related object: L<Interchange6::Schema::Result::MerchandisingProduct> | 
| 59 |  |  |  |  |  |  |  | 
| 60 |  |  |  |  |  |  | =cut | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | belongs_to | 
| 63 |  |  |  |  |  |  | merchandising_product => "Interchange6::Schema::Result::MerchandisingProduct", | 
| 64 |  |  |  |  |  |  | "merchandising_products_id", | 
| 65 |  |  |  |  |  |  | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }; | 
| 66 |  |  |  |  |  |  |  | 
| 67 |  |  |  |  |  |  | 1; |