Tapper/Schema/TestrunDB/Result/ReportComment.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Tapper/Schema/TestrunDB/Result/QueueHost.pm ↑ Summary Tapper/Schema/TestrunDB/Result/ReportTopic.pm »
1 package Tapper::Schema::TestrunDB::Result::ReportComment;
2 10 our $AUTHORITY = 'cpan:TAPPER';
3 10 $Tapper::Schema::TestrunDB::Result::ReportComment::VERSION = '5.0.12';
4 # ABSTRACT: Tapper - Containing comments of reports
5  
6 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 10 ▶use parent 'DBIx::Class';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 10 __PACKAGE__->load_components(qw/InflateColumn::DateTime TimeStamp Core/);
12 10 __PACKAGE__->table("reportcomment");
13 10 __PACKAGE__->add_columns
14 (
15 "id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_auto_increment => 1, },
16 "report_id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_foreign_key => 1, },
17 "owner_id", { data_type => "INT", default_value => undef, is_nullable => 1, size => 11, is_foreign_key => 1, extra => { renamed_from => 'user_id' }, },
18 "succession", { data_type => "INT", default_value => undef, is_nullable => 1, size => 10, },
19 "comment", { data_type => "TEXT", default_value => "", is_nullable => 0, },
20 "created_at", { data_type => "DATETIME", default_value => undef, is_nullable => 0, set_on_create => 1, },
21 "updated_at", { data_type => "DATETIME", default_value => undef, is_nullable => 0, set_on_create => 1, set_on_update => 1, },
22 );
23  
24 10 __PACKAGE__->set_primary_key("id");
25  
26 10 __PACKAGE__->belongs_to ( report => 'Tapper::Schema::TestrunDB::Result::Report', { 'foreign.id' => 'self.report_id' });
27 10 __PACKAGE__->belongs_to ( owner => 'Tapper::Schema::TestrunDB::Result::Owner', { 'foreign.id' => 'self.owner_id' });
28  
29  
30 10 1;
31  
32 __END__
« Tapper/Schema/TestrunDB/Result/QueueHost.pm ↑ Summary Tapper/Schema/TestrunDB/Result/ReportTopic.pm »