Commit | Line | Data |
8273e845 |
1 | package # hide from PAUSE |
3bd6e3e0 |
2 | DBICTest::Schema::FourKeys_to_TwoKeys; |
3 | |
4a233f30 |
4 | use warnings; |
5 | use strict; |
6 | |
660cf1be |
7 | use base qw/DBICTest::BaseResult/; |
3bd6e3e0 |
8 | |
9 | __PACKAGE__->table('fourkeys_to_twokeys'); |
10 | __PACKAGE__->add_columns( |
11 | 'f_foo' => { data_type => 'integer' }, |
12 | 'f_bar' => { data_type => 'integer' }, |
13 | 'f_hello' => { data_type => 'integer' }, |
14 | 'f_goodbye' => { data_type => 'integer' }, |
15 | 't_artist' => { data_type => 'integer' }, |
16 | 't_cd' => { data_type => 'integer' }, |
17 | 'autopilot' => { data_type => 'character' }, |
ff1234ad |
18 | 'pilot_sequence' => { data_type => 'integer', is_nullable => 1 }, |
3bd6e3e0 |
19 | ); |
20 | __PACKAGE__->set_primary_key( |
21 | qw/f_foo f_bar f_hello f_goodbye t_artist t_cd/ |
22 | ); |
23 | |
24 | __PACKAGE__->belongs_to('fourkeys', 'DBICTest::Schema::FourKeys', { |
25 | 'foreign.foo' => 'self.f_foo', |
26 | 'foreign.bar' => 'self.f_bar', |
27 | 'foreign.hello' => 'self.f_hello', |
28 | 'foreign.goodbye' => 'self.f_goodbye', |
29 | }); |
30 | |
31 | __PACKAGE__->belongs_to('twokeys', 'DBICTest::Schema::TwoKeys', { |
32 | 'foreign.artist' => 'self.t_artist', |
33 | 'foreign.cd' => 'self.t_cd', |
34 | }); |
35 | |
36 | 1; |