| 1 | 2 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | |||
| 3 | package Interchange6::Schema::Result::UserAttributeValue; | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | Interchange6::Schema::Result::UserAttributeValue | ||
| 8 | |||
| 9 | =cut | ||
| 10 | |||
| 11 | 2 | ▶ | use Interchange6::Schema::Candy; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | =head1 ACCESSORS | ||
| 14 | |||
| 15 | =head2 user_attribute_values_id | ||
| 16 | |||
| 17 | Primary key. | ||
| 18 | |||
| 19 | =cut | ||
| 20 | |||
| 21 | 2 | primary_column user_attribute_values_id => | |
| 22 | { data_type => "integer", is_auto_increment => 1 }; | ||
| 23 | |||
| 24 | =head2 user_attributes_id | ||
| 25 | |||
| 26 | FK on L<Interchange6::Schema::Result::UserAttribute/user_attributes_id>. | ||
| 27 | |||
| 28 | =cut | ||
| 29 | |||
| 30 | 2 | column user_attributes_id => | |
| 31 | { data_type => "integer" }; | ||
| 32 | |||
| 33 | =head2 attribute_values_id | ||
| 34 | |||
| 35 | FK on L<Interchange6::Schema::Result::AttributeValue/attribute_values_id>. | ||
| 36 | |||
| 37 | =cut | ||
| 38 | |||
| 39 | 2 | column attribute_values_id => | |
| 40 | { data_type => "integer" }; | ||
| 41 | |||
| 42 | =head1 RELATIONS | ||
| 43 | |||
| 44 | =head2 user_attribute | ||
| 45 | |||
| 46 | Type: belongs_to | ||
| 47 | |||
| 48 | Related object: L<Interchange6::Schema::Result::UserAttribute> | ||
| 49 | |||
| 50 | =cut | ||
| 51 | |||
| 52 | 2 | belongs_to | |
| 53 | user_attribute => "Interchange6::Schema::Result::UserAttribute", | ||
| 54 | "user_attributes_id", | ||
| 55 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }; | ||
| 56 | |||
| 57 | =head2 attribute_value | ||
| 58 | |||
| 59 | Type: belongs_to | ||
| 60 | |||
| 61 | Related object: L<Interchange6::Schema::Result::AttributeValue> | ||
| 62 | |||
| 63 | =cut | ||
| 64 | |||
| 65 | 2 | belongs_to | |
| 66 | attribute_value => "Interchange6::Schema::Result::AttributeValue", | ||
| 67 | "attribute_values_id", | ||
| 68 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }; | ||
| 69 | |||
| 70 | 2 | 1; | |