lib/MojoMojo/Schema/Result/RoleMember.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/MojoMojo/Schema/Result/Role.pm ↑ Summary lib/MojoMojo/Schema/Result/RolePrivilege.pm »
1 package MojoMojo::Schema::Result::RoleMember;
2  
3 40 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 40 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 40 ▶use parent qw/MojoMojo::Schema::Base::Result/;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 40 __PACKAGE__->load_components( "Core" );
9 40 __PACKAGE__->table("role_member");
10 40 __PACKAGE__->add_columns(
11 "role", { data_type => "INTEGER", is_nullable => 0, size => undef },
12 "person", { data_type => "INTEGER", is_nullable => 0, size => undef },
13 "admin", { data_type => "INTEGER", is_nullable => 0, size => undef, default => 0 },
14 );
15 40 __PACKAGE__->set_primary_key( "role", "person" );
16 40 __PACKAGE__->belongs_to( "role", "MojoMojo::Schema::Result::Role", { id => "role" } );
17 40 __PACKAGE__->belongs_to( "person", "MojoMojo::Schema::Result::Person", { id => "person" } );
18  
19 =head1 NAME
20  
21 MojoMojo::Schema::Result::RoleMember - store members of roles
22  
23 =head1 AUTHOR
24  
25 Marcus Ramberg <mramberg@cpan.org>
26  
27 =head1 LICENSE
28  
29 This library is free software. You can redistribute it and/or modify
30 it under the same terms as Perl itself.
31  
32 =cut
33  
34  
35 40 1;
« lib/MojoMojo/Schema/Result/Role.pm ↑ Summary lib/MojoMojo/Schema/Result/RolePrivilege.pm »