File Coverage

blib/lib/Interchange6/Schema/Result/UserAttributeValue.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1 2     2   1179 use utf8;
  2         5  
  2         13  
2              
3             package Interchange6::Schema::Result::UserAttributeValue;
4              
5             =head1 NAME
6              
7             Interchange6::Schema::Result::UserAttributeValue
8              
9             =cut
10              
11 2     2   94 use Interchange6::Schema::Candy;
  2         7  
  2         13  
12              
13             =head1 ACCESSORS
14              
15             =head2 user_attribute_values_id
16              
17             Primary key.
18              
19             =cut
20              
21             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             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             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             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             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             1;