| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Tapper::Schema::TestrunDB::Result::BenchBackupValues; | 
| 2 |  |  |  |  |  |  | our $AUTHORITY = 'cpan:TAPPER'; | 
| 3 |  |  |  |  |  |  | $Tapper::Schema::TestrunDB::Result::BenchBackupValues::VERSION = '5.0.11'; | 
| 4 |  |  |  |  |  |  | # ABSTRACT: Tapper - backup table for data points for benchmark | 
| 5 |  |  |  |  |  |  |  | 
| 6 | 7 |  |  | 7 |  | 3488 | use strict; | 
|  | 7 |  |  |  |  | 16 |  | 
|  | 7 |  |  |  |  | 190 |  | 
| 7 | 7 |  |  | 7 |  | 34 | use warnings; | 
|  | 7 |  |  |  |  | 14 |  | 
|  | 7 |  |  |  |  | 166 |  | 
| 8 |  |  |  |  |  |  |  | 
| 9 | 7 |  |  | 7 |  | 33 | use parent 'DBIx::Class'; | 
|  | 7 |  |  |  |  | 14 |  | 
|  | 7 |  |  |  |  | 35 |  | 
| 10 |  |  |  |  |  |  |  | 
| 11 |  |  |  |  |  |  | __PACKAGE__->load_components(qw/InflateColumn::DateTime Core/); | 
| 12 |  |  |  |  |  |  | __PACKAGE__->table('bench_backup_values'); | 
| 13 |  |  |  |  |  |  | __PACKAGE__->add_columns( | 
| 14 |  |  |  |  |  |  | 'bench_backup_value_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_value_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 |  |  |  |  |  |  | 'bench_id', { | 
| 35 |  |  |  |  |  |  | data_type           => 'INT', | 
| 36 |  |  |  |  |  |  | default_value       => undef, | 
| 37 |  |  |  |  |  |  | is_nullable         => 0, | 
| 38 |  |  |  |  |  |  | size                => 11, | 
| 39 |  |  |  |  |  |  | is_foreign_key      => 1, | 
| 40 |  |  |  |  |  |  | extra               => { | 
| 41 |  |  |  |  |  |  | unsigned => 1, | 
| 42 |  |  |  |  |  |  | }, | 
| 43 |  |  |  |  |  |  | }, | 
| 44 |  |  |  |  |  |  | 'bench_subsume_type_id', { | 
| 45 |  |  |  |  |  |  | data_type           => 'SMALLINT', | 
| 46 |  |  |  |  |  |  | default_value       => undef, | 
| 47 |  |  |  |  |  |  | is_nullable         => 0, | 
| 48 |  |  |  |  |  |  | size                => 6, | 
| 49 |  |  |  |  |  |  | is_foreign_key      => 1, | 
| 50 |  |  |  |  |  |  | extra               => { | 
| 51 |  |  |  |  |  |  | unsigned => 1, | 
| 52 |  |  |  |  |  |  | }, | 
| 53 |  |  |  |  |  |  | }, | 
| 54 |  |  |  |  |  |  | 'bench_value', { | 
| 55 |  |  |  |  |  |  | data_type           => 'VARCHAR', | 
| 56 |  |  |  |  |  |  | default_value       => undef, | 
| 57 |  |  |  |  |  |  | is_nullable         => 0, | 
| 58 |  |  |  |  |  |  | size                => 767, | 
| 59 |  |  |  |  |  |  | }, | 
| 60 |  |  |  |  |  |  | 'active', { | 
| 61 |  |  |  |  |  |  | data_type           => 'TINYINT', | 
| 62 |  |  |  |  |  |  | default_value       => undef, | 
| 63 |  |  |  |  |  |  | is_nullable         => 0, | 
| 64 |  |  |  |  |  |  | size                => 4, | 
| 65 |  |  |  |  |  |  | extra               => { | 
| 66 |  |  |  |  |  |  | unsigned => 1, | 
| 67 |  |  |  |  |  |  | }, | 
| 68 |  |  |  |  |  |  | }, | 
| 69 |  |  |  |  |  |  | 'created_at', { | 
| 70 |  |  |  |  |  |  | data_type           => 'TIMESTAMP', | 
| 71 |  |  |  |  |  |  | default_value       => undef, | 
| 72 |  |  |  |  |  |  | is_nullable         => 0, | 
| 73 |  |  |  |  |  |  | set_on_create       => 1, | 
| 74 |  |  |  |  |  |  | }, | 
| 75 |  |  |  |  |  |  | ); | 
| 76 |  |  |  |  |  |  |  | 
| 77 |  |  |  |  |  |  | (my $basepkg = __PACKAGE__) =~ s/::\w+$//; | 
| 78 |  |  |  |  |  |  |  | 
| 79 |  |  |  |  |  |  | __PACKAGE__->set_primary_key('bench_backup_value_id'); | 
| 80 |  |  |  |  |  |  | __PACKAGE__->belongs_to( | 
| 81 |  |  |  |  |  |  | bench => "${basepkg}::Benchs", { 'foreign.bench_id' => 'self.bench_id'  }, | 
| 82 |  |  |  |  |  |  | ); | 
| 83 |  |  |  |  |  |  | __PACKAGE__->belongs_to( | 
| 84 |  |  |  |  |  |  | bench_value => "${basepkg}::BenchValues", { 'foreign.bench_value_id' => 'self.bench_value_id'  }, | 
| 85 |  |  |  |  |  |  | ); | 
| 86 |  |  |  |  |  |  | __PACKAGE__->belongs_to( | 
| 87 |  |  |  |  |  |  | bench_subsume_type => "${basepkg}::BenchSubsumeTypes", { 'foreign.bench_subsume_type_id' => 'self.bench_subsume_type_id'  }, | 
| 88 |  |  |  |  |  |  | ); | 
| 89 |  |  |  |  |  |  | __PACKAGE__->has_many ( | 
| 90 |  |  |  |  |  |  | bench_backup_additional_relation => "${basepkg}::BenchBackupAdditionalRelations", { 'foreign.bench_backup_value_id' => 'self.bench_backup_value_id' }, | 
| 91 |  |  |  |  |  |  | ); | 
| 92 |  |  |  |  |  |  |  | 
| 93 |  |  |  |  |  |  | 1; | 
| 94 |  |  |  |  |  |  |  | 
| 95 |  |  |  |  |  |  | __END__ | 
| 96 |  |  |  |  |  |  |  | 
| 97 |  |  |  |  |  |  | =pod | 
| 98 |  |  |  |  |  |  |  | 
| 99 |  |  |  |  |  |  | =encoding UTF-8 | 
| 100 |  |  |  |  |  |  |  | 
| 101 |  |  |  |  |  |  | =head1 NAME | 
| 102 |  |  |  |  |  |  |  | 
| 103 |  |  |  |  |  |  | Tapper::Schema::TestrunDB::Result::BenchBackupValues - Tapper - backup table for data points for benchmark | 
| 104 |  |  |  |  |  |  |  | 
| 105 |  |  |  |  |  |  | =head1 AUTHORS | 
| 106 |  |  |  |  |  |  |  | 
| 107 |  |  |  |  |  |  | =over 4 | 
| 108 |  |  |  |  |  |  |  | 
| 109 |  |  |  |  |  |  | =item * | 
| 110 |  |  |  |  |  |  |  | 
| 111 |  |  |  |  |  |  | AMD OSRC Tapper Team <tapper@amd64.org> | 
| 112 |  |  |  |  |  |  |  | 
| 113 |  |  |  |  |  |  | =item * | 
| 114 |  |  |  |  |  |  |  | 
| 115 |  |  |  |  |  |  | Tapper Team <tapper-ops@amazon.com> | 
| 116 |  |  |  |  |  |  |  | 
| 117 |  |  |  |  |  |  | =back | 
| 118 |  |  |  |  |  |  |  | 
| 119 |  |  |  |  |  |  | =head1 COPYRIGHT AND LICENSE | 
| 120 |  |  |  |  |  |  |  | 
| 121 |  |  |  |  |  |  | This software is Copyright (c) 2019 by Advanced Micro Devices, Inc.. | 
| 122 |  |  |  |  |  |  |  | 
| 123 |  |  |  |  |  |  | This is free software, licensed under: | 
| 124 |  |  |  |  |  |  |  | 
| 125 |  |  |  |  |  |  | The (two-clause) FreeBSD License | 
| 126 |  |  |  |  |  |  |  | 
| 127 |  |  |  |  |  |  | =cut |