lib/Mojolicious/Plugin/Fondation/Perm/Schema/Result/GroupPerm.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Mojolicious/Plugin/Fondation/Perm.pm ↑ Summary lib/Mojolicious/Plugin/Fondation/Perm/Schema/Result/Perm.pm »
1 package Mojolicious::Plugin::Fondation::Perm::Schema::Result::GroupPerm;
2 1 $Mojolicious::Plugin::Fondation::Perm::Schema::Result::GroupPerm::VERSION = '0.04';
3 # ABSTRACT: DBIx::Class Result class for group_perm pivot table
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use base 'Mojolicious::Plugin::Fondation::Schema::Result::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 __PACKAGE__->load_components(qw/TimeStamp Core/);
11  
12 1 __PACKAGE__->table('group_perm');
13  
14 1 __PACKAGE__->add_columns(
15 id => { data_type => 'integer', is_auto_increment => 1, is_nullable => 0 },
16 group_id => { data_type => 'integer', is_nullable => 0 },
17 perm_id => { data_type => 'integer', is_nullable => 0 },
18  
19 created_at => { data_type => 'datetime', is_nullable => 0, set_on_create => 1, set_on_update => 1 },
20 );
21  
22 1 __PACKAGE__->set_primary_key('id');
23  
24 1 __PACKAGE__->belongs_to(
25 'perm',
26 'Mojolicious::Plugin::Fondation::Perm::Schema::Result::Perm',
27 'perm_id',
28 );
29  
30 1 1;
31  
32 __END__
« lib/Mojolicious/Plugin/Fondation/Perm.pm ↑ Summary lib/Mojolicious/Plugin/Fondation/Perm/Schema/Result/Perm.pm »