blib/lib/DBIx/Class/Schema/AuditLog/Structure/AuditedTable.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/DBIx/Class/Schema/AuditLog/Structure/Action.pm ↑ Summary blib/lib/DBIx/Class/Schema/AuditLog/Structure/Base.pm »
1 package DBIx::Class::Schema::AuditLog::Structure::AuditedTable;
2 12 $DBIx::Class::Schema::AuditLog::Structure::AuditedTable::VERSION = '0.6.2';
3 12 ▶use base 'DBIx::Class::Schema::AuditLog::Structure::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 12 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 12 __PACKAGE__->table('audit_log_table');
9  
10 12 __PACKAGE__->add_columns(
11 'id' => {
12 'data_type' => 'integer',
13 'is_auto_increment' => 1,
14 'is_nullable' => 0,
15 'name' => 'id',
16 },
17 'name' => {
18 'data_type' => 'varchar',
19 'is_nullable' => 0,
20 'name' => 'name',
21 'size' => 40,
22 },
23 );
24  
25 12 __PACKAGE__->set_primary_key('id');
26  
27 12 __PACKAGE__->add_unique_constraint( [qw/name/] );
28  
29 12 __PACKAGE__->has_many(
30 'Field',
31 'DBIx::Class::Schema::AuditLog::Structure::Field',
32 { 'foreign.audited_table_id' => 'self.id' },
33 );
34  
35 12 __PACKAGE__->has_many(
36 'Action',
37 'DBIx::Class::Schema::AuditLog::Structure::Action',
38 { 'foreign.audited_table_id' => 'self.id' },
39 );
40  
41 12 1;
42  
43 __END__
44  
45 =pod
46  
47 =encoding UTF-8
48  
49 =head1 NAME
50  
51 DBIx::Class::Schema::AuditLog::Structure::AuditedTable
52  
53 =head1 VERSION
54  
55 version 0.6.2
56  
57 =head1 AUTHOR
58  
59 Mark Jubenville <ioncache@cpan.org>
60  
61 =head1 COPYRIGHT AND LICENSE
62  
63 This software is copyright (c) 2012 by Mark Jubenville.
64  
65 This is free software; you can redistribute it and/or modify it under
66 the same terms as the Perl 5 programming language system itself.
67  
68 =cut
« blib/lib/DBIx/Class/Schema/AuditLog/Structure/Action.pm ↑ Summary blib/lib/DBIx/Class/Schema/AuditLog/Structure/Base.pm »