line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
1259
|
use utf8; |
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
15
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Interchange6::Schema::Result::UserAttribute; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 NAME |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
Interchange6::Schema::Result::UserAttribute |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=cut |
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
101
|
use Interchange6::Schema::Candy; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
18
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 ACCESSORS |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head2 user_attributes_id |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
Primary key. |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=cut |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
primary_column user_attributes_id => { |
22
|
|
|
|
|
|
|
data_type => "integer", |
23
|
|
|
|
|
|
|
is_auto_increment => 1, |
24
|
|
|
|
|
|
|
sequence => "user_attributes_user_attributes_id_seq", |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head2 users_id |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
FK on L<Interchange6::Schema::Result::User/users_id>. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=cut |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
column users_id => |
34
|
|
|
|
|
|
|
{ data_type => "integer" }; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head2 attributes_id |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
FK on L<Interchange6::Schema::Result::Attribute/attributes_id>. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
column attributes_id => |
43
|
|
|
|
|
|
|
{ data_type => "integer" }; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 UNIQUE CONSTRAINT |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head2 users_id_attributes_id |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=over 4 |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=item * L</users_id> |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=item * L</attributes_id> |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=back |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
unique_constraint users_id_attributes_id => [qw/users_id attributes_id/]; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 RELATIONS |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head2 user |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Type: belongs_to |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Related object: L<Interchange6::Schema::Result::User> |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=cut |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
belongs_to |
72
|
|
|
|
|
|
|
user => "Interchange6::Schema::Result::User", |
73
|
|
|
|
|
|
|
"users_id", |
74
|
|
|
|
|
|
|
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }; |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head2 attribute |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Type: belongs_to |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Related object: L<Interchange6::Schema::Result::Attribute> |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=cut |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
belongs_to |
85
|
|
|
|
|
|
|
attribute => "Interchange6::Schema::Result::Attribute", |
86
|
|
|
|
|
|
|
"attributes_id", |
87
|
|
|
|
|
|
|
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }; |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head2 user_attribute_values |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Type: has_many |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Related object: L<Interchange6::Schema::Result::UserAttributeValue> |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=cut |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
has_many |
98
|
|
|
|
|
|
|
user_attribute_values => "Interchange6::Schema::Result::UserAttributeValue", |
99
|
|
|
|
|
|
|
"user_attributes_id", |
100
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }; |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
1; |