| 1 | package DBIO::Test::Schema::FourKeys_to_TwoKeys; | ||
| 2 | # ABSTRACT: Test result class for the fourkeys_to_twokeys table | ||
| 3 | |||
| 4 | 256 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 256 | our $VERSION = '0.900007'; | |
| 7 | |||
| 8 | 256 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 256 | ▶ | use base qw/DBIO::Test::BaseResult/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 256 | __PACKAGE__->table('fourkeys_to_twokeys'); | |
| 13 | 256 | __PACKAGE__->add_columns( | |
| 14 | 'f_foo' => { data_type => 'integer' }, | ||
| 15 | 'f_bar' => { data_type => 'integer' }, | ||
| 16 | 'f_hello' => { data_type => 'integer' }, | ||
| 17 | 'f_goodbye' => { data_type => 'integer' }, | ||
| 18 | 't_artist' => { data_type => 'integer' }, | ||
| 19 | 't_cd' => { data_type => 'integer' }, | ||
| 20 | 'autopilot' => { data_type => 'character' }, | ||
| 21 | 'pilot_sequence' => { data_type => 'integer', is_nullable => 1 }, | ||
| 22 | ); | ||
| 23 | 256 | __PACKAGE__->set_primary_key( | |
| 24 | qw/f_foo f_bar f_hello f_goodbye t_artist t_cd/ | ||
| 25 | ); | ||
| 26 | |||
| 27 | 256 | __PACKAGE__->belongs_to('fourkeys', 'DBIO::Test::Schema::FourKeys', { | |
| 28 | 'foreign.foo' => 'self.f_foo', | ||
| 29 | 'foreign.bar' => 'self.f_bar', | ||
| 30 | 'foreign.hello' => 'self.f_hello', | ||
| 31 | 'foreign.goodbye' => 'self.f_goodbye', | ||
| 32 | }); | ||
| 33 | |||
| 34 | 256 | __PACKAGE__->belongs_to('twokeys', 'DBIO::Test::Schema::TwoKeys', { | |
| 35 | 'foreign.artist' => 'self.t_artist', | ||
| 36 | 'foreign.cd' => 'self.t_cd', | ||
| 37 | }); | ||
| 38 | |||
| 39 | 256 | 1; | |
| 40 | |||
| 41 | __END__ | ||