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