File Coverage

blib/lib/Tapper/Schema/TestrunDB/Result/ChartLineAxisElements.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Tapper::Schema::TestrunDB::Result::ChartLineAxisElements;
2             our $AUTHORITY = 'cpan:TAPPER';
3             $Tapper::Schema::TestrunDB::Result::ChartLineAxisElements::VERSION = '5.0.11';
4             # ABSTRACT: Tapper - Relation Table for Elements for Chart line Axis
5              
6 7     7   3485 use strict;
  7         18  
  7         224  
7 7     7   33 use warnings;
  7         14  
  7         164  
8              
9 7     7   32 use parent 'DBIx::Class';
  7         13  
  7         38  
10              
11             __PACKAGE__->load_components(qw/FilterColumn InflateColumn::DateTime Core/);
12             __PACKAGE__->table('chart_line_axis_elements');
13             __PACKAGE__->add_columns(
14             'chart_line_axis_element_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             'chart_line_id', {
25             data_type => 'INT',
26             default_value => undef,
27             is_nullable => 0,
28             size => 11,
29             is_foreign_key => 1,
30             extra => {
31             unsigned => 1,
32             },
33             },
34             'chart_line_axis', {
35             data_type => 'CHAR',
36             is_nullable => 0,
37             size => 1,
38             is_enum => 1,
39             extra => {
40             list => [qw(x y)],
41             },
42             },
43             'chart_line_axis_element_number', {
44             data_type => 'TINYINT',
45             default_value => undef,
46             is_nullable => 0,
47             size => 4,
48             extra => {
49             unsigned => 1,
50             },
51             },
52             );
53              
54             (my $basepkg = __PACKAGE__) =~ s/::\w+$//;
55              
56             __PACKAGE__->set_primary_key('chart_line_axis_element_id');
57             __PACKAGE__->add_unique_constraint(
58             'ux_chart_line_axis_elements_01' => ['chart_line_id','chart_line_axis','chart_line_axis_element_number'],
59             );
60              
61             __PACKAGE__->belongs_to(
62             chart => "${basepkg}::ChartLines",
63             { 'foreign.chart_line_id' => 'self.chart_line_id' },
64             );
65             __PACKAGE__->might_have(
66             axis_separator => "${basepkg}::ChartLineAxisSeparators",
67             { 'foreign.chart_line_axis_element_id' => 'self.chart_line_axis_element_id' },
68             );
69             __PACKAGE__->might_have(
70             axis_column => "${basepkg}::ChartLineAxisColumns",
71             { 'foreign.chart_line_axis_element_id' => 'self.chart_line_axis_element_id' },
72             );
73              
74             1;
75              
76             __END__
77              
78             =pod
79              
80             =encoding UTF-8
81              
82             =head1 NAME
83              
84             Tapper::Schema::TestrunDB::Result::ChartLineAxisElements - Tapper - Relation Table for Elements for Chart line Axis
85              
86             =head1 AUTHORS
87              
88             =over 4
89              
90             =item *
91              
92             AMD OSRC Tapper Team <tapper@amd64.org>
93              
94             =item *
95              
96             Tapper Team <tapper-ops@amazon.com>
97              
98             =back
99              
100             =head1 COPYRIGHT AND LICENSE
101              
102             This software is Copyright (c) 2019 by Advanced Micro Devices, Inc..
103              
104             This is free software, licensed under:
105              
106             The (two-clause) FreeBSD License
107              
108             =cut