line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package RapidApp::CoreSchema::Result::Role; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
554
|
use strict; |
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
30
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use Moose; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
7
|
|
7
|
1
|
|
|
1
|
|
5804
|
use MooseX::NonMoose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
8
|
1
|
|
|
1
|
|
4598
|
use namespace::autoclean; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
13
|
|
9
|
|
|
|
|
|
|
extends 'DBIx::Class::Core'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__PACKAGE__->table('role'); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
14
|
|
|
|
|
|
|
"id", |
15
|
|
|
|
|
|
|
{ |
16
|
|
|
|
|
|
|
data_type => "integer", |
17
|
|
|
|
|
|
|
extra => { unsigned => 1 }, |
18
|
|
|
|
|
|
|
is_auto_increment => 1, |
19
|
|
|
|
|
|
|
is_nullable => 0, |
20
|
|
|
|
|
|
|
}, |
21
|
|
|
|
|
|
|
"role", |
22
|
|
|
|
|
|
|
{ data_type => "varchar", is_nullable => 0, is_foreign_key => 1, size => 64 }, |
23
|
|
|
|
|
|
|
"description", |
24
|
|
|
|
|
|
|
{ data_type => "varchar", is_nullable => 0, size => 255 }, |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("id"); |
27
|
|
|
|
|
|
|
__PACKAGE__->add_unique_constraint("role_name", ["role"]); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
30
|
|
|
|
|
|
|
"user_to_roles", |
31
|
|
|
|
|
|
|
"RapidApp::CoreSchema::Result::UserToRole", |
32
|
|
|
|
|
|
|
{ "foreign.role" => "self.role" }, |
33
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
34
|
|
|
|
|
|
|
); |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
37
|
|
|
|
|
|
|
"navtree_node_to_roles", |
38
|
|
|
|
|
|
|
"RapidApp::CoreSchema::Result::NavtreeNodeToRole", |
39
|
|
|
|
|
|
|
{ "foreign.role" => "self.role" }, |
40
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
41
|
|
|
|
|
|
|
); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__PACKAGE__->load_components('+RapidApp::DBIC::Component::TableSpec'); |
44
|
|
|
|
|
|
|
__PACKAGE__->apply_TableSpec; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__PACKAGE__->TableSpec_set_conf( |
47
|
|
|
|
|
|
|
title => 'Role', |
48
|
|
|
|
|
|
|
title_multi => 'Roles', |
49
|
|
|
|
|
|
|
iconCls => 'ra-icon-user-pref', |
50
|
|
|
|
|
|
|
multiIconCls => 'ra-icon-user-prefs', |
51
|
|
|
|
|
|
|
display_column => 'role', |
52
|
|
|
|
|
|
|
priority_rel_columns => 1, |
53
|
|
|
|
|
|
|
); |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__PACKAGE__->TableSpec_set_conf('column_properties_ordered', |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
id => { no_column => \1, no_multifilter => \1, no_quick_search => \1 }, |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
role => { |
60
|
|
|
|
|
|
|
header => 'Role', |
61
|
|
|
|
|
|
|
width => 150, |
62
|
|
|
|
|
|
|
allow_edit => \1 |
63
|
|
|
|
|
|
|
}, |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
description => { |
66
|
|
|
|
|
|
|
header => 'Description', |
67
|
|
|
|
|
|
|
width => 350, |
68
|
|
|
|
|
|
|
}, |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
); |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
73
|
|
|
|
|
|
|
1; |