File Coverage

blib/lib/CatalystX/OAuth2/Schema/Result/Owner.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package CatalystX::OAuth2::Schema::Result::Owner;
2 8     8   15120 use parent 'DBIx::Class';
  8         26  
  8         69  
3              
4             # ABSTRACT: A table for registering resource owners
5              
6             __PACKAGE__->load_components(qw(Core));
7             __PACKAGE__->table('owner');
8             __PACKAGE__->add_columns(
9             id => { data_type => 'int', is_auto_increment => 1 }, );
10             __PACKAGE__->set_primary_key('id');
11              
12             __PACKAGE__->has_many( codes => 'CatalystX::OAuth2::Schema::Result::Code' =>
13             { 'foreign.owner_id' => 'self.id' } );
14              
15             1;
16              
17             __END__
18              
19             =pod
20              
21             =head1 NAME
22              
23             CatalystX::OAuth2::Schema::Result::Owner - A table for registering resource owners
24              
25             =head1 VERSION
26              
27             version 0.001006
28              
29             =head1 AUTHOR
30              
31             Eden Cardim <edencardim@gmail.com>
32              
33             =head1 COPYRIGHT AND LICENSE
34              
35             This software is copyright (c) 2017 by Suretec Systems Ltd.
36              
37             This is free software; you can redistribute it and/or modify it under
38             the same terms as the Perl 5 programming language system itself.
39              
40             =cut