File Coverage

blib/lib/MojoMojo/Schema/Result/PathPermissions.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package MojoMojo::Schema::Result::PathPermissions;
2              
3 40     40   34014 use strict;
  40         204  
  40         1095  
4 40     40   208 use warnings;
  40         93  
  40         923  
5 40     40   1215 use Data::Dumper;
  40         9752  
  40         2185  
6              
7 40     40   370 use parent qw/MojoMojo::Schema::Base::Result/;
  40         96  
  40         253  
8              
9             __PACKAGE__->load_components( "Core" );
10             __PACKAGE__->table("path_permissions");
11             __PACKAGE__->add_columns(
12             "path", { data_type => "VARCHAR", is_nullable => 0, size => 255 },
13             "role", { data_type => "INTEGER", is_nullable => 0, size => undef },
14             "apply_to_subpages", { data_type => "VARCHAR", is_nullable => 0, size => 3 },
15             "create_allowed", { data_type => "VARCHAR", is_nullable => 1, size => 3 },
16             "delete_allowed", { data_type => "VARCHAR", is_nullable => 1, size => 3 },
17             "edit_allowed", { data_type => "VARCHAR", is_nullable => 1, size => 3 },
18             "view_allowed", { data_type => "VARCHAR", is_nullable => 1, size => 3 },
19             "attachment_allowed", { data_type => "VARCHAR", is_nullable => 1, size => 3 },
20             );
21             __PACKAGE__->set_primary_key( "path", "role", "apply_to_subpages" );
22             __PACKAGE__->belongs_to( "role", "MojoMojo::Schema::Result::Role", { id => "role" } );
23              
24             =head1 NAME
25              
26             MojoMojo::Schema::Result::PathPermissions - store path permissions
27              
28             =head1 AUTHOR
29              
30             Marcus Ramberg <mramberg@cpan.org>
31              
32             =head1 LICENSE
33              
34             This library is free software. You can redistribute it and/or modify
35             it under the same terms as Perl itself.
36              
37             =cut
38              
39              
40             1;