| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Tapper::Schema::TestrunDB::Result::ChartTypes; | 
| 2 |  |  |  |  |  |  | our $AUTHORITY = 'cpan:TAPPER'; | 
| 3 |  |  |  |  |  |  | $Tapper::Schema::TestrunDB::Result::ChartTypes::VERSION = '5.0.9'; | 
| 4 |  |  |  |  |  |  | # ABSTRACT: Tapper - Keep Charts Types for Tapper-Reports-Web-GUI | 
| 5 |  |  |  |  |  |  |  | 
| 6 | 7 |  |  | 7 |  | 2965 | use strict; | 
|  | 7 |  |  |  |  | 12 |  | 
|  | 7 |  |  |  |  | 170 |  | 
| 7 | 7 |  |  | 7 |  | 24 | use warnings; | 
|  | 7 |  |  |  |  | 7 |  | 
|  | 7 |  |  |  |  | 163 |  | 
| 8 |  |  |  |  |  |  |  | 
| 9 | 7 |  |  | 7 |  | 22 | use parent 'DBIx::Class'; | 
|  | 7 |  |  |  |  | 8 |  | 
|  | 7 |  |  |  |  | 30 |  | 
| 10 |  |  |  |  |  |  |  | 
| 11 |  |  |  |  |  |  | __PACKAGE__->load_components(qw/InflateColumn::DateTime Core/); | 
| 12 |  |  |  |  |  |  | __PACKAGE__->table('chart_types'); | 
| 13 |  |  |  |  |  |  | __PACKAGE__->add_columns( | 
| 14 |  |  |  |  |  |  | 'chart_type_id', { | 
| 15 |  |  |  |  |  |  | data_type           => 'TINYINT', | 
| 16 |  |  |  |  |  |  | default_value       => undef, | 
| 17 |  |  |  |  |  |  | is_nullable         => 0, | 
| 18 |  |  |  |  |  |  | size                => 4, | 
| 19 |  |  |  |  |  |  | is_auto_increment   => 1, | 
| 20 |  |  |  |  |  |  | extra               => { | 
| 21 |  |  |  |  |  |  | unsigned => 1, | 
| 22 |  |  |  |  |  |  | }, | 
| 23 |  |  |  |  |  |  | }, | 
| 24 |  |  |  |  |  |  | 'chart_type_name'   , { | 
| 25 |  |  |  |  |  |  | data_type           => 'VARCHAR', | 
| 26 |  |  |  |  |  |  | default_value       => undef, | 
| 27 |  |  |  |  |  |  | is_nullable         => 0, | 
| 28 |  |  |  |  |  |  | size                => 64, | 
| 29 |  |  |  |  |  |  | }, | 
| 30 |  |  |  |  |  |  | 'chart_type_description'   , { | 
| 31 |  |  |  |  |  |  | data_type           => 'VARCHAR', | 
| 32 |  |  |  |  |  |  | default_value       => undef, | 
| 33 |  |  |  |  |  |  | is_nullable         => 0, | 
| 34 |  |  |  |  |  |  | size                => 256, | 
| 35 |  |  |  |  |  |  | }, | 
| 36 |  |  |  |  |  |  | 'chart_type_flot_name'   , { | 
| 37 |  |  |  |  |  |  | data_type           => 'VARCHAR', | 
| 38 |  |  |  |  |  |  | default_value       => undef, | 
| 39 |  |  |  |  |  |  | is_nullable         => 0, | 
| 40 |  |  |  |  |  |  | size                => 64, | 
| 41 |  |  |  |  |  |  | }, | 
| 42 |  |  |  |  |  |  | 'created_at', { | 
| 43 |  |  |  |  |  |  | data_type           => 'TIMESTAMP', | 
| 44 |  |  |  |  |  |  | default_value       => undef, | 
| 45 |  |  |  |  |  |  | is_nullable         => 0, | 
| 46 |  |  |  |  |  |  | set_on_create       => 1, | 
| 47 |  |  |  |  |  |  | }, | 
| 48 |  |  |  |  |  |  | ); | 
| 49 |  |  |  |  |  |  |  | 
| 50 |  |  |  |  |  |  |  | 
| 51 |  |  |  |  |  |  | (my $basepkg = __PACKAGE__) =~ s/::\w+$//; | 
| 52 |  |  |  |  |  |  |  | 
| 53 |  |  |  |  |  |  | __PACKAGE__->set_primary_key('chart_type_id'); | 
| 54 |  |  |  |  |  |  | __PACKAGE__->add_unique_constraint( ux_chart_types_01 => [ 'chart_type_name' ], ); | 
| 55 |  |  |  |  |  |  | __PACKAGE__->add_unique_constraint( ux_chart_types_02 => [ 'chart_type_flot_name' ], ); | 
| 56 |  |  |  |  |  |  |  | 
| 57 |  |  |  |  |  |  | 1; | 
| 58 |  |  |  |  |  |  |  | 
| 59 |  |  |  |  |  |  | __END__ | 
| 60 |  |  |  |  |  |  |  | 
| 61 |  |  |  |  |  |  | =pod | 
| 62 |  |  |  |  |  |  |  | 
| 63 |  |  |  |  |  |  | =encoding UTF-8 | 
| 64 |  |  |  |  |  |  |  | 
| 65 |  |  |  |  |  |  | =head1 NAME | 
| 66 |  |  |  |  |  |  |  | 
| 67 |  |  |  |  |  |  | Tapper::Schema::TestrunDB::Result::ChartTypes - Tapper - Keep Charts Types for Tapper-Reports-Web-GUI | 
| 68 |  |  |  |  |  |  |  | 
| 69 |  |  |  |  |  |  | =head1 AUTHORS | 
| 70 |  |  |  |  |  |  |  | 
| 71 |  |  |  |  |  |  | =over 4 | 
| 72 |  |  |  |  |  |  |  | 
| 73 |  |  |  |  |  |  | =item * | 
| 74 |  |  |  |  |  |  |  | 
| 75 |  |  |  |  |  |  | AMD OSRC Tapper Team <tapper@amd64.org> | 
| 76 |  |  |  |  |  |  |  | 
| 77 |  |  |  |  |  |  | =item * | 
| 78 |  |  |  |  |  |  |  | 
| 79 |  |  |  |  |  |  | Tapper Team <tapper-ops@amazon.com> | 
| 80 |  |  |  |  |  |  |  | 
| 81 |  |  |  |  |  |  | =back | 
| 82 |  |  |  |  |  |  |  | 
| 83 |  |  |  |  |  |  | =head1 COPYRIGHT AND LICENSE | 
| 84 |  |  |  |  |  |  |  | 
| 85 |  |  |  |  |  |  | This software is Copyright (c) 2017 by Advanced Micro Devices, Inc.. | 
| 86 |  |  |  |  |  |  |  | 
| 87 |  |  |  |  |  |  | This is free software, licensed under: | 
| 88 |  |  |  |  |  |  |  | 
| 89 |  |  |  |  |  |  | The (two-clause) FreeBSD License | 
| 90 |  |  |  |  |  |  |  | 
| 91 |  |  |  |  |  |  | =cut |