Tapper/Schema/TestrunDB/Result/Benchs.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 25 / 25 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/BenchValues.pm ↑ Summary Tapper/Schema/TestrunDB/Result/ChartAxisTypes.pm »
1 package Tapper::Schema::TestrunDB::Result::Benchs;
2 10 our $AUTHORITY = 'cpan:TAPPER';
3 10 $Tapper::Schema::TestrunDB::Result::Benchs::VERSION = '5.0.12';
4 # ABSTRACT: Tapper - containg benchmark head data
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 Core/);
12 10 __PACKAGE__->table('benchs');
13 10 __PACKAGE__->add_columns(
14 'bench_id', {
15 data_type => 'INT',
16 default_value => undef,
17 is_nullable => 0,
18 size => 11,
19 is_auto_increment => 1,
20 extra => {
21 unsigned => 1,
22 },
23 },
24 'bench_unit_id', {
25 data_type => 'TINYINT',
26 default_value => undef,
27 is_nullable => 0,
28 size => 4,
29 is_foreign_key => 1,
30 extra => {
31 unsigned => 1,
32 },
33 },
34 'bench', {
35 data_type => 'VARCHAR',
36 default_value => undef,
37 is_nullable => 0,
38 size => 767,
39 },
40 'active', {
41 data_type => 'TINYINT',
42 default_value => undef,
43 is_nullable => 0,
44 size => 4,
45 extra => {
46 unsigned => 1,
47 },
48 },
49 'created_at', {
50 data_type => 'TIMESTAMP',
51 default_value => undef,
52 is_nullable => 0,
53 set_on_create => 1,
54 },
55 );
56  
57 10 (my $basepkg = __PACKAGE__) =~ s/::\w+$//;
58  
59 10 __PACKAGE__->set_primary_key('bench_id');
60 10 __PACKAGE__->add_unique_constraint(
61 'ux_benchs_01' => ['bench'],
62 );
63  
64 10 __PACKAGE__->belongs_to(
65 bench_unit => "${basepkg}::BenchUnits", { 'foreign.bench_unit_id' => 'self.bench_unit_id' },
66 );
67  
68 10 __PACKAGE__->has_many (
69 bench_value => "${basepkg}::BenchValues", { 'foreign.bench_id' => 'self.bench_id' },
70 );
71 10 __PACKAGE__->has_many (
72 bench_additional_type_relation => "${basepkg}::BenchAdditionalTypeRelations", { 'foreign.bench_id' => 'self.bench_id' },
73 );
74 10 __PACKAGE__->has_many (
75 bench_backup_value => "${basepkg}::BenchBackupValues", { 'foreign.bench_id' => 'self.bench_id' },
76 );
77  
78 10 1;
79  
80 __END__
« Tapper/Schema/TestrunDB/Result/BenchValues.pm ↑ Summary Tapper/Schema/TestrunDB/Result/ChartAxisTypes.pm »