CatalystX/OAuth2/Schema/Result/Owner.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 10 / 10 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« CatalystX/OAuth2/Schema/Result/AccessTokenToRefreshToken.pm ↑ Summary CatalystX/OAuth2/Schema/Result/RefreshTokenToAccessToken.pm »
1 package CatalystX::OAuth2::Schema::Result::Owner;
2 10 ▶use parent 'DBIx::Class';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 # ABSTRACT: A table for registering resource owners
5  
6 10 __PACKAGE__->load_components(qw(Core));
7 10 __PACKAGE__->table('owner');
8 10 __PACKAGE__->add_columns(
9 id => { data_type => 'int', is_auto_increment => 1 }, );
10 10 __PACKAGE__->set_primary_key('id');
11  
12 10 __PACKAGE__->has_many( codes => 'CatalystX::OAuth2::Schema::Result::Code' =>
13 { 'foreign.owner_id' => 'self.id' } );
14  
15 10 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
« CatalystX/OAuth2/Schema/Result/AccessTokenToRefreshToken.pm ↑ Summary CatalystX/OAuth2/Schema/Result/RefreshTokenToAccessToken.pm »